/* 10 Minutes Me — Warm, Vulnerable, Honest Design System v2 */

:root {
    /* Brand colors — warm dating-app palette */
    --th-cream: #FFF9F5;
    --th-cream-dark: #FFF0E8;
    --th-sand: #F8EDE6;
    --th-sand-dark: #EAD8CC;
    --th-rose: #D95F6F;
    --th-rose-dark: #B84A59;
    --th-rose-light: #F08A96;
    --th-coral: #E87A63;
    --th-coral-dark: #C45F4B;
    --th-blush: #F4C2C2;
    --th-blush-light: #FCE8E8;
    --th-blush-dark: #C45A6B;
    --th-champagne: #F9EEDF;
    --th-burgundy: #6B2D3C;
    --th-sage: #6B9080;
    --th-sage-dark: #4F6D61;
    --th-sage-light: #9ABF9E;
    --th-warm-dark: #2E2825;
    --th-warm-gray: #6F655F;
    --th-warm-light: #A69B94;
    --th-gold: #D4A843;
    --th-gold-light: #E8C97A;
    --th-gold-dark: #B8962E;
    --th-white: #FFFFFF;
    --th-danger: #C62828;
    --th-danger-bg: #FFEBEE;
    --th-success: #2E7D32;
    --th-success-bg: #E8F5E9;
    --th-warning: #F57F17;
    --th-warning-bg: #FFF8E1;

    /* Legacy aliases so existing views keep working */
    --th-terracotta: var(--th-rose);
    --th-terracotta-dark: var(--th-rose-dark);
    --th-terracotta-light: var(--th-rose-light);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Bellefair', Georgia, 'Times New Roman', serif;
    --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(45, 42, 38, 0.04);
    --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
    --shadow-md: 0 4px 16px rgba(45, 42, 38, 0.08);
    --shadow-lg: 0 8px 32px rgba(45, 42, 38, 0.12);
    --shadow-xl: 0 16px 48px rgba(45, 42, 38, 0.16);
    --shadow-inset: inset 0 2px 4px rgba(45, 42, 38, 0.04);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--th-cream) 0%, var(--th-champagne) 100%);
    background-attachment: fixed;
    color: var(--th-warm-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.main-content {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--th-warm-dark);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--th-terracotta);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--th-terracotta-dark);
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--th-white);
    padding: 0.875rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--th-sand);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--th-warm-dark) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .brand-icon {
    color: var(--th-terracotta);
    font-size: 1.25rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--th-warm-dark);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(217, 95, 111, 0.15);
}

.navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    color: var(--th-warm-gray) !important;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--th-terracotta) !important;
    background: rgba(217, 95, 111, 0.06);
}

.navbar-nav .nav-link.btn-nav {
    background: var(--th-terracotta);
    color: var(--th-white) !important;
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link.btn-nav:hover,
.navbar-nav .nav-link.btn-nav:focus {
    background: var(--th-terracotta-dark);
    color: var(--th-white) !important;
}

.navbar-nav .nav-link.btn-nav-outline {
    border: 1.5px solid var(--th-terracotta);
    color: var(--th-terracotta) !important;
    padding: 0.5rem 1.25rem;
}

.navbar-nav .nav-link.btn-nav-outline:hover,
.navbar-nav .nav-link.btn-nav-outline:focus {
    background: var(--th-terracotta);
    color: var(--th-white) !important;
}

/* ========== BUTTONS ========== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--th-terracotta) 0%, var(--th-terracotta-dark) 100%);
    border: none;
    color: var(--th-white);
    box-shadow: 0 4px 12px rgba(217, 95, 111, 0.25);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: linear-gradient(135deg, var(--th-terracotta-dark) 0%, #8E3A46 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 95, 111, 0.35);
    color: var(--th-white);
}

.btn-primary:disabled {
    background: var(--th-warm-light);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Outline variants — higher specificity so Bootstrap's white hover doesn't win */
.btn.btn-outline-primary {
    border: 2px solid var(--th-terracotta);
    color: var(--th-terracotta);
    background: transparent;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus {
    background: var(--th-terracotta);
    color: var(--th-white);
    border-color: var(--th-terracotta);
}

.btn.btn-outline-secondary {
    border: 2px solid var(--th-warm-light);
    color: var(--th-warm-gray);
    background: transparent;
}

.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus {
    background: var(--th-warm-light);
    color: var(--th-warm-dark);
    border-color: var(--th-warm-light);
}

.btn.btn-outline-danger {
    border: 2px solid var(--th-rose);
    color: var(--th-rose);
    background: transparent;
}

.btn.btn-outline-danger:hover,
.btn.btn-outline-danger:focus {
    background: var(--th-rose);
    color: var(--th-white);
    border-color: var(--th-rose);
}

.btn.btn-outline-gold {
    border: 2px solid var(--th-gold);
    color: var(--th-gold-dark);
    background: transparent;
}

.btn.btn-outline-gold:hover,
.btn.btn-outline-gold:focus {
    background: var(--th-gold);
    color: var(--th-white);
    border-color: var(--th-gold);
}

.btn-secondary {
    background: var(--th-sage);
    border: none;
    color: var(--th-white);
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
    background: var(--th-sage-dark);
    color: var(--th-white);
}

.btn-light {
    background: var(--th-white);
    color: var(--th-warm-dark);
    border: 1px solid var(--th-sand-dark);
}

.btn.btn-light:hover,
.btn.btn-light:focus {
    background: var(--th-cream);
    color: var(--th-warm-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========== CARDS ========== */
.card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
    background: var(--th-white);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--space-8);
}

/* ========== FORMS ========== */
.form-label {
    font-weight: 600;
    color: var(--th-warm-dark);
    margin-bottom: var(--space-2);
    font-size: 0.9375rem;
}

.form-text {
    color: var(--th-warm-gray);
    font-size: 0.85rem;
    margin-top: var(--space-2);
}

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 2px solid #7a6f68;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--th-white);
    color: var(--th-warm-dark);
    box-shadow: 0 1px 2px rgba(46, 40, 37, 0.06);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-control::placeholder,
.form-select::placeholder {
    color: var(--th-warm-light);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--th-terracotta);
    box-shadow: 0 0 0 4px rgba(217, 95, 111, 0.15);
    background: var(--th-white);
}

.form-control:disabled,
.form-select:disabled {
    background: var(--th-sand);
    border-color: var(--th-sand-dark);
    opacity: 0.75;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--th-sand-dark);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--th-terracotta);
    border-color: var(--th-terracotta);
}

