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

:root {
    --bg: #070b14;
    --bg-soft: #0c1220;
    --card: rgba(15, 23, 42, .78);
    --border: rgba(148, 163, 184, .13);
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #4f8cff;
    --blue-light: #6ea8ff;
    --purple: #8b5cf6;
    --green: #22c55e;
    --red: #ef4444;
    --accent: #4f8cff;
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -20%, rgba(79, 140, 255, .14), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.background-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .12;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    background: var(--blue);
    top: 150px;
    right: -250px;
}

.glow-two {
    background: var(--purple);
    bottom: 100px;
    left: -250px;
}

/* Header */
.site-header {
    width: min(1100px, calc(100% - 30px));
    margin: auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 100;
}

.brand {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -.4px;
}

.brand-mail-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #3f6fc9);
    box-shadow: 0 10px 30px rgba(79, 140, 255, .2);
}

.brand-mail-icon svg {
    width: 22px;
    height: 22px;
    stroke: #090c13;
    stroke-width: 1.8;
}

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

.language-wrap {
    position: relative;
}

.language-select {
    min-width: 132px;
    appearance: none;
    border: 1px solid rgba(79, 140, 255, .25);
    border-radius: 12px;
    padding: 9px 32px 9px 12px;
    color: #e5e7eb;
    background:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 15px) 50% / 6px 6px no-repeat,
        linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,
        rgba(15, 23, 42, .75);
    cursor: pointer;
    outline: none;
}

.language-select:focus {
    border-color: rgba(79, 140, 255, .65);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .08);
}

.menu-toggle {
    width: 43px;
    height: 43px;
    border: 1px solid rgba(79, 140, 255, .25);
    border-radius: 12px;
    background: rgba(15, 23, 42, .78);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: .25s;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #6ea8ff;
    transition: .25s;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 140, 255, .6);
    background: rgba(79, 140, 255, .08);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 12, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 80;
}

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

.main-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    min-height: 330px;
    max-height: 540px;
    padding: 85px 20px 24px;
    background:
        radial-gradient(circle at 15% 0%, rgba(79, 140, 255, .13), transparent 35%),
        linear-gradient(145deg, rgba(13, 19, 33, .97), rgba(5, 9, 18, .98));
    border-bottom: 1px solid rgba(79, 140, 255, .25);
    border-radius: 0 0 26px 26px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .5);
    transform: translateY(-105%);
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
    z-index: 90;
    overflow: auto;
}

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

.drawer-inner {
    width: min(760px, 100%);
    margin: auto;
}

.drawer-heading {
    text-align: center;
    margin-bottom: 18px;
}

.drawer-kicker {
    color: #8b9fff;
    font-size: .7rem;
    font-weight: 800;
}

.drawer-heading h2 {
    margin-top: 2px;
    font-size: 1.35rem;
}

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

.drawer-link {
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px 1fr 20px;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #e5e7eb;
    text-decoration: none;
    text-align: start;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(30, 41, 59, .65), rgba(15, 23, 42, .4));
    cursor: pointer;
    transition: .25s ease;
}

.drawer-link:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 140, 255, .45);
    background: linear-gradient(135deg, rgba(79, 140, 255, .12), rgba(79, 140, 255, .08));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.drawer-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #6ea8ff;
    background: rgba(79, 140, 255, .1);
    border: 1px solid rgba(79, 140, 255, .15);
    font-weight: 900;
}

.drawer-arrow {
    color: #7f8ea5;
    transition: .2s;
}

.drawer-link:hover .drawer-arrow {
    color: #6ea8ff;
    transform: translate(2px, -2px);
}

/* Container */
.container {
    width: min(900px, calc(100% - 30px));
    margin: auto;
}

/* Hero */
.hero {
    text-align: center;
    padding: 55px 0 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(79, 140, 255, .2);
    background: rgba(79, 140, 255, .07);
    color: var(--blue-light);
    border-radius: 50px;
    font-size: .75rem;
}

.hero-badge span:first-child {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero h1 {
    margin-top: 20px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 strong {
    display: block;
    background: linear-gradient(90deg, var(--blue-light), #9d7aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 620px;
    margin: 20px auto 35px;
    color: var(--muted);
    font-size: .95rem;
}

/* Mail Card */
.mail-card {
    background: linear-gradient(145deg, rgba(20, 30, 50, .9), rgba(9, 14, 26, .95));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35), inset 0 1px rgba(255,255,255,.03);
    text-align: start;
}

.mail-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.small-label {
    display: block;
    color: var(--muted);
    font-size: .72rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #86efac;
    font-size: .7rem;
}

.status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.shield {
    font-size: 1.3rem;
    opacity: .8;
}

/* Email */
.email-container {
    display: flex;
    padding: 5px;
    background: #050811;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 13px;
}

.email-container input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 12px;
    font-size: .95rem;
    direction: ltr;
    text-align: left;
}

.copy-btn {
    border: none;
    padding: 0 20px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--blue), #3974df);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(79, 140, 255, .3);
}

/* Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 12px;
}

.action-btn {
    min-height: 46px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .12);
    background: rgba(30, 41, 59, .6);
    color: #cbd5e1;
    cursor: pointer;
    font-size: .82rem;
    transition: .2s;
}

.action-btn:hover {
    border-color: rgba(79, 140, 255, .5);
    background: rgba(79, 140, 255, .08);
    color: white;
}

.action-btn.primary {
    border-color: rgba(79, 140, 255, .35);
    background: rgba(79, 140, 255, .1);
    color: #8db7ff;
}

.action-btn.active {
    border-color: rgba(79, 140, 255, .4);
}

.action-btn.danger:hover {
    border-color: rgba(239, 68, 68, .4);
    color: #fca5a5;
}

.action-btn span:first-child {
    margin-inline-end: 5px;
}

/* Inbox */
.inbox-panel {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 17px;
    border: 1px solid rgba(79, 140, 255, .2);
    background: rgba(9, 14, 26, .9);
    transition: .3s ease;
}

.inbox-panel.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    border: 0;
}

.inbox-header {
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, .4);
}

.inbox-header strong {
    display: block;
    font-size: .9rem;
}

.inbox-header small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
}

.inbox-count {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(79, 140, 255, .12);
    color: #8db7ff;
    font-size: .75rem;
}

.inbox-toolbar {
    padding: 12px 20px 0;
}

.search-box {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 12px;
    background: rgba(5, 8, 17, .75);
    transition: .2s;
}

.search-box:focus-within {
    border-color: rgba(79, 140, 255, .5);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .06);
}

.search-box > span {
    color: var(--blue-light);
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font-size: .78rem;
}

.search-box input::placeholder {
    color: #64748b;
}

.clear-search {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

.search-box:focus-within .clear-search,
.clear-search.visible {
    opacity: 1;
    pointer-events: auto;
}

.clear-search:hover {
    color: white;
    background: rgba(148, 163, 184, .1);
}

.inbox-messages {
    padding: 20px;
    min-height: 150px;
}

.empty-inbox {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--muted);
}

.empty-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(79, 140, 255, .08);
    color: var(--blue-light);
}

.empty-inbox strong {
    color: #cbd5e1;
    font-size: .85rem;
}

.empty-inbox p {
    font-size: .7rem;
}

.no-results {
    padding: 25px 10px;
    text-align: center;
    color: var(--muted);
    font-size: .75rem;
}

.message-item {
    position: relative;
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 11px;
    background: rgba(30, 41, 59, .55);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .78rem;
    cursor: context-menu;
    user-select: none;
    -webkit-user-select: none;
    transition: .2s;
}

.message-item:last-child {
    margin-bottom: 0;
}

.message-item:hover {
    border-color: rgba(79, 140, 255, .3);
    transform: translateY(-1px);
}

.message-item.pinned {
    border-color: rgba(79, 140, 255, .45);
    background: linear-gradient(135deg, rgba(79, 140, 255, .08), rgba(30, 41, 59, .58));
}

.message-item strong {
    color: white;
    display: block;
    padding-inline-end: 30px;
}

.message-item b {
    color: #dbeafe;
    display: block;
    margin-top: 2px;
}

.message-item .message-body {
    margin-top: 3px;
}

.message-pin {
    position: absolute;
    top: 9px;
    inset-inline-end: 10px;
    font-size: .95rem;
    line-height: 1;
}

