/* ═══════════════════════════════════════════
   ASTROMANTIE ACCOUNT — Styles
   Nutzt ausschließlich bestehende CSS-Variablen
   Scoped unter .astro-account
   ═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */

/* Skip-to-content Link */
.astro-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--astro-accent, #a78bfa);
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s;
}
.astro-skip-link:focus {
    top: 0;
}

/* Focus-Styles: sichtbarer Ring */
.astro-account *:focus-visible {
    outline: 2px solid var(--astro-accent, #a78bfa);
    outline-offset: 2px;
}
.astro-login-page *:focus-visible {
    outline: 2px solid var(--astro-accent, #a78bfa);
    outline-offset: 2px;
}

/* Focus nicht entfernen! Nur für Maus-User ausblenden */
.astro-account *:focus:not(:focus-visible) {
    outline: none;
}
.astro-login-page *:focus:not(:focus-visible) {
    outline: none;
}


/* ── Account-spezifische Variablen ── */
.astro-account {
    --account-card-radius: 16px;
    --account-gap: 18px;
    --account-px-mobile: 20px;
    --account-px-desktop: 40px;
    --account-text-mid: rgba(255,255,255,0.6);
    --account-text-dim: rgba(255,255,255,0.35);
    --account-divider: rgba(255,255,255,0.06);
    --account-input-bg: rgba(255,255,255,0.04);
    --account-input-border: rgba(255,255,255,0.1);
    --account-secondary-bg: rgba(255,255,255,0.03);
    --account-secondary-border: rgba(167,139,250,0.3);
    --account-secondary-color: #e8e0f0;
}

.astro-light-theme .astro-account {
    --account-text-mid: #6b5d4f;
    --account-text-dim: #9a8e7f;
    --account-divider: rgba(201,168,76,0.1);
    --account-input-bg: #f5f2ec;
    --account-input-border: #e5dfd5;
    --account-secondary-bg: rgba(201,168,76,0.04);
    --account-secondary-border: rgba(201,168,76,0.3);
    --account-secondary-color: #2a2018;
}


/* Header-Ergänzungen: moved to style.css (global) */


/* ═══════════════════════════════════════════
   LOGIN / REGISTER / RESET SEITEN
   ═══════════════════════════════════════════ */

.astro-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--astro-bg);
}

/* Sternenhimmel-Canvas (Dark Mode) */
.astro-login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.astro-login-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.astro-light-theme .astro-login-stars {
    display: none;
}

/* Glow-Effekte (Dark Mode) */
.astro-login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.astro-login-glow-1 {
    top: 10%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: rgba(100,80,200,0.12);
}
.astro-login-glow-2 {
    bottom: 15%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: rgba(60,20,120,0.1);
}
.astro-light-theme .astro-login-glow {
    display: none;
}

/* Light Mode Hintergrund */
.astro-light-theme .astro-login-page {
    background: linear-gradient(170deg, #ffffff 0%, #faf8f4 30%, #f0e6d0 70%, rgba(232,212,139,0.1) 100%);
}

/* Container */
.astro-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    text-align: center;
}
@media (min-width: 1024px) {
    .astro-login-container {
        max-width: 520px;
    }
}

/* Logo */
.astro-login-logo {
    margin-bottom: 40px;
}
.astro-login-logo-text {
    font-size: 28px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 3px;
    color: #e8c96a;
}
.astro-light-theme .astro-login-logo-text {
    color: #a07c2a;
}
.astro-login-logo-sub {
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    margin-top: 8px;
}

/* Card */
.astro-login-card {
    background: var(--astro-card-bg);
    border: 1px solid var(--astro-card-border);
    border-radius: var(--account-card-radius);
    padding: 32px 24px;
    backdrop-filter: blur(20px);
    text-align: left;
}
.astro-light-theme .astro-login-card {
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
@media (min-width: 1024px) {
    .astro-login-card {
        padding: 48px 40px;
    }
}

.astro-login-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--astro-text);
    font-weight: 600;
    text-align: center;
    margin: 0 0 6px;
}
@media (max-width: 767px) {
    .astro-login-title { font-size: 18px; }
}

.astro-login-subtitle {
    font-size: 13px;
    color: var(--account-text-mid);
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Login Info Box */
.astro-login-info-box {
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(167,139,250,0.06);
    border: 1px solid rgba(167,139,250,0.12);
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
    text-align: center;
}
.astro-login-info-star {
    color: var(--astro-gold);
    margin-right: 4px;
}
.astro-light-theme .astro-login-info-box {
    background: rgba(201,168,76,0.05);
    border-color: rgba(201,168,76,0.12);
    color: rgba(0,0,0,0.55);
}


/* ═══════════════════════════════════════════
   FORMULAR-ELEMENTE
   ═══════════════════════════════════════════ */

.astro-form-group {
    margin-bottom: 18px;
}

.astro-form-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--account-text-mid);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}
.astro-form-optional {
    text-transform: none;
    font-size: 10px;
    color: var(--account-text-dim);
    letter-spacing: 0;
}