.form-check-label {
    color: var(--th-warm-gray);
    cursor: pointer;
    padding-left: 0.25rem;
}

.input-group-text {
    background: var(--th-sand);
    border: 2px solid var(--th-sand-dark);
    color: var(--th-warm-gray);
}

/* ========== AVATARS ========== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--th-sand) 0%, var(--th-cream-dark) 100%);
    color: var(--th-warm-gray);
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid var(--th-white);
    box-shadow: var(--shadow-sm);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-sm { width: 48px; height: 48px; font-size: 1rem; }
.avatar-md { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-lg { width: 120px; height: 120px; font-size: 2.5rem; }
.avatar-xl { width: 160px; height: 160px; font-size: 3rem; }

.avatar-terracotta { background: linear-gradient(135deg, var(--th-terracotta) 0%, var(--th-terracotta-dark) 100%); color: var(--th-white); }
.avatar-sage { background: linear-gradient(135deg, var(--th-sage) 0%, var(--th-sage-dark) 100%); color: var(--th-white); }
.avatar-gold { background: linear-gradient(135deg, var(--th-gold) 0%, var(--th-gold-dark) 100%); color: var(--th-white); }
.avatar-blush { background: linear-gradient(135deg, var(--th-blush) 0%, #D69AA0 100%); color: var(--th-white); }
.avatar-warm { background: linear-gradient(135deg, var(--th-warm-dark) 0%, #4A4540 100%); color: var(--th-white); }

/* Soft pastel avatars for marketing sections */
.avatar-soft-terracotta { background: #FBECE6; color: var(--th-terracotta); }
.avatar-soft-sage { background: #E8F3EC; color: var(--th-sage-dark); }
.avatar-soft-gold { background: #FDF5E0; color: #A8780B; }
.avatar-soft-blush { background: var(--th-blush-light); color: var(--th-blush-dark); }
.avatar-soft-warm { background: #F3F0EC; color: var(--th-warm-dark); }
.avatar-soft-rose { background: #FCE8EC; color: var(--th-rose-dark); }
.avatar-soft-coral { background: #FFF0ED; color: var(--th-coral-dark); }
.avatar-soft-sand { background: #F7F3ED; color: #8B7355; }

.avatar-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.avatar-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.avatar-wrapper .avatar-xl + .avatar-verified-badge {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.avatar-wrapper .avatar-lg + .avatar-verified-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.avatar-wrapper .avatar-sm + .avatar-verified-badge {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
}

.avatar-wrapper .avatar-profile + .avatar-verified-badge {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
}

@media (min-width: 992px) {
    .avatar-wrapper .avatar-profile + .avatar-verified-badge {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

.verified-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* ========== NOTIFICATIONS ========== */
.notification-bell {
    position: relative;
}

.notification-bell .badge {
    transform: translate(30%, -30%);
}

.dropdown-menu.notification-dropdown {
    min-width: 320px;
    max-width: 360px;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ========== MATCH ACTIVITIES OFFCANVAS ========== */
#matchActivities.offcanvas-bottom {
    height: auto;
    max-height: 80vh;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    box-shadow: 0 -8px 32px rgba(45, 42, 38, 0.12);
}

#matchActivities .offcanvas-header {
    border-bottom: 1px solid var(--th-sand);
    padding: 1rem 1.25rem;
}

#matchActivities .offcanvas-header .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--th-cream);
    opacity: 1;
    transition: background var(--transition-fast);
}

#matchActivities .offcanvas-header .btn-close:hover {
    background-color: var(--th-sand);
}

#matchActivities .offcanvas-body {
    background: var(--th-cream);
}

.activity-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--th-white);
    border-bottom: 1px solid var(--th-sand);
    padding: 0.75rem 1.25rem;
}

.activity-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.activity-tabs::-webkit-scrollbar {
    display: none;
}

.activity-tabs .nav-item {
    flex-shrink: 0;
}

.activity-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--th-sand);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    color: var(--th-warm-gray);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--th-white);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.activity-tabs .nav-link:hover {
    border-color: var(--th-rose-light);
    color: var(--th-rose);
    background: var(--th-blush-light);
}

.activity-tabs .nav-link.active {
    background: var(--th-rose);
    border-color: var(--th-rose);
    color: var(--th-white);
}

.activity-tab-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.25rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border: 1px solid var(--th-sand);
    border-radius: var(--radius-lg);
    background: var(--th-white);
    box-shadow: var(--shadow-xs);
    color: var(--th-warm-dark);
    transition: all var(--transition-fast);
}

.activity-card:hover {
    transform: translateY(-2px);
    border-color: var(--th-rose-light);
    box-shadow: var(--shadow-md);
}

.activity-card-text {
    flex: 1 1 auto;
    font-weight: 500;
    line-height: 1.4;
}

.activity-card-chevron {
    flex-shrink: 0;
    color: var(--th-warm-light);
    font-size: 1.1rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.activity-card:hover .activity-card-chevron {
    transform: translateX(3px);
    color: var(--th-rose);
}

.activity-card-wyr {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.5rem;
}

.activity-card-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.activity-option-or {
    color: var(--th-warm-light);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.activity-card-hint {
    color: var(--th-warm-light);
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--th-warm-light);
}

.activity-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--th-sand-dark);
}

.activity-date-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--th-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--th-sand);
}

.activity-date-illustration {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--th-blush-light);
    color: var(--th-rose);
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    #matchActivities.offcanvas-bottom {
        max-height: 60vh;
    }

    .activity-tab-content {
        padding: 1.5rem 2rem;
    }
}

/* ========== MESSAGES / CHAT ========== */
.chat-thread-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
    min-height: 500px;
    background: var(--th-cream);
}

@media (max-width: 991.98px) {
    .chat-thread-page {
        height: 100%;
        min-height: 100%;
    }
}