/* Context menu */
.message-context-menu {
    position: fixed;
    width: 190px;
    padding: 6px;
    display: none;
    z-index: 1000;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 13px;
    background: rgba(11, 16, 28, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
}

.message-context-menu.open {
    display: block;
    animation: contextIn .15s ease-out;
}

@keyframes contextIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(-3px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message-context-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 9px;
    background: transparent;
    color: #dbe4f0;
    cursor: pointer;
    text-align: start;
    font-size: .78rem;
}

.message-context-menu button:hover {
    background: rgba(79, 140, 255, .1);
    color: white;
}

.message-context-menu button:last-child:hover {
    background: rgba(239, 68, 68, .08);
    color: #fecaca;
}

/* Ads */
.ad-space {
    min-height: 90px;
    margin: 30px 0;
    border: 1px dashed rgba(148, 163, 184, .18);
    border-radius: 12px;
    background: rgba(15, 23, 42, .35);
    display: grid;
    place-items: center;
    color: #475569;
    font-size: .7rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0 65px;
}

.feature-card {
    display: flex;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(15, 23, 42, .5);
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1rem;
}

.feature-icon.blue { background: rgba(79, 140, 255, .12); }
.feature-icon.purple { background: rgba(139, 92, 246, .12); }
.feature-icon.green { background: rgba(34, 197, 94, .1); }

.feature-card h3 {
    font-size: .85rem;
    margin-bottom: 3px;
}

.feature-card p {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.6;
}

/* Sections */
.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-label {
    color: var(--blue-light);
    font-size: .7rem;
    font-weight: 700;
}

.section-heading h2 {
    margin: 5px 0;
    font-size: 1.65rem;
}

.section-heading p {
    color: var(--muted);
    font-size: .78rem;
}

/* Articles */
.articles-section {
    margin-bottom: 30px;
}

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

.article-card {
    position: relative;
    padding: 22px;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 23, 42, .9), rgba(9, 14, 26, .8));
    transition: .25s;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 140, 255, .25);
}

.article-number {
    position: absolute;
    top: 10px;
    inset-inline-start: 15px;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255,255,255,.025);
}

.article-tag {
    color: var(--blue-light);
    font-size: .65rem;
}

.article-card h3 {
    margin: 10px 0;
    font-size: .98rem;
    line-height: 1.6;
}

.article-card p {
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.7;
}

.article-card a {
    display: inline-flex;
    gap: 7px;
    margin-top: 15px;
    color: var(--blue-light);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 700;
}

/* Guides */
.guides-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-bottom: 30px;
}

.guide-box {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, .55);
}

.guide-tag {
    color: var(--purple);
    font-size: .65rem;
    font-weight: 700;
}

.guide-box h2 {
    margin: 7px 0 14px;
    font-size: 1.05rem;
}

.guide-box h3 {
    margin-top: 17px;
    font-size: .85rem;
    color: #dbeafe;
}

.guide-box p,
.guide-box li {
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.8;
}

.guide-box ul {
    padding-inline-start: 18px;
    margin-top: 10px;
}

.guide-box li {
    margin-bottom: 4px;
}

/* FAQ */
.faq-section {
    margin: 70px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(15, 23, 42, .55);
}

.faq-item summary {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-size: .82rem;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span:last-child {
    flex: 0 0 auto;
    color: var(--blue-light);
    font-size: 1.1rem;
    transition: .2s;
}

.faq-item[open] summary span:last-child {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 16px 16px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
}

.footer-brand {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
}

footer p {
    margin: 5px 0 10px;
    font-size: .7rem;
}

footer span {
    font-size: .65rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 80px);
    opacity: 0;
    padding: 10px 17px;
    border-radius: 10px;
    background: #172033;
    border: 1px solid rgba(79, 140, 255, .3);
    color: white;
    font-size: .75rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    transition: .3s;
    z-index: 1200;
    pointer-events: none;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* RTL/LTR adjustments */
html[dir="ltr"] .language-select {
    padding: 9px 12px 9px 32px;
    background:
        linear-gradient(45deg, var(--accent) 50%, transparent 50%) 15px 50% / 6px 6px no-repeat,
        linear-gradient(135deg, transparent 50%, var(--accent) 50%) 11px 50% / 6px 6px no-repeat,
        rgba(15, 23, 42, .75);
}

html[dir="ltr"] .mail-card,
html[dir="ltr"] .inbox-header,
html[dir="ltr"] .message-item {
    text-align: left;
}

/* Responsive */
@media (max-width: 700px) {
    .site-header {
        padding: 14px 0;
    }

    .language-select {
        min-width: 118px;
        font-size: .78rem;
    }

    .main-drawer {
        min-height: 390px;
    }

    .drawer-links {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 35px;
    }

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

    .articles-grid,
    .guides-section {
        grid-template-columns: 1fr;
    }

    .mail-card {
        padding: 15px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 430px) {
    .site-header {
        width: calc(100% - 22px);
    }

    .container {
        width: calc(100% - 22px);
    }

    .brand {
        font-size: 1.05rem;
    }

    .brand-mail-icon {
        width: 34px;
        height: 34px;
    }

    .language-select {
        min-width: 105px;
        padding-inline: 8px;
        font-size: .7rem;
    }

    .email-container input {
        font-size: .78rem;
    }

    .copy-btn {
        padding: 0 13px;
    }

    .action-btn {
        font-size: .72rem;
    }

    .message-context-menu {
        width: 175px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Temp-Ora luxury language control */
.language-trigger {
    min-width: 142px;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(79, 140, 255, .32);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(79, 140, 255, .12), rgba(15, 23, 42, .82));
    color: #dbe7ff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.18);
    transition: .25s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(79, 140, 255, .7);
    background: linear-gradient(145deg, rgba(79, 140, 255, .18), rgba(15, 23, 42, .9));
    box-shadow: 0 12px 34px rgba(79, 140, 255, .12);
}

.language-trigger-flag {
    font-size: 1.05rem;
}

.language-trigger-text {
    font-weight: 800;
}

.language-trigger-chevron {
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-2px);
}

/* Header accents */
.brand-mail-icon,
.menu-toggle {
    border-color: rgba(79, 140, 255, .38);
}

.menu-toggle span {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(79, 140, 255, .2);
}

.menu-toggle:hover {
    border-color: rgba(79, 140, 255, .75);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .06), 0 10px 30px rgba(79, 140, 255, .1);
}

/* Language modal */
.language-modal,
.confirm-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .25s ease;
    z-index: 1500;
}