.astro-form-input,
.astro-form-select {
    width: 100%;
    background: var(--account-input-bg);
    border: 1px solid var(--account-input-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--astro-text);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.astro-form-input::placeholder {
    color: var(--account-text-dim);
}
.astro-form-input:focus,
.astro-form-select:focus {
    border-color: var(--astro-accent);
}
.astro-form-input.error,
.astro-form-select.error {
    border-color: #ef4444;
}
.astro-form-input.success {
    border-color: #22c55e;
}
@media (min-width: 1024px) {
    .astro-login-page .astro-form-input,
    .astro-login-page .astro-form-select {
        padding: 14px 18px;
        font-size: 1rem;
    }
    .astro-login-page .astro-btn-primary {
        padding: 16px 0;
        font-size: 1.05rem;
    }
}

.astro-form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.astro-form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}
.astro-form-error.visible {
    display: flex;
}

/* Birth date row */
.astro-birth-row {
    display: flex;
    gap: 10px;
}
.astro-birth-row .astro-form-select {
    flex: 1;
    min-width: 0;
}
.astro-birth-time-row {
    max-width: 220px;
}
.astro-time-sep {
    display: flex;
    align-items: center;
    color: var(--account-text-dim);
    font-size: 18px;
    font-weight: 300;
}

/* Place autocomplete */
.astro-place-suggestions {
    position: absolute;
    z-index: 20;
    width: 100%;
    background: var(--astro-card-bg);
    border: 1px solid var(--astro-card-border);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(20px);
}
.astro-place-suggestions.visible {
    display: block;
}
.astro-place-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--astro-text);
    cursor: pointer;
    transition: background 0.15s;
}
.astro-place-item:hover {
    background: rgba(167,139,250,0.08);
}
.astro-light-theme .astro-place-item:hover {
    background: rgba(201,168,76,0.06);
}

/* Password strength */
.astro-password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.astro-pw-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--account-input-border);
    overflow: hidden;
}
.astro-pw-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s, background 0.3s;
}
.astro-pw-label {
    font-size: 10px;
    color: var(--account-text-dim);
    white-space: nowrap;
}

/* Checkbox */
.astro-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--account-text-mid);
    cursor: pointer;
}
.astro-checkbox-label a {
    color: var(--astro-accent);
    text-decoration: none;
}
.astro-checkbox {
    display: none;
}
.astro-checkbox-custom {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--account-input-border);
    background: var(--account-input-bg);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.astro-checkbox:checked + .astro-checkbox-custom {
    background: var(--astro-accent);
    border-color: var(--astro-accent);
}
.astro-checkbox:checked + .astro-checkbox-custom::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}
.astro-checkbox-group {
    margin-bottom: 24px;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.astro-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    border-radius: 10px;
    background: var(--astro-btn-gradient);
    color: #fff;
    font-size: 14px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
    text-align: center;
}
.astro-btn-primary:hover {
    opacity: 0.92;
}
.astro-btn-primary:active {
    transform: scale(0.98);
}
.astro-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.astro-light-theme .astro-btn-primary {
    box-shadow: 0 4px 20px rgba(201,168,76,0.2);
}

.astro-btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--account-secondary-bg);
    border: 1px solid var(--account-secondary-border);
    color: var(--account-secondary-color);
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
.astro-btn-secondary:hover {
    background: rgba(167,139,250,0.08);
}
.astro-light-theme .astro-btn-secondary:hover {
    background: rgba(201,168,76,0.08);
}

/* Spinner */
.astro-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: astro-spin 0.6s linear infinite;
}
@keyframes astro-spin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════
   LOGIN-SPEZIFISCH
   ═══════════════════════════════════════════ */

.astro-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.astro-login-forgot {
    font-size: 12px;
    color: var(--astro-accent);
    text-decoration: none;
    cursor: pointer;
}

.astro-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
}
.astro-login-divider::before,
.astro-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--account-divider);
}
.astro-login-divider span {
    font-size: 11px;
    color: var(--account-text-dim);
    letter-spacing: 1px;
}

/* Social Login */
.astro-social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.astro-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: var(--account-secondary-bg);
    border: 1px solid var(--account-secondary-border);
    color: var(--account-secondary-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.astro-social-btn:hover {
    background: rgba(167,139,250,0.08);
}
.astro-light-theme .astro-social-btn:hover {
    background: rgba(201,168,76,0.06);
}

.astro-login-register-hint {
    font-size: 13px;
    color: var(--account-text-mid);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}
.astro-login-register-btn {
    display: block;
    margin: 16px auto 0;
}

.astro-link-accent {
    color: var(--astro-accent);
    text-decoration: none;
}
.astro-link-accent:hover {
    text-decoration: underline;
}

/* Trust Footer (legacy, outside card) */
.astro-login-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 11px;
    color: var(--account-text-dim);
}