.chat-thread-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--th-white);
    border-bottom: 1px solid var(--th-sand);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
}

.chat-header-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--th-warm-gray);
    background: var(--th-cream);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.chat-header-back:hover {
    background: var(--th-sand);
    color: var(--th-warm-dark);
}

.chat-header-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.chat-header-avatar img,
.chat-header-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--th-sage);
    color: var(--th-white);
    font-weight: 600;
    font-size: 1rem;
}

.chat-header-avatar .avatar-verified-badge {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    bottom: -2px;
    right: -2px;
}

.chat-header-info {
    min-width: 0;
    flex: 1 1 auto;
}

.chat-header-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-status {
    font-size: 0.75rem;
    color: var(--th-warm-light);
}

.chat-header-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--th-blush-light);
    color: var(--th-rose);
    transition: all var(--transition-fast);
}

.chat-header-play:hover {
    background: var(--th-blush);
    color: var(--th-rose-dark);
}

.chat-thread-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    background: var(--th-cream);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-empty-state {
    margin: auto;
    text-align: center;
    padding: 2rem;
}

.chat-empty-state .chat-header-avatar {
    margin: 0 auto;
}

.message-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--th-warm-light);
    font-weight: 500;
}

.message-date-divider::before,
.message-date-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--th-sand-dark);
    max-width: 80px;
}

.message-date-divider span {
    padding: 0 0.75rem;
}

.message-group {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 85%;
}

.message-group-me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-group-other {
    align-self: flex-start;
}

.message-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.message-avatar img,
.message-avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--th-sage);
    color: var(--th-white);
    font-size: 0.75rem;
    font-weight: 600;
}

.message-group-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-width: calc(100% - 36px);
}

.message-group-me .message-group-content {
    align-items: flex-end;
}

.message-group-other .message-group-content {
    align-items: flex-start;
}

.message-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.message-bubble {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    line-height: 1.45;
    box-shadow: var(--shadow-xs);
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    white-space: pre-wrap;
}

.message-bubble-me {
    background: var(--th-rose);
    color: var(--th-white);
    border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
    align-self: flex-end;
}

.message-bubble-other {
    background: var(--th-white);
    color: var(--th-warm-dark);
    border: 1px solid var(--th-sand);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
    align-self: flex-start;
}

.message-meta {
    font-size: 0.7rem;
    color: var(--th-warm-light);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.message-meta .status-icon i {
    font-size: 0.8rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--th-warm-light);
    font-size: 0.8rem;
    margin-top: auto;
    align-self: flex-start;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--th-warm-light);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-thread-composer {
    flex-shrink: 0;
    background: var(--th-white);
    border-top: 1px solid var(--th-sand);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 0.75rem 1rem;
}

.chat-starters {
    margin-bottom: 0.75rem;
}

.chat-composer-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

textarea.chat-composer-input {
    flex: 1 1 auto;
    min-height: 48px;
    max-height: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--th-sand-dark);
    border-radius: var(--radius-pill);
    background: var(--th-cream);
    color: var(--th-warm-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    resize: none;
    outline: none;
    transition: all var(--transition-fast);
}

textarea.chat-composer-input:focus {
    border-color: var(--th-rose-light);
    background: var(--th-white);
    box-shadow: 0 0 0 3px rgba(217, 95, 111, 0.08);
}

.chat-send-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--th-rose);
    color: var(--th-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--th-rose-dark);
    transform: translateY(-1px);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .chat-thread-messages {
        padding: 0.75rem;
    }

    .chat-thread-header,
    .chat-thread-composer {
        border-radius: 0;
    }

    .message-group {
        max-width: 92%;
    }
}

.messages-list .list-group-item {
    border: 0;
    border-bottom: 1px solid var(--th-sand-dark);
    transition: background 0.15s ease;
}

.messages-list .list-group-item:last-child {
    border-bottom: 0;
}

.messages-list .list-group-item:hover {
    background: var(--th-cream);
}

.unread-conversation {
    background: var(--th-blush-light);
    border-left: 3px solid var(--th-rose);
}

.unread-conversation h5 {
    font-weight: 700;
}

.unread-conversation .text-muted {
    color: var(--th-warm-gray) !important;
}

/* ========== DYNAMIC SECTION BACKGROUNDS ========== */
.section-bg-dynamic {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.section-bg-dynamic > .container,
.section-bg-dynamic > .container-fluid {
    position: relative;
    z-index: 2;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    --parallax-x: 0px;
    --parallax-y: 0px;
    will-change: transform;
    transition: opacity 0.6s ease;
}

.bg-blob-1 { background: var(--th-blush); width: 420px; height: 420px; top: -140px; left: -120px; animation: blobDrift1 18s ease-in-out infinite alternate; }
.bg-blob-2 { background: var(--th-sage); width: 360px; height: 360px; bottom: -120px; right: -100px; animation: blobDrift2 22s ease-in-out infinite alternate; }
.bg-blob-3 { background: var(--th-gold); width: 300px; height: 300px; top: 40%; left: 60%; animation: blobDrift3 20s ease-in-out infinite alternate; }
.bg-blob-4 { background: var(--th-terracotta); width: 260px; height: 260px; top: 10%; right: 25%; animation: blobDrift4 24s ease-in-out infinite alternate; }

@keyframes blobDrift1 {
    0% { transform: translate(calc(var(--parallax-x) + 0px), calc(var(--parallax-y) + 0px)) scale(1); }
    100% { transform: translate(calc(var(--parallax-x) + 40px), calc(var(--parallax-y) + 60px)) scale(1.08); }
}

@keyframes blobDrift2 {
    0% { transform: translate(calc(var(--parallax-x) + 0px), calc(var(--parallax-y) + 0px)) scale(1); }
    100% { transform: translate(calc(var(--parallax-x) - 50px), calc(var(--parallax-y) - 30px)) scale(1.12); }
}

@keyframes blobDrift3 {
    0% { transform: translate(calc(var(--parallax-x) + 0px), calc(var(--parallax-y) + 0px)) scale(1); }
    100% { transform: translate(calc(var(--parallax-x) - 30px), calc(var(--parallax-y) + 50px)) scale(1.05); }
}

@keyframes blobDrift4 {
    0% { transform: translate(calc(var(--parallax-x) + 0px), calc(var(--parallax-y) + 0px)) scale(1); }
    100% { transform: translate(calc(var(--parallax-x) + 30px), calc(var(--parallax-y) - 40px)) scale(1.1); }
}

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

@media (prefers-reduced-motion: reduce) {
    .bg-blob {
        animation: none;
        opacity: 0.22;
    }
}

/* ========== HERO ========== */
.hero-section {
    position: relative;
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--th-cream) 0%, var(--th-sand) 100%);
    overflow: hidden;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(217, 95, 111, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(122, 158, 126, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-title em {
    color: var(--th-terracotta);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--th-warm-gray);
    max-width: 560px;
    margin-bottom: var(--space-8);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.trust-pills {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--th-white);
    border: 1px solid var(--th-sand-dark);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--th-warm-gray);
    box-shadow: var(--shadow-xs);
}