.language-modal.open,
.confirm-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.language-modal-backdrop,
.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 12, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-card,
.confirm-card {
    position: relative;
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid rgba(79, 140, 255, .28);
    border-radius: 25px;
    background:
        radial-gradient(circle at 50% 0%, rgba(79, 140, 255, .14), transparent 42%),
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(5, 9, 18, .98));
    box-shadow: 0 30px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
    transform: translateY(16px) scale(.97);
    transition: .3s cubic-bezier(.22,1,.36,1);
    text-align: center;
}

.language-modal.open .language-card,
.confirm-modal.open .confirm-card {
    transform: translateY(0) scale(1);
}

.language-modal-close {
    position: absolute;
    top: 13px;
    inset-inline-end: 13px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(148,163,184,.07);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.25rem;
    transition: .2s;
}

.language-modal-close:hover {
    color: white;
    background: rgba(214,167,93,.12);
}

.language-card-icon,
.confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(214,167,93,.25), rgba(214,167,93,.06));
    border: 1px solid rgba(214,167,93,.28);
    color: var(--accent);
    font-size: 1.45rem;
    box-shadow: 0 12px 35px rgba(214,167,93,.1);
}

.language-card-kicker {
    color: #8b9fff;
    font-size: .68rem;
    font-weight: 800;
}

.language-card h2,
.confirm-card h2 {
    margin: 4px 0 7px;
    font-size: 1.35rem;
}

.language-card > p,
.confirm-card > p {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.8;
}

.language-options {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.language-option {
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,.13);
    border-radius: 15px;
    background: rgba(15,23,42,.58);
    color: #e5e7eb;
    text-align: start;
    cursor: pointer;
    transition: .22s ease;
}

.language-option:hover,
.language-option.selected {
    border-color: rgba(214,167,93,.55);
    background: linear-gradient(145deg, rgba(214,167,93,.12), rgba(15,23,42,.72));
    transform: translateY(-1px);
}

.language-option-flag {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    font-size: 1.45rem;
}

.language-option strong,
.language-option small {
    display: block;
}

.language-option strong {
    font-size: .85rem;
}

.language-option small {
    color: #64748b;
    font-size: .62rem;
    margin-top: 2px;
}

.language-check {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: transparent;
    border: 1px solid rgba(148,163,184,.16);
    font-size: .75rem;
}

.language-option.selected .language-check {
    color: #0b0f19;
    background: var(--accent);
    border-color: var(--accent);
}

/* Clear confirmation */
.confirm-card {
    width: min(410px, 100%);
}