/* Trust inline (inside card) */
.astro-login-trust-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: var(--account-text-dim);
}
.astro-light-theme .astro-login-trust-inline {
    border-top-color: rgba(0,0,0,0.06);
}

/* Auth pages: floating theme toggle */
.astro-auth-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* Auth pages: back to home link */
.astro-auth-back-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.astro-auth-back-link:hover {
    color: rgba(255,255,255,0.75);
}
.astro-light-theme .astro-auth-back-link {
    color: rgba(0,0,0,0.4);
}
.astro-light-theme .astro-auth-back-link:hover {
    color: rgba(0,0,0,0.6);
}

/* Success Icon */
.astro-success-icon {
    font-size: 32px;
    color: var(--astro-gold);
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */

.astro-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
@media (max-width: 767px) {
    .astro-toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}

.astro-toast {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--astro-card-bg);
    border: 1px solid var(--astro-card-border);
    backdrop-filter: blur(20px);
    font-size: 13px;
    color: var(--astro-text);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: astro-toast-in 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}
.astro-toast.removing {
    animation: astro-toast-out 0.3s ease forwards;
}
.astro-toast-success { border-left: 3px solid #22c55e; }
.astro-toast-error   { border-left: 3px solid #ef4444; }
.astro-toast-info    { border-left: 3px solid var(--astro-accent); }
.astro-toast-coming-soon {
    border-left: 3px solid var(--astro-gold);
}

@keyframes astro-toast-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes astro-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(16px); }
}


/* ═══════════════════════════════════════════
   DASHBOARD GRUNDGERÜST (Phase 2 vorbereitet)
   ═══════════════════════════════════════════ */

.astro-dashboard-page {
    min-height: 100vh;
    background: var(--astro-bg);
}

.astro-dash-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--account-px-mobile);
    border-bottom: 1px solid var(--account-divider);
}
@media (min-width: 768px) {
    .astro-dash-nav {
        padding: 16px var(--account-px-desktop);
    }
}

.astro-dash-logo {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.astro-dash-logo img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
}
.astro-dash-logo-dark { display: block; }
.astro-dash-logo-light { display: none; }
body.astro-light-theme .astro-dash-logo-dark { display: none; }
body.astro-light-theme .astro-dash-logo-light { display: block; }
@media (min-width: 768px) {
    .astro-dash-logo img { height: 56px !important; }
}

.astro-dash-nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}
@media (min-width: 768px) {
    .astro-dash-nav-right { gap: 16px; }
}

.astro-dash-link {
    font-size: 12px;
    color: var(--account-text-dim);
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}
.astro-dash-kontodaten {
    color: var(--astro-accent);
}
.astro-dash-link:hover {
    color: var(--astro-text);
}

/* Hero */
.astro-dash-hero {
    padding: 32px var(--account-px-mobile) 20px;
    background: radial-gradient(ellipse at 30% 20%, rgba(100,80,200,0.18) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(60,20,120,0.12) 0%, transparent 50%), var(--astro-bg);
}
.astro-light-theme .astro-dash-hero {
    background: linear-gradient(170deg, #ffffff 0%, #faf8f4 30%, #f0e6d0 70%, rgba(232,212,139,0.1) 100%);
}
@media (min-width: 768px) {
    .astro-dash-hero {
        padding: 48px var(--account-px-desktop) 28px;
    }
}
@media (min-width: 1024px) {
    .astro-dash-hero {
        border-radius: 0 0 16px 16px;
    }
}

.astro-dash-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-align: center;
}
@media (min-width: 768px) {
    .astro-dash-hero-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        margin-bottom: 32px;
    }
}

.astro-dash-welcome {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--astro-text);
    margin: 0 0 6px;
}
@media (min-width: 768px) {
    .astro-dash-welcome { font-size: 30px; }
}
.astro-light-theme .astro-dash-welcome {
    color: #a07c2a;
}

.astro-dash-subtitle {
    font-size: 13px;
    color: var(--account-text-mid);
    line-height: 1.6;
    margin: 0;
}
@media (min-width: 768px) {
    .astro-dash-subtitle { font-size: 15px; }
}

/* Mobile Divider */
.astro-dash-divider-mobile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
}
@media (min-width: 768px) {
    .astro-dash-divider-mobile { display: none; }
}
.astro-dash-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.18), transparent);
}
.astro-light-theme .astro-dash-divider-line {
    background: linear-gradient(90deg, transparent, rgba(160,124,42,0.15), transparent);
}
.astro-dash-divider-star {
    font-size: 6px;
    color: rgba(167,139,250,0.35);
    letter-spacing: 3px;
}
.astro-light-theme .astro-dash-divider-star {
    color: rgba(160,124,42,0.3);
}


/* ═══════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════ */