.trust-pill i {
    color: var(--th-sage);
}

.trust-pill-sage i { color: var(--th-sage); }
.trust-pill-terracotta i { color: var(--th-terracotta); }
.trust-pill-warm i { color: var(--th-warm-dark); }
.trust-pill-gold i { color: var(--th-gold-dark); }
.trust-pill-blush i { color: var(--th-blush-dark); }

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: var(--space-8) 0;
    background: linear-gradient(180deg, var(--th-cream) 0%, var(--th-sand) 100%);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--th-white);
    overflow: hidden;
}

.auth-card .card-body {
    padding: var(--space-10) var(--space-8);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header h2 {
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--th-warm-gray);
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    color: var(--th-warm-gray);
    font-size: 0.9375rem;
}

/* ========== DASHBOARD ========== */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--th-white) 0%, var(--th-cream) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.stat-icon-soft-terracotta { background: #FBECE6; color: var(--th-terracotta); }
.stat-icon-soft-sage { background: #E8F3EC; color: var(--th-sage-dark); }
.stat-icon-soft-gold { background: #FDF5E0; color: #A8780B; }
.stat-icon-soft-blush { background: var(--th-blush-light); color: var(--th-blush-dark); }
.stat-icon-soft-warm { background: #F3F0EC; color: var(--th-warm-dark); }
.stat-icon-soft-rose { background: #FCE8EC; color: var(--th-rose-dark); }
.stat-icon-soft-coral { background: #FFF0ED; color: var(--th-coral-dark); }
.stat-icon-soft-sand { background: #F7F3ED; color: #8B7355; }

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--th-warm-dark);
    margin-bottom: var(--space-1);
}

.stat-card .stat-label {
    color: var(--th-warm-gray);
    font-size: 0.9375rem;
}

/* ========== ONBOARDING ========== */
.onboarding-welcome {
    background: linear-gradient(180deg, var(--th-cream) 0%, var(--th-sand) 100%);
    padding: var(--space-12) 0;
}

.onboarding-card {
    background: var(--th-white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.onboarding-progress-bar {
    background: var(--th-white);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--th-sand-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-xs);
}

.onboarding-progress-bar .progress {
    height: 10px;
    border-radius: var(--radius-pill);
    background-color: var(--th-sand);
}

.onboarding-progress-bar .progress-bar {
    background: linear-gradient(90deg, var(--th-terracotta) 0%, var(--th-gold) 100%);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.commitment-card {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.commitment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.commitment-card.active {
    border-color: var(--th-sage);
    background: linear-gradient(135deg, var(--th-white) 0%, #F0F7F1 100%);
}

.commitment-card .check-mark {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    color: var(--th-sage);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.commitment-card.active .check-mark {
    opacity: 1;
}

/* ========== INFO CARDS ========== */
.info-card {
    background: linear-gradient(135deg, var(--th-sand) 0%, var(--th-cream) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    height: 100%;
}


/* ========== BADGE PREVIEW SIDEBAR ========== */
.badge-preview-sidebar .card {
    border: 2px solid var(--th-gold-light);
    background: linear-gradient(135deg, var(--th-white) 0%, #FFF9F0 100%);
}

.badge-icon {
    color: var(--th-gold);
}

.text-gold {
    color: var(--th-gold) !important;
}

.bg-gold {
    background-color: var(--th-gold) !important;
    color: var(--th-white);
}

.text-terracotta {
    color: var(--th-terracotta) !important;
}

.text-sage {
    color: var(--th-sage) !important;
}

.text-blush {
    color: var(--th-blush) !important;
}

.depth-legend {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.depth-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.depth-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.depth-yellow { background: #E8C97A; }
.depth-green { background: var(--th-sage); }
.depth-gold { background: var(--th-gold); }

/* ========== DEPTH METER ========== */
.depth-meter-container {
    margin-top: 0.5rem;
}

.depth-meter-bar {
    height: 8px;
    background: var(--th-sand);
    border-radius: 4px;
    overflow: hidden;
}

.depth-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease, background-color 0.5s ease;
    width: 0%;
}

.depth-fill.depth-yellow { background: #E8C97A; }
.depth-fill.depth-green { background: var(--th-sage); }
.depth-fill.depth-gold { background: var(--th-gold); }

.depth-label {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    color: var(--th-warm-gray);
    font-weight: 500;
}

/* ========== VALUES RANKER ========== */
.values-ranker {
    background: var(--th-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.value-card {
    background: var(--th-white);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    cursor: grab;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.value-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.value-card.dragging {
    opacity: 0.5;
    transform: scale(1.02);
}

.value-rank {
    background: var(--th-terracotta);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.value-name {
    font-weight: 600;
    flex: 1;
}

.value-handle {
    color: var(--th-warm-light);
    cursor: grab;
    padding: var(--space-2);
}

.value-mobile-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-mobile-controls .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

/* ========== NUDGES & WARNINGS ========== */
.nudge-text, .text-warning {
    color: var(--th-terracotta) !important;
}

.prohibited-nudge {
    background: #FFF5F0;
    border-left: 3px solid var(--th-terracotta);
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
}

/* ========== MODAL ========== */
#badge-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.confetti-animation {
    animation: medal-bounce 0.6s ease-out;
}

@keyframes medal-bounce {
    0% { transform: scale(0) rotate(-20deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ========== HOBBY / MILESTONE / RELATIONSHIP / BAGGAGE CARDS ========== */
.hobby-card, .milestone-card, .relationship-card, .baggage-card {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border-left: 4px solid var(--th-terracotta);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
}

.milestone-card {
    border-left-color: var(--th-sage);
}

.baggage-card {
    border-left-color: var(--th-blush);
}

.hobby-card {
    border-left-color: var(--th-gold);
}

/* ========== DISCOVERY / MATCHING ========== */
.discovery-card {
    background: var(--th-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    border: 1px solid var(--th-sand-dark);
}

.discovery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.discovery-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--th-sand) 0%, var(--th-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.discovery-card .card-body {
    padding: var(--space-6);
}

.discovery-card .card-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: var(--space-1);
}

.discovery-card .card-location {
    color: var(--th-warm-gray);
    font-size: 0.9375rem;
    margin-bottom: var(--space-3);
}

.discovery-card .card-bio {
    color: var(--th-warm-gray);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trust-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
}

.trust-badge-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: white;
}

.trust-badge-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: var(--th-warm-dark);
}

.trust-badge-gold {
    background: linear-gradient(135deg, var(--th-gold) 0%, #B8962E 100%);
    color: white;
}

/* ========== TEST ACTIVE ========== */
.test-active-container {
    min-height: 100vh;
    background: var(--th-warm-dark);
    color: var(--th-cream);
}

.test-top-bar {
    background: rgba(0, 0, 0, 0.25);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--th-cream);
    transition: color var(--transition-fast);
}

.timer-display.warning {
    color: var(--th-gold);
    animation: pulse-timer 0.5s ease-in-out infinite;
}

.timer-display.danger {
    color: #E74C3C;
    animation: shake-timer 0.3s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shake-timer {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.scenario-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-6);
}

.scenario-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--th-sand);
    font-style: italic;
    margin-bottom: var(--space-4);
}

.question-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--th-white);
    margin-bottom: var(--space-6);
}

.answer-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.answer-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--th-gold);
}

.answer-option input[type="radio"] {
    width: 24px;
    height: 24px;
    accent-color: var(--th-gold);
    flex-shrink: 0;
}

.answer-option.selected {
    background: rgba(212, 169, 67, 0.15);
    border-color: var(--th-gold);
}

.instinct-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--th-cream);
    padding: var(--space-4);
    width: 100%;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: var(--space-4);
}

.instinct-textarea:focus {
    outline: none;
    border-color: var(--th-gold);
    background: rgba(255, 255, 255, 0.08);
}

.instinct-textarea::placeholder {
    color: rgba(245, 237, 224, 0.5);
}

.auto-submit-banner {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: var(--radius-md);
    padding: 0.75rem var(--space-4);
    color: #E74C3C;
    font-weight: 600;
    text-align: center;
    display: none;
}

.auto-submit-banner.visible {
    display: block;
    animation: pulse-timer 1s ease-in-out infinite;
}

/* ========== ALERTS ========== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: var(--shadow-xs);
}

.alert-success {
    background: var(--th-success-bg);
    color: var(--th-success);
}

.alert-danger {
    background: var(--th-danger-bg);
    color: var(--th-danger);
}

.alert-warning {
    background: var(--th-warning-bg);
    color: var(--th-warning);
}

/* ========== PROFILE VIEW ========== */
.profile-hero-card {
    background: linear-gradient(135deg, var(--th-white) 0%, var(--th-blush-light) 100%);
    border: 1px solid var(--th-blush);
    overflow: hidden;
}

.profile-hero-card .avatar-xl {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
}

.profile-tab-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--th-cream);
    background: linear-gradient(180deg, var(--th-cream) 0%, transparent 100%);
    padding: 0.5rem 0;
}

.profile-tab-nav-wrapper .nav-pills {
    background: var(--th-white);
    border-radius: var(--radius-pill);
    padding: 0.375rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--th-sand-dark);
    gap: 0.25rem;
}

.profile-tab-nav-wrapper .nav-pills .nav-link {
    color: var(--th-warm-gray);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-pill);
    padding: 0.625rem 1rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.profile-tab-nav-wrapper .nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-rose-dark) 100%);
    color: var(--th-white);
    box-shadow: 0 2px 8px rgba(217, 95, 111, 0.25);
}

.profile-tab-nav-wrapper .nav-pills .nav-link .badge {
    font-size: 0.625rem;
    padding: 0.25em 0.5em;
}

.profile-section-title {
    color: var(--th-burgundy);
    font-size: 1.375rem;
}

.profile-field h6 {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.profile-field p {
    color: var(--th-warm-dark);
    line-height: 1.7;
}

.profile-empty-state {
    background: var(--th-white);
    border: 2px dashed var(--th-sand-dark);
    box-shadow: none;
}

.avatar-rose {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-rose-dark) 100%);
    color: var(--th-white);
}

.badge-pill {
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* ========== GROWTH HUB ========== */
.growth-attachment-card {
    background: linear-gradient(135deg, var(--th-white) 0%, var(--th-blush-light) 100%);
    border: 1px solid var(--th-blush);
}

.growth-reflection-card {
    background: var(--th-white);
    border-left: 4px solid var(--th-sage);
}

.growth-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--th-burgundy);
    line-height: 1.5;
    margin: 0;
    padding: var(--space-4) var(--space-5);
    background: var(--th-cream);
    border-radius: var(--radius-md);
}

.growth-exercise {
    border-left: 3px solid var(--th-rose);
}

.growth-edge-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.growth-edge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.growth-strengths-card {
    background: linear-gradient(135deg, var(--th-sage-light) 0%, var(--th-sage) 100%);
    color: var(--th-white);
    border: none;
}

.growth-strengths-card .brand-text {
    color: var(--th-white);
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    background: var(--th-blush-light);
    color: var(--th-burgundy);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--th-warm-dark);
    color: var(--th-sand);
    padding: var(--space-10) 0 var(--space-6);
    margin-top: auto;
}

.footer .brand-text {
    color: var(--th-cream);
}

.footer p {
    color: var(--th-warm-light);
}

.footer a {
    color: var(--th-sand);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--th-gold-light);
}

