/* ==========================================================================
   ANIMINGO BUSINESS - DESIGN SYSTEM & STYLESHEET
   100% Aligned with Flutter App (WarmTheme, DesignTokens, AppColors)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Flutter DesignTokens & AppColors */
    --color-primary: #FEA019;
    --color-primary-hover: #E88E0E;
    --color-primary-light: rgba(254, 160, 25, 0.12);
    --color-primary-glow: rgba(254, 160, 25, 0.28);
    --color-primary-gradient: linear-gradient(135deg, #FEA019 0%, #FF7A00 100%);
    --color-primary-gradient-subtle: linear-gradient(135deg, rgba(254, 160, 25, 0.12) 0%, rgba(255, 122, 0, 0.05) 100%);

    /* Warm Theme Surfaces & Backgrounds */
    --color-bg: #FAF9F6;
    --color-surface: #FFFFFF;
    --color-surface-hover: #FCFBF9;
    --color-surface-subtle: #F5F3EF;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-hover: rgba(254, 160, 25, 0.35);

    /* Text Colors */
    --color-text-primary: #2D2D2D;
    --color-text-secondary: #757575;
    --color-text-muted: #A0A0A0;
    --color-text-light: #FFFFFF;

    /* Accent & Brand Colors */
    --color-vibrant-blue: #5BCEE6;
    --color-primary-blue: #38A3DA;
    --color-playful-purple: #8B5DCC;
    --color-sunny-yellow: #FDD835;
    --color-lively-green: #009688;
    --color-snage-green: #89CA50;
    --color-gold: #D4AF37;
    --color-gold-bright: #FFB800;
    --color-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #D4AF37 100%);
    --color-silver-gradient: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 50%, #64748B 100%);
    --color-unicorn-pink: #EF5350;
    --color-error: #EF4444;
    --color-dark-blue: #2C3E50;

    /* Radii */
    --radius-card: 20px;
    --radius-modal: 20px;
    --radius-button: 14px;
    --radius-input: 16px;
    --radius-avatar: 14px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 36px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(254, 160, 25, 0.04);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 16px 40px -8px rgba(254, 160, 25, 0.12), 0 0 0 1.5px rgba(254, 160, 25, 0.35);
    --shadow-primary-glow: 0 8px 24px rgba(254, 160, 25, 0.3);
    --shadow-gold-glow: 0 8px 24px rgba(255, 184, 0, 0.35);

    /* Fonts */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Plus Jakarta Sans', ui-monospace, SFMono-Regular, monospace;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    /* Calibrated Base Scale (High-Density Dashboard, 87.5% - 90% golden ratio) */
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 1536px) {
    html {
        font-size: 14.5px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Warm Ambient Mesh Background */
.warm-mesh-bg, .orange-mesh {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--color-bg);
}

.warm-mesh-bg::before, .orange-mesh::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(at 10% 15%, rgba(254, 160, 25, 0.07) 0px, transparent 45%),
        radial-gradient(at 90% 10%, rgba(255, 122, 0, 0.05) 0px, transparent 40%),
        radial-gradient(at 85% 85%, rgba(91, 206, 230, 0.05) 0px, transparent 45%),
        radial-gradient(at 15% 90%, rgba(139, 93, 204, 0.04) 0px, transparent 40%);
    background-size: cover;
    background-repeat: no-repeat;
}

/* ==========================================================================
   CARDS & SURFACES (Flutter DesignTokens Style)
   ========================================================================== */
.animingo-card, .dark-card, .light-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.animingo-card-hover:hover, .dark-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(254, 160, 25, 0.25);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
}

.gold-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFDF7 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.12);
}