.astro-skeleton {
    border-radius: 8px;
    background: var(--astro-card-bg);
    animation: astro-pulse 1.5s ease-in-out infinite;
}
@keyframes astro-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.astro-skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}
.astro-skeleton-line.short { width: 60%; }
.astro-skeleton-line.medium { width: 80%; }


/* ═══════════════════════════════════════════
   PHASE 2: TAB NAVIGATION
   ═══════════════════════════════════════════ */

/* Desktop: horizontale Tab-Leiste */
.astro-tabs-desktop {
    display: none;
    padding: 0 var(--account-px-desktop);
    border-bottom: 1px solid var(--account-divider);
}
@media (min-width: 1024px) {
    .astro-dash-tabs { margin-top: 20px; }
}
@media (min-width: 768px) {
    .astro-tabs-desktop { display: flex; }
}
.astro-tab-btn {
    padding: 16px 18px;
    font-size: 13px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    color: var(--account-text-mid);
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    font-weight: 400;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.astro-tab-btn:hover { color: var(--astro-text); }
.astro-tab-btn.active {
    color: var(--astro-accent);
    border-bottom-color: var(--astro-accent);
    font-weight: 600;
}

/* Mobile: Segmented Control 2 Reihen */
.astro-tabs-mobile {
    padding: 14px var(--account-px-mobile) 12px;
    border-bottom: 1px solid var(--account-divider);
}
@media (min-width: 768px) {
    .astro-tabs-mobile { display: none; }
}
.astro-tabs-mobile-row {
    display: flex;
    background: rgba(255,255,255,0.025);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 3px;
    margin-bottom: 8px;
}
.astro-tabs-mobile-row:last-child { margin-bottom: 0; }
.astro-light-theme .astro-tabs-mobile-row {
    background: rgba(0,0,0,0.018);
    border-color: rgba(0,0,0,0.06);
}
.astro-tabs-mobile-row-center {
    justify-content: center;
}
.astro-tabs-mobile-row-center .astro-seg-btn {
    flex: 0 0 auto;
    min-width: 120px;
}

.astro-seg-btn {
    flex: 1;
    padding: 10px 6px 8px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.4px;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--account-text-mid);
    font-weight: 400;
    transition: all 0.15s;
    position: relative;
}
.astro-seg-btn.active {
    background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(167,139,250,0.15));
    border-color: rgba(167,139,250,0.3);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(124,58,237,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.astro-light-theme .astro-seg-btn.active {
    background: linear-gradient(135deg, rgba(160,124,42,0.7), rgba(201,168,76,0.6));
    border-color: rgba(160,124,42,0.4);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(160,124,42,0.2);
}
.astro-seg-btn.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--astro-accent);
}

/* Tab content fade */
.astro-tab-content {
    animation: astro-fade-in 0.2s ease;
}
@keyframes astro-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ═══════════════════════════════════════════
   PROFIL-KARTE
   ═══════════════════════════════════════════ */

/* Desktop */
.astro-profil-desktop {
    background: var(--astro-card-bg);
    border: 1px solid var(--astro-card-border);
    border-radius: 14px;
    padding: 24px 28px;
    backdrop-filter: blur(16px);
}

.astro-profil-top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.astro-profil-field label {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.astro-profil-field span {
    font-size: 16px;
    color: var(--astro-text);
    font-weight: 500;
}

.astro-profil-divider {
    height: 1px;
    background: var(--account-divider);
    margin-bottom: 20px;
}

.astro-profil-triad {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 32px;
    align-items: center;
}
.astro-triad-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.astro-triad-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.astro-triad-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.astro-triad-value {
    font-size: 16px;
    color: var(--astro-text);
    font-weight: 500;
}
.astro-profil-horoskop-btn {
    display: flex;
    justify-content: flex-end;
}
.astro-profil-horoskop-btn button {
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--account-secondary-bg);
    border: 1px solid var(--account-secondary-border);
    color: var(--astro-accent);
    font-size: 12px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
}

/* Mobile: Stacked Cards */
.astro-profil-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 768px) {
    .astro-profil-mobile { display: none; }
}
@media (max-width: 767px) {
    .astro-profil-desktop { display: none; }
}

.astro-mini-card {
    background: rgba(255,255,255,0.025);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 14px 16px;
}
.astro-light-theme .astro-mini-card {
    background: rgba(0,0,0,0.015);
    border-color: rgba(0,0,0,0.06);
}
.astro-mini-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.astro-mini-card-chip { text-align: center; }
.astro-mini-card-chip label {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}
.astro-mini-card-chip span {
    font-size: 13px;
    color: var(--astro-text);
    font-weight: 500;
}

.astro-mini-card-split {
    display: flex;
    gap: 10px;
}
.astro-mini-card-split > * { flex: 1; }