.footer .text-muted {
    color: var(--th-warm-light) !important;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--th-sand-dark);
    box-shadow: 0 -2px 16px rgba(45, 42, 38, 0.06);
}

.mobile-bottom-nav .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 100%;
    color: var(--th-warm-light);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.mobile-bottom-nav .bottom-nav-item i {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.mobile-bottom-nav .bottom-nav-item.active,
.mobile-bottom-nav .bottom-nav-item:hover,
.mobile-bottom-nav .bottom-nav-item:focus {
    color: var(--th-rose);
}

.mobile-bottom-nav .bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* ========== UTILITY ========== */
.text-muted {
    color: var(--th-warm-gray) !important;
}

.bg-cream { background-color: var(--th-cream) !important; }
.bg-sand { background-color: var(--th-sand) !important; }
.bg-white { background-color: var(--th-white) !important; }
.bg-rose { background-color: var(--th-rose) !important; }
.bg-rose-light { background-color: var(--th-rose-light) !important; }
.bg-blush { background-color: var(--th-blush) !important; }
.bg-blush-light { background-color: var(--th-blush-light) !important; }
.bg-champagne { background-color: var(--th-champagne) !important; }
.bg-burgundy { background-color: var(--th-burgundy) !important; }
.bg-coral { background-color: var(--th-coral) !important; }

.text-rose { color: var(--th-rose) !important; }
.text-rose-dark { color: var(--th-rose-dark) !important; }
.text-coral { color: var(--th-coral) !important; }
.text-burgundy { color: var(--th-burgundy) !important; }
.text-champagne { color: var(--th-champagne) !important; }
.text-warm-dark { color: var(--th-warm-dark) !important; }
.text-warm-gray { color: var(--th-warm-gray) !important; }
.text-sage-dark { color: var(--th-sage-dark) !important; }

.border-blush { border-color: var(--th-blush) !important; }
.border-sand-dark { border-color: var(--th-sand-dark) !important; }

.font-accent { font-family: var(--font-accent); }
.font-display { font-family: var(--font-display); }

.section-padding { padding: var(--space-16) 0; }
.section-padding-sm { padding: var(--space-10) 0; }

.divider {
    height: 1px;
    background: var(--th-sand-dark);
    margin: var(--space-6) 0;
}

/* ========== PAGE TRANSITIONS ========== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    body.is-logged-in {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.is-logged-in .navbar {
        flex-shrink: 0;
    }

    body.is-logged-in .main-content {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 72px;
    }

    body.is-logged-in .footer {
        display: none;
    }

    .section-padding {
        padding: var(--space-8) 0;
    }

    .section-padding-sm {
        padding: var(--space-5) 0;
    }

    .mobile-bottom-nav {
        height: 56px;
    }

    .mobile-bottom-nav .bottom-nav-item span {
        display: none;
    }

    .mobile-bottom-nav .bottom-nav-item i {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: var(--space-12) 0;
    }

    .onboarding-card {
        padding: var(--space-8);
    }

    .onboarding-welcome {
        padding: var(--space-10) 0;
    }

    .navbar-collapse {
        background: var(--th-white);
        border-radius: var(--radius-lg);
        padding: var(--space-4);
        margin-top: var(--space-3);
        box-shadow: var(--shadow-md);
    }

    .navbar-nav {
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        padding: var(--space-3) var(--space-4);
    }

    .navbar-nav .nav-link.btn-nav,
    .navbar-nav .nav-link.btn-nav-outline {
        margin-left: 0;
        margin-top: var(--space-2);
    }

    .badge-preview-sidebar {
        margin-top: var(--space-6);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .auth-card .card-body {
        padding: var(--space-8) var(--space-5);
    }

    .onboarding-card {
        padding: var(--space-6);
        border-radius: var(--radius-lg);
    }

    .onboarding-card h2.brand-text {
        font-size: 1.625rem;
    }

    .onboarding-welcome {
        padding: var(--space-8) 0;
    }

    .onboarding-welcome .hero-title {
        font-size: 2rem;
    }

    .card-body {
        padding: var(--space-6);
    }

    .discovery-card .card-img-top {
        height: 180px;
    }

    .section-padding {
        padding: var(--space-10) 0;
    }

    .section-padding-sm {
        padding: var(--space-6) 0;
    }

    .timer-display {
        font-size: 1.5rem;
    }

    .commitment-card {
        padding: var(--space-5) var(--space-4);
    }

    .value-card {
        padding: var(--space-3) var(--space-4);
    }

    .btn-lg {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .onboarding-card form .btn-lg {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: var(--space-10) 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .trust-pills {
        justify-content: center;
    }

    .auth-card {
        border-radius: var(--radius-lg);
    }

    .stat-card .stat-value {
        font-size: 1.625rem;
    }

    .navbar-brand {
        font-size: 1.375rem;
    }

    .onboarding-card h2.brand-text {
        font-size: 1.375rem;
    }

    .value-rank {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

    .profile-hero-card .avatar-xl {
        width: 96px;
        height: 96px;
        font-size: 2rem;
    }

    .profile-tab-nav-wrapper .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .growth-quote {
        font-size: 1.0625rem;
        padding: var(--space-3) var(--space-4);
    }

    .mobile-bottom-nav .bottom-nav-item {
        font-size: 0.625rem;
    }

    .mobile-bottom-nav .bottom-nav-item i {
        font-size: 1.125rem;
    }
}


/* ============================================================
   THEME ENGINE — Default, Glass, Dark, Atomic
   ============================================================ */

/* ---------- Theme: Default (warm, honest, current) ---------- */
/* Variables already defined in :root at the top of this file. */

/* ---------- Theme: Luxury Dark ---------- */
[data-theme="dark"] {
    --th-cream: #12100E;
    --th-cream-dark: #1A1715;
    --th-sand: #2E2825;
    --th-sand-dark: #3D3531;
    --th-rose: #E87A63;
    --th-rose-dark: #D95F6F;
    --th-rose-light: #F08A96;
    --th-coral: #E87A63;
    --th-coral-dark: #C45F4B;
    --th-blush: #5A3A40;
    --th-blush-light: #2A1F21;
    --th-blush-dark: #E08A96;
    --th-champagne: #2E2825;
    --th-burgundy: #F5EDE0;
    --th-sage: #7A9E7E;
    --th-sage-dark: #9ABF9E;
    --th-sage-light: #4F6D61;
    --th-warm-dark: #F5EDE0;
    --th-warm-gray: #A69B94;
    --th-warm-light: #6F655F;
    --th-gold: #D4A843;
    --th-gold-light: #E8C97A;
    --th-gold-dark: #B8962E;
    --th-white: #1A1715;
    --th-danger-bg: #3A1A1A;
    --th-success-bg: #1A2F1D;
    --th-warning-bg: #3A2A12;
}

[data-theme="dark"] body {
    background: var(--th-cream);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 23, 21, 0.92);
    border-bottom-color: var(--th-sand);
}