.gold-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 16px 40px -6px rgba(212, 175, 55, 0.22);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn-primary {
    background: var(--color-primary-gradient);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: var(--radius-button);
    padding: 9px 18px;
    border: none;
    box-shadow: var(--shadow-primary-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 24px rgba(254, 160, 25, 0.38);
    filter: brightness(1.04);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(254, 160, 25, 0.3);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    font-weight: 600;
    border-radius: var(--radius-button);
    padding: 8px 16px;
    border: 1.5px solid #E5E7EB;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background-color: #FAF9F6;
    border-color: rgba(254, 160, 25, 0.4);
    color: var(--color-primary);
    transform: translateY(-1px);
}

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


.btn-gold {
    background: var(--color-gold-gradient);
    color: #382400;
    font-weight: 800;
    border-radius: var(--radius-button);
    padding: 9px 18px;
    border: none;
    box-shadow: var(--shadow-gold-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.875rem;
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 26px rgba(255, 184, 0, 0.45);
    filter: brightness(1.05);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-radius: var(--radius-button);
    padding: 7px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-text-primary);
}

/* ==========================================================================
   INPUTS & FORM CONTROLS (Flutter App CustomTextField Alignment)
   ========================================================================== */
.animingo-input,
.input-field,
.dark-input,
input[type="text"].animingo-input,
input[type="email"].animingo-input,
input[type="password"].animingo-input,
input[type="tel"].animingo-input,
input[type="url"].animingo-input,
input[type="number"].animingo-input,
input[type="date"].animingo-input,
input[type="datetime-local"].animingo-input,
input[type="time"].animingo-input {
    width: 100%;
    background-color: #F6F7F9;
    border: 1.5px solid #E8EBEF;
    border-radius: var(--radius-input);
    padding: 11px 16px;
    color: var(--color-text-primary);
    font-family: var(--font-main);
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    line-height: 1.45;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Date & Time Specific Input Enhancements */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    color-scheme: light;
}

input[type="date"].animingo-input,
input[type="datetime-local"].animingo-input,
input[type="time"].animingo-input {
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.01em;
}

/* Custom Calendar Icon Indicator */
input[type="date"].animingo-input::-webkit-calendar-picker-indicator,
input[type="datetime-local"].animingo-input::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FEA019' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='3' ry='3'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M16 18h.01'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 17px 17px;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
}

/* Custom Time Icon Indicator */
input[type="time"].animingo-input::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FEA019' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 17px 17px;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
}

input[type="date"].animingo-input:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"].animingo-input:hover::-webkit-calendar-picker-indicator,
input[type="time"].animingo-input:hover::-webkit-calendar-picker-indicator {
    background-color: rgba(254, 160, 25, 0.14);
    opacity: 1;
    transform: scale(1.08);
}

/* Inner text editing styling */
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text {
    color: var(--color-text-muted);
    padding: 0 1px;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-radius: 4px;
}

.animingo-input::placeholder,
.input-field::placeholder,
.dark-input::placeholder {
    color: #9CA3AF;
    font-weight: 450;
}

.animingo-input:hover:not(:disabled),
.input-field:hover:not(:disabled),
.dark-input:hover:not(:disabled) {
    background-color: #F0F2F5;
    border-color: rgba(254, 160, 25, 0.35);
}

.animingo-input:focus,
.input-field:focus,
.dark-input:focus {
    background-color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3.5px var(--color-primary-light), 0 2px 8px rgba(0, 0, 0, 0.03);
    color: #1A1A1A;
}

.animingo-input:disabled,
.input-field:disabled,
.dark-input:disabled {
    background-color: #ECEEF2;
    border-color: #E2E5EA;
    color: #9AA2B1;
    cursor: not-allowed;
    opacity: 0.85;
}

/* ==========================================================================
   ANIMINGO DATEPICKER WIDGET (WarmTheme & Flutter Design Alignment)
   ========================================================================== */
.animingo-datepicker-widget {
    background: #FFFFFF;
    border: 1.5px solid #EAECEF;
    border-radius: var(--radius-card);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.animingo-datepicker-widget:hover {
    border-color: rgba(254, 160, 25, 0.35);
}

/* Preset Shortcuts */
.dp-shortcuts {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ECEEF2;
    scrollbar-width: none;
}

.dp-shortcuts::-webkit-scrollbar {
    display: none;
}

.dp-pill {
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    background: #F6F7F9;
    color: var(--color-text-secondary);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
}

.dp-pill:hover {
    background: #FFF4E6;
    color: var(--color-primary);
    border-color: rgba(254, 160, 25, 0.4);
    transform: translateY(-1px);
}

.dp-pill.active {
    background: var(--color-primary-gradient);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(254, 160, 25, 0.35);
}

/* Header & Month Navigation */
.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dp-month-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.dp-year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 8px;
}