.astro-mobile-triad {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-bottom: 14px;
}
.astro-mobile-triad-item { text-align: center; }
.astro-mobile-triad-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.astro-mobile-triad-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    margin-bottom: 1px;
}
.astro-mobile-triad-value {
    font-size: 13px;
    color: var(--astro-text);
    font-weight: 600;
}
.astro-mobile-triad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px 16px;
}
.astro-mobile-triad-card button {
    padding: 7px 18px;
    border-radius: 8px;
    background: var(--account-secondary-bg);
    border: 1px solid var(--account-secondary-border);
    color: var(--astro-accent);
    font-size: 11px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-weight: 500;
}


/* ═══════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════ */

.astro-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.astro-section-header::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--astro-gold);
}
.astro-section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--astro-text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}
.astro-light-theme .astro-section-header h2 {
    color: #a07c2a;
}
.astro-light-theme .astro-section-header::before {
    background: #a07c2a;
}


/* ═══════════════════════════════════════════
   CARDS (allgemein)
   ═══════════════════════════════════════════ */

.astro-card {
    background: var(--astro-card-bg);
    border: 1px solid var(--astro-card-border);
    border-radius: 14px;
    padding: 22px 18px;
    backdrop-filter: blur(16px);
}
@media (min-width: 768px) {
    .astro-card { padding: 28px 28px; }
}


/* ═══════════════════════════════════════════
   ÜBERSICHT TAB
   ═══════════════════════════════════════════ */

/* Progress */
.astro-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}
.astro-light-theme .astro-progress-bar {
    background: rgba(201,168,76,0.1);
}
.astro-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--astro-accent-dark, #7c3aed), var(--astro-accent), var(--astro-gold));
    transition: width 0.5s ease;
}
.astro-light-theme .astro-progress-fill {
    background: linear-gradient(90deg, #a07c2a, #c9a84c, #e8d48b);
}

.astro-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.astro-progress-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.astro-progress-check.done {
    background: rgba(124,58,237,0.05);
    border: 1.5px solid var(--astro-accent);
    color: var(--astro-accent);
}
.astro-light-theme .astro-progress-check.done {
    background: rgba(160,124,42,0.05);
    border-color: #a07c2a;
    color: #a07c2a;
}
.astro-progress-check.locked {
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.2);
}
.astro-light-theme .astro-progress-check.locked {
    border-color: rgba(0,0,0,0.15);
    color: rgba(0,0,0,0.15);
}

/* Product Cards Grid */
.astro-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .astro-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

.astro-product-card {
    background: var(--astro-card-bg);
    border: 1px solid var(--astro-card-border);
    border-radius: 14px;
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.astro-product-card.unlocked {
    box-shadow: 0 0 20px rgba(124,58,237,0.08);
}
.astro-product-card.locked {
    opacity: 0.7;
}
.astro-product-card {
    position: relative;
}
.astro-product-lock {
    position: absolute;
    top: 16px;
    right: 16px;
    color: rgba(255,255,255,0.25);
}
.astro-light-theme .astro-product-lock {
    color: rgba(0,0,0,0.2);
}
.astro-product-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--astro-gold);
}
.astro-product-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 4px;
}
.astro-light-theme .astro-product-card h3 {
    color: var(--astro-text);
}
.astro-product-card .subtitle {
    font-size: 11px;
    color: var(--astro-accent);
    margin-bottom: 8px;
}
.astro-product-card .desc {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 14px;
}
.astro-light-theme .astro-product-card .desc {
    color: var(--account-text-mid);
}
.astro-product-card .date {
    font-size: 10px;
    color: var(--account-text-dim);
    margin-bottom: 12px;
}
.astro-product-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.astro-product-card-actions button,
.astro-product-card-actions a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    transition: all 0.2s;
}
.astro-product-card-actions button:hover,
.astro-product-card-actions a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}
.astro-light-theme .astro-product-card-actions button,
.astro-light-theme .astro-product-card-actions a {
    border: 1px solid var(--account-secondary-border);
    background: var(--account-secondary-bg);
    color: var(--account-secondary-color);
}
.astro-light-theme .astro-product-card-actions button:hover,
.astro-light-theme .astro-product-card-actions a:hover {
    background: rgba(160,124,42,0.08);
}

/* Insight Card */
.astro-insight-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.astro-insight-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.astro-insight-icon {
    font-size: 20px;
    color: var(--astro-gold);
    margin-bottom: 12px;
}
.astro-insight-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--astro-gold);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}
.astro-insight-text {
    font-size: 14px;
    color: var(--astro-text);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .astro-insight-text { font-size: 15px; }
}
.astro-insight-text strong {
    color: var(--astro-accent);
}
.astro-insight-meta {
    font-size: 11px;
    color: var(--account-text-dim);
    margin-top: 16px;
}


/* ═══════════════════════════════════════════
   HOROSKOP TAB
   ═══════════════════════════════════════════ */

.astro-heading-gold {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-variant: small-caps;
    color: var(--astro-gold);
    text-align: center;
    margin-bottom: 20px;
}
.astro-light-theme .astro-heading-gold {
    color: #a07c2a;
}