[data-theme="dark"] .card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .onboarding-card,
[data-theme="dark"] .stat-card {
    background: var(--th-white);
    box-shadow: none;
    border: 1px solid var(--th-sand-dark);
}

[data-theme="dark"] .card-hover:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-rose-dark) 100%);
    box-shadow: 0 4px 16px rgba(232, 122, 99, 0.18);
}

[data-theme="dark"] .btn-outline-primary {
    border-color: var(--th-rose);
    color: var(--th-rose);
}

[data-theme="dark"] .btn-light {
    background: var(--th-sand);
    color: var(--th-warm-dark);
    border-color: var(--th-sand-dark);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--th-cream);
    border-color: #7a6f68;
    color: var(--th-warm-dark);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--th-white);
    border-color: var(--th-terracotta);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder {
    color: var(--th-warm-light);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(26, 23, 21, 0.94);
    border-top-color: var(--th-sand);
}

[data-theme="dark"] .footer {
    background: var(--th-cream);
    border-top: 1px solid var(--th-sand);
}

[data-theme="dark"] .profile-hero-card,
[data-theme="dark"] .growth-attachment-card {
    background: var(--th-white);
    border-color: var(--th-sand-dark);
}

[data-theme="dark"] .profile-empty-state {
    border-color: var(--th-sand-dark);
}

