/**
 * Shared Authentication CSS
 * Used across all pages for consistent sign-in UI
 */

/* ========== Google Sign-in Button ========== */
.google-signin-btn {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a3e1b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
    white-space: nowrap;
}

.google-signin-btn:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    background: white;
}

.google-signin-btn img {
    width: 16px;
    height: 16px;
}

/* ========== User Avatar Button ========== */
.user-avatar-btn {
    background: linear-gradient(135deg, #e8d5b7, #d4a574);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 34px;
    height: 34px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #5a3e1b;
    letter-spacing: 0.5px;
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-btn .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ========== User Dropdown Menu ========== */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    min-width: 180px;
    z-index: 500;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-name {
    padding: 14px 16px 10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #f0e8d8;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.user-dropdown-item:hover {
    background: #f9f3e8;
}

.user-dropdown-signout {
    color: #888;
    border-top: 1px solid #f0e8d8;
}

.user-dropdown-signout:hover {
    color: #c0392b;
    background: #fdf0f0;
}

/* ========== Sign-in Dialog ========== */
.dialog-signin {
    margin-bottom: 16px;
    padding: 14px;
    background: #fdfbf5;
    border: 1px solid #f0e8d8;
    border-radius: 10px;
}

.dialog-signin > p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.dialog-signin-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dialog-signin-options .google-signin-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
}

.dialog-signin-divider {
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
    position: relative;
}

.dialog-signin-divider::before,
.dialog-signin-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #ddd;
}

.dialog-signin-divider::before { left: 0; }
.dialog-signin-divider::after { right: 0; }

/* ========== Email OTP Section ========== */
.email-otp-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-otp-row {
    display: flex;
    gap: 8px;
}

.email-otp-section input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.email-otp-section input:focus {
    outline: none;
    border-color: var(--primary-color, #8b4513);
}

.email-otp-section button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color, #8b4513);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.email-otp-section button:hover {
    opacity: 0.9;
}

.email-otp-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-otp-section input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.email-otp-section.disabled-section {
    opacity: 0.6;
}

