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

:root {
    --brand-blue: #00A9E0;
    --brand-dark: #0077b5;
    --brand-light: #E0F7FF;
    --brand-orange: #FF5E00;
    --bg-color: #F0F4F8;
    --card-bg: #FFFFFF;
    --text-main: #1A202C;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --header-height: 70px;
    --sidebar-width: 320px;
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Traffic Colors */
    --traffic-low: #48BB78;
    --traffic-medium: #ECC94B;
    --traffic-high: #ED8936;
    --traffic-very-high: #F56565;
    --traffic-closed: #A0AEC0;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-header {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-dark));
    color: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.badge {
    background: var(--brand-orange);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.lang-switcher button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: rgba(255, 94, 0, 0.2);
    border-color: rgba(255, 94, 0, 0.4);
    color: white;
}

.logout-btn:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    width: 800px;
    max-width: 95%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.config-card {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.config-body {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-left: 4px solid var(--brand-blue);
    padding-left: 10px;
}

.header-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.toggle-btn {
    background: #EDF2F7;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.toggle-btn.active {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: 0 4px 10px rgba(0, 169, 224, 0.2);
}

.caisse-input {
    width: 100px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    text-align: right;
    background: #f8fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin-bottom: 0 !important;
}

.add-btn {
    background: #4FD1C5;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.add-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px dashed var(--brand-blue);
}

.add-form input[type="text"] {
    flex: 1;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.confirm-btn {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.mobility-badge {
    background: #EBF8FF;
    color: #3182CE;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- Tooltips --- */
.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.info-icon {
    background: #E2E8F0;
    color: #4A5568;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}

.tooltip-content {
    visibility: hidden;
    width: 280px;
    background-color: #2D3748;
    color: #fff;
    text-align: left;
    border-radius: 12px;
    padding: 1rem;
    position: absolute;
    z-index: 3000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: normal;
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.config-item {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.config-item strong {
    font-weight: 700;
}

input[type="range"] {
    accent-color: var(--brand-blue);
    width: 100%;
}

.traffic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.traffic-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background: #f8fafc;
}

.save-btn {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.app-main {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Smart Alerts V3 --- */
.smart-alerts-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.smart-alert {
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-premium);
    animation: slideDown 0.4s ease-out;
    border-left: 6px solid transparent;
}

.smart-alert.warning {
    background: #FFF5F5;
    border-left-color: #F56565;
    color: #742A2A;
}

.smart-alert.info {
    background: #EBF8FF;
    border-left-color: var(--brand-blue);
    color: #2A4365;
}

.smart-alert.error {
    background: #FFF5F5;
    border-left-color: #E53E3E;
    color: #742A2A;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-icon {
    font-size: 1.4rem;
}

.alert-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Top Controls --- */
.top-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-fill-btn {
    background: linear-gradient(135deg, var(--brand-orange), #FF8C00);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
    transition: all 0.3s ease;
}

.smart-fill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 0, 0.4);
}

/* --- Weekly Optimizer (Optimètre) --- */
.weekly-optimizer-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 2rem;
    border: 1px solid #E2E8F0;
}

.opti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.opti-title {
    display: flex;
    flex-direction: column;
}

.opti-title span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.opti-title strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
}

.opti-medal {
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.opti-progress-bg {
    background: #EDF2F7;
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.opti-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), #4FD1C5);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.opti-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.day-star {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.store-selector {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.store-selector select {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
}

/* --- Layout --- */
.layout-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 2rem;
}

/* --- Sidebar --- */
.employee-sidebar {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
}

.employee-sidebar h2 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.employee-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    cursor: grab;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.employee-item:hover {
    transform: translateX(5px);
    border-color: var(--brand-blue);
    background: white;
}

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

.emp-name {
    font-weight: 700;
    font-size: 1rem;
}

.sales-score {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.sales-score.top-seller {
    background: #C6F6D5;
    color: #22543D;
}

.sales-score.mid-seller {
    background: #EBF8FF;
    color: #2A4365;
}

.sales-score.low-seller {
    background: #EDF2F7;
    color: #4A5568;
}

.opt-tag {
    font-size: 0.65rem;
    color: var(--brand-orange);
    font-weight: 700;
    margin-top: 2px;
}

.other-store {
    opacity: 0.5;
    filter: grayscale(0.5);
    border-style: dashed;
}

/* --- Calendar --- */
.calendar-grid {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-premium);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.day-header {
    text-align: center;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

.grid-day {
    background: #f8fafc;
    border-radius: 20px;
    min-height: 240px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: background 0.3s;
}

.grid-day:hover {
    background: #f1f5f9;
}

.day-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.traffic-indicator {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 30px;
    color: white;
}

.day-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roi-warning {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #C53030;
    font-size: 0.65rem;
    padding: 6px;
    border-radius: 8px;
    font-weight: 700;
}

.roi-performance {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px;
    border-radius: 8px;
    text-align: center;
}

.roi-performance.good {
    background: #C6F6D5;
    color: #22543D;
}

.roi-performance.poor {
    background: #FEFCBF;
    color: #744210;
}

/* --- Shifts --- */
.shift {
    background: white;
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid var(--border-color);
}

.shift.star-shift {
    border-left-color: #F6AD55;
    background: #FFFAF0;
}

.shift.violation {
    border-left-color: #E53E3E !important;
    background: #FFF5F5 !important;
}

.err-tag {
    font-size: 0.6rem;
    color: #E53E3E;
    font-weight: 800;
    text-transform: uppercase;
}

.shift span:first-child {
    font-weight: 700;
    font-size: 0.85rem;
}

.shift-roi {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.shift-roi.high-loss {
    color: #E53E3E;
    font-weight: 800;
}

/* --- Stats --- */
.stats-dashboard {
    grid-column: span 2;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-premium);
    margin-top: 2rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.stats-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.perf-pill {
    background: #E2E8F0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

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

    .stats-dashboard {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .app-header {
        height: auto;
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 15px;
        text-align: center;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    #userEmail {
        width: 100%;
        margin-right: 0 !important;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .weekly-optimizer-container {
        padding: 1rem;
    }

    .opti-title strong {
        font-size: 1.5rem;
    }
}

/* --- Chatbot Styles --- */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
}

.chat-trigger {
    width: 65px;
    height: 65px;
    background: var(--brand-blue);
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 169, 224, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: visible;
}

.chat-trigger:hover {
    transform: scale(1.1);
    background: var(--brand-dark);
}

.trigger-icon {
    font-size: 1.8rem;
    color: white;
}

.trigger-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: var(--brand-blue);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.header-info strong {
    font-size: 1.1rem;
    display: block;
}

.header-info p {
    font-size: 0.75rem;
    opacity: 0.8;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.4;
}

.message.bot {
    background: white;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.message.user {
    background: var(--brand-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1.2rem;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-input-area input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    font-family: inherit;
    transition: border 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--brand-blue);
}

.chat-input-area .send-btn {
    background: var(--brand-blue);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.chat-input-area .send-btn:hover {
    background: var(--brand-dark);
}

/* --- Language Switcher Dropdown --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-orange);
    transform: translateY(-1px);
}

.lang-btn::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s;
    opacity: 0.7;
}

.lang-dropdown.active .lang-btn::after {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 140px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    transform-origin: top right;
    animation: dropDownFade 0.2s ease-out;
}

@keyframes dropDownFade {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lang-dropdown.active .lang-menu {
    display: flex;
}

.lang-option {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-option:hover {
    background: rgba(255, 94, 0, 0.1);
    color: var(--brand-orange);
}

/* --- Trial Expired Overlay --- */
.expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 11, 28, 0.98);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.expired-content {
    max-width: 500px;
    text-align: center;
    padding: 40px !important;
    border: 1px solid rgba(255, 94, 0, 0.3);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
    animation: trialSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes trialSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expired-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.expired-content h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2rem;
}

.expired-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.expired-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.expired-btns .btn-primary {
    background: var(--brand-orange);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.expired-btns .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-option.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.active::after {
    content: '✓';
    font-size: 0.8rem;
    color: var(--brand-orange);
}