@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@400;500;600;700&family=Quicksand:wght@500;700&display=swap');

:root {
    --bg-cream: #FAF8F5;
    --surface-white: #FFFFFF;
    --blush-pink: #FFF0ED;
    --blush-pink-medium: #FCE1DB;
    --blush-pink-dark: #F5D6D1;
    --ink-black: #2E2525;
    --text-muted: #5C5252; /* Darkened for accessibility and high contrast */
    --border-soft: #DED6D3; /* Darkened for distinct input boundaries */
    
    /* Gold Metallic Accent Colors */
    --gold-light: #F8E7B9;
    --gold: #D4AF37;
    --gold-dark: #8E7019; /* Darkened gold for better contrast on white */
    --gold-gradient: linear-gradient(to right, #C69320, #D4AF37, #8E7019, #C69320, #8E7019);
    --gold-btn-gradient: linear-gradient(135deg, #CF9D40 0%, #F5DE8C 40%, #CF9D40 60%, #9F6E1C 100%);
    --gold-shadow: rgba(212, 175, 55, 0.4);
    
    /* Status Colors (Backgrounds and dark text for WCAG compliance) */
    --status-new: #E1F0FF;
    --status-new-text: #0D47A1;
    --status-contacted: #F4E8FF;
    --status-contacted-text: #4A148C;
    --status-followup: #FFF6E0;
    --status-followup-text: #E65100;
    --status-booked: #E6F7ED;
    --status-booked-text: #1B5E20;
    --status-purchased: #FFEBF0;
    --status-purchased-text: #880E4F;
    --status-noresponse: #EAEAEA;
    --status-noresponse-text: #373737;
    
    /* System variables */
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Inter', sans-serif; /* Switched to highly readable Inter font */
    --card-shadow: 0 8px 30px rgba(92, 82, 82, 0.06);
    --input-shadow: 0 2px 10px rgba(92, 82, 82, 0.04);
    --nav-height: 72px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: #EFEBE7;
    color: var(--ink-black);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Responsive App Wrapper */
.app-wrapper {
    width: 100%;
    height: 100vh;
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
    .app-wrapper {
        height: 100vh;
        max-height: 100vh;
    }
}

/* Toast Notification */
.toast-container {
    position: absolute;
    top: 24px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background-color: rgba(46, 37, 37, 0.95);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid var(--gold);
}

.toast.error {
    border-left: 4px solid #E09F9F;
}

/* Views Navigation (SPA) */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-cream);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.view.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
}

/* Welcome Screen */
#view-welcome {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--blush-pink) 0%, var(--bg-cream) 100%);
    padding: 32px;
}

.logo-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blossom Animation */
.blossom-svg {
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: rotateSlow 20s linear infinite;
}

.petal {
    fill: var(--blush-pink-medium);
    transform-origin: 80px 80px;
    opacity: 0.85;
    animation: bloomPetal 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.petal-gold {
    fill: var(--gold);
    transform-origin: 80px 80px;
    opacity: 0;
    animation: bloomPetalGold 3s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

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

@keyframes bloomPetal {
    0% { transform: scale(0.2) rotate(0deg); opacity: 0; }
    50% { opacity: 0.9; }
    100% { transform: scale(1) rotate(var(--rot)); opacity: 0.85; }
}

@keyframes bloomPetalGold {
    0% { transform: scale(0.2) rotate(0deg); opacity: 0; }
    100% { transform: scale(0.8) rotate(var(--rot)); opacity: 0.9; }
}

.app-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ink-black);
    margin-bottom: 8px;
}

.app-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.app-tagline {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
    max-width: 240px;
}

.btn-start {
    background: var(--gold-btn-gradient);
    color: var(--ink-black);
    border: none;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--gold-shadow);
    transition: all 0.3s ease;
}

.btn-start:active {
    transform: scale(0.97);
    box-shadow: 0 5px 15px var(--gold-shadow);
}

/* Auth View */
#view-auth {
    padding: 24px;
    justify-content: center;
    background-color: var(--bg-cream);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--ink-black);
}