.confirm-icon {
    color: #fca5a5;
    background: rgba(239,68,68,.09);
    border-color: rgba(239,68,68,.25);
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.confirm-btn {
    min-height: 45px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    transition: .2s;
}

.confirm-btn.secondary {
    border: 1px solid rgba(148,163,184,.15);
    background: rgba(148,163,184,.06);
    color: #cbd5e1;
}

.confirm-btn.secondary:hover {
    background: rgba(148,163,184,.12);
    color: white;
}

.confirm-btn.danger {
    background: linear-gradient(135deg, #b43b3b, #8f2525);
    color: white;
    box-shadow: 0 10px 28px rgba(239,68,68,.16);
}

.confirm-btn.danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(239,68,68,.24);
}

body.modal-open {
    overflow: hidden;
}

/* Scroll targets */
.articles-section,
.faq-section {
    scroll-margin-top: 90px;
}

@media (max-width: 700px) {
    .language-trigger {
        min-width: 120px;
        padding-inline: 10px;
    }

    .language-card,
    .confirm-card {
        padding: 25px 18px;
        border-radius: 21px;
    }

    .confirm-actions {
        grid-template-columns: 1fr;
    }
}


/* Keep the header language control completely out of the way while
   the navigation drawer is open. */
body.drawer-open .language-wrap {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================
   Performance pass
   Keep the visual style, reduce expensive mobile effects.
   ========================= */

.background-glow {
    filter: blur(70px);
    opacity: .16;
    contain: strict;
    pointer-events: none;
}

.drawer-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.main-drawer {
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
}

.language-modal-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.language-card,
.confirm-card,
.mail-card,
.guide-box,
.article-card,
.faq-item {
    will-change: auto;
}

@media (max-width: 700px) {
    .background-glow {
        filter: blur(45px);
        opacity: .10;
    }

    .drawer-backdrop,
    .language-modal-backdrop {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.notification-toggle.is-enabled {
    border-color: rgba(79, 140, 255, .55);
    box-shadow: 0 0 20px rgba(79, 140, 255, .10);
}
.notification-toggle .drawer-arrow {
    color: #6ea8ff;
    font-weight: 700;
}

/* Email lifetime countdown — replaces the shield spot in the mailbox card */
.email-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(79, 140, 255, .35);
    border-radius: 12px;
    background: rgba(79, 140, 255, .08);
    color: #6ea8ff;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .4px;
    box-shadow: 0 0 18px rgba(79, 140, 255, .08);
}
.email-countdown.warning {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, .45);
}
.email-countdown.expired {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, .25);
    opacity: .75;
}

.email-time-btn {
    grid-column: 1 / -1;
}

.email-time-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 7, 18, .72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.email-time-modal-backdrop[hidden] {
    display: none;
}
.email-time-modal {
    position: relative;
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid rgba(79, 140, 255, .32);
    border-radius: 22px;
    background: #0d1426;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
    text-align: center;
}
.email-time-modal .modal-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(79, 140, 255, .10);
    color: #9fbfff;
    font-size: 24px;
    cursor: pointer;
}
.email-time-modal .modal-kicker {
    margin: 0 auto 12px;
    font-size: 28px;
}
.email-time-modal h3 {
    margin: 0 0 8px;
    color: #f8fafc;
}
.email-time-modal p {
    margin: 0 0 20px;
    color: #94a3b8;
}
.email-time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.email-time-option {
    min-height: 58px;
    border: 1px solid rgba(79, 140, 255, .22);
    border-radius: 14px;
    background: rgba(79, 140, 255, .07);
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.email-time-option:hover,
.email-time-option:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(79, 140, 255, .55);
    background: rgba(79, 140, 255, .13);
}
@media (max-width: 520px) {
    .email-time-options {
        grid-template-columns: 1fr;
    }
}

.time-btn {
    border-color: rgba(79, 140, 255, .28);
    background: rgba(79, 140, 255, .06);
}
.time-btn:hover {
    border-color: rgba(79, 140, 255, .55);
    background: rgba(79, 140, 255, .11);
}

/* Timer action sits inside the same mailbox action grid as the other email controls. */
.time-btn {
    border-color: rgba(79, 140, 255, .28);
    background: rgba(79, 140, 255, .06);
}
.time-btn:hover,
.time-btn:focus-visible {
    border-color: rgba(79, 140, 255, .55);
    background: rgba(79, 140, 255, .12);
}

/* Full-width advertisement slot at the very bottom of the page */
.bottom-ad-section {
    width: 100%;
    max-width: 100%;
    margin: 36px auto 0;
    padding: 0 20px 36px;
    box-sizing: border-box;
}
.ad-placeholder {
    width: 100%;
    min-height: 120px;
    border: 1px dashed rgba(79, 140, 255, .22);
    border-radius: 18px;
    background: rgba(10, 18, 35, .42);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    color: #64748b;
    text-align: center;
}
.ad-label {
    font-size: 14px;
    font-weight: 600;
}
.ad-size {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: .45;
}
@media (max-width: 600px) {
    .bottom-ad-section {
        margin-top: 28px;
        padding: 0 20px 28px;
    }
    .ad-placeholder {
        min-height: 105px;
    }
}