/* Radix table */
.astro-radix-table {
    width: 100%;
}
.astro-radix-row {
    display: grid;
    gap: 6px;
    padding: 5px 4px;
    align-items: center;
    border-radius: 4px;
}
.astro-radix-row.header {
    padding: 6px 4px;
    border-bottom: 1px solid var(--account-divider);
    margin-bottom: 4px;
}
.astro-radix-row.header span {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    font-weight: 600;
}
.astro-radix-row.striped {
    background: var(--astro-surface, rgba(255,255,255,0.03));
}
.astro-radix-row-mobile {
    grid-template-columns: 26px 1fr 1fr 44px;
}
.astro-radix-row-desktop {
    grid-template-columns: 28px 1fr 100px 1fr 44px;
}
@media (max-width: 767px) {
    .astro-radix-row-desktop { display: none; }
}
@media (min-width: 768px) {
    .astro-radix-row-mobile { display: none; }
}

.astro-planet-sym {
    font-size: 15px;
    font-family: serif;
    text-align: center;
}
.astro-sign-sym {
    font-size: 14px;
    font-family: serif;
    margin-right: 6px;
}
.astro-retro-badge {
    color: #e74c3c;
    font-size: 11px;
    margin-left: 4px;
}

/* Aspekte */
.astro-aspect-row {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    gap: 5px;
}
@media (min-width: 768px) {
    .astro-aspect-row {
        display: grid;
        grid-template-columns: 22px 1fr 22px auto 1fr auto;
        gap: 8px;
        padding: 6px 4px;
    }
}


/* ═══════════════════════════════════════════
   KARTE TAB (Platzhalter)
   ═══════════════════════════════════════════ */

.astro-placeholder-card {
    text-align: center;
    padding: 48px 24px;
}
.astro-placeholder-icon {
    font-size: 48px;
    color: var(--astro-gold);
    margin-bottom: 16px;
    opacity: 0.6;
}
.astro-placeholder-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--astro-text);
    font-weight: 600;
    margin-bottom: 10px;
}
.astro-placeholder-text {
    font-size: 13px;
    color: var(--account-text-mid);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ═══════════════════════════════════════════
   TAG TAB
   ═══════════════════════════════════════════ */

.astro-tag-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .astro-tag-grid { grid-template-columns: 1fr 1fr; }
}

.astro-quality-dots {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* Transit Cards (mobile) */
.astro-transit-card {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 16px 14px;
    border: 1px solid rgba(255,255,255,0.05);
    border-left-width: 3px;
}
.astro-light-theme .astro-transit-card {
    background: rgba(0,0,0,0.012);
    border-color: rgba(0,0,0,0.05);
}
.astro-transit-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.astro-transit-badge {
    display: inline-block;
    font-size: 9px;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}
.astro-transit-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 10px;
    color: var(--account-text-dim);
}
.astro-transit-desc {
    font-size: 12px;
    color: var(--account-text-mid);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Week highlights */
.astro-week-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--account-divider);
}
.astro-week-item:last-child { border-bottom: none; }
.astro-week-day {
    font-size: 12px;
    color: var(--account-text-dim);
    min-width: 46px;
}
.astro-week-label {
    font-size: 13px;
    color: var(--astro-text);
    flex: 1;
}
.astro-week-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}


/* ═══════════════════════════════════════════
   MONDKALENDER-LEISTE
   ═══════════════════════════════════════════ */
.astro-moon-timeline-wrap {
    margin-bottom: 20px;
    overflow: hidden;
}
.astro-moon-timeline {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    cursor: grab;
}
.astro-moon-timeline::-webkit-scrollbar {
    height: 4px;
}
.astro-moon-timeline::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
.astro-light-theme .astro-moon-timeline {
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.astro-light-theme .astro-moon-timeline::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
}
.astro-moon-tl-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 48px;
    padding: 8px 4px;
    border-radius: 10px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.astro-moon-tl-day.today {
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.25);
}
.astro-light-theme .astro-moon-tl-day.today {
    background: rgba(201,168,76,0.1);
    border-color: rgba(201,168,76,0.25);
}
.astro-moon-tl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.astro-moon-tl-label {
    font-size: 9px;
    color: var(--account-text-dim);
    white-space: nowrap;
}
.astro-moon-tl-day.today .astro-moon-tl-label {
    color: var(--astro-accent);
    font-weight: 600;
    font-size: 10px;
}


/* ═══════════════════════════════════════════
   FRAGEN TAB
   ═══════════════════════════════════════════ */

.astro-fragen-hero {
    text-align: center;
    margin-bottom: 32px;
}
.astro-fragen-hero h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--astro-text);
    font-weight: 600;
    margin: 0 0 10px;
}
@media (min-width: 768px) {
    .astro-fragen-hero h2 { font-size: 26px; }
}
.astro-fragen-hero p {
    font-size: 13px;
    color: var(--account-text-mid);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 24px;
}