/* Segmented Control for Login/Register */
.segmented-control {
    display: flex;
    background-color: var(--blush-pink);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.segment-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.segment-btn.active {
    background-color: var(--surface-white);
    color: var(--ink-black);
    box-shadow: 0 4px 10px rgba(188, 168, 168, 0.08);
}

/* Forms */
.form-container {
    background-color: var(--surface-white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container .auth-form {
    display: none;
}

.form-container .auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-cream);
    border-radius: 12px;
    color: var(--ink-black);
    transition: all 0.25s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--surface-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-primary {
    background: var(--gold-btn-gradient);
    color: var(--ink-black);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--gold-shadow);
    transition: all 0.25s ease;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--blush-pink-medium);
    color: var(--gold-dark);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(224, 159, 159, 0.3);
    transition: all 0.25s ease;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* App Main Navigation Layout */
.app-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-cream);
}

/* App Header */
.app-header {
    height: var(--header-height);
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 30;
}

.header-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-black);
    letter-spacing: 0.5px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: var(--blush-pink);
    color: var(--ink-black);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:active {
    transform: scale(0.92);
    background-color: var(--blush-pink-medium);
}

/* App Scrollable Content Container */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(32px + var(--nav-height));
    width: 100%;
}

@media (min-width: 768px) {
    .app-content {
        padding: 32px;
        padding-bottom: calc(32px + var(--nav-height));
    }
    
    .subview {
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Bottom Tab Bar */
.app-tabbar {
    height: var(--nav-height);
    background-color: var(--surface-white);
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

@media (min-width: 768px) {
    .app-tabbar {
        justify-content: center;
        gap: 60px;
    }
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-item.active {
    color: var(--gold-dark);
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease;
}

.tab-item.active .tab-icon {
    transform: translateY(-2px);
}

/* DASHBOARD VIEW STYLING */
.dashboard-greeting {
    margin-bottom: 20px;
}

.dashboard-greeting h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink-black);
}

.dashboard-greeting p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.stat-card {
    background-color: var(--surface-white);
    padding: 14px 8px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
}

.stat-card.due-today {
    border-color: rgba(224, 159, 159, 0.4);
}

.stat-card.new-leads {
    border-color: rgba(43, 118, 210, 0.15);
}

.stat-card.booked {
    border-color: rgba(36, 138, 61, 0.15);
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card.due-today .stat-num { color: #D32F2F; }
.stat-card.new-leads .stat-num { color: var(--status-new-text); }
.stat-card.booked .stat-num { color: var(--status-booked-text); }

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notification banner */
.action-banner {
    background: linear-gradient(135deg, var(--blush-pink) 0%, var(--blush-pink-medium) 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.banner-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-black);
}

.banner-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.banner-btn {
    border: none;
    background: var(--gold-btn-gradient);
    color: var(--ink-black);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--gold-shadow);
}

/* Horizontal Lead Carousel */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-black);
    letter-spacing: 0.5px;
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    cursor: pointer;
}

.horizontal-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.horizontal-carousel::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
}

.horizontal-card {
    background-color: var(--surface-white);
    border-radius: 16px;
    padding: 14px;
    min-width: 140px;
    width: 140px;
    flex-shrink: 0;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid var(--border-soft);
}

.card-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--ink-black);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-source {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Activity Feed */
.activity-feed {
    background-color: var(--surface-white);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--card-shadow);
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--blush-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-text {
    font-size: 12px;
    color: var(--ink-black);
    line-height: 1.4;
}

.activity-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* LEAD LIST VIEW */
.search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-white);
    border-radius: 12px;
    box-shadow: var(--input-shadow);
    color: var(--ink-black);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

/* Horizontal Filters */
.filter-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active {
    background-color: var(--gold);
    color: var(--surface-white);
    border-color: var(--gold);
    box-shadow: 0 4px 10px var(--gold-shadow);
}

/* Lead Row list (Swipe items) */
.lead-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-row-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #FF5A5A; /* Swipe delete background (red) */
}

.lead-row-back {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1;
}

.lead-row-front {
    position: relative;
    background-color: var(--surface-white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    transition: transform 0.2s ease-out;
    cursor: pointer;
    border: 1px solid var(--border-soft);
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--blush-pink-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-black);
}

.lead-info-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lead-row-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-black);
}

.lead-row-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new { background-color: var(--status-new); color: var(--status-new-text); }
.status-contacted { background-color: var(--status-contacted); color: var(--status-contacted-text); }
.status-followup { background-color: var(--status-followup); color: var(--status-followup-text); }
.status-booked { background-color: var(--status-booked); color: var(--status-booked-text); }
.status-purchased { background-color: var(--status-purchased); color: var(--status-purchased-text); }
.status-noresponse { background-color: var(--status-noresponse); color: var(--status-noresponse-text); }