[data-theme="dark"] .growth-reflection-card {
    border-left-color: var(--th-sage);
}

[data-theme="dark"] .growth-quote {
    background: var(--th-cream);
}

/* ---------- Theme: Glassmorphism / Soft UI ---------- */
[data-theme="glass"] body {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFF0E8 25%, #FCE8E8 50%, #F9EEDF 75%, #FFF9F5 100%);
    background-size: 200% 200%;
    animation: glass-gradient 18s ease infinite;
}

@keyframes glass-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme="glass"] .navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

[data-theme="glass"] .card,
[data-theme="glass"] .auth-card,
[data-theme="glass"] .onboarding-card,
[data-theme="glass"] .stat-card {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(45, 42, 38, 0.06);
}

[data-theme="glass"] .card-hover:hover {
    background: rgba(255, 255, 255, 0.82);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 42, 38, 0.1);
}

[data-theme="glass"] .btn {
    border-radius: var(--radius-pill);
}

[data-theme="glass"] .btn-primary {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-coral) 100%);
    box-shadow: 0 6px 20px rgba(217, 95, 111, 0.25);
}

[data-theme="glass"] .btn-outline-primary {
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid var(--th-rose);
}

[data-theme="glass"] .form-control,
[data-theme="glass"] .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #9e9189;
    color: var(--th-warm-dark);
    box-shadow: 0 1px 3px rgba(46, 40, 37, 0.08);
}

[data-theme="glass"] .form-control:focus,
[data-theme="glass"] .form-select:focus {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--th-terracotta);
    box-shadow: 0 0 0 4px rgba(217, 95, 111, 0.15);
}

[data-theme="glass"] .form-control::placeholder,
[data-theme="glass"] .form-select::placeholder {
    color: var(--th-warm-gray);
}

[data-theme="glass"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

[data-theme="glass"] .profile-hero-card,
[data-theme="glass"] .growth-attachment-card,
[data-theme="glass"] .growth-reflection-card {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

[data-theme="glass"] .profile-tab-nav-wrapper .nav-pills {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

[data-theme="glass"] .profile-empty-state {
    background: rgba(255, 255, 255, 0.45);
    border-style: solid;
}

[data-theme="glass"] .growth-quote {
    background: rgba(255, 255, 255, 0.5);
}

/* ---------- Theme: Modular / Atomic ---------- */
/* Structural language: small dense cards, metric tiles, swipe rows */
[data-theme="atomic"] .card,
[data-theme="atomic"] .auth-card,
[data-theme="atomic"] .onboarding-card,
[data-theme="atomic"] .stat-card {
    border-radius: var(--radius-md);
}

[data-theme="atomic"] .profile-hero-card {
    border-radius: var(--radius-xl);
}

[data-theme="atomic"] .profile-tab-nav-wrapper .nav-pills .nav-link {
    border-radius: var(--radius-md);
}

.atom-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--th-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--th-sand-dark);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.atom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.atom-card .atom-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.atom-card .atom-content {
    flex: 1;
    min-width: 0;
}

.atom-card .atom-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--th-warm-gray);
    margin-bottom: 0.125rem;
}

.atom-card .atom-value {
    font-weight: 600;
    color: var(--th-warm-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-tile {
    text-align: center;
    padding: var(--space-5);
    background: var(--th-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--th-sand-dark);
    box-shadow: var(--shadow-sm);
}

.metric-tile .metric-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--th-rose);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.metric-tile .metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--th-warm-gray);
}

.resource-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--th-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--th-sand-dark);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.resource-tile .resource-type {
    align-self: flex-start;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--th-champagne);
    color: var(--th-warm-dark);
}

.swipe-row {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: thin;
}

.swipe-row > * {
    flex: 0 0 auto;
    width: 280px;
}

.swipe-row::-webkit-scrollbar {
    height: 6px;
}