.dp-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #F6F7F9;
    border: 1px solid #E8EBEF;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.dp-nav-btn:hover:not(:disabled) {
    background: #FFFFFF;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(254, 160, 25, 0.2);
    transform: scale(1.05);
}

.dp-nav-btn:disabled,
.dp-nav-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #F6F7F9;
    border-color: #E8EBEF;
    color: #9CA3AF;
    transform: none;
    box-shadow: none;
}

/* Weekdays */
.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    padding: 0 2px;
}

/* Days Grid */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.dp-day {
    position: relative;
    aspect-ratio: 1;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.dp-day:hover:not(:disabled):not(.empty):not(.past):not(.selected) {
    background: #FFF7ED;
    color: var(--color-primary);
    border-color: rgba(254, 160, 25, 0.4);
    transform: scale(1.08);
    z-index: 2;
}

.dp-day.today:not(.selected) {
    border-color: var(--color-primary);
    background: #FFFDF9;
    color: var(--color-primary);
    font-weight: 800;
}

.dp-today-dot {
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.dp-day.selected {
    background: var(--color-primary-gradient) !important;
    color: #FFFFFF !important;
    font-weight: 900;
    border-color: transparent !important;
    box-shadow: 0 3px 12px rgba(254, 160, 25, 0.42);
    transform: scale(1.06);
    z-index: 3;
}

.dp-day.past {
    color: #C2C6CE;
    cursor: not-allowed;
    background: #FAFAFA;
    opacity: 0.6;
}

.dp-day.empty {
    cursor: default;
    background: transparent;
    pointer-events: none;
}

/* Selected Date Summary Box */
.dp-summary {
    background: #FFF9F2;
    border: 1.5px solid rgba(254, 160, 25, 0.25);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dp-summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--color-primary-gradient);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(254, 160, 25, 0.3);
    flex-shrink: 0;
}

.dp-summary-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.dp-summary-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.3;
}

/* ==========================================================================
   FLUTTER-STYLE DATEPICKER DIALOG & TRIGGER COMPONENTS
   ========================================================================== */
.animingo-date-trigger {
    background-color: #F6F7F9;
    border: 1.5px solid #E8EBEF;
    border-radius: var(--radius-input);
    padding: 10px 14px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

.animingo-date-trigger:hover {
    background-color: #FFFDF9;
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(254, 160, 25, 0.12);
    transform: translateY(-1px);
}

.animingo-dp-dialog {
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
    background: #FFFFFF;
    overflow: hidden;
}

.animingo-dp-header {
    background: linear-gradient(135deg, #FEA019 0%, #FF7A00 100%);
    min-height: 105px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.animingo-dp-day {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: transparent;
    border: 1.5px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    outline: none;
    position: relative;
}

.animingo-dp-day:hover:not(:disabled):not(.selected):not(.empty):not(.past) {
    background-color: #FFF4E6;
    color: var(--color-primary);
    transform: scale(1.12);
}

.animingo-dp-day.selected {
    background: var(--color-primary-gradient) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(254, 160, 25, 0.42);
    transform: scale(1.08);
}

.animingo-dp-day.today:not(.selected) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 800;
}

.animingo-dp-day.past,
.animingo-dp-day:disabled {
    color: #CBD5E1;
    cursor: not-allowed;
    background: transparent;
    opacity: 0.65;
}

.animingo-dp-day.empty {
    cursor: default;
    pointer-events: none;
}

.animingo-dp-year-item {
    padding: 10px 8px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text-primary);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.18s ease;
}

.animingo-dp-year-item:hover {
    background: #FFF4E6;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.animingo-dp-year-item.selected {
    background: var(--color-primary-gradient);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 3px 10px rgba(254, 160, 25, 0.35);
}

/* Textarea styling */
textarea.animingo-input,
textarea.input-field,
textarea.dark-input {
    min-height: 96px;
    resize: vertical;
    border-radius: 16px;
    padding: 12px 16px;
    line-height: 1.55;
}

/* Custom Select Dropdowns */
select.animingo-input,
select.input-field,
select.dark-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23757575'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}

select.animingo-input:focus,
select.input-field:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FEA019'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'%3e%3c/path%3e%3c/svg%3e");
}