.astro-fragen-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--account-input-bg);
    border: 1px solid var(--account-input-border);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: var(--astro-text);
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.astro-fragen-textarea:focus {
    border-color: var(--astro-accent);
}
.astro-fragen-textarea::placeholder {
    color: var(--account-text-dim);
}

.astro-fragen-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.astro-fragen-submit {
    width: auto;
    padding: 14px 32px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
    background: linear-gradient(135deg, var(--astro-accent), var(--astro-gold));
    color: #ffffff;
    font-weight: 600;
    border: none;
}
.astro-fragen-submit.enabled {
    opacity: 1;
    pointer-events: auto;
}
.astro-fragen-bundle {
    font-size: 12px;
    color: var(--account-text-mid);
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(232,201,106,0.06);
    border: 1px solid rgba(232,201,106,0.15);
}

.astro-trust-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.astro-trust-item {
    font-size: 11px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}
.astro-light-theme .astro-trust-item {
    color: var(--account-text-mid);
}

/* Inspiration Filter Pills */
.astro-filter-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.astro-filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid var(--account-divider);
    background: transparent;
    color: var(--account-text-mid);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}
.astro-filter-pill.active,
.astro-filter-pill:hover {
    background: rgba(167,139,250,0.08);
    border-color: var(--astro-accent);
    color: var(--astro-accent);
}

/* Inspiration Cards Grid */
.astro-inspiration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .astro-inspiration-grid { grid-template-columns: repeat(2, 1fr); }
}
.astro-inspiration-card {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--astro-card-border);
    background: var(--astro-card-bg);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.astro-inspiration-card:hover {
    transform: translateY(-2px);
    border-color: var(--astro-accent);
}
.astro-inspiration-cat {
    font-size: 10px;
    color: var(--account-text-dim);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.astro-inspiration-q {
    font-size: 13px;
    color: var(--astro-text);
    line-height: 1.5;
}

/* Archive Cards */
.astro-archive-card {
    border: 1px solid var(--astro-card-border);
    background: var(--astro-card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.astro-archive-header {
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.astro-archive-q {
    font-size: 13px;
    color: var(--astro-text);
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}
.astro-archive-date {
    font-size: 11px;
    color: var(--account-text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}
.astro-archive-arrow {
    font-size: 12px;
    color: var(--account-text-dim);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.astro-archive-card.open .astro-archive-arrow {
    transform: rotate(180deg);
}
.astro-archive-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid var(--account-divider);
}
.astro-archive-card.open .astro-archive-body {
    display: block;
}
.astro-archive-answer {
    font-size: 13px;
    color: var(--account-text-mid);
    line-height: 1.7;
    margin: 14px 0;
}
.astro-archive-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════
   MOMENT TAB (Platzhalter für Plugin)
   ═══════════════════════════════════════════ */

#astro-moment-container {
    min-height: 200px;
}


/* ═══════════════════════════════════════════
   VERWALTUNG
   ═══════════════════════════════════════════ */

.astro-verwaltung-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px var(--account-px-mobile);
    border-bottom: 1px solid var(--account-divider);
}
@media (min-width: 768px) {
    .astro-verwaltung-header { padding: 20px var(--account-px-desktop); }
}
.astro-verwaltung-back {
    font-size: 13px;
    color: var(--astro-accent);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}
.astro-verwaltung-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--astro-text);
    font-weight: 600;
    margin: 0;
}

/* Verwaltung Tabs */
.astro-verw-tabs-desktop {
    display: none;
    padding: 0 var(--account-px-desktop);
    border-bottom: 1px solid var(--account-divider);
}
@media (min-width: 768px) {
    .astro-verw-tabs-desktop { display: flex; }
}

.astro-verw-tabs-mobile {
    padding: 14px var(--account-px-mobile) 12px;
    border-bottom: 1px solid var(--account-divider);
}
@media (min-width: 768px) {
    .astro-verw-tabs-mobile { display: none; }
}
.astro-verw-tabs-mobile .astro-tabs-mobile-row {
    margin-bottom: 8px;
}

.astro-verwaltung-content {
    padding: 28px var(--account-px-mobile) 60px;
}
@media (min-width: 768px) {
    .astro-verwaltung-content { padding: 40px var(--account-px-desktop) 60px; }
}

/* Form sections */
.astro-form-section {
    margin-bottom: 32px;
}
.astro-form-section-title {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--astro-text);
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}
@media (max-width: 767px) {
    .astro-form-section-title { text-align: center; }
}

.astro-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (min-width: 768px) {
    .astro-form-row { grid-template-columns: 1fr 1fr; }
}

/* Danger Zone */
.astro-danger-zone {
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 14px;
    padding: 24px;
    margin-top: 40px;
}
@media (max-width: 767px) {
    .astro-danger-zone { text-align: center; }
}
.astro-danger-zone h3 {
    font-size: 14px;
    color: #ef4444;
    margin: 0 0 8px;
}
.astro-danger-zone p {
    font-size: 12px;
    color: var(--account-text-mid);
    margin: 0 0 16px;
    line-height: 1.5;
}
.astro-danger-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* Orders table */
.astro-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.astro-orders-table th {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--account-text-dim);
    text-transform: uppercase;
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--account-divider);
}
.astro-orders-table td {
    font-size: 13px;
    color: var(--astro-text);
    padding: 10px 6px;
    border-bottom: 1px solid var(--account-divider);
}

