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

:root {
    --black: #020408;
    --deep: #060d1a;
    --navy: #0a1628;
    --blue: #1e6fff;
    --blue-bright: #4d8fff;
    --white: #ffffff;
    --white-80: rgba(255,255,255,0.8);
    --white-50: rgba(255,255,255,0.5);
    --white-20: rgba(255,255,255,0.2);
    --white-10: rgba(255,255,255,0.08);
    --glass: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.12);
    --glass-hover: rgba(255,255,255,0.10);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(30,111,255,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(30,111,255,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: rgba(6,13,26,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 0; }

.sidebar-brand {
    padding: 32px 28px 28px;
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), #0a4fd4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(30,111,255,0.4);
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.brand-tag {
    font-size: 0.7rem;
    color: var(--white-50);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Language switcher styles */
.lang-switcher-wrapper { padding: 8px 12px 12px; }
.lang-switcher { position: relative; display: inline-block; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px; border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.04); color: var(--white-80); cursor: pointer;
}
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    background: rgba(6,13,26,0.98); border: 1px solid var(--glass-border); border-radius: 8px;
    padding: 6px; min-width: 180px; z-index: 999;
}
.lang-dropdown .lang-option { display: block; width: 100%; text-align: left; padding: 8px 10px; background: transparent; color: white; border: none; cursor: pointer; }
.lang-dropdown .lang-option:hover { background: rgba(255,255,255,0.08); }

.nav-body { padding: 20px 16px; flex: 1; }

.nav-group { margin-bottom: 28px; }

.nav-group-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-50);
    padding: 0 12px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--white-50);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: var(--white-10);
    color: var(--white-80);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(30,111,255,0.2), rgba(30,111,255,0.1));
    color: var(--white);
    border: 1px solid rgba(30,111,255,0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--blue);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--blue);
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white-20);
    flex-shrink: 0;
}

.nav-item.active .nav-dot {
    background: var(--blue);
    box-shadow: 0 0 6px var(--blue);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-live {
    background: rgba(30,111,255,0.16);
    color: #8fb7ff;
    border: none;
}

.badge-soon {
    background: rgba(255,255,255,0.08);
    color: var(--white-50);
    border: none;
}

.sidebar-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--glass-border);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--white-50);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* MAIN */
.main {
    margin-left: 280px;
    flex: 1;
    padding: 40px 48px;
    position: relative;
    z-index: 1;
}

.top-bar,
.topbar {
    margin-bottom: 32px;
}

.top-bar h1,
.topbar .page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.top-bar p,
.topbar .page-subtitle {
    font-size: 0.88rem;
    color: var(--white-50);
    margin-top: 6px;
    font-weight: 300;
}

/* TOP BAR */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    z-index: 100;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--white-50);
    margin-top: 4px;
    font-weight: 300;
}

/* Language switcher */
.lang-switcher-top { position: relative; }

.lang-toggle-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: var(--white-80);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.lang-toggle-top:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(30,111,255,0.35);
}

.lang-dropdown-top {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(6,13,26,0.97);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 8px;
    min-width: 210px;
    max-height: 340px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lang-dropdown-top::-webkit-scrollbar { width: 0; }

.lang-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    background: transparent;
    color: var(--white-80);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    transition: background 0.15s;
}

.lang-opt:hover { background: rgba(255,255,255,0.08); }

/* GLASS PANEL */
.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.panel,
.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* FORM STYLES */
.form-group { margin-bottom: 24px; }

label,
.form-group label,
.save-section label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-50);
    margin-bottom: 8px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-50);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: rgba(30,111,255,0.5);
    background: rgba(30,111,255,0.05);
    box-shadow: 0 0 0 3px rgba(30,111,255,0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(30,111,255,0.5);
    background: rgba(30,111,255,0.05);
    box-shadow: 0 0 0 3px rgba(30,111,255,0.1);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

.form-select option { background: #0a1628; color: white; }

select option { background: #0a1628; color: white; }

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* BUTTON */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 24px rgba(30,111,255,0.3);
}

.btn {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--blue), #0f56d8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 30px rgba(30,111,255,0.28);
}

.btn-submit:hover {
    background: var(--blue-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(30,111,255,0.4);
}

.btn:hover {
    background: var(--blue-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(30,111,255,0.4);
}

/* RESULT BOX */
.result-box {
    margin-top: 28px;
    padding: 28px;
    background: rgba(30,111,255,0.05);
    border: 1px solid rgba(30,111,255,0.2);
    border-radius: 16px;
    position: relative;
}

.result-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 16px;
}

.result-text {
    color: var(--white-80);
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 0.9rem;
    font-weight: 300;
}

.copy-btn {
    margin-top: 16px;
    padding: 8px 20px;
    background: transparent;
    color: var(--blue-bright);
    border: 1px solid rgba(30,111,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(30,111,255,0.1);
    border-color: var(--blue);
}

.action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    color: var(--white-80);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(30,111,255,0.3);
    transform: translateY(-1px);
}

/* PROFILE BANNER */
.profile-banner {
    background: rgba(30,111,255,0.1);
    border: 1px solid rgba(30,111,255,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--blue-bright);
    margin-bottom: 24px;
}

/* SAVE SECTION */
.save-section {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.save-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-50);
    margin-bottom: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.checkbox-label {
    font-size: 0.82rem;
    color: var(--white-50);
}

/* SECTION HEADER */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
    margin-left: 16px;
}

/* COLOR GRID */
.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.color-option {
    padding: 10px 8px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    color: white;
}

.color-option input { display: none; }
.color-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 12px rgba(30,111,255,0.3); }