.coming-soon-label {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* ========== OTP Status Messages ========== */
.otp-status {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.otp-status.error {
    color: #c0392b;
}

.otp-status.success {
    color: #27ae60;
}

/* ========== Auth Required Notice (for gated features) ========== */
.auth-required-notice {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fff9e6, #fff5db);
    border-radius: 12px;
    border: 1px solid #d4a017;
}

.auth-required-notice h4 {
    color: #8b4513;
    margin-bottom: 10px;
}

.auth-required-notice p {
    color: #666;
    margin-bottom: 20px;
}

.auth-required-notice .google-signin-btn {
    margin: 0 auto;
}

/* ========== Responsive Styles ========== */
@media (max-width: 360px) {
    .google-signin-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    .user-avatar-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}
/* Shared place-input styles: Photon type-ahead dropdown, "Did you mean…?"
   fallback chips, and the post-calc matched-place confirmation chip. Used by
   any page that loads static/js/place-autocomplete.js. */

/* ---- Birthplace autocomplete (Photon type-ahead) ------------------- */
.pac-wrap {
    position: relative;
}
.pac-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d9d3ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pac-item {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.3;
    color: #2b2b3a;
    cursor: pointer;
}
.pac-item:hover,
.pac-item.pac-active {
    background: #f1ecfb;
}

/* ---- "Did you mean…?" nearest-district suggestion chips ------------- */
.place-suggestions {
    display: none;
    margin: -6px 0 16px;
    text-align: center;
}
.place-suggest-label {
    font-size: 14px;
    color: #6b6580;
    margin-bottom: 8px;
}
.place-suggest-chip {
    display: inline-block;
    margin: 4px;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #4b2e83;
    background: #f1ecfb;
    border: 1px solid #cbb8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.place-suggest-chip:hover,
.place-suggest-chip:active {
    background: #e3d7fb;
}

@media (prefers-color-scheme: dark) {
    .pac-menu { background: #23202e; border-color: #3c3550; }
    .pac-item { color: #e7e2f5; }
    .pac-item:hover, .pac-item.pac-active { background: #322b45; }
    .place-suggest-label { color: #b3aac9; }
    .place-suggest-chip { color: #d8c8ff; background: #322b45; border-color: #4c3f6b; }
    .place-suggest-chip:hover, .place-suggest-chip:active { background: #3f3559; }
}

/* Post-calc matched-place confirmation chip */
.place-resolved-chip { display: none; margin-top: 6px; font-size: 0.85rem; line-height: 1.4; }
.place-resolved-chip .place-resolved-fix {
    margin-left: 8px; padding: 2px 10px; border-radius: 12px;
    border: 1px solid currentColor; background: transparent; color: inherit;
    font-size: 0.8rem; cursor: pointer;
}
/* ========== index.css ==========
   Extracted from inline <style> blocks in index.html
   Contains all index-page-specific styles.
*/
        /* Premium flat icon system */
        .icon {
            display: inline-block;
            width: 1em;
            height: 1em;
            vertical-align: -0.125em;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .icon-sm { width: 0.875em; height: 0.875em; }
        .icon-lg { width: 1.5em; height: 1.5em; }
        .icon-xl { width: 2em; height: 2em; }

        /* Summary card icons */
        .summary-icon .icon { width: 1.5em; height: 1.5em; }

        /* Energy badge icon */
        .energy-badge .icon { width: 1.5em; height: 1.5em; }

        /* Preview card icons */
        .preview-icon .icon { width: 2em; height: 2em; }
        .preview-lock .icon { width: 1em; height: 1em; }

        /* Report card icons */
        .report-icon .icon { width: 2em; height: 2em; }

        /* Star rating icons */
        .star .icon, .inline-star .icon {
            width: 1.5em;
            height: 1.5em;
            cursor: pointer;
        }
        .star .icon { stroke: #d4a745; }
        .star.active .icon,
        .star:hover .icon { fill: #d4a745; stroke: #d4a745; }
        .inline-star .icon { stroke: #d4a745; }
        .inline-star.active .icon { fill: #d4a745; stroke: #d4a745; }

        /* Filled icons - these use fill instead of stroke */
        .icon-filled { fill: currentColor; stroke: none; }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --primary-color: #8b4513;
            --secondary-color: #d4a017;
            --bg-cream: #fffbf0;
            --bg-light: #fff8dc;
            --text-dark: #1a1a1a;
            --text-brown: #5a2d0c;
            --border-gold: #d4a017;
            --success-green: #228B22;
            --warning-orange: #DAA520;
            --danger-red: #B22222;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: linear-gradient(135deg, #f5f0e6 0%, #fffbf0 100%);
            min-height: 100vh;
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* Header */
        .header {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
            padding: 20px 15px;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header h1 {
            color: white;
            font-size: 1.8rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            margin-bottom: 5px;
        }
        /* Two-tone RasiTalks wordmark: "Rasi" takes the header's base colour,
           "Talks" is gold. Theme-safe — works on the gradient bar and on light pages. */
        .brand-logo .b-rasi { color: inherit; }
        .brand-logo .b-talks { color: #ffd45e; }

        .header p {
            color: rgba(255,255,255,0.9);
            font-size: 0.9rem;
        }

        /* User Auth */
        .user-auth-area {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Auth styles in /static/css/auth.css */

        /* Profile Selector */
        .profile-selector {
            display: none;
            padding: 8px 0 4px;
        }

        .profile-selector.active {
            display: block;
        }

        .profile-selector-label {
            font-size: 0.75rem;
            color: #999;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        .profile-chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            max-height: 76px;
            overflow-y: auto;
        }

        .profile-chip {
            padding: 6px 14px;
            border-radius: 20px;
            border: 1px solid var(--border-gold);
            background: white;
            font-size: 0.8rem;
            cursor: pointer;
            color: var(--primary-color);
            transition: all 0.2s;
            font-weight: 500;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }

        .profile-chip:hover {
            background: var(--bg-cream);
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        .profile-chip.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-color: var(--primary-color);
            box-shadow: 0 2px 8px rgba(139,90,43,0.3);
        }

        /* Profile Manager Modal */
        .profile-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.55);
            z-index: 500;
            justify-content: center;
            align-items: center;
            padding: 16px;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        .profile-modal.active {
            display: flex;
        }

        .profile-modal-content {
            background: white;
            border-radius: 14px;
            max-width: 440px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            padding: 20px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        }

        .profile-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0e8d8;
        }

        .profile-modal-header h3 {
            color: var(--primary-color);
            margin: 0;
            font-size: 1.1rem;
        }

        .close-modal {
            font-size: 1.5rem;
            cursor: pointer;
            color: #999;
            line-height: 1;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.15s;
        }

        .close-modal:hover {
            background: #f5f0e5;
            color: #666;
        }

        .profile-card {
            border: 1px solid #e8dcc8;
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #fdfbf5, #faf5eb);
        }

        .profile-card-name {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.95rem;
        }

        .profile-card-details {
            font-size: 0.8rem;
            color: #777;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .profile-card-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .profile-card-actions button {
            padding: 5px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            font-size: 0.75rem;
            cursor: pointer;
            color: #555;
            transition: all 0.15s;
        }

        .profile-card-actions button:hover {
            background: #f9f3e8;
        }

        .profile-card-actions button.btn-danger {
            color: #c0392b;
            border-color: #e0b4b4;
        }

        .profile-card-actions button.btn-danger:hover {
            background: #fdf0f0;
        }

        .profile-card-actions button.btn-primary {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .profile-card-actions button.btn-primary:hover {
            opacity: 0.9;
        }

        .profile-edit-form {
            display: none;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #eee;
        }

        .profile-edit-form.active {
            display: block;
        }

        .profile-edit-form .form-row {
            display: flex;
            gap: 8px;
            margin-bottom: 6px;
        }

        .profile-edit-form input, .profile-edit-form select {
            padding: 6px 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 0.8rem;
            flex: 1;
        }

        .save-profile-btn {
            display: none;
            margin-top: 10px;
            padding: 10px 16px;
            background: white;
            color: var(--primary-color);
            border: 1.5px solid var(--border-gold);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            width: 100%;
            transition: all 0.2s;
        }

        .save-profile-btn:hover {
            background: var(--bg-cream);
            border-color: var(--primary-color);
        }

        /* Save Profile Checkbox */
        .save-profile-check {
            margin-top: 4px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            color: #555;
        }

        .checkbox-label input[type="checkbox"] {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            margin: 0;
            padding: 0;
            flex-shrink: 0;
            vertical-align: middle;
            border: 2px solid var(--primary-color);
            border-radius: 3px;
            background: white;
            cursor: pointer;
        }

        .checkbox-label input[type="checkbox"]:checked {
            background: var(--primary-color);
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
            background-size: 14px;
            background-position: center;
            background-repeat: no-repeat;
        }

        .checkbox-label span {
            line-height: 1;
        }

        /* Save Profile Dialog */
        .save-profile-dialog-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.55);
            z-index: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        .save-profile-dialog {
            background: white;
            border-radius: 14px;
            max-width: 400px;
            width: 100%;
            padding: 20px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        }

        .save-profile-dialog .dialog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0e8d8;
        }

        .save-profile-dialog .dialog-header h3 {
            color: var(--primary-color);
            margin: 0;
            font-size: 1.1rem;
        }

        .save-profile-dialog .dialog-body {
            margin-bottom: 16px;
        }

        .save-profile-dialog .dialog-body label {
            display: block;
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 6px;
        }

        .save-profile-dialog .dialog-body input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 0.95rem;
            box-sizing: border-box;
        }

        .save-profile-dialog .dialog-body input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        /* Sign-in dialog styles in /static/css/auth.css */

        /* Dialog actions */
        .dialog-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            padding-top: 12px;
            border-top: 1px solid #f0e8d8;
        }

        .dialog-actions button {
            padding: 10px 20px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: white;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.15s;
        }

        .dialog-actions button:hover {
            background: #f9f3e8;
        }

        .dialog-actions button.btn-primary {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .dialog-actions button.btn-primary:hover {
            opacity: 0.9;
        }

        .dialog-actions button.btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Dropdown Profile List */
        .dropdown-profiles-list {
            margin: 4px 0;
            max-height: 220px;
            overflow-y: auto;
        }

        .dropdown-profiles-empty {
            padding: 16px 14px;
            color: #999;
            font-size: 0.8rem;
            text-align: center;
            font-style: italic;
        }

        .dropdown-profile-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            cursor: pointer;
            font-size: 0.85rem;
            color: #444;
            transition: background 0.15s;
            border: none;
            border-bottom: 1px solid #f5efe5;
            background: none;
            width: 100%;
            text-align: left;
        }

        .dropdown-profile-item:last-child {
            border-bottom: none;
        }

        .dropdown-profile-item:hover {
            background: #f9f3e8;
        }

        .dropdown-profile-item.default {
            background: linear-gradient(to right, #fdf8f0, #fff);
        }

        .dropdown-profile-item.default:hover {
            background: linear-gradient(to right, #f9f3e8, #fdf8f0);
        }

        .dropdown-profile-item .profile-check {
            width: 18px;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 0.9rem;
        }

        .dropdown-profile-item .profile-check.active {
            visibility: visible;
        }

        .dropdown-profile-item .profile-check:not(.active) {
            visibility: hidden;
        }

        .dropdown-profile-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            min-width: 0;
        }

        .dropdown-profile-name {
            font-weight: 500;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .dropdown-profile-date {
            font-size: 0.72rem;
            color: #888;
        }

        @media (max-width: 360px) {
            /* .google-signin-btn and .user-avatar-btn responsive styles in auth.css */
            .profile-modal-content {
                padding: 14px;
            }
            .profile-chip {
                padding: 4px 10px;
                font-size: 0.75rem;
            }
            .save-profile-dialog {
                padding: 14px;
            }
        }

        /* Header Menu Button */
        .header-menu-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .header-menu-btn:hover {
            background: rgba(255, 255, 255, 0.25);
        }
        .header-menu-btn svg {
            width: 18px;
            height: 18px;
            color: rgba(255, 255, 255, 0.85);
        }
        .header-menu-btn.signed-in {
            background-size: cover;
            background-position: center;
            border-color: rgba(255, 255, 255, 0.4);
        }
        .header-menu-btn.signed-in svg { display: none; }

        .fab-menu {
            position: fixed;
            top: 65px;
            right: 12px;
            z-index: 200;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
            padding: 8px 0;
            min-width: 220px;
            max-height: 70vh;
            overflow-y: auto;
            opacity: 0;
            transform: translateY(-8px) scale(0.96);
            pointer-events: none;
            transition: all 0.2s ease;
        }
        .fab-menu.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .fab-menu-section {
            padding: 10px 18px 4px;
            font-size: 9px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: rgba(0, 0, 0, 0.4);
        }
        .fab-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 18px;
            font-size: 14px;
            color: #1a1a1a;
            cursor: pointer;
            transition: background 0.15s;
        }
        .fab-menu-item:hover { background: rgba(0, 0, 0, 0.03); }
        .fab-menu-item.active-lang {
            color: var(--primary-color);
            font-weight: 500;
        }
        .fab-menu-item .lang-native {
            margin-left: auto;
            font-size: 13px;
            color: rgba(0, 0, 0, 0.4);
        }
        .fab-menu-item.active-lang .lang-native { color: rgba(139, 69, 19, 0.6); }
        .fab-menu-item .check-icon {
            margin-left: auto;
            font-size: 13px;
            color: var(--primary-color);
        }
        .fab-menu-divider {
            height: 1px;
            background: rgba(0, 0, 0, 0.06);
            margin: 4px 0;
        }

        /* Navigation Menu */
        .nav-menu {
            background: linear-gradient(135deg, #fff9e6, #fff5db);
            border-bottom: 2px solid var(--border-gold);
            padding: 10px 15px;
            display: flex;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .nav-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--border-gold);
            border-radius: 20px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            white-space: nowrap;
        }

        .nav-link:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .nav-link.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-color: var(--primary-color);
        }

        .nav-link .nav-icon {
            font-size: 1rem;
        }

        /* "Talk to Astrologer" nav pill: a gold sparkle that gently twinkles to
           signal this is new & special. Elegant, not loud — a slow ~1.9s glint
           (fade + scale + slight turn) with a soft golden glow. Subtly gold-tinted
           so it draws the eye first even when the mobile pill row wraps. */
        .nav-link-call {
            position: relative;
            padding-right: 26px;
            font-weight: 600;
            border-color: var(--secondary-color, #c99a2e);
            background: linear-gradient(135deg, #fffdf6, #fff3d4);
        }
        .nav-link-call::after {
            content: "\2726";           /* ✦ four-pointed star — colored gold, not an emoji */
            position: absolute;
            top: 50%;
            right: 9px;
            margin-top: -0.55em;
            font-size: 0.72rem;
            line-height: 1;
            color: #e0a92b;
            text-shadow: 0 0 4px rgba(224,169,43,0.6);
            animation: navCallSparkle 1.9s ease-in-out infinite;
        }
        .nav-link-call:hover { color: white; }
        .nav-link-call:hover::after { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.8); }
        @keyframes navCallSparkle {
            0%,  100% { opacity: 0.45; transform: scale(0.7)  rotate(-12deg); }
            50%       { opacity: 1;    transform: scale(1.15) rotate(12deg); }
        }
        @media (prefers-reduced-motion: reduce) {
            .nav-link-call::after { animation: none; opacity: 1; transform: none; }
        }

        .sub-tabs {
            display: flex;
            justify-content: center;
            gap: 6px;
            padding: 8px 15px;
            background: linear-gradient(135deg, #fff5db, #fff0cc);
            border-bottom: 1px solid var(--border-gold);
        }

        .sub-tab {
            padding: 6px 18px;
            background: white;
            border: 1px solid var(--border-gold);
            border-radius: 16px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .sub-tab:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .sub-tab.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-color: var(--primary-color);
        }

        /* Main Container */
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 15px;
        }

        /* Welcome Introduction (legacy, kept for tab intros) */
        .welcome-intro {
            background: linear-gradient(135deg, #fff9e6, #fffbf0);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 25px 20px;
            margin-bottom: 20px;
            text-align: center;
        }

        .welcome-intro h2 {
            color: var(--primary-color);
            font-size: 1.4rem;
            margin-bottom: 15px;
        }

        .welcome-intro p {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 12px;
        }

        .welcome-intro .highlight {
            color: var(--primary-color);
            font-weight: 500;
        }

        .welcome-intro .how-it-works {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
            text-align: left;
        }

        .welcome-intro .how-it-works h3 {
            color: var(--text-brown);
            font-size: 1rem;
            margin-bottom: 10px;
            text-align: center;
        }

        .welcome-intro .step {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: #444;
        }

        .welcome-intro .step-num {
            background: var(--secondary-color);
            color: white;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
            flex-shrink: 0;
        }

        .welcome-intro .free-note {
            background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
            border: 1px solid #81c784;
            border-radius: 8px;
            padding: 12px;
            margin-top: 15px;
            font-size: 0.9rem;
            color: #2e7d32;
        }

        /* === V2 Hero Section === */
        .v2-hero {
            background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 50%, #fff5e0 100%);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 40px 24px;
            margin-bottom: 0;
            text-align: center;
        }

        .v2-hero h1 {
            color: var(--primary-color);
            font-size: 1.6rem;
            line-height: 1.3;
            margin-bottom: 16px;
            font-weight: 700;
        }

        .v2-hero .hero-subtext {
            color: #555;
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 28px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .v2-hero .hero-cta {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 16px 36px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
            min-height: 48px;
        }

        .v2-hero .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
        }

        .v2-hero .hero-cta:active {
            transform: translateY(0);
        }

        .v2-hero .raasi-link {
            display: block;
            margin-top: 16px;
            color: var(--secondary-color);
            font-size: 0.95rem;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
        }

        .v2-hero .raasi-link:hover {
            text-decoration: underline;
        }

        /* === V2 Credibility Strip === */
        .v2-credibility {
            text-align: center;
            padding: 14px 16px;
            font-size: 0.85rem;
            color: #888;
            margin: 0;
        }

        .v2-credibility span {
            margin: 0 6px;
        }

        .v2-credibility .separator {
            color: var(--secondary-color);
        }

        /* === V2 Preview Cards === */
        .v2-preview {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 24px;
            padding: 0 4px;
        }

        .v2-preview-card {
            background: var(--bg-cream);
            border: 1.5px solid var(--border-gold);
            border-radius: 12px;
            padding: 18px 14px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .v2-preview-card .preview-icon {
            font-size: 1.6rem;
            margin-bottom: 8px;
        }

        .v2-preview-card h3 {
            color: var(--text-brown);
            font-size: 0.85rem;
            margin-bottom: 6px;
            font-weight: 600;
        }

        .v2-preview-card .preview-sample {
            color: #777;
            font-size: 0.75rem;
            line-height: 1.4;
        }

        .v2-preview-card .preview-lock {
            display: none;
        }

        /* === V2 Example Insight === */
        .v2-example-insight {
            background: linear-gradient(135deg, #fffbf0, #fff9e6);
            border: 1.5px solid var(--border-gold);
            border-radius: 12px;
            padding: 24px 20px;
            margin-bottom: 24px;
            text-align: left;
        }

        .v2-example-insight .insight-label {
            color: var(--secondary-color);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .v2-example-insight .insight-text {
            color: var(--text-brown);
            font-size: 0.95rem;
            line-height: 1.7;
            font-style: italic;
        }

        .v2-example-insight .insight-source {
            color: #999;
            font-size: 0.8rem;
            margin-top: 12px;
        }

        /* === V2 Second CTA === */
        .v2-second-cta {
            text-align: center;
            margin-bottom: 24px;
        }

        .v2-second-cta .hero-cta {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 16px 36px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
            min-height: 48px;
        }

        .v2-second-cta .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
        }

        /* === V2 Footer Tool Links === */
        .v2-footer-tools {
            margin-top: 16px;
        }

        .v2-footer-tools h4 {
            color: var(--text-brown);
            font-size: 0.85rem;
            margin-bottom: 10px;
        }

        .v2-footer-tools a {
            color: var(--secondary-color);
            text-decoration: none;
            font-size: 0.8rem;
            margin: 0 8px;
        }

        .v2-footer-tools a:hover {
            text-decoration: underline;
        }

        /* === V2 Landing hidden form === */
        .form-card.v2-hidden {
            display: none;
        }

        /* === V2 Wizard === */
        .v2-wizard {
            display: none;
            background: var(--bg-cream);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 24px 20px;
            margin-bottom: 20px;
            min-height: 280px;
            scroll-margin-top: 100px;
        }

        .v2-wizard.active {
            display: block;
        }

        .wizard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .wizard-step-label {
            color: var(--text-brown);
            font-size: 0.9rem;
            font-weight: 600;
        }

        .wizard-progress {
            flex: 1;
            margin-left: 16px;
            height: 6px;
            background: #e0d5c0;
            border-radius: 3px;
            overflow: hidden;
        }

        .wizard-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 3px;
            transition: width 0.4s ease;
        }

        .wizard-step {
            display: none;
        }

        .wizard-step.active {
            display: block;
        }

        .wizard-step h3 {
            color: var(--primary-color);
            font-size: 1.15rem;
            margin-bottom: 16px;
            text-align: center;
        }

        .wizard-micro-reward {
            display: none;
            background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
            border: 1px solid #81c784;
            border-radius: 10px;
            padding: 14px 16px;
            margin-top: 16px;
            text-align: center;
            color: #2e7d32;
            font-size: 0.95rem;
            animation: fadeInUp 0.4s ease;
        }

        .wizard-micro-reward.visible {
            display: block;
        }

        .wizard-micro-reward .reward-icon {
            font-size: 1.3rem;
            margin-right: 6px;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .wizard-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
            justify-content: center;
        }

        .wizard-btn {
            padding: 14px 28px;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            min-height: 48px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .wizard-btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: 0 3px 10px rgba(139, 69, 19, 0.25);
        }

        .wizard-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(139, 69, 19, 0.35);
        }

        .wizard-btn-secondary {
            background: white;
            color: var(--text-brown);
            border: 1.5px solid var(--border-gold);
        }

        .wizard-btn-secondary:hover {
            background: #fff9e6;
        }

        .wizard-skip-link {
            display: block;
            text-align: center;
            margin-top: 12px;
            color: var(--secondary-color);
            font-size: 0.9rem;
            text-decoration: none;
            cursor: pointer;
        }

        .wizard-skip-link:hover {
            text-decoration: underline;
        }

        /* === Wizard saved-profile chips (Step 1) === */
        .wizard-saved-profiles {
            margin-bottom: 20px;
        }

        .wizard-saved-label {
            font-size: 0.75rem;
            color: #999;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
            text-align: center;
        }

        .wizard-profile-chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            max-height: 110px;
            overflow-y: auto;
        }

        .wizard-saved-divider {
            position: relative;
            text-align: center;
            margin: 16px 0 4px;
            color: #999;
            font-size: 0.8rem;
        }

        .wizard-saved-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--border-gold);
            opacity: 0.5;
        }

        .wizard-saved-divider span {
            position: relative;
            background: white;
            padding: 0 12px;
        }

        /* === Wizard save-profile row (Step 3) === */
        .wizard-save-profile {
            margin-top: 16px;
            padding: 12px 14px;
            background: #fff9e6;
            border: 1px solid var(--border-gold);
            border-radius: 10px;
        }

        .wizard-save-profile .checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--text-brown);
            margin: 0;
        }

        .wizard-save-profile .checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--primary-color);
        }

        .wizard-already-saved {
            margin-top: 16px;
            padding: 12px 14px;
            background: #e8f5e9;
            border: 1px solid #81c784;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #2e7d32;
            font-size: 0.9rem;
        }

        .wizard-already-saved strong {
            font-weight: 600;
        }

        /* === V2 Popular Cities === */
        .popular-cities {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .popular-city-btn {
            background: white;
            border: 1px solid var(--border-gold);
            border-radius: 20px;
            padding: 8px 14px;
            font-size: 0.85rem;
            color: var(--text-brown);
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            min-height: 36px;
        }

        .popular-city-btn:hover, .popular-city-btn:focus {
            background: #fff9e6;
            border-color: var(--primary-color);
        }

        /* === V2 Raasi Quick-Start === */
        .v2-raasi-screen {
            display: none;
            text-align: center;
        }

        .v2-raasi-screen.active {
            display: block;
        }

        .v2-raasi-screen h2 {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin-bottom: 8px;
        }

        .v2-raasi-screen .raasi-subtitle {
            color: #777;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .v2-raasi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .v2-raasi-btn {
            background: #1a0f08;
            border: 1.5px solid rgba(212, 160, 23, 0.4);
            border-radius: 12px;
            padding: 0;
            text-align: center;
            cursor: pointer;
            transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
            overflow: hidden;
            position: relative;
        }

        .v2-raasi-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(139, 69, 19, 0.3);
            border-color: var(--primary-gold);
        }

        .v2-raasi-btn img {
            width: 100%;
            aspect-ratio: 3 / 4;
            object-fit: cover;
            display: block;
        }

        .v2-raasi-btn .raasi-btn-name {
            display: block;
            padding: 6px 4px;
            font-size: 0.8rem;
            color: #f5e6c8;
            font-weight: 600;
            background: linear-gradient(0deg, rgba(26, 15, 8, 0.95), rgba(26, 15, 8, 0.7));
            letter-spacing: 0.03em;
        }

        .v2-upgrade-banner {
            display: none;
            background: linear-gradient(135deg, #fff9e6, #fffbf0);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 16px;
            margin-top: 20px;
            text-align: center;
        }

        .v2-upgrade-banner.visible {
            display: block;
        }

        .v2-upgrade-banner p {
            color: var(--text-brown);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        @media (min-width: 600px) {
            .v2-hero h1 {
                font-size: 2rem;
            }

            .v2-preview {
                grid-template-columns: repeat(4, 1fr);
            }

            .v2-hero {
                padding: 50px 32px;
            }

            .v2-wizard {
                padding: 32px 28px;
            }
        }

        @media (max-width: 640px) {
            .v2-raasi-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
        }

        @media (max-width: 359px) {
            .v2-raasi-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* === V2 Chart Summary Card (Stage 3) === */
        .v2-chart-summary {
            display: none;
            background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 50%, #fffdf5 100%);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 24px 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(139, 69, 19, 0.12);
        }

        .v2-chart-summary.visible {
            display: block;
        }

        .v2-chart-summary .summary-title {
            color: var(--primary-color);
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 16px;
            text-align: center;
        }

        .v2-summary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 16px;
        }

        .v2-summary-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            background: white;
            border-radius: 8px;
            border: 1px solid rgba(212, 160, 23, 0.3);
        }

        .v2-summary-item .summary-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .v2-summary-item .summary-label {
            font-size: 0.7rem;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .v2-summary-item .summary-value {
            font-size: 0.85rem;
            color: var(--text-brown);
            font-weight: 600;
        }

        .v2-summary-insight {
            background: white;
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 16px;
            border-left: 3px solid var(--secondary-color);
        }

        .v2-summary-insight p {
            color: var(--text-brown);
            font-size: 0.9rem;
            line-height: 1.6;
            font-style: italic;
            margin: 0;
        }

        .v2-summary-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .v2-summary-actions .summary-btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            min-height: 40px;
            transition: transform 0.2s;
        }

        .v2-summary-actions .btn-explore {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .v2-summary-actions .btn-share {
            background: white;
            color: var(--text-brown);
            border: 1.5px solid var(--border-gold);
        }

        .v2-summary-actions .btn-edit-details {
            background: white;
            color: var(--text-brown);
            border: 1.5px solid #e0d5c0;
            font-size: 0.8rem;
        }

        .v2-summary-actions .summary-btn:hover {
            transform: translateY(-1px);
        }


        /* Share modal/overlay */
        .v2-share-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .v2-share-overlay.visible {
            display: flex;
        }

        .v2-share-card {
            background: linear-gradient(135deg, #fffbf0, #fff9e6);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 28px 24px;
            width: 320px;
            max-width: 90vw;
            text-align: center;
            position: relative;
        }

        .v2-share-card .share-card-title {
            color: var(--primary-color);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .v2-share-card .share-card-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 0.85rem;
            border-bottom: 1px solid rgba(212, 160, 23, 0.2);
        }

        .v2-share-card .share-card-label {
            color: #999;
        }

        .v2-share-card .share-card-value {
            color: var(--text-brown);
            font-weight: 600;
        }

        .v2-share-card .share-card-branding {
            margin-top: 16px;
            font-size: 0.75rem;
            color: var(--secondary-color);
            font-weight: 600;
        }

        .v2-share-card .share-card-close {
            position: absolute;
            top: 8px;
            right: 12px;
            background: none;
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
            color: #999;
        }

        .v2-share-card-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 16px;
        }

        .v2-share-card-actions button {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            min-height: 40px;
        }

        .v2-share-card-actions .btn-share-native {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .v2-share-card-actions .btn-share-copy {
            background: white;
            color: var(--text-brown);
            border: 1.5px solid var(--border-gold);
        }

        /* === V2 Daily Screen (Stage 4) === */
        .v2-daily-screen {
            display: none;
            margin-bottom: 20px;
        }

        .v2-daily-screen.active {
            display: block;
        }

        .daily-greeting {
            text-align: center;
            padding: 20px 16px 12px;
        }

        .daily-greeting h2 {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin-bottom: 4px;
        }

        .daily-greeting .daily-date {
            color: #888;
            font-size: 0.85rem;
        }

        /* Energy Indicator */
        .daily-energy {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--bg-cream);
            border: 2px solid var(--border-gold);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
        }

        .energy-badge {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .energy-badge.excellent { background: #e8f5e9; }
        .energy-badge.productive { background: #fff8e1; }
        .energy-badge.mixed { background: #fff3e0; }
        .energy-badge.challenging { background: #fce4ec; }

        .energy-info {
            flex: 1;
        }

        .energy-level-label {
            font-weight: 700;
            font-size: 1rem;
            color: var(--text-brown);
            text-transform: capitalize;
        }

        .energy-focus {
            color: #666;
            font-size: 0.85rem;
            margin-top: 2px;
        }

        /* Good/Avoid Columns */
        .daily-good-avoid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 12px;
        }

        .daily-column {
            background: var(--bg-cream);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 12px;
        }

        .daily-column h4 {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .daily-column.good h4 { color: #2e7d32; }
        .daily-column.avoid h4 { color: #c62828; }

        .daily-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .daily-column li {
            font-size: 0.85rem;
            color: var(--text-brown);
            padding: 3px 0;
            line-height: 1.4;
        }

        /* Best Times */
        .daily-best-times {
            background: var(--bg-cream);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .daily-best-times h4 {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .time-slot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px solid rgba(212, 160, 23, 0.15);
        }

        .time-slot:last-child {
            border-bottom: none;
        }

        .time-slot .slot-label {
            font-size: 0.85rem;
            color: var(--text-brown);
        }

        .time-slot .slot-time {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--primary-color);
        }

        /* Rahu Kalam Warning */
        .daily-rahu-kalam {
            background: #fff3e0;
            border: 1.5px solid #ffb74d;
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
        }

        .daily-rahu-kalam .rahu-icon {
            font-size: 1.1rem;
        }

        .daily-rahu-kalam .rahu-label {
            font-weight: 600;
            color: #e65100;
        }

        .daily-rahu-kalam .rahu-time {
            color: #bf360c;
        }

        /* Panchang Strip */
        .daily-panchang {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            background: var(--bg-cream);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .panchang-item {
            font-size: 0.8rem;
        }

        .panchang-item .panchang-label {
            color: #888;
            display: block;
        }

        .panchang-item .panchang-value {
            color: var(--text-brown);
            font-weight: 600;
        }

        /* Personal Note */
        .daily-personal-note {
            background: linear-gradient(135deg, #fff9e6, #fff5e0);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
            font-size: 0.85rem;
            color: var(--text-brown);
            line-height: 1.5;
        }

        .daily-personal-note .note-icon {
            margin-right: 4px;
        }

        /* Planet Transits */
        .daily-planet-transits {
            background: var(--bg-cream);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 12px;
        }
        .daily-planet-transits h4 {
            margin: 0 0 10px 0;
            font-size: 0.9rem;
            color: var(--text-brown);
        }
        .transit-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            font-size: 0.82rem;
            color: var(--text-brown);
        }
        .transit-item:last-child { border-bottom: none; }
        .transit-planet {
            font-weight: 600;
            min-width: 56px;
        }
        .transit-house {
            flex: 1;
        }
        .transit-effect {
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: 600;
            text-transform: capitalize;
        }
        .transit-effect.benefic { background: #e8f5e9; color: #2e7d32; }
        .transit-effect.neutral { background: #fff3e0; color: #e65100; }
        .transit-effect.challenging { background: #ffebee; color: #c62828; }

        /* Remedy Card */
        .daily-remedy-card {
            background: var(--bg-cream);
            border: 2px solid var(--border-gold);
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 12px;
        }

        .remedy-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .remedy-header h4 {
            font-size: 0.9rem;
            color: var(--primary-color);
            margin: 0;
        }

        .remedy-streak {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--secondary-color);
        }

        .remedy-task {
            font-size: 0.85rem;
            color: var(--text-brown);
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .remedy-progress-bar {
            background: #eee;
            border-radius: 6px;
            height: 8px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .remedy-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 6px;
            transition: width 0.3s;
        }

        .remedy-actions {
            display: flex;
            gap: 10px;
        }

        .btn-remedy-complete {
            flex: 1;
            padding: 10px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            min-height: 44px;
        }

        .btn-remedy-complete:disabled {
            opacity: 0.6;
            cursor: default;
        }

        .btn-remedy-complete.done {
            background: #4caf50;
        }

        .remedy-mandala-progress {
            margin-bottom: 10px;
        }

        .mandala-label {
            font-size: 0.78rem;
            color: var(--text-brown);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .mandala-celebration {
            text-align: center;
            padding: 16px;
            margin-top: 10px;
            background: linear-gradient(135deg, #fff8e1, #fff3cd);
            border-radius: 10px;
            border: 1px solid #ffd54f;
        }

        .celebration-icon {
            font-size: 2.5rem;
            margin-bottom: 8px;
        }

        .celebration-text {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 4px;
        }

        .celebration-subtext {
            font-size: 0.85rem;
            color: var(--text-brown);
        }

        .daily-panchang-insight {
            background: linear-gradient(135deg, #fff8e1, #fef3e0);
            border: 1px solid #ffe0b2;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-brown);
            line-height: 1.4;
            font-style: italic;
        }

        .panchang-insight-icon {
            font-size: 1rem;
            flex-shrink: 0;
        }

        /* Dasa Alert */
        .daily-dasa-alert {
            background: linear-gradient(135deg, #ede7f6, #e8eaf6);
            border: 1.5px solid #b39ddb;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dasa-alert-icon {
            font-size: 1.3rem;
        }

        .dasa-alert-text {
            font-size: 0.85rem;
            color: #4a148c;
            line-height: 1.4;
        }

        .dasa-alert-text strong {
            display: block;
            font-size: 0.9rem;
        }

        /* Tomorrow Preview */
        .daily-tomorrow {
            background: var(--bg-cream);
            border: 1.5px dashed var(--border-gold);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 16px;
            text-align: center;
        }

        .daily-tomorrow .tomorrow-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #888;
            margin-bottom: 4px;
        }

        .daily-tomorrow .tomorrow-text {
            font-size: 0.85rem;
            color: var(--text-brown);
        }

        /* Daily Screen Actions */
        .daily-actions {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .daily-actions button {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            min-height: 44px;
            border: none;
        }

        .btn-view-chart {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .btn-recalculate {
            background: white;
            color: var(--text-brown);
            border: 1.5px solid var(--border-gold) !important;
        }

        /* Daily screen loading state */
        .daily-loading {
            text-align: center;
            padding: 40px 20px;
        }

        .daily-loading .spinner {
            width: 36px;
            height: 36px;
            border: 3px solid #eee;
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 12px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        .daily-loading p {
            color: #888;
            font-size: 0.9rem;
        }

        @media (max-width: 359px) {
            .daily-good-avoid {
                grid-template-columns: 1fr;
            }
            .daily-panchang {
                grid-template-columns: 1fr;
            }
        }

        /* === Reports (Stage 6) === */
        .report-preview-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 16px;
        }

        /* Birthday Twins */
        .bday-twins-header {
            text-align: center;
            background: linear-gradient(135deg, rgba(139,69,19,0.06), rgba(212,160,23,0.08));
            border-radius: 10px;
            padding: 14px 16px;
            margin-bottom: 16px;
        }
        .bday-twins-header .bday-date {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .bday-twins-header .bday-count {
            font-size: 0.85rem;
            color: #888;
            margin-top: 4px;
        }
        .bday-twins-list { display: flex; flex-direction: column; gap: 10px; }
        .bday-twin-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--bg-cream);
            border: 1px solid var(--border-gold);
            border-radius: 10px;
            padding: 12px 14px;
        }
        .bday-twin-year {
            font-size: 1.1rem;
            font-weight: 700;
            color: #d4a017;
            min-width: 48px;
            text-align: center;
        }
        .bday-twin-info { flex: 1; }
        .bday-twin-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--primary-color);
        }
        .bday-twin-desc {
            font-size: 0.8rem;
            color: #777;
            margin-top: 2px;
            line-height: 1.3;
        }
        .bday-twin-place {
            font-size: 0.72rem;
            color: #aaa;
        }

        .report-card {
            background: var(--bg-cream);
            border: 1.5px solid var(--border-gold);
            border-radius: 10px;
            padding: 14px;
            cursor: pointer;
            text-align: center;
            transition: transform 0.2s;
        }

        .report-card:hover {
            transform: translateY(-2px);
        }

        .report-card .report-icon {
            font-size: 1.5rem;
            margin-bottom: 6px;
        }

        .report-card h5 {
            font-size: 0.85rem;
            color: var(--primary-color);
            margin-bottom: 4px;
        }

        .report-card p {
            font-size: 0.75rem;
            color: #888;
        }

        .report-result {
            display: none;
            margin-top: 16px;
        }

        .report-result.visible {
            display: block;
        }

        .report-section {
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(212, 160, 23, 0.2);
        }

        .report-section:last-child {
            border-bottom: none;
        }

        .report-section h4 {
            font-size: 0.9rem;
            color: var(--primary-color);
            margin-bottom: 6px;
        }

        .report-section p {
            font-size: 0.85rem;
            color: var(--text-brown);
            line-height: 1.5;
        }

        @media (max-width: 359px) {
            .report-preview-cards {
                grid-template-columns: 1fr;
            }
        }

        /* Family Summary on Daily Screen */
        .daily-family-summary {
            margin-bottom: 12px;
        }

        .daily-family-summary h4 {
            font-size: 0.85rem;
            color: var(--primary-color);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .family-member-card {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-cream);
            border: 1px solid rgba(212, 160, 23, 0.3);
            border-radius: 8px;
            padding: 10px 12px;
            margin-bottom: 6px;
        }

        .family-member-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .family-member-info {
            flex: 1;
            min-width: 0;
        }

        .family-member-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-brown);
        }

        .family-member-detail {
            font-size: 0.75rem;
            color: #888;
        }

        .family-member-energy {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: capitalize;
            padding: 2px 8px;
            border-radius: 10px;
            flex-shrink: 0;
        }

        .family-member-energy.excellent { background: #e8f5e9; color: #2e7d32; }
        .family-member-energy.productive { background: #fff8e1; color: #f57f17; }
        .family-member-energy.mixed { background: #fff3e0; color: #e65100; }
        .family-member-energy.challenging { background: #fce4ec; color: #c62828; }

        /* Input Form */
        .form-card {
            background: var(--bg-cream);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .form-card h2 {
            color: var(--text-brown);
            margin-bottom: 20px;
            font-size: 1.3rem;
            text-align: center;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            color: var(--text-brown);
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 0.95rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
            background: white;
            color: var(--text-dark);
            -webkit-appearance: none;
        }

        .date-input-group {
            display: flex;
            gap: 10px;
        }

        .date-input-group select {
            flex: 1;
            min-width: 0;
        }

        .date-input-group select:first-child {
            flex: 0.8;
        }

        .date-input-group select:last-child {
            flex: 1.2;
        }

        .time-input-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .time-input-group select {
            flex: 1;
            min-width: 0;
        }

        .time-input-group select:last-child {
            flex: 0.9;
        }

        .time-separator {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--text-brown);
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
        }

        /* Raasi-Only Mode Toggle */
        .raasi-mode-toggle {
            background: linear-gradient(135deg, #fff8dc, #f5f0e6);
            border: 1px solid var(--border-gold);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            text-align: center;
        }

        .toggle-container {
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            gap: 12px;
        }

        .toggle-container input[type="checkbox"] {
            width: 50px;
            height: 26px;
            appearance: none;
            -webkit-appearance: none;
            background: #ccc;
            border-radius: 13px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .toggle-container input[type="checkbox"]:checked {
            background: var(--secondary-color);
        }

        .toggle-container input[type="checkbox"]::before {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            background: white;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .toggle-container input[type="checkbox"]:checked::before {
            transform: translateX(24px);
        }

        .toggle-label {
            font-weight: 600;
            color: var(--text-brown);
            font-size: 1rem;
        }

        .toggle-hint {
            color: #888;
            font-size: 0.85rem;
            margin-top: 8px;
        }

        /* Raasi Radio Button Grid */
        .raasi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            margin-top: 10px;
        }

        .raasi-option {
            position: relative;
        }

        .raasi-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .raasi-option label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6px 4px;
            background: white;
            border: 2px solid var(--border-gold);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 55px;
        }

        .raasi-option label:hover {
            background: #fff9e6;
            border-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
        }

        .raasi-option input[type="radio"]:checked + label {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-color: var(--primary-color);
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }

        .raasi-icon {
            width: 28px;
            height: 32px;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .raasi-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .raasi-option input[type="radio"]:checked + label .raasi-icon {
            filter: drop-shadow(0 0 3px white);
        }

        .raasi-name {
            font-size: 0.7rem;
            font-weight: 600;
            text-align: center;
            line-height: 1.2;
        }

        .raasi-option input[type="radio"]:checked + label .raasi-name {
            color: white;
        }

        @media (max-width: 360px) {
            .raasi-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .raasi-option label {
                padding: 5px 3px;
                min-height: 50px;
            }
            .raasi-icon {
                width: 24px;
                height: 28px;
            }
            .raasi-name {
                font-size: 0.65rem;
            }
        }

        .raasi-info-box {
            background: linear-gradient(135deg, #fff3cd, #ffeeba);
            border: 1px solid #d4a017;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }

        .raasi-info-box p {
            color: #856404;
            font-size: 0.9rem;
            margin: 0;
            line-height: 1.5;
        }

        /* Raasi-only results banner */
        .raasi-only-banner {
            background: linear-gradient(135deg, #e8f4f8, #d4edda);
            border: 2px solid var(--border-gold);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
        }

        .raasi-only-banner h3 {
            color: var(--text-brown);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .raasi-only-banner .raasi-name {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .upgrade-prompt {
            background: linear-gradient(135deg, #fff8dc, #fffbf0);
            border: 1px dashed var(--border-gold);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }

        .upgrade-prompt h4 {
            color: var(--primary-color);
            margin-bottom: 12px;
            font-size: 1.1rem;
        }

        .upgrade-prompt ul {
            text-align: left;
            margin: 15px auto;
            max-width: 300px;
            color: var(--text-brown);
        }

        .upgrade-prompt li {
            margin-bottom: 6px;
            font-size: 0.9rem;
        }

        .btn-upgrade {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn-upgrade:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
        }

        .btn-calculate {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-top: 10px;
        }

        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }

        .btn-calculate:active {
            transform: translateY(0);
        }

        .btn-calculate:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        /* Loading Spinner */
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .loading.active {
            display: block;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--secondary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Tab Navigation - Mobile-first design with Two Rows */
        .tabs-container {
            display: none;
            margin-top: 20px;
        }

        .tabs-container.active {
            display: block;
        }

        /* Tab Row Labels */
        .tab-row-label {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-brown);
            padding: 0 8px 4px;
            opacity: 0.8;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        /* Tab Row Styling */
        .tab-nav-wrapper {
            position: relative;
            margin-bottom: 8px;
            background: linear-gradient(to bottom, rgba(255,251,240,0.9), rgba(255,248,220,0.9));
            border-radius: 12px;
            padding: 8px 0;
            border: 1px solid rgba(212, 160, 23, 0.2);
        }

        /* Charts Row - subtle styling */
        .tab-row-charts {
            background: linear-gradient(to bottom, #fff9e6, #fff5db);
            border-color: rgba(139, 69, 19, 0.15);
        }

        .tab-nav {
            display: flex;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            gap: 6px;
            padding: 6px 8px 6px 8px;
            padding-right: 30px;
            scroll-snap-type: x mandatory;
        }

        .tab-nav::-webkit-scrollbar {
            display: none;
        }

        .tab-btn {
            flex-shrink: 0;
            padding: 10px 14px;
            background: white;
            border: 2px solid var(--border-gold);
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-brown);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            scroll-snap-align: start;
            min-width: fit-content;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .tab-btn:active {
            transform: scale(0.96);
        }

        .tab-btn.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-color: var(--primary-color);
            box-shadow: 0 3px 10px rgba(139, 69, 19, 0.35);
        }

        .tab-btn:hover:not(.active) {
            background: var(--bg-light);
            transform: translateY(-1px);
        }

        /* Scroll indicators - only for charts row */
        .tab-row-charts::before,
        .tab-row-charts::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 30px;
            pointer-events: none;
            z-index: 1;
        }

        .tab-row-charts::before {
            left: 0;
            background: linear-gradient(to right, #fff9e6 0%, transparent 100%);
            border-radius: 12px 0 0 12px;
        }

        .tab-row-charts::after {
            right: 0;
            background: linear-gradient(to left, #fff9e6 30%, transparent 100%);
            border-radius: 0 12px 12px 0;
        }

        /* Larger tabs on bigger screens */
        @media (min-width: 600px) {
            .tab-btn {
                padding: 12px 18px;
                font-size: 0.9rem;
            }
        }

        /* On desktop, wrap tabs */
        @media (min-width: 900px) {
            .tab-nav {
                flex-wrap: wrap;
                justify-content: center;
            }
            .tab-row-charts::before,
            .tab-row-charts::after {
                display: none;
            }
        }

        /* Tab Content */
        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Result Cards */
        .result-card {
            background: var(--bg-cream);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 15px;
        }

        .result-card h3 {
            color: var(--text-brown);
            font-size: 1.2rem;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-gold);
            text-align: center;
        }

        /* Brand Banner for Predictions */
        .brand-banner {
            text-align: center;
            padding: 8px 12px;
            margin: -5px 0 15px 0;
            background: linear-gradient(135deg, #f8f4e8 0%, #fff9e6 100%);
            border-radius: 4px;
            border: 1px solid var(--border-gold);
        }

        .brand-text {
            font-family: 'Georgia', serif;
            font-size: 0.85rem;
            color: #8B4513;
            letter-spacing: 1px;
            font-weight: 500;
        }

        @media (max-width: 480px) {
            .brand-banner {
                padding: 6px 10px;
                margin: -5px 0 12px 0;
            }
            .brand-text {
                font-size: 0.75rem;
            }
        }

        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }

        .data-table th {
            background: var(--bg-light);
            color: var(--text-brown);
            padding: 12px 10px;
            text-align: left;
            font-weight: 600;
            position: sticky;
            top: 0;
        }

        .data-table td {
            padding: 10px;
            border-bottom: 1px solid #ddd;
            color: var(--text-dark);
        }

        .data-table tr:hover {
            background: rgba(212, 160, 23, 0.05);
        }

        /* Mobile table scroll */
        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 0 -10px;
            padding: 0 10px;
        }

        /* Birth Details Grid */
        .birth-details-grid {
            display: grid;
            gap: 12px;
        }

        .detail-row {
            display: flex;
            background: white;
            border-radius: 8px;
            overflow: hidden;
        }

        .detail-label {
            flex: 0 0 40%;
            background: var(--bg-light);
            padding: 12px;
            font-weight: 600;
            color: var(--text-brown);
        }

        .detail-value {
            flex: 1;
            padding: 12px;
            color: var(--text-dark);
        }

        /* South Indian Chart */
        .chart-container {
            display: flex;
            justify-content: center;
            padding: 10px;
            overflow-x: auto;
        }

        .chart-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2px;
            background: var(--primary-color);
            border: 3px solid var(--primary-color);
            border-radius: 8px;
            overflow: hidden;
            min-width: 300px;
            max-width: 560px;
            width: 100%;
        }

        .chart-cell {
            background: var(--bg-light);
            min-height: 70px;
            padding: 8px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .chart-cell.empty {
            background: var(--bg-cream);
        }

        .chart-sign {
            font-weight: 600;
            color: var(--text-brown);
            font-size: 0.75rem;
            margin-bottom: 4px;
        }

        .chart-planets {
            font-size: 0.7rem;
            color: var(--text-dark);
            line-height: 1.4;
        }

        /* Strength Indicators */
        .strength-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .strength-strong {
            background: #e8f5e9;
            color: var(--success-green);
        }

        .strength-moderate-good {
            background: #f1f8e9;
            color: #6B8E23;
        }

        .strength-moderate {
            background: #fff8e1;
            color: var(--warning-orange);
        }

        .strength-weak {
            background: #ffebee;
            color: var(--danger-red);
        }

        /* Prognosis Badges */
        .prognosis-excellent {
            background: #e8f5e9;
            color: var(--success-green);
        }

        .prognosis-good {
            background: #f1f8e9;
            color: #6B8E23;
        }

        .prognosis-average {
            background: #fff8e1;
            color: var(--warning-orange);
        }

        .prognosis-challenging {
            background: #fff3e0;
            color: #CD853F;
        }

        .prognosis-difficult {
            background: #ffebee;
            color: var(--danger-red);
        }

        /* Status Badges */
        .status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .status-current {
            background: #c8e6c9;
            color: #2e7d32;
        }

        .status-past {
            background: #f5f5f5;
            color: #666;
        }

        .status-future {
            background: #e3f2fd;
            color: #1976d2;
        }

        /* Yoga Cards */
        .yoga-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 12px;
            border-left: 4px solid var(--secondary-color);
        }

        .yoga-card h4 {
            color: var(--text-brown);
            margin-bottom: 8px;
        }

        .yoga-card p {
            font-size: 0.9rem;
            color: #444;
            margin-bottom: 5px;
        }

        .yoga-planets {
            font-size: 0.85rem;
            color: #666;
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 20px;
            margin-top: 30px;
            border-top: 2px solid var(--border-gold);
            background: var(--bg-cream);
        }

        .footer p {
            color: #666;
            font-size: 0.85rem;
            margin-bottom: 5px;
        }

        /* Crawlable Rasipalan Section */
        .rasipalan-section {
            margin: 0 0 18px;
        }

        .rasipalan-section-title {
            margin: 0;
        }

        /* Match the app-shell's grouped rows while keeping every link in the DOM. */
        .rasipalan-fold {
            background: #fff;
            border: 1px solid rgba(212, 160, 23, .35);
            border-radius: 14px;
            overflow: hidden;
        }

        .rasipalan-fold-summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 14px;
            transition: background .15s;
        }
        .rasipalan-fold-summary::-webkit-details-marker { display: none; }
        .rasipalan-fold-summary:active { background: var(--bg-light); }
        .rasipalan-fold-summary:focus-visible {
            outline: 2px solid var(--secondary-color);
            outline-offset: -2px;
        }

        .rasipalan-summary-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: var(--bg-light);
            border: 1px solid rgba(212, 160, 23, .35);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .95rem;
            flex-shrink: 0;
        }

        .rasipalan-summary-copy {
            flex: 1;
            min-width: 0;
        }

        .rasipalan-summary-copy h3 {
            color: var(--text-brown);
            font-size: .88rem;
            font-weight: 600;
            line-height: 1.25;
            margin: 0;
            text-align: left;
        }

        .rasipalan-summary-copy small {
            color: #8a6a45;
            display: block;
            font-size: .74rem;
            line-height: 1.35;
        }

        .rasipalan-summary-chevron {
            color: #c49a4a;
            font-size: 1.05rem;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }
        .rasipalan-fold[open] .rasipalan-summary-chevron { transform: rotate(90deg); }
        .rasipalan-fold[open] .rasipalan-fold-summary {
            border-bottom: 1px solid rgba(212, 160, 23, .18);
        }

        .rasipalan-fold-content {
            padding: 16px 14px 14px;
        }

        .rasipalan-section-desc {
            color: #666;
            font-size: 0.9rem;
            text-align: center;
            margin-bottom: 18px;
        }

        .rasipalan-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .rasipalan-grid-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px 8px;
            background: #ffffff;
            border: 1px solid var(--border-gold);
            border-radius: 8px;
            text-decoration: none;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .rasipalan-grid-item:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(139, 69, 19, 0.15);
        }

        .rasipalan-grid-item .sign-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--primary-color);
        }

        .rasipalan-grid-item:hover .sign-name {
            color: #ffffff;
        }

        .rasipalan-grid-item .sign-western {
            font-size: 0.75rem;
            color: #888;
        }

        .rasipalan-grid-item:hover .sign-western {
            color: rgba(255, 255, 255, 0.85);
        }

        .rasipalan-hubs-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding-top: 16px;
            border-top: 1px solid rgba(212, 160, 23, 0.25);
        }

        .rasipalan-hub-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .rasipalan-hub-label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-brown);
            min-width: 90px;
        }

        .rasipalan-hub-pill {
            display: inline-block;
            padding: 6px 14px;
            background: #ffffff;
            border: 1px solid #e0d5c1;
            border-radius: 16px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .rasipalan-hub-pill:hover {
            background: var(--bg-light);
            border-color: var(--border-gold);
            color: var(--text-brown);
        }

        @media (max-width: 600px) {
            .rasipalan-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
        }

        @media (max-width: 380px) {
            .rasipalan-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Desktop / tablet: the collapsed fold is a mobile app-shell row. Above
           the phone breakpoint it stretched edge-to-edge — a tiny icon and small
           heading on the left with the chevron flung to the far right across a
           wide empty gap. Present the whole Daily Horoscope block as one centered,
           intentional card instead: cluster the summary in the middle and give the
           icon and text a desktop-appropriate size. Mobile (<=600px) is untouched. */
        @media (min-width: 601px) {
            .rasipalan-section {
                max-width: 620px;
                margin-left: auto;
                margin-right: auto;
            }

            .rasipalan-fold-summary {
                justify-content: center;
                gap: 14px;
                padding: 18px 22px;
            }

            .rasipalan-summary-icon {
                width: 42px;
                height: 42px;
                border-radius: 10px;
                font-size: 1.25rem;
            }

            .rasipalan-summary-copy {
                flex: 0 1 auto;
            }
            .rasipalan-summary-copy h3 { font-size: 1.05rem; }
            .rasipalan-summary-copy small { font-size: 0.85rem; }

            .rasipalan-summary-chevron {
                font-size: 1.3rem;
                margin-left: 2px;
            }
        }

        /* About Section */
        .about-section {
            background: var(--bg-cream);
            border: 2px solid var(--border-gold);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
        }

        .about-section h3 {
            color: var(--text-brown);
            margin-bottom: 15px;
        }

        .about-section ul {
            list-style: none;
            padding: 0;
        }

        .about-section li {
            padding: 8px 0;
            padding-left: 25px;
            position: relative;
            color: var(--text-dark);
        }

        .about-section li::before {
            content: "•";
            color: var(--secondary-color);
            font-weight: bold;
            position: absolute;
            left: 8px;
        }

        /* Responsive Design */
        @media (max-width: 600px) {
            .header h1 {
                font-size: 1.5rem;
            }

            .form-card {
                padding: 15px;
            }

            .result-card {
                padding: 15px;
            }

            .data-table {
                font-size: 0.8rem;
            }

            .data-table th,
            .data-table td {
                padding: 8px 6px;
            }

            .detail-label,
            .detail-value {
                padding: 10px;
                font-size: 0.9rem;
            }

            .chart-cell {
                min-height: 60px;
                padding: 6px;
            }

            .chart-sign {
                font-size: 0.65rem;
            }

            .chart-planets {
                font-size: 0.6rem;
            }
        }

        /* Error Message */
        .error-message {
            background: #ffebee;
            border: 1px solid #ef5350;
            color: #c62828;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
            text-align: center;
            display: none;
        }

        .error-message.active {
            display: block;
        }

        /* Birthplace autocomplete + "Did you mean…?" chip styles moved to
           static/css/place-input.css (bundled into index.bundle.css). */

        /* Hide results initially */
        #results {
            display: none;
        }

        #results.active {
            display: block;
        }

        /* Feedback Component Styles */
        .feedback-container {
            margin-top: 15px;
            padding: 12px 15px;
            background: linear-gradient(135deg, #f8f4e8 0%, #fff9e6 100%);
            border: 1px solid var(--border-gold);
            border-radius: 8px;
            display: none;
        }

        .feedback-container.active {
            display: block;
        }

        .feedback-container h4 {
            color: var(--text-brown);
            font-size: 0.95rem;
            margin-bottom: 8px;
            text-align: center;
        }

        .star-rating {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-bottom: 10px;
        }

        .star-rating .star {
            font-size: 1.6rem;
            color: #ccc;
            cursor: pointer;
            transition: color 0.2s, transform 0.2s;
            -webkit-tap-highlight-color: transparent;
        }

        .star-rating .star:hover,
        .star-rating .star.hovered {
            color: #ffc107;
            transform: scale(1.1);
        }

        .star-rating .star.selected {
            color: #ffc107;
        }

        .feedback-comment {
            width: 100%;
            min-height: 50px;
            padding: 8px 10px;
            border: 1px solid var(--border-gold);
            border-radius: 6px;
            font-family: inherit;
            font-size: 0.9rem;
            resize: vertical;
            background: white;
            box-sizing: border-box;
        }

        .feedback-comment:focus {
            outline: none;
            border-color: var(--accent-gold);
            box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
        }

        .feedback-comment::placeholder {
            color: #999;
        }

        .feedback-submit-btn {
            display: block;
            width: 100%;
            max-width: 160px;
            margin: 10px auto 0;
            padding: 8px 16px;
            background: linear-gradient(135deg, #d4a017, #b8860b);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .feedback-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
        }

        .feedback-submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .feedback-success {
            text-align: center;
            padding: 20px;
            color: #2e7d32;
            background: #e8f5e9;
            border-radius: 8px;
            display: none;
        }

        .feedback-success.active {
            display: block;
        }

        .feedback-error {
            text-align: center;
            padding: 10px;
            color: #c62828;
            background: #ffebee;
            border-radius: 8px;
            margin-top: 10px;
            display: none;
        }

        .feedback-error.active {
            display: block;
        }

        /* Inline Feedback Component for Predictions */
        .inline-feedback {
            margin-top: 20px;
            padding: 15px;
            background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 100%);
            border-radius: 12px;
            border: 1px solid #d4a017;
            text-align: center;
        }

        .inline-feedback-header {
            font-size: 0.95rem;
            font-weight: 600;
            color: #5a2d0c;
            margin-bottom: 12px;
        }

        .inline-feedback-stars {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .inline-star {
            font-size: 1.8rem;
            cursor: pointer;
            color: #ccc;
            transition: all 0.2s ease;
        }

        .inline-star:hover,
        .inline-star.hovered {
            color: #d4a017;
            transform: scale(1.1);
        }

        .inline-star.selected {
            color: #d4a017;
        }

        .inline-feedback-comment {
            width: 100%;
            padding: 10px;
            border: 1px solid #d4a017;
            border-radius: 8px;
            font-size: 0.9rem;
            resize: vertical;
            min-height: 60px;
            margin-bottom: 12px;
            font-family: inherit;
        }

        .inline-feedback-comment:focus {
            outline: none;
            border-color: #8b4513;
            box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
        }

        .inline-feedback-btn {
            background: linear-gradient(135deg, #8b4513, #a0522d);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 20px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .inline-feedback-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(139, 69, 19, 0.3);
        }

        .inline-feedback-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .inline-feedback-success {
            color: #228B22;
            font-weight: 600;
            padding: 10px;
            background: #e8f5e9;
            border-radius: 8px;
            margin-top: 10px;
        }

        /* Mobile responsiveness for feedback */
        @media (max-width: 480px) {
            .feedback-container {
                padding: 10px 12px;
                margin-top: 12px;
            }

            .feedback-container h4 {
                font-size: 0.9rem;
            }

            .star-rating {
                gap: 8px;
            }

            .star-rating .star {
                font-size: 1.8rem;
                padding: 3px;
            }

            .feedback-comment {
                font-size: 16px; /* Prevents zoom on iOS */
                min-height: 45px;
            }

            .feedback-submit-btn {
                max-width: 100%;
                padding: 10px 16px;
            }
        }

        /* ========== Mobile (iPhone 375px+) ========== */
        @media (max-width: 480px) {
            .header { padding: 14px 12px; }
            .header h1 { font-size: 1.3rem; margin-bottom: 2px; }
            .header p { font-size: 0.78rem; }

            .nav-menu { padding: 8px 8px; gap: 5px; }
            .nav-link { padding: 6px 10px; font-size: 0.75rem; }


            .sub-tabs { padding: 6px 10px; gap: 4px; }
            .sub-tab { padding: 5px 12px; font-size: 0.75rem; }

            .container { padding: 12px 10px; }

            .v2-hero { padding: 28px 16px; border-radius: 12px; }
            .v2-hero h1 { font-size: 1.3rem; margin-bottom: 12px; }
            .v2-hero .hero-subtext { font-size: 0.88rem; margin-bottom: 20px; }
            .v2-hero .hero-cta { padding: 14px 28px; font-size: 1rem; }
            .v2-hero .raasi-link { font-size: 0.85rem; }

            .v2-credibility { font-size: 0.75rem; padding: 10px 12px; }

            .v2-preview { gap: 8px; padding: 0; }
            .v2-preview-card { padding: 14px 10px; }
            .v2-preview-card .preview-icon { font-size: 1.3rem; margin-bottom: 6px; }
            .v2-preview-card h3 { font-size: 0.78rem; }
            .v2-preview-card .preview-sample { font-size: 0.7rem; }

            /* Wizard compact on mobile */
            .v2-wizard { padding: 18px 14px; }

            /* Form inputs - prevent iOS zoom */
            select, input, textarea { font-size: 16px; }

            /* Header menu button */
            .header-menu-btn { width: 32px; height: 32px; right: 8px; }

            /* About section */
            .about-section { padding: 16px 14px; }
            .about-section h2 { font-size: 1rem; }

            /* Footer */
            footer { padding: 16px 12px; }
        }

        /* ========== Desktop (1024px+) ========== */
        @media (min-width: 1024px) {
            .container { max-width: 900px; }

            .header h1 { font-size: 2rem; }
            .header p { font-size: 1rem; }

            .nav-menu { justify-content: center; padding: 12px 20px; gap: 10px; }
            .nav-link { padding: 9px 20px; font-size: 0.88rem; }

            .sub-tabs { justify-content: center; }

            .v2-hero { padding: 50px 32px; border-radius: 16px; }
            .v2-hero h1 { font-size: 2rem; }
            .v2-hero .hero-subtext { font-size: 1.05rem; max-width: 550px; }
            .v2-hero .hero-cta { padding: 18px 44px; font-size: 1.15rem; }

            .v2-preview { grid-template-columns: repeat(4, 1fr); gap: 14px; }
            .v2-preview-card { padding: 22px 16px; }
        }

/* ========== Notification & Language Styles ========== */
        .lang-option {
            display: block; width: 100%; padding: 8px 16px; border: none; background: none;
            color: var(--text-cream, #f5e6d3); text-align: left; cursor: pointer; font-size: 0.9rem;
        }
        .lang-option:hover { background: rgba(255,255,255,0.1); }
        .lang-option.active { color: var(--accent-gold, #d4a574); font-weight: bold; }
        .notification-bell:hover {
            opacity: 1 !important;
            transform: translateY(-50%) scale(1.1);
        }
        .notification-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .notification-modal-content {
            background: white;
            padding: 25px;
            border-radius: 15px;
            max-width: 400px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }
        .notification-modal .close-modal {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 28px;
            cursor: pointer;
            color: #666;
        }
        .notification-modal .close-modal:hover {
            color: #333;
        }
        .notification-subscribed {
            color: #228B22 !important;
        }

/* ========== Feedback Star Styles ========== */
        .feedback-star:hover,
        .feedback-star.active {
            color: #d4a017 !important;
        }
        .feedback-star.hover {
            color: #d4a017 !important;
        }

/* ========== Guru Transits 2026 ========== */
.guru-2026-hero {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px 0;
}
.guru-2026-hero h2 {
    margin: 0 0 6px;
    color: var(--text-brown);
    font-size: 1.6rem;
}
.guru-2026-hero .guru-2026-subline {
    color: #6e5a3a;
    font-size: 0.95rem;
    margin: 0;
}
.guru-2026-hero .guru-2026-pill {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #f3e4b5;
    color: var(--text-brown);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.guru-2026-prompt {
    text-align: center;
    font-size: 1rem;
    color: #2a1a08;
    margin: 0 0 18px;
}
.guru-2026-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .guru-2026-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
    .guru-2026-grid { grid-template-columns: repeat(2, 1fr); }
}
.guru-2026-card {
    background: #fffbf2;
    border: 2px solid #e8d9b8;
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.guru-2026-card:hover,
.guru-2026-card:focus {
    border-color: #c89a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 154, 61, 0.25);
    outline: none;
}
.guru-2026-card.selected {
    border-color: #6b3410;
    background: #f3e4b5;
}
.guru-2026-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.guru-2026-card span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-brown);
}

.guru-2026-reading-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f3e4b5;
    border-radius: 10px;
    margin-bottom: 18px;
}
.guru-2026-reading-header img {
    width: 48px;
    height: 48px;
}
.guru-2026-reading-header .info { flex: 1; }
.guru-2026-reading-header .info-label {
    font-size: 0.75rem;
    color: #6e5a3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guru-2026-reading-header .info-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-brown);
}
.guru-2026-change-btn {
    background: transparent;
    border: 1px solid #6b3410;
    color: #6b3410;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
}
.guru-2026-change-btn:hover { background: #6b3410; color: #fff; }

.guru-2026-teaser {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #2a1a08;
}
.guru-2026-teaser p { margin: 0 0 14px; }
.guru-2026-teaser strong { color: var(--text-brown); }

.guru-2026-cta {
    margin-top: 24px;
    background: linear-gradient(135deg, #6b3410 0%, #4a2208 100%);
    color: #fff;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
}
.guru-2026-cta h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #f3e4b5;
}
.guru-2026-cta p {
    margin: 0 0 16px;
    font-size: 0.9rem;
    opacity: 0.95;
    color: #fff;
}
.guru-2026-cta-btn {
    background: #c89a3d;
    color: #4a2208;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}
.guru-2026-cta-btn:hover { background: #d8ab48; }

.guru-2026-skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0e6d0 25%, #f8f0dc 50%, #f0e6d0 75%);
    background-size: 200% 100%;
    animation: guru-2026-shimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}
.guru-2026-skeleton-line.short { width: 60%; }
.guru-2026-skeleton-line.medium { width: 85%; }
@keyframes guru-2026-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.guru-2026-collapsed-teaser {
    background: #f7f0db;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6e5a3a;
    cursor: pointer;
    margin: 16px 0;
}
.guru-2026-collapsed-teaser:hover { background: #efe5c4; }

.guru-2026-detailed-wrap section {
    margin-bottom: 20px;
}
.guru-2026-detailed-wrap h3 {
    color: var(--text-brown);
    border-bottom: 1px solid #e8d9b8;
    padding-bottom: 6px;
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.guru-2026-detailed-wrap .timeline {
    background: #fffdf7;
    border-left: 3px solid #c89a3d;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 10px;
}
.guru-2026-detailed-wrap .timeline-date {
    font-weight: 700;
    color: var(--text-brown);
    font-size: 0.85rem;
}
.guru-2026-detailed-wrap .timeline-event {
    font-size: 0.92rem;
    color: #2a1a08;
    margin-top: 4px;
}
.guru-2026-detailed-wrap p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.guru-2026-error {
    margin-top: 16px;
    padding: 14px;
    background: #ffebee;
    color: #c62828;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
}