/* Compact input variant (for time, slots, numbers) */
.animingo-input-sm {
    padding: 8px 12px;
    font-size: 0.8125rem;
    border-radius: 12px;
}

/* Input group with icon support - orange focus accent on leading icon */
.relative:has(.input-field:focus) > div > i,
.relative:has(.animingo-input:focus) > div > i,
.relative:has(.input-field:focus) > i,
.relative:has(.animingo-input:focus) > i {
    color: #FEA019 !important;
    transition: color 0.2s ease;
}

/* OTP PIN inputs */
.otp-box,
.mfa-otp-input {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background-color: #F6F7F9;
    border: 2px solid #E8EBEF;
    border-radius: 16px;
    color: #2D2D2D;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-box:hover,
.mfa-otp-input:hover {
    background-color: #F0F2F5;
    border-color: rgba(254, 160, 25, 0.35);
}

.otp-box:focus,
.mfa-otp-input:focus {
    background-color: #FFFFFF;
    border-color: #FEA019;
    box-shadow: 0 0 0 4px rgba(254, 160, 25, 0.18), 0 4px 12px rgba(254, 160, 25, 0.1);
    transform: translateY(-1px);
}

/* Switch Toggle Component */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* ==========================================================================
   NAVIGATION & SIDEBAR
   ========================================================================== */
.dark-sidebar {
    background-color: #FFFFFF;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

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

.sidebar-closed {
    transform: translateX(-100%);
}

@media (min-width: 768px) {
    .sidebar-closed {
        transform: translateX(0);
    }
}

.dark-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 40;
}

.nav-item {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 2px 0;
    position: relative;
    font-size: 0.85rem;
}

.nav-item i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    background-color: #FFF8EE;
    color: var(--color-primary);
    transform: translateX(2px);
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active {
    background: var(--color-primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(254, 160, 25, 0.35);
    font-weight: 700;
}

.nav-item.active i {
    color: #FFFFFF;
}

/* Tab Pills (matching Flutter pill selector) */
.pill-tab {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.pill-tab.active {
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(254, 160, 25, 0.32);
}

.pill-tab:not(.active) {
    background-color: #FFFFFF;
    color: var(--color-text-secondary);
    border-color: #E5E7EB;
    box-shadow: var(--shadow-sm);
}

.pill-tab:not(.active):hover {
    color: var(--color-primary);
    border-color: rgba(254, 160, 25, 0.3);
    background-color: #FFFDF9;
    transform: translateY(-1px);
}

/* ==========================================================================
   STATUS BADGES & CHIPS
   ========================================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-confirmed {
    background-color: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}
.status-confirmed .status-badge-dot {
    background-color: #10B981;
    box-shadow: 0 0 6px #10B981;
}

.status-pending {
    background-color: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}
.status-pending .status-badge-dot {
    background-color: #F59E0B;
    box-shadow: 0 0 6px #F59E0B;
}

.status-completed {
    background-color: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}
.status-completed .status-badge-dot {
    background-color: #9CA3AF;
}

.status-rescheduling {
    background-color: #FAF5FF;
    color: #7E22CE;
    border: 1px dashed #D8B4FE;
}
.status-rescheduling .status-badge-dot {
    background-color: #A855F7;
    box-shadow: 0 0 6px #A855F7;
}

.status-cancelled {
    background-color: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}
.status-cancelled .status-badge-dot {
    background-color: #EF4444;
}

/* Plan Badges */
.badge-gold {
    background: var(--color-gold-gradient);
    color: #4A3200;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3);
}

.badge-silver {
    background: var(--color-silver-gradient);
    color: #1E293B;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-base {
    background-color: #F1F5F9;
    color: #64748B;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   CALENDAR STYLES (Ultra-Modern)
   ========================================================================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background-color: #E5E7EB;
    border: 1.5px solid #E5E7EB;
}

.calendar-day-header {
    background-color: #FFFFFF;
    padding: 14px 8px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.06em;
}

.calendar-day {
    background-color: #FFFFFF;
    min-height: 125px;
    padding: 8px;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #FFFDF9;
    box-shadow: inset 0 0 0 2px rgba(254, 160, 25, 0.4);
    z-index: 5;
}

.calendar-day::after {
    content: '+';
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 16px;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    font-weight: 800;
    line-height: 1;
}

.calendar-day:hover::after {
    opacity: 0.6;
    transform: scale(1.15);
}

.calendar-day.past {
    background-color: #F9FAFB;
    cursor: default;
    opacity: 0.65;
}

.calendar-day.past:hover {
    background-color: #F9FAFB;
    box-shadow: none;
}

.calendar-day.past::after {
    display: none !important;
}

.calendar-day.empty {
    background-color: #FAF9F6;
    opacity: 0.45;
    pointer-events: none;
}

.calendar-day.today {
    background-color: #FFF8EE;
    border: 1.5px solid var(--color-primary);
}

.calendar-day.today .day-number {
    background: var(--color-primary-gradient);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(254, 160, 25, 0.4);
}

.event-chip {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.event-chip:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.event-chip span {
    pointer-events: none;
}

.events-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    scrollbar-width: none;
}

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

/* Responsive Mobile Calendar */
@media (max-width: 768px) {
    .calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .calendar-day-header {
        display: none;
    }

    .calendar-day {
        min-height: auto;
        border-radius: 18px;
        background-color: #FFFFFF;
        border: 1px solid #E5E7EB;
        padding: 16px !important;
        box-shadow: var(--shadow-sm);
    }

    .calendar-day.empty {
        display: none;
    }

    .calendar-day::before {
        content: attr(data-mobile-date);
        display: block;
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--color-primary);
        margin-bottom: 10px;
    }

    .calendar-day > div.text-right {
        display: none !important;
    }
}

/* ==========================================================================
   TICKET COUPON & PHONE MOCKUP (GOLD FEATURES)
   ========================================================================== */
.ticket-coupon {
    background: #FFFFFF;
    border-radius: 20px;
    position: relative;
    border: 2px dashed rgba(254, 160, 25, 0.4);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ticket-coupon::before, .ticket-coupon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background-color: var(--color-bg);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ticket-coupon::before { left: -12px; }
.ticket-coupon::after { right: -12px; }

/* Phone Mockup for Push Notification Preview */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1C1C1E;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 2px #3A3A3C;
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2C3E50 0%, #000000 100%);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.phone-notification-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 12px 14px;
    color: #1C1C1E;
    margin: 20px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: slideDownNotification 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   OTP / MFA STYLES (Login & Register)
   ========================================================================== */
.otp-box {
    width: 52px;
    height: 64px;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    background: #FAF9F6;
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-mono);
    text-align: center;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-primary);
}

.otp-box:focus {
    border-color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px var(--color-primary-light);
    transform: scale(1.04);
}

.otp-box.filled {
    border-color: var(--color-primary);
    background: #FFFDF9;
    box-shadow: 0 4px 12px rgba(254, 160, 25, 0.15);
}

.otp-box.error {
    border-color: var(--color-error);
    animation: shake 0.4s ease;
}

.timer-ring {
    transform: rotate(-90deg);
}

.timer-ring circle {
    transition: stroke-dashoffset 1s linear;
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */
.fade-in, .animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in, .animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes slideDownNotification {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(254, 160, 25, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(254, 160, 25, 0); }
    100% { box-shadow: 0 0 0 0 rgba(254, 160, 25, 0); }
}

.pulse-primary {
    animation: pulseGlow 2s infinite;
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}