/* TIP BOX */
.tip-box {
    background: rgba(30,111,255,0.06);
    border: 1px solid rgba(30,111,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--white-50);
    margin-bottom: 24px;
    line-height: 1.5;
}

.sms-tip {
    background: rgba(30,111,255,0.06);
    border: 1px solid rgba(30,111,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--white-50);
    margin-bottom: 24px;
    line-height: 1.5;
}

.translation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.text-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px;
}

.text-box p {
    color: var(--white-80);
    line-height: 1.7;
    white-space: pre-wrap;
}

.language-badge,
.char-count {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 14px;
}

.stats-grid,
.features-grid,
.language-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
}

.features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
}

.language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.feature-status-card,
.milestone-card,
.language-section {
    background: var(--glass);
    border: none;
    border-radius: 18px;
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-status-card,
.milestone,
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card {
    flex-direction: column;
    align-items: flex-start;
}

.icon,
.feature-icon,
.milestone-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30,111,255,0.2), rgba(30,111,255,0.08));
    border: 1px solid rgba(30,111,255,0.25);
    flex-shrink: 0;
}

.number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-card .number {
    letter-spacing: -0.04em;
}

.top-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.label,
.feature-info p,
.milestone-info p {
    color: var(--white-50);
    font-size: 0.85rem;
}

.feature-info,
.milestone-info {
    flex: 1;
}

.feature-info h3,
.milestone-card h3,
.language-section h3,
.milestone-info h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.feature-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.milestone-card h3,
.language-section h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature-status-card,
.milestone {
    position: relative;
    transition: all 0.25s ease;
}

.feature-status-card:hover,
.milestone:hover {
    border-color: rgba(30,111,255,0.28);
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.feature-status-card .feature-icon,
.stat-card .icon,
.milestone .milestone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-status-card .feature-icon svg,
.stat-card .icon svg,
.milestone .milestone-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--blue-bright);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-status-card .feature-icon svg.fill-icon,
.stat-card .icon svg.fill-icon,
.milestone .milestone-icon svg.fill-icon {
    fill: var(--blue-bright);
    stroke: none;
}

.status-badge,
.milestone-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-live,
.done {
    background: rgba(30,111,255,0.16);
    color: #8fb7ff;
    border: none;
}

.status-soon,
.pending {
    background: rgba(255,255,255,0.06);
    color: var(--white-50);
    border: none;
}

.milestone-card {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

.language-tag {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--white-80);
    text-align: center;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
        padding: 24px;
    }

    .row,
    .form-row,
    .stats-grid,
    .features-grid,
    .language-grid,
    .translation-grid {
        grid-template-columns: 1fr;
    }
}

.auth-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: min(100%, 520px);
    background: rgba(6, 13, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 36px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 14px;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--white-50);
    line-height: 1.6;
    margin-bottom: 28px;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--white-50);
    font-size: 0.92rem;
}

.auth-link {
    color: var(--blue-bright);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--white);
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.flash-message {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.flash-message.info {
    background: rgba(30, 111, 255, 0.08);
    border-color: rgba(30, 111, 255, 0.2);
    color: #9cc0ff;
}

.flash-message.success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.22);
    color: #8fe5b1;
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
    color: #ffb4b4;
}

/* ========================================= */
/* RTL OVERRIDES (Arabic, Urdu, etc) */
/* ========================================= */

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Background Gradients */
html[dir="rtl"] body::before {
    left: auto;
    right: -10%;
}
html[dir="rtl"] body::after {
    right: auto;
    left: -10%;
}

/* Sidebar */
html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--glass-border);
}

/* ========================================= */
/* LIGHT MODE OVERRIDES */
/* ========================================= */
body.light-mode {
    --black: #f0f4f8;
    --deep: #ffffff;
    --navy: #e2e8f0;
    --blue: #1e6fff;
    --blue-bright: #0a4fd4;
    --white: #0f172a;
    --white-80: rgba(15, 23, 42, 0.8);
    --white-50: rgba(15, 23, 42, 0.5);
    --white-20: rgba(15, 23, 42, 0.2);
    --white-10: rgba(15, 23, 42, 0.08);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.9);
}

body.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.85);
}

body.light-mode .lang-dropdown-top {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.light-mode .auth-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
}

body.light-mode .btn,
body.light-mode .btn-submit {
    color: #ffffff;
}

body.light-mode .lang-dropdown .lang-option,
body.light-mode select option,
body.light-mode .color-option {
    color: var(--white);
}

body.light-mode select option {
    background: var(--navy);
}

body.light-mode .theme-toggle {
    border-color: rgba(30,111,255,0.35);
}

/* Main */
html[dir="rtl"] .main {
    margin-left: 0;
    margin-right: 280px;
}

@media (max-width: 900px) {
    html[dir="rtl"] .main {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Nav Items */
html[dir="rtl"] .nav-item.active::before {
    left: auto;
    right: 0;
    border-radius: 2px 0 0 2px;
}
html[dir="rtl"] .nav-badge {
    margin-left: 0;
    margin-right: auto;
}

/* Section Line */
html[dir="rtl"] .section-line {
    margin-left: 0;
    margin-right: 16px;
}

/* Dropdowns */
html[dir="rtl"] .lang-dropdown {
    left: auto;
    right: 0;
}
html[dir="rtl"] .lang-dropdown-top {
    right: auto;
    left: 0;
}
html[dir="rtl"] .lang-dropdown .lang-option,
html[dir="rtl"] .lang-opt {
    text-align: right;
}