.swipe-row::-webkit-scrollbar-thumb {
    background: var(--th-sand-dark);
    border-radius: var(--radius-pill);
}


/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-page .admin-sidebar {
    position: sticky;
    top: 1rem;
}

.admin-nav .nav-link {
    color: var(--th-warm-gray);
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all var(--transition-fast);
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-rose-dark) 100%);
    color: var(--th-white);
}

.admin-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--th-warm-gray);
}

.admin-table td {
    vertical-align: middle;
}

/* Theme-specific admin tweaks */
[data-theme="dark"] .admin-nav .nav-link {
    color: var(--th-warm-light);
}

[data-theme="glass"] .admin-sidebar,
[data-theme="glass"] .admin-page .card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
}


/* ============================================================
   ADMIN COMMAND CENTER LAYOUT
   ============================================================ */
.admin-command-center {
    background: #0F0D0B;
    color: #F5EDE0;
    min-height: 100vh;
}

.admin-app {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar-panel {
    width: 260px;
    background: #161412;
    border-right: 1px solid #2E2825;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid #2E2825;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: #F5EDE0;
}

.admin-brand .brand-icon {
    color: var(--th-rose);
}

.admin-menu {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: #A69B94;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.admin-menu-item i {
    font-size: 1.25rem;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-rose-dark) 100%);
    color: #FFFFFF;
}

.admin-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid #2E2825;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: #161412;
    border-bottom: 1px solid #2E2825;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-page-title {
    font-size: 1.625rem;
    color: #F5EDE0;
}

.admin-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2E2825;
    border-radius: var(--radius-pill);
    color: #A69B94;
    font-size: 0.9375rem;
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

.admin-page-content h2.brand-text {
    color: #F5EDE0;
}

.admin-page-content .card {
    background: #1A1715;
    border: 1px solid #2E2825;
    box-shadow: none;
}

.admin-page-content .metric-tile {
    background: #1A1715;
    border: 1px solid #2E2825;
}

.admin-page-content .metric-tile .metric-value {
    color: var(--th-rose);
}

.admin-page-content .metric-tile .metric-label {
    color: #A69B94;
}

.admin-page-content .admin-table thead th {
    color: #A69B94;
    background: #161412;
}

.admin-page-content .admin-table tbody td {
    color: #F5EDE0;
}

.admin-page-content .form-control,
.admin-page-content .form-select {
    background: #161412;
    border-color: #2E2825;
    color: #F5EDE0;
}

.admin-page-content .form-control:focus,
.admin-page-content .form-select:focus {
    background: #161412;
}

.admin-page-content .btn-primary {
    background: linear-gradient(135deg, var(--th-rose) 0%, var(--th-rose-dark) 100%);
    border: none;
}

.admin-page-content .btn-outline-primary {
    border-color: var(--th-rose);
    color: var(--th-rose);
}

.admin-page-content .btn-outline-primary:hover {
    background: var(--th-rose);
    color: #FFFFFF;
}

.admin-page-content .text-muted {
    color: #A69B94 !important;
}

@media (max-width: 991.98px) {
    .admin-sidebar-panel {
        width: 100%;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .admin-sidebar-panel.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* ============================================================
   Settings Layout
   ============================================================ */

.settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: 1.5rem;
}

.settings-nav-group .list-group {
    gap: 0.25rem;
}

.settings-nav-heading {
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--th-warm-gray);
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--th-warm-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.settings-nav-link:hover {
    background: var(--th-champagne);
    color: var(--th-warm-dark);
}

.settings-nav-link.active {
    background: var(--th-rose);
    color: var(--th-white);
}

.settings-card {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.settings-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--th-cream);
    border: 1px solid var(--th-sand-dark);
    border-radius: var(--radius-lg);
}

.settings-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--th-warm-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.border-gold {
    border: 2px solid var(--th-gold) !important;
}

.border-sage {
    border: 2px solid var(--th-sage) !important;
}

.growth-challenge-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.growth-challenge-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.starter-card {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.starter-chip {
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
    max-width: 100%;
}

.dashboard-progress {
    background: var(--th-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.standout-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        position: static;
    }

    .settings-nav .list-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .settings-nav-link {
        white-space: nowrap;
    }

    .settings-card {
        padding: 1.25rem;
    }

    .settings-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* ============================================================
   Profile Redesign
   ============================================================ */

.profile-hero {
    background: linear-gradient(135deg, var(--th-white) 0%, var(--th-cream-dark) 100%);
    border-radius: var(--radius-xl);
}

.avatar-profile {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    border: 4px solid var(--th-white);
    box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
    .avatar-profile {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }
}

.profile-vitals {
    border-color: rgba(45, 42, 38, 0.08) !important;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: var(--th-white);
    border: 1px solid rgba(45, 42, 38, 0.08);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: var(--th-warm-dark);
}

.profile-tabs {
    gap: 0.5rem;
}

.profile-tabs .nav-link {
    border-radius: var(--radius-pill);
    color: var(--th-warm-gray);
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    background: var(--th-white);
    border: 1px solid rgba(45, 42, 38, 0.08);
}

.profile-tabs .nav-link:hover {
    color: var(--th-rose);
}

.profile-tabs .nav-link.active {
    background: var(--th-rose);
    color: var(--th-white);
    border-color: var(--th-rose);
}

.profile-rail {
    position: sticky;
    top: 1rem;
}

.trust-badge-rose {
    background: var(--th-rose);
    color: var(--th-white);
}

@media (max-width: 991.98px) {
    .profile-rail {
        position: static;
    }
}

/* Standout strip cards */
.standout-card {
    flex: 0 0 auto;
    width: 160px;
    background: var(--th-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.standout-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.standout-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--th-sand);
}

.standout-info {
    padding: 0.75rem;
}

/* Mobile more drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(45, 42, 38, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1040;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fff;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    box-shadow: 0 -4px 24px rgba(45, 42, 38, 0.12);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.mobile-drawer.open {
    transform: translateY(0);
}

.mobile-drawer .drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--th-warm-dark);
    text-decoration: none;
    font-weight: 500;
}

.mobile-drawer .drawer-link:hover {
    background: var(--th-champagne);
}