/* Swipe animation class */
.lead-row-front.swiped {
    transform: translateX(-80px);
}

/* LEAD PROFILE VIEW */
.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: radial-gradient(circle at center, var(--blush-pink) 0%, var(--bg-cream) 100%);
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--ink-black);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px var(--gold-shadow);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-black);
    margin-bottom: 4px;
}

.profile-status-wrapper {
    margin-top: 10px;
}

/* Communication Actions Bar */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.action-circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: var(--surface-white);
    color: var(--gold-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-circle-btn:active {
    transform: scale(0.9);
    background-color: var(--blush-pink);
}

.action-circle-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile details block */
.profile-details {
    background-color: var(--surface-white);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: var(--ink-black);
    font-weight: 500;
    word-break: break-all;
}

.detail-value.notes {
    line-height: 1.5;
}

/* Inline status selector for profile */
.inline-status-picker {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-soft);
    cursor: pointer;
}

/* LEAD FORM VIEW */
.status-grid-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.status-picker-option {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    background-color: var(--bg-cream);
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.status-picker-option.active {
    border-color: transparent;
    color: #FFFFFF;
}

.status-picker-option[data-status="New"].active { background-color: var(--status-new-text); }
.status-picker-option[data-status="Contacted"].active { background-color: var(--status-contacted-text); }
.status-picker-option[data-status="Follow-up"].active { background-color: var(--status-followup-text); }
.status-picker-option[data-status="Booked"].active { background-color: var(--status-booked-text); }
.status-picker-option[data-status="Purchased"].active { background-color: var(--status-purchased-text); }
.status-picker-option[data-status="No response"].active { background-color: var(--status-noresponse-text); }

/* FOLLOW UP VIEW */
.followup-banner {
    background-color: var(--surface-white);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    border: 1px dashed var(--gold);
}

.followup-banner-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.followup-banner-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.followup-section {
    margin-bottom: 24px;
}

.followup-section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--ink-black);
    margin-bottom: 12px;
    border-left: 3px solid var(--gold);
    padding-left: 8px;
}

.followup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.followup-card {
    background-color: var(--surface-white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-soft);
}

.followup-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.followup-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-black);
}

.followup-date {
    font-size: 11px;
    font-weight: 600;
}

.followup-date.overdue {
    color: #D32F2F;
}

.followup-date.today {
    color: var(--status-followup-text);
}

.followup-date.upcoming {
    color: var(--text-muted);
}

.btn-complete-followup {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background-color: transparent;
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-complete-followup:active {
    transform: scale(0.85);
    background-color: var(--gold-light);
}

.btn-complete-followup svg {
    width: 14px;
    height: 14px;
}

/* SETTINGS VIEW */
.settings-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--surface-white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    text-align: center;
}

.settings-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--blush-pink-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--ink-black);
    margin-bottom: 12px;
}

.settings-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-black);
}

.settings-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-group {
    background-color: var(--surface-white);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-black);
}

.settings-value {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-danger {
    background: none;
    border: 1px solid #E09F9F;
    color: #C71B48;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-danger:active {
    background-color: rgba(224, 159, 159, 0.1);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 200px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.d-none { display: none !important; }

/* Background Doodads and Feminine Flourishes */
.doodad {
    position: absolute;
    pointer-events: none;
    font-size: 24px;
    opacity: 0.12;
    z-index: 1;
    user-select: none;
    animation: floatSlow 8s ease-in-out infinite;
}
.doodad-1 { top: 8%; left: 8%; animation-delay: 0s; }
.doodad-2 { top: 22%; right: 8%; animation-delay: 2s; font-size: 18px; }
.doodad-3 { bottom: 18%; left: 6%; animation-delay: 4s; font-size: 20px; }
.doodad-4 { bottom: 10%; right: 10%; animation-delay: 6s; }

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

/* Sparkle Animations for headers */
.sparkle-icon {
    display: inline-block;
    animation: sparkleSpin 4s linear infinite;
}

@keyframes sparkleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.spin {
    animation: simpleSpin 1s linear infinite;
}

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

/* Soft gold gradient border for profile avatar */
.profile-avatar {
    border: 3px solid #FFFFFF;
    outline: 2px solid var(--gold);
}