/* Order Cards (Mobile) */
.astro-order-card {
    border: 1px solid var(--astro-card-border);
    background: var(--astro-card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.astro-order-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.astro-order-card-label {
    font-size: 11px;
    color: var(--account-text-dim);
}
.astro-order-card-value {
    font-size: 13px;
    color: var(--astro-text);
    font-weight: 500;
}

/* Payment tiles */
.astro-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .astro-payment-grid { grid-template-columns: repeat(3, 1fr); }
}
.astro-payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--astro-text);
}
.astro-payment-icon svg {
    width: 38px;
    height: 26px;
}
.astro-payment-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: 12px;
    border: 1px solid var(--astro-card-border);
    background: var(--astro-card-bg);
    cursor: pointer;
    transition: all 0.2s;
}
.astro-payment-tile:hover {
    border-color: var(--astro-accent);
}
.astro-payment-tile-name {
    font-size: 13px;
    color: var(--astro-text);
    font-weight: 500;
}
.astro-payment-tile-label {
    font-size: 10px;
    color: var(--astro-accent);
}


/* ═══════════════════════════════════════════
   CTA CARDS (Mondkalender, Karte, etc.)
   ═══════════════════════════════════════════ */

.astro-cta-card {
    background: rgba(124,58,237,0.05);
    border: 1px solid var(--astro-card-border);
    border-radius: 14px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}
.astro-light-theme .astro-cta-card {
    background: rgba(201,168,76,0.04);
}
@media (min-width: 768px) {
    .astro-cta-card { padding: 28px 28px; }
}
.astro-cta-card-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.astro-cta-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: var(--astro-text);
    font-weight: 600;
    margin: 0 0 8px;
    position: relative;
}
@media (min-width: 768px) {
    .astro-cta-card h3 { font-size: 17px; }
}
.astro-cta-card p {
    font-size: 13px;
    color: var(--account-text-mid);
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 540px;
    position: relative;
}
.astro-cta-card .astro-btn-primary {
    width: auto;
    display: inline-block;
    padding: 10px 22px;
    font-size: 12px;
    position: relative;
}


/* ═══════════════════════════════════════════
   ERROR STATE
   ═══════════════════════════════════════════ */

.astro-error-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 14px;
    background: rgba(239,68,68,0.03);
}
.astro-error-state p {
    font-size: 13px;
    color: var(--account-text-mid);
    margin: 0 0 16px;
}
.astro-error-state button {
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--account-secondary-bg);
    border: 1px solid var(--account-secondary-border);
    color: var(--account-secondary-color);
    font-size: 12px;
    cursor: pointer;
}


/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */

.astro-empty-state {
    text-align: center;
    padding: 40px 20px;
}
.astro-empty-state-icon {
    font-size: 36px;
    background: linear-gradient(135deg, #d4a017, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.astro-empty-state p {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}
.astro-light-theme .astro-empty-state p {
    color: var(--account-text-mid);
}


/* ═══════════════════════════════════════════
   DESKTOP: Content auf max-width begrenzen
   Hintergrund bleibt full-width, Inhalt zentriert.
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
    .astro-dash-hero,
    .astro-dash-tabs,
    .astro-dash-content,
    .astro-verwaltung-header,
    .astro-verwaltung .astro-verw-tabs-desktop,
    .astro-verwaltung-content {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ═══════════════════════════════════════════
   FIX 1: Haupt-Header im Account-Bereich ausblenden
   Nur der Account-eigene Header (.astro-dash-nav) bleibt sichtbar.
   ═══════════════════════════════════════════ */
body:has(.astro-dashboard-page) .astro-header,
body:has(.astro-dashboard-page) .astro-mobile-menu,
body:has(.astro-login-page) .astro-header,
body:has(.astro-login-page) .astro-mobile-menu,
body:has(.astro-login-page) .astro-footer {
    display: none !important;
}


/* ═══════════════════════════════════════════
   Desktop-Tab Schriftfarben, -größe & -gewicht
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
    /* Kleinere aber fette Tab-Beschriftungen */
    .astro-tab-btn {
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
    }

    /* Aktiver Tab: weiß im Dark Mode */
    .astro-tab-btn.active {
        color: #ffffff;
    }

    /* Light Mode: Inaktive Tabs dunkelgrau */
    .astro-light-theme .astro-tab-btn {
        color: #4a4a4a;
    }

    /* Light Mode: Aktiver Tab weiß auf Gold */
    .astro-light-theme .astro-tab-btn.active {
        color: #ffffff;
    }
}
