:root {
    color-scheme: dark;
    --bg: #09090b;
    --bg-soft: #0d0d10;
    --surface: #111113;
    --surface-2: #18181b;
    --surface-3: #1f1f24;
    --border: #27272a;
    --border-soft: rgba(255, 255, 255, 0.08);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 212, 191, 0.09), transparent 24rem),
        radial-gradient(circle at 84% 86%, rgba(20, 184, 166, 0.12), transparent 28rem),
        linear-gradient(145deg, #020709 0%, #071116 48%, #030806 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: min(62vw, 760px);
    height: min(62vw, 760px);
    right: -20vw;
    bottom: -26vw;
    border: 1px solid rgba(94, 234, 212, 0.13);
    border-radius: 999px;
    box-shadow:
        0 0 90px rgba(20, 184, 166, 0.09),
        inset 0 0 90px rgba(20, 184, 166, 0.04);
}

body::after {
    width: min(78vw, 840px);
    height: min(42vw, 440px);
    left: -28vw;
    top: 11vh;
    border-top: 1px solid rgba(94, 234, 212, 0.11);
    border-radius: 50%;
    transform: rotate(-18deg);
    box-shadow: 0 -18px 72px rgba(45, 212, 191, 0.055);
}

a {
    color: #c7d2fe;
    text-decoration: none;
}

a:hover {
    color: #eef2ff;
}

hr {
    border-color: var(--border-soft);
    opacity: 1;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1.05rem;
    overflow-y: auto;
    background:
        radial-gradient(circle at 78% 8%, rgba(45, 212, 191, 0.055), transparent 14rem),
        linear-gradient(180deg, #0b0d10 0%, #080a0d 55%, #06080a 100%);
    border-right: 1px solid rgba(120, 180, 170, 0.1);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    z-index: 1040;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.35rem 1rem;
    margin-bottom: 0.4rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 2.3rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.28);
}

.brand-mark img {
    display: block;
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.sidebar .brand-mark,
.sidebar .avatar {
    color: #ecfffb;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.78), rgba(14, 116, 144, 0.58)),
        #0f766e;
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.16);
}

.brand-title {
    color: var(--text);
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    color: rgba(230, 238, 235, 0.46);
    font-size: 0.78rem;
}

.sidebar-section {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(120, 180, 170, 0.1);
}

.sidebar-label {
    padding: 0 0.6rem 0.45rem;
    color: rgba(178, 214, 206, 0.46);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 0.18rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(230, 238, 235, 0.62);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(120, 180, 170, 0.14);
}

.sidebar-link.active {
    color: #ecfffb;
    background:
        linear-gradient(135deg, rgba(36, 160, 145, 0.18), rgba(45, 70, 95, 0.16));
    border-color: rgba(95, 220, 200, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(20, 184, 166, 0.055);
}

.sidebar-link.active .nav-icon {
    color: #99f6e4;
}

.nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.sidebar-footer {
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.07), transparent 54%),
        rgba(255, 255, 255, 0.045);
}

.avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    color: white;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    font-size: 0.78rem;
    font-weight: 800;
}

.sidebar-user-name {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 650;
}

.sidebar-user-role {
    color: rgba(230, 238, 235, 0.44);
    font-size: 0.72rem;
}

.sidebar-footer .btn {
    min-height: 2.55rem;
    padding: 0.45rem 0.8rem;
    color: rgba(245, 247, 247, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
}

.sidebar-footer .btn:hover,
.sidebar-footer .btn:focus-visible {
    color: #fff7f6;
    border-color: rgba(255, 110, 95, 0.25);
    background: rgba(255, 80, 70, 0.07);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.main-content {
    width: 100%;
    max-width: 1480px;
    min-width: 0;
    padding: 2rem;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: stretch;
    width: min(100%, 480px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(0.9rem, 2.4vw, 1.55rem) 1rem;
    gap: 0.7rem;
    isolation: isolate;
}

.auth-brand {
    display: none;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    margin: 0 auto 0.25rem;
    color: var(--text);
    font-weight: 750;
}

.auth-brand .brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    flex-basis: 2.8rem;
    border-radius: 0.95rem;
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.24);
}

.auth-brand > span:last-child {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 1055;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(24, 24, 27, 0.92);
}

.mobile-sidebar-toggle span:not(.visually-hidden) {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.sidebar-backdrop {
    display: none;
}

/* Optional light shell mode: background, decorative arcs, and sidebar only. */
html[data-background-mode="light"] body {
    background:
        radial-gradient(circle at 86% 78%, rgba(33, 180, 160, 0.16), transparent 32rem),
        radial-gradient(circle at 12% 14%, rgba(125, 211, 252, 0.12), transparent 24rem),
        linear-gradient(135deg, #f8fffc 0%, #f1faf7 48%, #eaf5f2 100%);
}

html[data-background-mode="light"] body::before {
    border-color: rgba(20, 184, 166, 0.17);
    box-shadow:
        0 0 92px rgba(20, 184, 166, 0.13),
        inset 0 0 80px rgba(20, 184, 166, 0.06);
}

html[data-background-mode="light"] body::after {
    border-top-color: rgba(15, 118, 110, 0.16);
    box-shadow: 0 -18px 72px rgba(20, 184, 166, 0.08);
}

html[data-background-mode="light"] .sidebar {
    background:
        radial-gradient(circle at 82% 8%, rgba(45, 212, 191, 0.14), transparent 15rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 253, 250, 0.88) 56%, rgba(235, 247, 243, 0.92) 100%);
    border-right-color: rgba(20, 70, 65, 0.12);
    box-shadow: 12px 0 36px rgba(15, 45, 42, 0.1);
}

html[data-background-mode="light"] .sidebar .brand-mark,
html[data-background-mode="light"] .sidebar .avatar {
    color: #ecfffb;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.82), rgba(14, 116, 144, 0.58)),
        #0f766e;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.2);
}

html[data-background-mode="light"] .sidebar .brand-title,
html[data-background-mode="light"] .sidebar-user-name {
    color: #10201e;
}

html[data-background-mode="light"] .sidebar .brand-subtitle,
html[data-background-mode="light"] .sidebar-user-role {
    color: rgba(30, 60, 56, 0.58);
}

html[data-background-mode="light"] .sidebar-section {
    border-top-color: rgba(20, 70, 65, 0.1);
}

html[data-background-mode="light"] .sidebar-label {
    color: rgba(39, 80, 74, 0.58);
}

html[data-background-mode="light"] .sidebar-link {
    color: rgba(16, 31, 30, 0.72);
}

html[data-background-mode="light"] .sidebar-link:hover,
html[data-background-mode="light"] .sidebar-link:focus {
    color: #0d1f1d;
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 140, 126, 0.16);
}

html[data-background-mode="light"] .sidebar-link.active {
    color: #073b35;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(125, 211, 252, 0.12));
    border-color: rgba(20, 148, 132, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 10px 24px rgba(20, 184, 166, 0.1);
}

html[data-background-mode="light"] .sidebar-link.active .nav-icon {
    color: #0f766e;
}

html[data-background-mode="light"] .sidebar-user {
    border-color: rgba(20, 70, 65, 0.12);
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.12), transparent 54%),
        rgba(255, 255, 255, 0.58);
}

html[data-background-mode="light"] .sidebar-footer .btn {
    color: #243a37;
    border-color: rgba(20, 70, 65, 0.12);
    background: rgba(255, 255, 255, 0.62);
}

html[data-background-mode="light"] .sidebar-footer .btn:hover,
html[data-background-mode="light"] .sidebar-footer .btn:focus-visible {
    color: #7f1d1d;
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(248, 113, 113, 0.08);
    box-shadow: 0 12px 26px rgba(15, 45, 42, 0.12);
}

html[data-background-mode="light"] .mobile-sidebar-toggle {
    border-color: rgba(20, 70, 65, 0.16);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(15, 45, 42, 0.12);
}

html[data-background-mode="light"] .mobile-sidebar-toggle span:not(.visually-hidden) {
    background: #10201e;
}

html[data-background-mode="light"] body.sidebar-open .sidebar-backdrop {
    background: rgba(15, 45, 42, 0.18);
    backdrop-filter: blur(7px);
}

html[data-background-mode="light"] .main-content > .dashboard-header h1,
html[data-background-mode="light"] .main-content > .page-header .page-title {
    color: #10201e;
}

html[data-background-mode="light"] .main-content > .dashboard-header .text-secondary,
html[data-background-mode="light"] .main-content > .page-header .page-subtitle {
    color: rgba(30, 60, 56, 0.68) !important;
}

html[data-background-mode="light"] .main-content > .inbox-page-header .inbox-refresh-button {
    color: #10201e;
    border-color: rgba(20, 70, 65, 0.16);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 28px rgba(15, 45, 42, 0.1);
}

html[data-background-mode="light"] .main-content > .inbox-page-header .inbox-refresh-button:hover,
html[data-background-mode="light"] .main-content > .inbox-page-header .inbox-refresh-button:focus-visible {
    color: #073b35;
    border-color: rgba(20, 148, 132, 0.28);
    background: rgba(236, 253, 245, 0.86);
}

.dashboard-header,
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.dashboard-header h1,
.page-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.55rem, 2vw, 2.25rem);
    font-weight: 760;
    letter-spacing: 0;
}

.dashboard-header .text-secondary,
.page-subtitle {
    color: var(--muted) !important;
    margin-top: 0.25rem;
}

.account-page-header {
    align-items: center;
}

.account-page-grid {
    align-items: stretch;
}

.account-side-column {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.account-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.13), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.account-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.12), transparent 42%);
}

.account-card > * {
    position: relative;
    z-index: 1;
}

.account-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-card-header h2 {
    letter-spacing: -0.01em;
}

.account-role-badge,
.account-subscription-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(129, 140, 248, 0.34);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    color: #ddd6fe;
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.12);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.account-role-badge {
    min-height: 1.85rem;
    padding: 0.42rem 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.account-subscription-badge {
    min-height: 1.9rem;
    padding: 0.45rem 0.7rem;
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.1);
}

.account-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 1.75rem;
    padding: 0.4rem 0.68rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: #d4d4d8;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.account-plan-badge-premium {
    border-color: rgba(245, 158, 11, 0.48);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08)),
        rgba(9, 9, 11, 0.36);
    color: #fde68a;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.1);
}

.account-plan-badge-free {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.09);
    color: #d4d4d8;
}

.account-plan-badge-expired {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
}

.account-subscription-card {
    display: grid;
    gap: 1rem;
}

.account-appearance-card {
    display: grid;
    gap: 0.85rem;
}

.background-mode-control {
    display: grid;
    gap: 0.62rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.background-mode-label {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.background-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.background-mode-option {
    position: relative;
    display: grid;
    cursor: pointer;
}

.background-mode-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.background-mode-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.56rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    background: rgba(9, 9, 11, 0.24);
    color: rgba(244, 244, 245, 0.76);
    font-size: 0.9rem;
    font-weight: 750;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.background-mode-option input:checked + span {
    color: #ecfffb;
    border-color: rgba(94, 234, 212, 0.32);
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(45, 70, 95, 0.12)),
        rgba(9, 9, 11, 0.26);
    box-shadow: 0 0 24px rgba(20, 184, 166, 0.11);
}

.background-mode-option input:focus-visible + span {
    outline: 2px solid rgba(94, 234, 212, 0.55);
    outline-offset: 3px;
}

.account-subscription-list {
    gap: 0.58rem;
}

.account-subscription-action {
    justify-content: center;
    min-height: 2.75rem;
    box-shadow: 0 16px 34px rgba(99, 102, 241, 0.22);
}

.account-info-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.account-info-row {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.7fr) minmax(0, 1.3fr);
    gap: 0.9rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.95rem;
    background: rgba(9, 9, 11, 0.24);
}

.account-info-row dt {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-info-row dd {
    margin: 0;
    min-width: 0;
    font-size: 0.96rem;
    font-weight: 650;
}

.account-edit-header {
    margin-bottom: 1.1rem;
}

.account-edit-card .alert {
    border-radius: 0.95rem;
}

.account-form {
    align-items: start;
}

.account-form .form-label {
    margin-bottom: 0.45rem;
    font-size: 0.86rem;
}

.account-form .form-control {
    min-height: 3rem;
    padding: 0.72rem 0.9rem;
}

.account-password-note {
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(129, 140, 248, 0.16);
    border-radius: 0.95rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.account-form .btn-primary {
    min-height: 2.9rem;
    padding-inline: 1rem;
    border-color: rgba(129, 140, 248, 0.55);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.22);
}

.inbox-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.auth-panel,
.panel,
.premium-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--border-soft);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.upgrade-side-panel {
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
}

.upgrade-page-header {
    align-items: center;
}

.upgrade-comparison-shell {
    overflow: hidden;
    padding: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.11), transparent 34%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.07), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.upgrade-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.upgrade-plan-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(9, 9, 11, 0.42);
}

.upgrade-plan-free {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 38%),
        rgba(9, 9, 11, 0.42);
}

.upgrade-plan-pro {
    border-color: rgba(245, 158, 11, 0.58);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 38%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.1), transparent 42%),
        rgba(9, 9, 11, 0.48);
    box-shadow:
        0 24px 62px rgba(99, 102, 241, 0.16),
        0 0 34px rgba(245, 158, 11, 0.16),
        inset 0 1px 0 rgba(253, 230, 138, 0.12);
}

.upgrade-plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.upgrade-plan-eyebrow {
    margin: 0 0 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upgrade-plan-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 850;
}

.premium-card .upgrade-plan-pro h2 {
    color: #fde68a;
}

.upgrade-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    min-height: 1.55rem;
    padding: 0.28rem 0.72rem;
    border: 1px solid rgba(245, 158, 11, 0.48);
    border-radius: 999px;
    color: #fde68a;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08)),
        rgba(9, 9, 11, 0.36);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.upgrade-plan-badge-icon {
    display: inline-grid;
    place-items: center;
    width: 0.9rem;
    height: 0.9rem;
    color: #facc15;
}

.upgrade-feature-list {
    display: grid;
    gap: 0.82rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.upgrade-feature-list li {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr);
    align-items: start;
    column-gap: 0.55rem;
    gap: 0.16rem;
    position: relative;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.38;
}

.upgrade-feature-list li::before {
    content: none;
}

.upgrade-feature-status-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 1.12rem;
    height: 1.12rem;
    margin-top: 0.08rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.upgrade-feature-list .is-unavailable {
    color: var(--muted);
}

.upgrade-feature-title {
    grid-column: 2;
    color: var(--text);
    font-weight: 650;
}

.upgrade-feature-detail {
    grid-column: 2;
    color: #c7c7d1;
    font-size: 0.86rem;
    line-height: 1.4;
}

.upgrade-free-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.1), transparent 42%),
        rgba(255, 255, 255, 0.035);
    color: #f4f4f5;
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.45;
}

.upgrade-free-note-icon {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    color: #facc15;
}

.upgrade-price {
    display: grid;
    justify-items: center;
    gap: 0.08rem;
    width: min(100%, 23rem);
    margin: 1rem auto 0;
    padding: 0.72rem 0.85rem 0.78rem;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 0.95rem;
    color: #fde68a;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08), transparent 62%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.38));
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18),
        0 0 18px rgba(245, 158, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    text-align: center;
}

.upgrade-price-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 1.25rem;
    padding: 0.18rem 0.58rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    color: #f8d98b;
    background: rgba(245, 158, 11, 0.075);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.upgrade-price-main {
    color: #ffe2a8;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.02;
    text-shadow: 0 1px 14px rgba(245, 158, 11, 0.12);
}

.upgrade-price-period {
    color: #ede9fe;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.05;
}

.upgrade-price-subline {
    margin-top: 0.15rem;
    color: #bbb4ca;
    font-size: 0.78rem;
    line-height: 1.25;
}

.upgrade-cta-area {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.upgrade-primary-action {
    min-height: 3.05rem;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.32), 0 0 28px rgba(124, 58, 237, 0.2);
}

.upgrade-terms-placeholder {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.upgrade-note-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 1rem;
    color: #ddd6fe;
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.12), transparent 46%),
        rgba(99, 102, 241, 0.08);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

.upgrade-note-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    color: #facc15;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.2));
}

.upgrade-note-highlight {
    color: #fde68a;
    font-weight: 850;
}

/* Checkout payment flow */
.checkout-flow {
    --checkout-bg: #050814;
    --checkout-panel: rgba(8, 13, 31, 0.94);
    --checkout-panel-2: rgba(12, 18, 40, 0.72);
    --checkout-border: rgba(100, 116, 139, 0.32);
    --checkout-border-strong: rgba(168, 85, 247, 0.48);
    --checkout-text: #f8fafc;
    --checkout-muted: #b9b5c9;
    --checkout-muted-2: #8f8aa3;
    --checkout-purple: #8b5cf6;
    --checkout-purple-soft: rgba(139, 92, 246, 0.18);
    --checkout-gold: #f8c76b;
    --checkout-orange: #fb6d3a;
    --checkout-radius: 20px;
    --checkout-inner-radius: 15px;
    width: min(100%, 536px);
    margin-inline: auto;
}

.checkout-flow-method {
    width: min(100%, 552px);
}

@media (min-width: 768px) {
    .checkout-flow-cash {
        width: min(100%, 500px);
    }

    .checkout-flow-cash .checkout-panel {
        gap: 14px;
        padding: 22px;
    }

    .checkout-flow-cash .checkout-header {
        gap: 5px;
    }

    .checkout-flow-cash .checkout-step {
        min-height: 24px;
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .checkout-flow-cash .checkout-title {
        font-size: clamp(1.48rem, 2.7vw, 1.82rem);
    }

    .checkout-flow-cash .checkout-subtitle {
        font-size: 0.88rem;
        line-height: 1.38;
    }

    .checkout-flow-usdt {
        width: min(100%, 500px);
    }

    .checkout-flow-usdt .checkout-panel {
        gap: 14px;
        padding: 22px;
    }

    .checkout-flow-usdt .checkout-header {
        gap: 5px;
    }

    .checkout-flow-usdt .checkout-step {
        min-height: 24px;
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .checkout-flow-usdt .checkout-title {
        font-size: clamp(1.48rem, 2.7vw, 1.82rem);
    }

    .checkout-flow-usdt .checkout-subtitle {
        font-size: 0.88rem;
        line-height: 1.38;
    }
}

.checkout-panel {
    display: grid;
    gap: 18px;
    padding: 26px;
    border: 1px solid rgba(120, 130, 180, 0.22);
    border-radius: var(--checkout-radius);
    background: linear-gradient(145deg, #0a0f1c 0%, #0d1322 55%, #08101a 100%);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    overflow: hidden;
}

.checkout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkout-back-link,
.checkout-help-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d9d5e7;
    font-size: 0.84rem;
    font-weight: 680;
    line-height: 1;
    text-decoration: none;
}

.checkout-back-link svg,
.checkout-help-link svg,
.checkout-help-link img {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.checkout-back-link:hover,
.checkout-back-link:focus-visible {
    color: #fff;
}

.checkout-help-link {
    color: #c7c2d3;
}

.checkout-header {
    display: grid;
    gap: 7px;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 27px;
    padding: 6px 12px;
    border: 1px solid rgba(192, 132, 252, 0.28);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.82), rgba(147, 51, 234, 0.46)),
        rgba(46, 16, 101, 0.72);
    color: #f1eaff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 0 22px rgba(147, 51, 234, 0.18);
}

.checkout-title {
    margin: 0;
    color: var(--checkout-text);
    font-size: clamp(1.58rem, 3.2vw, 1.98rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

.checkout-subtitle {
    margin: 0;
    color: var(--checkout-muted);
    font-size: 0.93rem;
    line-height: 1.45;
}

.checkout-summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: var(--checkout-inner-radius);
    background:
        radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.58), transparent 42%),
        radial-gradient(circle at 95% 55%, rgba(79, 70, 229, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(99, 36, 202, 0.82), rgba(17, 13, 48, 0.9));
    box-shadow:
        0 16px 42px rgba(76, 29, 149, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.checkout-summary-icon,
.checkout-method-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.checkout-summary-icon {
    width: 46px;
    height: 46px;
    color: #f3e8ff;
}

.checkout-summary-icon img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.checkout-summary-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.checkout-summary-copy strong {
    color: #fff;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.25;
}

.checkout-summary-copy span {
    color: #ddd6fe;
    font-size: 0.9rem;
}

.checkout-summary-price {
    display: grid;
    justify-items: end;
    gap: 3px;
    color: #c4b5fd;
}

.checkout-summary-price strong {
    color: #b99cff;
    font-size: 1.48rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.checkout-summary-price span {
    color: #d8b4fe;
    font-size: 0.76rem;
    font-weight: 750;
}

.checkout-method-list {
    display: grid;
    gap: 14px;
}

.checkout-method-card,
.checkout-empty-methods {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: var(--checkout-inner-radius);
    background:
        radial-gradient(circle at 94% 50%, rgba(124, 58, 237, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(18, 16, 48, 0.72));
    color: var(--checkout-text);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.checkout-method-card:hover,
.checkout-method-card:focus-visible {
    color: var(--checkout-text);
    border-color: rgba(168, 85, 247, 0.68);
    box-shadow:
        0 16px 40px rgba(124, 58, 237, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
    transform: translateY(-1px);
}

.checkout-method-card-usdt {
    border-color: rgba(168, 85, 247, 0.58);
}

.checkout-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
}

.checkout-method-icon img {
    width: 31px;
    height: 31px;
    display: block;
    object-fit: contain;
}

.checkout-method-icon-usdt {
    color: #d9fff5;
    background: transparent;
    box-shadow: 0 15px 32px rgba(38, 161, 123, 0.18);
}

.checkout-method-icon-vodafone {
    color: #ef4444;
    background: transparent;
    box-shadow: 0 15px 32px rgba(239, 68, 68, 0.17);
}

.checkout-method-icon-usdt img,
.checkout-method-icon-vodafone img {
    width: 56px;
    height: 56px;
}

.checkout-method-content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.checkout-method-content strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.checkout-method-content span:not(.checkout-method-heading) {
    color: var(--checkout-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.checkout-method-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-method-heading em {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #86efac;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.checkout-method-action {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #f3e8ff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(88, 28, 135, 0.62), rgba(30, 27, 75, 0.52));
}

.checkout-method-action svg {
    width: 22px;
    height: 22px;
}

.checkout-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid rgba(71, 85, 105, 0.34);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.36);
}

.checkout-trust-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    color: #c7c2d3;
    font-size: 0.78rem;
    font-weight: 680;
    white-space: nowrap;
}

.checkout-trust-row img {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    object-fit: contain;
}

.checkout-secure-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: #aaa5b8;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.checkout-secure-note img {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    object-fit: contain;
}

.checkout-usdt-hero,
.checkout-cash-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--checkout-inner-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.checkout-usdt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 198px;
    padding: 18px;
    border: 1px solid rgba(139, 92, 246, 0.46);
    background:
        radial-gradient(circle at 88% 66%, rgba(38, 161, 123, 0.16), transparent 24%),
        radial-gradient(circle at 14% 0%, rgba(99, 102, 241, 0.5), transparent 42%),
        linear-gradient(135deg, rgba(27, 35, 96, 0.98), rgba(36, 27, 82, 0.97) 48%, rgba(10, 18, 39, 0.99));
}

.checkout-usdt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, 0.035) 50%, transparent 64%),
        radial-gradient(circle at 86% 72%, rgba(45, 212, 191, 0.14), transparent 18%);
    pointer-events: none;
}

.checkout-usdt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: var(--asset-usdt-wave-background) center bottom / 112% auto no-repeat;
    pointer-events: none;
}

.checkout-usdt-amount,
.checkout-usdt-copy,
.checkout-usdt-coin,
.checkout-usdt-hero p {
    position: relative;
    z-index: 1;
}

.checkout-usdt-amount {
    display: grid;
    align-content: start;
    gap: 12px;
}

.checkout-usdt-amount span,
.checkout-cash-hero > span {
    color: #d9ccff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1;
    text-transform: uppercase;
}

.checkout-usdt-amount strong {
    color: #e8ddff;
    font-size: clamp(1.8rem, 4.5vw, 2.25rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 0 1px 14px rgba(139, 92, 246, 0.18);
}

.checkout-usdt-amount em {
    color: #d7ccf4;
    font-size: 0.56em;
    font-style: normal;
}

.checkout-usdt-copy,
.checkout-copy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(216, 180, 254, 0.34);
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(30, 27, 75, 0.82), rgba(88, 28, 135, 0.48)),
        rgba(17, 24, 39, 0.55);
    color: #ede9fe;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.checkout-flow-usdt .checkout-usdt-copy,
.checkout-flow-usdt .checkout-copy-mini {
    border-color: rgba(196, 181, 253, 0.28);
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(31, 41, 108, 0.5), rgba(49, 46, 129, 0.36)),
        rgba(8, 13, 31, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.checkout-usdt-copy {
    align-self: start;
    padding: 0 12px;
}

.checkout-usdt-copy::before,
.checkout-copy-mini::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: center / contain no-repeat var(--asset-copypaste-white);
}

.checkout-usdt-copy:hover,
.checkout-usdt-copy:focus-visible,
.checkout-copy-mini:hover,
.checkout-copy-mini:focus-visible,
.checkout-usdt-copy.is-copied,
.checkout-copy-mini.is-copied {
    border-color: rgba(233, 213, 255, 0.62);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.16);
}

.checkout-usdt-coin {
    position: absolute;
    right: 18px;
    bottom: 20px;
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 999px;
    color: #d1fae5;
    background: transparent;
    filter: drop-shadow(0 12px 18px rgba(20, 184, 166, 0.14));
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.07);
    transform: rotate(-12deg);
}

.checkout-usdt-coin::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(38, 161, 123, 0.22), rgba(20, 184, 166, 0.08) 42%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.checkout-usdt-coin img {
    width: 62px;
    height: 62px;
    display: block;
    object-fit: contain;
}

.checkout-usdt-hero p {
    grid-column: 1 / -1;
    align-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 355px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid rgba(196, 181, 253, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #f0ecfb;
    font-size: 0.8rem;
    line-height: 1.45;
    backdrop-filter: blur(10px);
}

.checkout-usdt-hero p img,
.checkout-important-card > span img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    object-fit: contain;
}

.checkout-usdt-hero p img {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.checkout-usdt-hero p img.checkout-warning-icon-mobile {
    display: none;
}

.checkout-detail-list {
    display: grid;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--checkout-inner-radius);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 17, 36, 0.72), rgba(8, 13, 31, 0.52));
}

.checkout-detail-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 12px 14px;
}

.checkout-detail-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: calc(14px + 32px + 13px);
    height: 1px;
    background: rgba(99, 102, 241, 0.11);
    pointer-events: none;
}

.checkout-detail-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #ddd6fe;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 36%),
        rgba(49, 46, 129, 0.18);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.12);
}

.checkout-detail-icon img {
    width: 17px;
    height: 17px;
    display: block;
    object-fit: contain;
}

.checkout-detail-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.checkout-detail-copy small {
    color: #9ca3af;
    font-size: 0.68rem;
    line-height: 1;
}

.checkout-detail-copy strong {
    min-width: 0;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.checkout-detail-item em {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(49, 46, 129, 0.28);
    color: #d8d2ff;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
}

.checkout-copy-mini {
    min-width: 34px;
    padding: 0 8px;
    border-color: rgba(139, 92, 246, 0.28);
    background: rgba(49, 46, 129, 0.26);
}

.checkout-copy-text {
    min-width: auto;
    padding: 0 12px;
    color: #ffd6a6;
}

.checkout-copy-text::before {
    background-image: var(--asset-copypaste);
}

.checkout-flow-cash .checkout-copy-text {
    border-color: rgba(196, 181, 253, 0.24);
    background:
        linear-gradient(135deg, rgba(38, 33, 84, 0.6), rgba(67, 56, 118, 0.34)),
        rgba(10, 15, 33, 0.48);
    color: #f7e6c7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.checkout-flow-cash .checkout-copy-text::before {
    opacity: 0.76;
    background-image: var(--asset-copypaste-white);
}

.checkout-flow-cash .checkout-copy-text:hover,
.checkout-flow-cash .checkout-copy-text:focus-visible,
.checkout-flow-cash .checkout-copy-text.is-copied {
    border-color: rgba(233, 213, 255, 0.5);
    color: #fff1d6;
    box-shadow:
        0 0 16px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkout-important-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: var(--checkout-inner-radius);
    background:
        radial-gradient(circle at 94% 0%, rgba(45, 212, 191, 0.08), transparent 32%),
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.12), transparent 44%),
        linear-gradient(135deg, rgba(12, 18, 40, 0.86), rgba(17, 24, 39, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

@media (min-width: 768px) {
    .checkout-flow-usdt .checkout-usdt-hero {
        gap: 10px;
        min-height: 168px;
        padding: 15px;
    }

    .checkout-flow-usdt .checkout-usdt-amount {
        gap: 9px;
    }

    .checkout-flow-usdt .checkout-usdt-amount strong {
        font-size: clamp(1.68rem, 3.5vw, 2.05rem);
    }

    .checkout-flow-usdt .checkout-usdt-copy,
    .checkout-flow-usdt .checkout-copy-mini {
        min-height: 32px;
    }

    .checkout-flow-usdt .checkout-usdt-coin {
        right: 16px;
        bottom: 16px;
        width: 60px;
        height: 60px;
    }

    .checkout-flow-usdt .checkout-usdt-coin::before {
        inset: -14px;
    }

    .checkout-flow-usdt .checkout-usdt-coin img {
        width: 55px;
        height: 55px;
    }

    .checkout-flow-usdt .checkout-usdt-hero p {
        max-width: 332px;
        padding: 7px 10px;
        font-size: 0.76rem;
    }

    .checkout-flow-usdt .checkout-detail-item {
        min-height: 50px;
        padding: 10px 13px;
    }

    .checkout-flow-usdt .checkout-detail-item:not(:last-child)::after {
        left: calc(13px + 30px + 13px);
    }

    .checkout-flow-usdt .checkout-detail-icon {
        width: 30px;
        height: 30px;
    }

    .checkout-flow-usdt .checkout-important-card {
        gap: 12px;
        padding: 14px;
    }

    .checkout-flow-usdt .checkout-important-card p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .checkout-flow-usdt .checkout-primary-action {
        min-height: 48px;
    }
}

.checkout-important-card strong {
    color: #fff;
    font-size: 0.96rem;
}

.checkout-important-card p {
    margin: 4px 0 0;
    color: #ded7ea;
    font-size: 0.82rem;
    line-height: 1.42;
}

.checkout-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #5749ff, #8b5cf6 52%, #db4f92);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow:
        0 14px 32px rgba(124, 58, 237, 0.22),
        0 0 22px rgba(217, 70, 239, 0.12);
}

.checkout-primary-action img {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    object-fit: contain;
}

.checkout-primary-action:hover,
.checkout-primary-action:focus-visible {
    color: #fff;
    transform: translateY(-1px);
}

.checkout-flow-usdt .checkout-primary-action {
    background:
        linear-gradient(100deg, #5f4bff 0%, #7b4df3 38%, #b34cc8 68%, #df5f83 100%);
    box-shadow:
        0 14px 28px rgba(95, 75, 255, 0.18),
        0 0 18px rgba(179, 76, 200, 0.11) !important;
}

.checkout-flow-usdt .checkout-primary-action:hover,
.checkout-flow-usdt .checkout-primary-action:focus-visible {
    background:
        linear-gradient(100deg, #6754ff 0%, #8456f6 38%, #bb55cd 68%, #e5688c 100%);
    box-shadow:
        0 16px 32px rgba(95, 75, 255, 0.22),
        0 0 20px rgba(179, 76, 200, 0.13) !important;
}

.checkout-cash-hero {
    display: grid;
    gap: 10px;
    min-height: 132px;
    padding: 18px;
    border: 0;
    background: transparent;
}

.checkout-cash-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--asset-vodafone-instapay);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.checkout-cash-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(4, 7, 17, 0.24), rgba(4, 7, 17, 0.05) 58%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.checkout-cash-hero > span,
.checkout-cash-hero strong,
.checkout-cash-hero em {
    position: relative;
    z-index: 1;
}

.checkout-cash-hero strong {
    color: #ffe2b8;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 16px rgba(82, 20, 10, 0.28);
}

.checkout-cash-hero em {
    color: #ffd6bd;
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.checkout-flow-cash .checkout-cash-hero > span {
    color: #f4d9c8;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
    .checkout-flow-cash .checkout-cash-hero {
        gap: 8px;
        min-height: 108px;
        padding: 15px;
    }

    .checkout-flow-cash .checkout-cash-hero strong {
        font-size: 1.72rem;
    }

    .checkout-flow-cash .checkout-cash-hero em {
        font-size: 0.8rem;
    }

    .checkout-flow-cash .checkout-channel-grid {
        gap: 11px;
    }

    .checkout-flow-cash .checkout-channel-card {
        gap: 12px;
        min-height: 84px;
        padding: 13px;
    }

    .checkout-flow-cash .checkout-channel-title {
        gap: 8px;
        font-size: 0.78rem;
    }

    .checkout-flow-cash .checkout-channel-logo,
    .checkout-flow-cash .checkout-channel-logo img {
        width: 26px;
        height: 26px;
    }

    .checkout-flow-cash .checkout-channel-logo-instapay,
    .checkout-flow-cash .checkout-channel-logo-instapay img {
        width: 86px;
        height: 24px;
    }

    .checkout-flow-cash .checkout-channel-copy strong {
        font-size: 0.94rem;
    }

    .checkout-flow-cash .checkout-steps {
        gap: 11px;
        padding: 13px;
    }

    .checkout-flow-cash .checkout-step-card {
        gap: 7px;
    }

    .checkout-flow-cash .checkout-step-card span {
        width: 26px;
        height: 26px;
        font-size: 0.76rem;
    }

    .checkout-flow-cash .checkout-step-card strong {
        font-size: 0.79rem;
    }

    .checkout-flow-cash .checkout-step-card p {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .checkout-flow-cash .checkout-warning-note {
        gap: 8px;
        padding: 11px 13px;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .checkout-flow-cash .checkout-primary-action {
        min-height: 48px;
    }
}

.checkout-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-channel-card {
    display: grid;
    gap: 16px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid rgba(71, 85, 105, 0.42);
    border-radius: var(--checkout-inner-radius);
    background: rgba(15, 23, 42, 0.5);
}

.checkout-channel-vodafone {
    border-color: rgba(129, 140, 248, 0.32);
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent 52%),
        radial-gradient(circle at 92% 12%, rgba(239, 68, 68, 0.055), transparent 34%),
        rgba(30, 27, 75, 0.26);
}

.checkout-channel-instapay {
    border-color: rgba(129, 140, 248, 0.34);
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 52%),
        rgba(30, 27, 75, 0.26);
}

.checkout-channel-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-transform: uppercase;
}

.checkout-channel-vodafone .checkout-channel-title {
    color: #ff8585;
}

.checkout-channel-logo {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.checkout-channel-logo img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.checkout-channel-logo-instapay {
    width: 96px;
    height: 28px;
    justify-content: flex-start;
}

.checkout-channel-logo-instapay img {
    width: 96px;
    height: 28px;
    object-fit: contain;
}

.checkout-channel-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.checkout-channel-copy strong {
    color: #fff;
    font-size: 1.04rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.checkout-channel-card p {
    margin: 0;
    color: var(--checkout-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(71, 85, 105, 0.34);
    border-radius: var(--checkout-inner-radius);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.09), transparent 44%),
        rgba(15, 23, 42, 0.4);
}

.checkout-step-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.checkout-step-card span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(216, 180, 254, 0.34);
    border-radius: 999px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%),
        rgba(124, 58, 237, 0.48);
    color: #ede9fe;
    font-size: 0.82rem;
    font-weight: 900;
}

.checkout-step-card strong {
    color: #fff;
    font-size: 0.84rem;
    line-height: 1.3;
}

.checkout-step-card p {
    margin: 0;
    color: #cbc6d7;
    font-size: 0.78rem;
    line-height: 1.4;
}

.checkout-warning-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.1), transparent 44%),
        rgba(120, 53, 15, 0.26);
    color: #fde68a;
    font-size: 0.82rem;
    line-height: 1.45;
}

.checkout-warning-note img {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    object-fit: contain;
    margin-top: 1px;
}

.checkout-cash-action {
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    box-shadow:
        0 14px 34px rgba(239, 68, 68, 0.22),
        0 0 24px rgba(249, 115, 22, 0.12) !important;
}

.checkout-empty-methods {
    grid-template-columns: 1fr;
    min-height: auto;
    color: var(--checkout-muted);
}

.checkout-page-header {
    align-items: center;
}

.checkout-shell {
    display: grid;
    gap: 18px;
    max-width: 536px;
    margin-inline: auto;
    padding: 24px;
    border: 1px solid rgba(100, 116, 139, 0.32);
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(91, 33, 182, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(9, 14, 32, 0.96), rgba(3, 7, 18, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.checkout-form-shell {
    max-width: 520px;
}

.checkout-confirm-form {
    display: grid;
    gap: 16px;
}

.checkout-confirm-card {
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: var(--checkout-inner-radius);
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 38%),
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.1), transparent 42%),
        rgba(15, 23, 42, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.checkout-confirm-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 13px;
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
    font-size: 0.8rem;
    line-height: 1.4;
}

.checkout-confirm-alert img {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    object-fit: contain;
    margin-top: 1px;
}

.checkout-confirm-field {
    display: grid;
    gap: 7px;
}

.checkout-confirm-field .form-label {
    margin: 0;
    color: #f4e8ff;
    font-size: 0.82rem;
    font-weight: 850;
}

.checkout-confirm-input {
    min-height: 48px;
    padding: 0.78rem 0.92rem;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.74)),
        rgba(2, 6, 23, 0.56);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 760;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.checkout-confirm-input:focus {
    border-color: rgba(248, 113, 113, 0.6);
    background-color: rgba(2, 6, 23, 0.78);
    box-shadow:
        0 0 0 0.2rem rgba(239, 68, 68, 0.13),
        0 0 18px rgba(249, 115, 22, 0.08);
}

.checkout-confirm-input::placeholder {
    color: #8f8aa3;
}

.checkout-field-help {
    margin: -1px 0 0;
    color: #aaa5b8;
    font-size: 0.74rem;
    line-height: 1.35;
}

.checkout-confirm-form .invalid-feedback {
    margin-top: -1px;
    font-size: 0.76rem;
}

.checkout-confirm-secure-note {
    margin-top: 2px;
    color: #bdb7ca;
}

.checkout-submit-button {
    justify-content: center;
    min-height: 50px;
}

.checkout-success-card {
    justify-items: center;
    text-align: center;
}

.checkout-success-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(248, 199, 107, 0.42);
    border-radius: 18px;
    color: #f8c76b;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.045);
}

.checkout-success-icon svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 767.98px) {
    .main-content:has(.upgrade-page-header) {
        padding-top: 0.75rem;
        padding-inline: 0.35rem;
        overflow-x: hidden;
    }

    .upgrade-page-header {
        min-height: 0;
        margin-bottom: 0.45rem !important;
    }

    .upgrade-page-header > div {
        display: none;
    }

    .upgrade-comparison-shell {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .upgrade-comparison-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        justify-items: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .upgrade-plan-card {
        width: min(98vw, 100%);
        max-width: 100%;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 1rem;
        box-sizing: border-box;
    }

    .upgrade-plan-pro {
        order: -1;
    }

    .upgrade-plan-card-head {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .upgrade-plan-badge {
        white-space: normal;
    }

    .upgrade-feature-list {
        gap: 0.7rem;
    }

    .upgrade-feature-list li,
    .upgrade-feature-title,
    .upgrade-feature-detail {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .upgrade-feature-list li {
        padding-left: 0;
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 8px;
        align-items: start;
        font-size: 0.88rem;
        line-height: 1.34;
    }

    .upgrade-feature-status-icon {
        width: 20px;
        height: 20px;
        margin-top: 0.02rem;
    }

    .upgrade-feature-detail {
        font-size: 0.8rem;
    }

    .upgrade-free-note {
        margin-top: 0.85rem;
        padding: 0.72rem;
        font-size: 0.84rem;
    }

    .upgrade-price {
        width: 100%;
        margin-top: 0.85rem;
        padding: 0.62rem 0.75rem 0.68rem;
        border-color: rgba(245, 158, 11, 0.22);
        background:
            radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.065), transparent 58%),
            linear-gradient(145deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.42));
    }

    .upgrade-price-kicker {
        min-height: 1.12rem;
        padding: 0.14rem 0.5rem;
        font-size: 0.58rem;
    }

    .upgrade-price-period {
        font-size: 0.8rem;
    }

    .upgrade-price-subline {
        font-size: 0.74rem;
    }

    .upgrade-primary-action {
        min-height: 2.85rem;
    }

    .upgrade-note-panel {
        width: min(98vw, 100%);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        align-items: flex-start;
        margin-top: 0.9rem;
        padding: 0.78rem 0.85rem;
        font-size: 0.84rem;
        text-align: left;
    }

    .upgrade-terms-placeholder {
        font-size: 0.74rem;
    }

    .checkout-flow,
    .checkout-flow-method {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .main-content:has(.checkout-flow-method),
    .main-content:has(.checkout-flow-usdt),
    .main-content:has(.checkout-flow-cash) {
        padding-top: 2.1rem;
    }

    .checkout-panel {
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .checkout-title {
        font-size: 1.44rem;
    }

    .checkout-subtitle {
        font-size: 0.86rem;
    }

    .checkout-confirm-card {
        padding: 14px;
    }

    .checkout-confirm-form {
        gap: 14px;
    }

    .checkout-confirm-input {
        min-height: 46px;
        padding: 0.74rem 0.86rem;
    }

    .checkout-summary-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        min-height: auto;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .checkout-summary-price {
        grid-column: 1 / -1;
        justify-items: start;
    }

    .checkout-flow-method .checkout-panel {
        gap: 12px;
        padding: 13px;
    }

    .checkout-flow-method .checkout-header {
        gap: 5px;
    }

    .checkout-flow-method .checkout-title {
        font-size: 1.28rem;
        line-height: 1.08;
    }

    .checkout-flow-method .checkout-subtitle {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .checkout-flow-method .checkout-summary-card {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 74px;
        padding: 12px;
        border-color: rgba(216, 180, 254, 0.34);
        background:
            radial-gradient(circle at 88% 8%, rgba(233, 213, 255, 0.14), transparent 32%),
            linear-gradient(135deg, rgba(60, 48, 88, 0.78), rgba(28, 25, 48, 0.82) 54%, rgba(13, 18, 36, 0.86));
        box-shadow:
            0 12px 30px rgba(88, 28, 135, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.09);
    }

    .checkout-flow-method .checkout-summary-icon {
        width: 38px;
        height: 38px;
    }

    .checkout-flow-method .checkout-summary-icon img {
        width: 28px;
        height: 28px;
    }

    .checkout-flow-method .checkout-summary-copy {
        gap: 2px;
    }

    .checkout-flow-method .checkout-summary-copy strong {
        font-size: 0.9rem;
        line-height: 1.18;
    }

    .checkout-flow-method .checkout-summary-copy span {
        font-size: 0.78rem;
        line-height: 1.26;
    }

    .checkout-flow-method .checkout-summary-price {
        grid-column: auto;
        justify-items: end;
        align-self: center;
    }

    .checkout-flow-method .checkout-summary-price strong {
        color: #ffe4b5;
        font-size: 1rem;
        text-shadow: 0 1px 12px rgba(245, 158, 11, 0.18);
    }

    .checkout-flow-method .checkout-summary-price span {
        color: #f7d69a;
        font-size: 0.68rem;
    }

    .checkout-method-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 88px;
        padding: 15px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .checkout-method-icon {
        width: 48px;
        height: 48px;
    }

    .checkout-method-icon img {
        width: 27px;
        height: 27px;
    }

    .checkout-method-icon-usdt img,
    .checkout-method-icon-vodafone img {
        width: 48px;
        height: 48px;
    }

    .checkout-method-action {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
    }

    .checkout-summary-copy,
    .checkout-method-content,
    .checkout-method-heading,
    .checkout-method-content span {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .checkout-method-heading {
        flex-wrap: wrap;
    }

    .checkout-flow-method .checkout-method-list {
        gap: 10px;
    }

    .checkout-flow-method .checkout-method-card {
        grid-template-columns: 42px minmax(0, 1fr) 32px;
        gap: 10px;
        min-height: 76px;
        padding: 12px;
    }

    .checkout-flow-method .checkout-method-card-usdt {
        border-color: rgba(71, 85, 105, 0.5);
    }

    .checkout-flow-method .checkout-method-icon,
    .checkout-flow-method .checkout-method-icon-usdt img,
    .checkout-flow-method .checkout-method-icon-vodafone img {
        width: 42px;
        height: 42px;
    }

    .checkout-flow-method .checkout-method-action {
        width: 32px;
        height: 32px;
    }

    .checkout-flow-method .checkout-method-action svg {
        width: 18px;
        height: 18px;
    }

    .checkout-flow-method .checkout-method-content {
        gap: 3px;
        align-content: center;
    }

    .checkout-flow-method .checkout-method-heading {
        gap: 6px;
    }

    .checkout-flow-method .checkout-method-content strong {
        font-size: 0.86rem;
        line-height: 1.14;
    }

    .checkout-flow-method .checkout-method-heading em {
        padding: 3px 6px;
        font-size: 0.54rem;
    }

    .checkout-flow-method .checkout-method-content span:not(.checkout-method-heading) {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .checkout-trust-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkout-trust-row span {
        justify-content: flex-start;
    }

    .checkout-flow-method .checkout-trust-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 10px;
        padding: 10px 11px;
    }

    .checkout-flow-method .checkout-trust-row span {
        justify-content: center;
        gap: 5px;
        font-size: 0.72rem;
    }

    .checkout-flow-method .checkout-trust-row img {
        width: 14px;
        height: 14px;
    }

    .checkout-flow-method .checkout-secure-note {
        gap: 6px;
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .checkout-flow-method .checkout-secure-note img {
        width: 15px;
        height: 15px;
    }

    .checkout-flow-usdt .checkout-usdt-hero {
        gap: 8px;
        min-height: 158px;
        padding: 13px;
    }

    .checkout-flow-usdt .checkout-usdt-hero::after {
        display: none;
    }

    .checkout-flow-usdt .checkout-usdt-amount {
        gap: 8px;
    }

    .checkout-flow-usdt .checkout-usdt-amount strong {
        display: flex;
        align-items: baseline;
        gap: 0.32rem;
        max-width: calc(100% - 54px);
        font-size: clamp(1.42rem, 7vw, 1.78rem);
        line-height: 0.95;
        white-space: nowrap;
    }

    .checkout-flow-usdt .checkout-usdt-amount em {
        font-size: 0.48em;
        line-height: 1;
    }

    .checkout-flow-usdt .checkout-usdt-coin {
        display: none;
    }

    .checkout-flow-usdt .checkout-usdt-hero p {
        align-items: center;
        gap: 8px;
        max-width: 100%;
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .checkout-flow-usdt .checkout-usdt-hero p img {
        width: 23px;
        height: 23px;
        flex: 0 0 23px;
        opacity: 1;
    }

    .checkout-flow-usdt .checkout-usdt-hero p img.checkout-warning-icon-desktop {
        display: none;
    }

    .checkout-flow-usdt .checkout-usdt-hero p img.checkout-warning-icon-mobile {
        display: block;
    }

    .checkout-flow-usdt .checkout-detail-item {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 48px;
        padding: 9px 10px;
    }

    .checkout-flow-usdt .checkout-detail-item:not(:last-child)::after {
        left: 50px;
    }

    .checkout-flow-usdt .checkout-detail-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .checkout-flow-usdt .checkout-detail-copy strong {
        font-size: 0.78rem;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .checkout-flow-usdt .checkout-detail-item em,
    .checkout-flow-usdt .checkout-detail-item .checkout-copy-mini {
        grid-column: 3;
        justify-self: end;
        align-self: center;
    }

    .checkout-flow-usdt .checkout-important-card {
        gap: 10px;
        padding: 12px;
    }

    .checkout-flow-usdt .checkout-important-card p {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .checkout-channel-grid,
    .checkout-steps {
        grid-template-columns: 1fr;
    }

    .checkout-cash-hero {
        min-height: 120px;
    }

    .checkout-cash-hero::before {
        background-position: center;
        background-size: 100% 100%;
    }

    .checkout-cash-hero::after {
        background:
            linear-gradient(90deg, rgba(4, 7, 17, 0.32), rgba(4, 7, 17, 0.08) 64%, transparent);
    }

    .checkout-channel-card {
        min-height: 92px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-panel {
        gap: 10px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-cash-hero {
        gap: 6px;
        min-height: 98px;
        padding: 13px 15px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-cash-hero strong {
        font-size: 1.65rem;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-cash-hero em {
        font-size: 0.78rem;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 10px;
        min-height: 64px;
        padding: 10px 12px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-title {
        display: contents;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-logo {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 36px;
        height: 36px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-logo img {
        width: 36px;
        height: 36px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-logo-instapay {
        width: 88px;
        height: 24px;
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-start;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-logo-instapay img {
        width: 88px;
        height: 24px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-name {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        color: #ff9a9a;
        font-size: 0.82rem;
        font-weight: 900;
        line-height: 1.1;
        text-transform: none;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-copy {
        display: contents;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-copy strong {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        font-size: 0.98rem;
        line-height: 1.1;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-channel-copy .checkout-copy-mini {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
        min-height: 38px;
        padding-inline: 10px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-steps {
        position: relative;
        gap: 0;
        padding: 13px 14px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-step-card {
        position: relative;
        grid-template-columns: 31px minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 2px;
        padding-block: 2px 12px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-step-card:last-child {
        padding-bottom: 0;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-step-card:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 15px;
        top: 35px;
        bottom: 2px;
        width: 1px;
        background: linear-gradient(180deg, rgba(168, 85, 247, 0.62), rgba(168, 85, 247, 0.2));
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-step-card span {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 31px;
        height: 31px;
        font-size: 0.78rem;
        z-index: 1;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-step-card strong {
        grid-column: 2;
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-step-card p {
        grid-column: 2;
        font-size: 0.74rem;
        line-height: 1.32;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-warning-note {
        gap: 8px;
        padding: 9px 11px;
        border-color: rgba(245, 158, 11, 0.34);
        background:
            radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 44%),
            rgba(69, 26, 3, 0.26);
        font-size: 0.74rem;
        line-height: 1.34;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-warning-note img {
        width: 15px;
        height: 15px;
    }

    .checkout-flow-cash:not(.checkout-flow-cash-confirm) .checkout-primary-action {
        min-height: 46px;
        box-shadow:
            0 10px 24px rgba(239, 68, 68, 0.18),
            0 0 18px rgba(249, 115, 22, 0.1) !important;
    }
}

@media (max-width: 390px) {
    .upgrade-plan-card {
        padding: 0.9rem;
    }

    .upgrade-plan-card h2 {
        font-size: 1.05rem;
    }

    .upgrade-plan-badge {
        padding: 0.24rem 0.58rem;
        font-size: 0.64rem;
    }

    .upgrade-feature-list li {
        padding-left: 0;
        font-size: 0.84rem;
    }

    .upgrade-feature-detail {
        font-size: 0.76rem;
    }

    .upgrade-price-main {
        font-size: 1.42rem;
    }

    .checkout-panel {
        padding: 13px;
        border-radius: 16px;
    }

    .checkout-title {
        font-size: 1.28rem;
    }

    .checkout-subtitle {
        font-size: 0.8rem;
    }

    .checkout-summary-card {
        gap: 10px;
        padding: 13px;
    }

    .checkout-summary-icon {
        width: 42px;
        height: 42px;
    }

    .checkout-summary-icon img {
        width: 24px;
        height: 24px;
    }

    .checkout-summary-copy strong {
        font-size: 0.92rem;
    }

    .checkout-summary-copy span,
    .checkout-summary-price span {
        font-size: 0.76rem;
    }

    .checkout-summary-price strong {
        font-size: 1.1rem;
    }

    .checkout-method-card {
        grid-template-columns: 40px minmax(0, 1fr) 32px;
        gap: 10px;
        min-height: 78px;
        padding: 12px;
    }

    .checkout-method-icon,
    .checkout-method-icon-usdt img,
    .checkout-method-icon-vodafone img {
        width: 40px;
        height: 40px;
    }

    .checkout-method-action {
        width: 32px;
        height: 32px;
    }

    .checkout-method-content {
        gap: 3px;
    }

    .checkout-method-content strong {
        font-size: 0.88rem;
    }

    .checkout-method-heading em {
        font-size: 0.58rem;
    }

    .checkout-method-content span:not(.checkout-method-heading) {
        font-size: 0.76rem;
    }
}
.status-dot {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 0.68rem;
    background: var(--muted-2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.status-dot-success {
    background: var(--success);
}

.status-dot-info {
    background: var(--info);
}

.status-dot-warning {
    background: var(--warning);
}

.auth-panel {
    width: 100%;
    padding: clamp(0.9rem, 2.4vw, 1.25rem);
    border-color: rgba(94, 234, 212, 0.22);
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at 92% 92%, rgba(45, 212, 191, 0.13), transparent 34%),
        radial-gradient(circle at 10% 8%, rgba(125, 211, 252, 0.08), transparent 38%),
        linear-gradient(145deg, rgba(5, 16, 18, 0.9), rgba(4, 10, 16, 0.94) 55%, rgba(3, 13, 12, 0.92));
    box-shadow:
        0 26px 74px rgba(0, 0, 0, 0.42),
        0 0 42px rgba(20, 184, 166, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(20px);
}

.auth-panel .auth-header {
    margin-bottom: 0.95rem;
}

.auth-panel .auth-title {
    margin-bottom: 0.32rem;
    font-size: clamp(1.55rem, 4.2vw, 1.95rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.auth-panel .auth-subtitle {
    max-width: 38ch;
    margin: 0;
    color: #aebdc0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-panel .auth-form {
    margin-top: 0.85rem;
}

.auth-panel .auth-actions {
    margin-top: 1rem;
}

.auth-panel .auth-switch {
    margin-top: 1.35rem;
    margin-bottom: 0;
    color: #aab8bd;
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-panel .auth-switch a {
    color: #69d9cb;
    text-decoration: none;
}

.auth-panel .auth-switch a:hover,
.auth-panel .auth-switch a:focus-visible {
    color: #99f6e4;
    text-decoration: underline;
}

.email-verify-page {
    display: grid;
    place-items: center;
    min-height: calc(100dvh - 4rem);
    padding: clamp(1rem, 3vw, 2rem);
}

.email-verify-card {
    width: min(100%, 31.5rem);
    padding: clamp(1.15rem, 3vw, 1.65rem);
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow:
        0 30px 84px rgba(0, 0, 0, 0.46),
        0 0 50px rgba(20, 184, 166, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.email-verify-icon {
    display: grid;
    place-items: center;
    width: 4.35rem;
    height: 4.35rem;
    margin: 0 auto 1rem;
    border: 1px solid rgba(94, 234, 212, 0.34);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 30% 18%, rgba(153, 246, 228, 0.2), transparent 54%),
        linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(8, 47, 73, 0.24)),
        rgba(4, 12, 18, 0.62);
    box-shadow:
        0 18px 38px rgba(20, 184, 166, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.email-verify-icon img {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.email-verify-header {
    margin-bottom: 1rem !important;
}

.email-verify-note {
    margin: 0.48rem 0 0;
    color: rgba(153, 246, 228, 0.82);
    font-size: 0.86rem;
    font-weight: 650;
}

.email-verify-form {
    display: grid;
    gap: 1rem;
}

.email-otp-field {
    display: grid;
    gap: 0.55rem;
}

.email-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
}

.email-otp-box {
    width: 100%;
    aspect-ratio: 1;
    min-height: 3.15rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(4, 12, 18, 0.68);
    color: #ecfeff;
    font-size: clamp(1.2rem, 4vw, 1.55rem);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    caret-color: #5eead4;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.email-otp-box:focus {
    outline: none;
    border-color: rgba(94, 234, 212, 0.68);
    background: rgba(5, 17, 22, 0.88);
    box-shadow:
        0 0 0 0.18rem rgba(20, 184, 166, 0.14),
        0 0 26px rgba(20, 184, 166, 0.11);
    transform: translateY(-1px);
}

.email-otp-grid.is-invalid .email-otp-box {
    border-color: rgba(239, 68, 68, 0.78);
}

.email-otp-help {
    color: rgba(174, 188, 194, 0.72);
    font-size: 0.82rem;
}

.email-resend-panel {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
}

.email-resend-panel p {
    margin: 0;
    color: #aebdc0;
    font-size: 0.9rem;
}

.email-resend-panel .btn {
    border-color: rgba(94, 234, 212, 0.28);
    color: #b8fff2;
}

.email-resend-panel .btn:disabled {
    color: rgba(174, 188, 194, 0.58);
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.018);
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: clamp(0.9rem, 3vw, 1.25rem);
    padding: 0.25rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.05rem;
    background: rgba(2, 8, 13, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.auth-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.48rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0.86rem;
    color: #8f9fa5;
    font-size: 0.9rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.23rem;
    width: 2.2rem;
    height: 0.22rem;
    border-radius: 999px;
    background: transparent;
    transform: translateX(-50%);
}

.auth-tab.is-active {
    color: #f7fbfb;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(13, 31, 34, 0.58);
    box-shadow:
        0 12px 26px rgba(20, 184, 166, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-tab.is-active::after {
    background: linear-gradient(90deg, #5eead4, #7dd3fc);
    box-shadow: 0 0 16px rgba(94, 234, 212, 0.42);
}

.auth-tab:not(.is-active):hover,
.auth-tab:not(.is-active):focus-visible {
    color: #d5e6e5;
    background: rgba(255, 255, 255, 0.025);
}

.auth-shell > .alert {
    width: 100%;
    margin-bottom: 0;
    transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease, padding 220ms ease;
}

.auth-shell > .alert.auth-flash-hiding {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.35rem);
}

.panel h2,
.premium-card h2,
.auth-panel h1,
.auth-panel h2 {
    color: var(--text);
    font-weight: 700;
}

.stat-card {
    min-height: 7.2rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(255, 255, 255, 0.025));
}

.stat-number {
    margin-top: 0.4rem;
    color: var(--text);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.05;
}

.text-secondary,
.form-text,
dt {
    color: var(--muted) !important;
}

dd {
    color: var(--text);
    overflow-wrap: anywhere;
}

.account-copy-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
}

.account-copy-value {
    min-width: 0;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}

.account-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(129, 140, 248, 0.34);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-copy-button:hover,
.account-copy-button:focus-visible {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(99, 102, 241, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.account-copy-button.is-copied {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.btn {
    border-radius: 8px;
    font-weight: 650;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-premium {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.24);
}

.auth-shell .btn {
    min-height: 2.9rem;
    padding-block: 0.62rem;
    border-radius: 0.9rem;
    font-weight: 700;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.auth-shell .btn-primary {
    --bs-btn-bg: #2f9e94;
    --bs-btn-border-color: rgba(94, 234, 212, 0.46);
    --bs-btn-hover-bg: #3db6a9;
    --bs-btn-hover-border-color: rgba(153, 246, 228, 0.62);
    font-size: 0.98rem;
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.78), rgba(20, 184, 166, 0.72) 48%, rgba(36, 78, 118, 0.76)),
        #0f766e;
    box-shadow:
        0 16px 34px rgba(20, 184, 166, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-shell .btn:hover {
    transform: translateY(-1px);
}

.btn-premium .btn-icon,
.btn-ghost .btn-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 0.85rem;
}

.btn-premium,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.inbox-sync-button {
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.8rem;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
}

.inbox-create-alias-button {
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.2);
}

.inbox-refresh-button {
    min-height: 2.5rem;
    padding: 0.45rem 0.8rem;
}

.inbox-search-field {
    position: relative;
}

.inbox-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.inbox-search-icon svg {
    width: 1rem;
    height: 1rem;
}

.inbox-search-control {
    padding-left: 2.7rem;
}

.inbox-mobile-create-alias {
    display: none;
}

.inbox-upgrade-promo {
    position: fixed;
    left: calc(50% + 140px);
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1020;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: min(680px, calc(100vw - 320px));
    min-height: 4.25rem;
    padding: 0.68rem 0.75rem;
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 1rem;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(250, 204, 21, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(24, 24, 27, 0.96), rgba(12, 14, 18, 0.94));
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(245, 158, 11, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.inbox-upgrade-promo:hover,
.inbox-upgrade-promo:focus-visible {
    color: var(--text);
    border-color: rgba(250, 204, 21, 0.42);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.46),
        0 0 34px rgba(245, 158, 11, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    filter: brightness(1.03);
    transform: translateX(-50%) translateY(-1px);
}

.inbox-upgrade-promo:focus-visible {
    outline: 2px solid rgba(250, 204, 21, 0.58);
    outline-offset: 3px;
}

body:has(.inbox-upgrade-promo) .main-content:has(.inbox-page-header) {
    padding-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
}

.inbox-upgrade-promo-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.inbox-upgrade-promo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.inbox-upgrade-promo-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.inbox-upgrade-promo-copy strong {
    font-size: 0.92rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff7ed;
}

.inbox-upgrade-promo-copy span {
    color: #d4d4d8;
    font-size: 0.78rem;
    line-height: 1.25;
}

.inbox-upgrade-promo-action {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.78rem;
    color: #1c1917;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.inbox-upgrade-promo:hover .inbox-upgrade-promo-action,
.inbox-upgrade-promo:focus-visible .inbox-upgrade-promo-action {
    color: #1c1917;
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.36);
    transform: translateY(-1px);
}

.inbox-upgrade-promo-action svg {
    width: 1.05rem;
    height: 1.05rem;
}

@media (max-width: 991.98px) {
    .inbox-upgrade-promo {
        left: 50%;
        width: min(560px, calc(100vw - 1.5rem));
    }
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-ghost {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: var(--border-soft);
    --bs-btn-hover-color: var(--text);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.07);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.025);
}

.btn-outline-danger {
    --bs-btn-color: #fca5a5;
    --bs-btn-border-color: rgba(239, 68, 68, 0.28);
    --bs-btn-hover-bg: rgba(239, 68, 68, 0.14);
    --bs-btn-hover-border-color: rgba(239, 68, 68, 0.42);
    --bs-btn-hover-color: #fecaca;
}

.form-label {
    color: #d4d4d8;
    font-weight: 650;
}

.form-control,
.form-select,
.form-control-dark {
    color: var(--text);
    background-color: rgba(9, 9, 11, 0.72);
    border-color: var(--border);
    border-radius: 0.95rem;
}

.input-group-dark .input-group-text {
    color: var(--muted);
    background: rgba(9, 9, 11, 0.82);
    border-color: var(--border);
    border-radius: 0.95rem 0 0 0.95rem;
}

.input-group-dark .input-group-text svg {
    width: 1rem;
    height: 1rem;
}

.input-group-dark .form-control {
    border-left: 0;
}

.input-group-dark .form-control:focus {
    box-shadow: none;
}

.auth-shell .form-control,
.auth-shell .form-select,
.auth-shell .form-control-dark {
    min-height: 2.9rem;
    padding: 0.68rem 0.85rem;
    border-color: rgba(148, 163, 184, 0.2);
    border-radius: 0.9rem;
    background: rgba(4, 12, 18, 0.58);
    color: #ecfeff;
    font-size: 0.92rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.auth-shell .form-label {
    color: #d7e3e4;
    font-size: 0.84rem;
    font-weight: 650;
}

.auth-panel .mb-3,
.auth-panel .mb-4 {
    margin-bottom: 0.72rem !important;
}

.auth-shell .form-control:focus,
.auth-shell .form-select:focus,
.auth-shell .form-control-dark:focus {
    color: #f8fafc;
    background: rgba(5, 17, 22, 0.82);
    border-color: rgba(94, 234, 212, 0.62);
    box-shadow:
        0 0 0 0.18rem rgba(20, 184, 166, 0.14),
        0 0 24px rgba(20, 184, 166, 0.08);
}

.auth-shell .form-control::placeholder {
    color: rgba(174, 188, 194, 0.62);
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: rgba(9, 9, 11, 0.9);
    border-color: rgba(129, 140, 248, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.18);
}

.form-control::placeholder {
    color: var(--muted-2);
}

.form-select {
    --bs-form-select-bg-img: none;
}

.form-check-input {
    background-color: rgba(9, 9, 11, 0.86);
    border-color: var(--border);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.invalid-feedback {
    color: #fca5a5;
}

.is-invalid {
    border-color: rgba(239, 68, 68, 0.75) !important;
}

.alert,
.alert-premium {
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
}

.auth-shell .alert {
    padding: 0.9rem 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.auth-shell .alert-dismissible {
    padding-right: 3rem;
}

.auth-shell .alert .btn-close {
    padding: 0.8rem 0.75rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.11);
    border-color: rgba(34, 197, 94, 0.22);
}

.main-content > .app-success-flash,
.main-content:has(.aliases-page-header) > .alert-success,
.checkout-payment-flash {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    max-height: 8rem;
    padding: 0.85rem 1.1rem;
    color: #dffdf4;
    text-align: center;
    background:
        radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.2), transparent 42%),
        linear-gradient(135deg, rgba(6, 78, 59, 0.68), rgba(8, 47, 73, 0.42));
    border-color: rgba(94, 234, 212, 0.4);
    box-shadow: 0 16px 36px rgba(20, 184, 166, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease, padding 220ms ease;
}

.main-content > .app-success-flash .btn-close,
.main-content:has(.aliases-page-header) > .alert-success .btn-close,
.checkout-payment-flash .btn-close {
    display: none;
}

.main-content > .app-success-flash.app-success-flash-hiding,
.main-content:has(.aliases-page-header) > .alert-success.alias-success-hiding,
.checkout-payment-flash.checkout-payment-flash-hiding {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.35rem);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.24);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.26);
}

.alert-info {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.22);
}

.alias-create-card {
    padding: 1.35rem;
}

.alias-create-form {
    display: grid;
    gap: 1.15rem;
}

.alias-mobile-label,
.alias-domain-meta-mobile {
    display: none;
}

.alias-create-card .btn-icon,
.alias-back-button .btn-icon {
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
}

.alias-create-card .btn-icon svg,
.alias-back-button .btn-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.alias-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding-inline: 0.9rem;
}

.alias-premium-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 3.4rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 1rem;
    background: rgba(245, 158, 11, 0.08);
}

.alias-premium-banner-copy {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.alias-premium-banner-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fbbf24;
    font-weight: 750;
}

.alias-premium-banner-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    color: #fbbf24;
}

.alias-premium-banner-icon svg {
    width: 100%;
    height: 100%;
}

.alias-details-header {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.1rem;
}

.alias-details-header h2 {
    color: var(--text);
    font-size: 1.38rem;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.alias-details-header p {
    max-width: 42rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.alias-premium-banner-message {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.alias-premium-banner .btn {
    min-height: 2.55rem;
    padding: 0.48rem 0.9rem;
}

.alias-composer {
    display: grid;
    grid-template-columns: minmax(14rem, 30rem) minmax(14rem, 30rem);
    grid-template-rows: auto auto auto;
    column-gap: 2.95rem;
    row-gap: 0.55rem;
    align-items: center;
    justify-content: start;
    width: 100%;
    max-width: calc((26rem * 2) + 2.95rem);
    margin-inline: auto;
}

.alias-field-local,
.alias-field-domain {
    display: contents;
}

.alias-field-local .form-label {
    grid-column: 1;
    grid-row: 1;
}

.alias-field-domain .form-label {
    grid-column: 2;
    grid-row: 1;
}

.alias-local-input-shell {
    grid-column: 1;
    grid-row: 2;
}

.alias-domain-shell {
    grid-column: 2;
    grid-row: 2;
}

.alias-domain-shell {
    width: 100%;
}

.alias-local-input-shell,
.alias-domain-shell {
    width: 100%;
    max-width: 26rem;
}

.alias-local-input-shell {
    position: relative;
    justify-self: end;
}

.alias-local-input-shell .form-control {
    width: 100%;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.alias-local-input-shell .form-control::placeholder {
    color: var(--muted-2);
    -webkit-text-fill-color: var(--muted-2);
    opacity: 1;
}

.alias-mobile-email-display {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 3;
    align-items: center;
    padding: 0.68rem 0.9rem;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    opacity: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.alias-local-input-shell.has-mobile-email .form-control {
    position: relative;
    z-index: 2;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--text);
    background-color: rgba(9, 9, 11, 0.72);
}

.alias-local-input-shell.has-mobile-email .alias-mobile-email-display {
    display: flex;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.alias-field-local .form-label,
.alias-field-local .form-text,
.alias-field-local .invalid-feedback {
    width: 100%;
    max-width: 26rem;
    justify-self: end;
}

.alias-domain-shell {
    position: relative;
    justify-self: start;
}

.alias-field-domain .form-label,
.alias-domain-meta,
.alias-field-domain .invalid-feedback {
    width: 100%;
    max-width: 26rem;
    justify-self: start;
}

.alias-field-local .invalid-feedback,
.alias-field-local .form-text {
    grid-column: 1;
    grid-row: 3;
}

.alias-field-domain .invalid-feedback,
.alias-domain-meta {
    grid-column: 2;
    grid-row: 3;
}

.alias-domain-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: rgba(9, 9, 11, 0.72);
    color: var(--text);
    text-align: left;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.alias-domain-trigger:hover,
.alias-domain-trigger:focus-visible,
.alias-domain-trigger.is-open {
    border-color: rgba(129, 140, 248, 0.65);
    background: rgba(9, 9, 11, 0.88);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.16);
}

.alias-domain-trigger.is-invalid {
    border-color: rgba(239, 68, 68, 0.75) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.12);
}

.alias-domain-trigger-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alias-domain-trigger-expiry {
    min-width: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

.alias-domain-trigger-meta {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.alias-domain-trigger-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.alias-domain-trigger-arrow {
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    color: var(--muted);
    flex: 0 0 auto;
}

.alias-domain-trigger-arrow svg {
    width: 100%;
    height: 100%;
}

.alias-domain-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 20;
    display: grid;
    gap: 0.25rem;
    width: 100%;
    max-height: 19rem;
    padding: 0.55rem;
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(16, 16, 20, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(16px);
}

.alias-domain-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    background: transparent;
    color: var(--text);
    text-align: left;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.alias-domain-option.is-expired {
    color: rgba(255, 255, 255, 0.42);
    opacity: 0.72;
}

.alias-domain-option.is-expired .alias-domain-option-badge {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.08);
    color: rgba(226, 232, 240, 0.7);
}

.alias-domain-option:hover,
.alias-domain-option:focus-visible {
    border-color: rgba(129, 140, 248, 0.22);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.alias-domain-option.is-selected {
    border-color: rgba(129, 140, 248, 0.34);
    background: rgba(99, 102, 241, 0.12);
}

.alias-domain-option-public {
    color: var(--text);
}

.alias-domain-option-premium {
    color: #fde68a;
}

.alias-domain-option-copy {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.alias-domain-option-expiry {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.alias-domain-option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.alias-domain-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.22rem 0.52rem;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.alias-domain-option-lock {
    display: inline-grid;
    place-items: center;
    width: 0.85rem;
    height: 0.85rem;
}

.alias-domain-option-lock svg {
    width: 100%;
    height: 100%;
}

.alias-composer .form-select,
.alias-domain-shell .visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alias-field .form-label {
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.alias-field .form-text {
    margin-top: 0.55rem;
    max-width: 36rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.alias-domain-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.alias-domain-meta .badge {
    flex: 0 0 auto;
    margin-top: 0.55rem;
}

.alias-at {
    grid-column: 2;
    grid-row: 2;
    display: none;
    place-items: center;
    min-width: 4rem;
    min-height: 3rem;
    align-self: center;
    justify-self: center;
    color: #9ca3af;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.alias-preview-card {
    display: grid;
    align-content: center;
    gap: 0.45rem;
    min-height: 4.7rem;
    padding: 0.95rem 1rem;
}

.alias-preview-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alias-preview-label {
    color: var(--text);
    font-size: 1rem;
    font-weight: 650;
}

.alias-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 650;
}

.alias-preview-status-dot {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
}

.alias-preview-status-empty {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(245, 158, 11, 0.1);
}

.alias-preview-status-empty [data-alias-preview-status-text] {
    font-size: 0;
}

.alias-preview-status-empty [data-alias-preview-status-text]::after {
    content: "Waiting for input";
    font-size: 0.9rem;
}

.alias-preview-status-empty .alias-preview-status-dot {
    width: 0.95rem;
    height: 0.95rem;
    color: transparent;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-top-color: #fbbf24;
    background: transparent;
    animation: alias-wait-spin 0.85s linear infinite;
}

@keyframes alias-wait-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .alias-preview-status-empty .alias-preview-status-dot {
        animation: none;
    }
}

.alias-preview-status-checking {
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.11);
}

.alias-preview-status-checking .alias-preview-status-dot {
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.14);
}

.alias-preview-status-available {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.11);
}

.alias-preview-status-available .alias-preview-status-dot {
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.42);
    background: rgba(34, 197, 94, 0.12);
}

.alias-preview-status-taken,
.alias-preview-status-invalid,
.alias-preview-status-error {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.1);
}

.alias-preview-status-taken .alias-preview-status-dot,
.alias-preview-status-invalid .alias-preview-status-dot,
.alias-preview-status-error .alias-preview-status-dot {
    color: #fda4af;
    border: 1px solid rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.12);
}

.alias-preview-status-locked {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.11);
}

.alias-preview-status-locked .alias-preview-status-dot {
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.36);
    background: rgba(245, 158, 11, 0.12);
}

.alias-preview-email {
    display: none !important;
    align-items: center;
    width: fit-content;
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 750;
    text-decoration: none;
    word-break: break-word;
}

.alias-preview-email:hover,
.alias-preview-email:focus-visible {
    color: #ddd6fe;
}

.alias-preview-at {
    margin: 0 0.05rem;
    color: var(--muted);
}

.alias-preview-local {
    color: var(--text);
}

.alias-preview-domain-value {
    color: #4ade80;
}

.alias-preview-empty {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.alias-preview-note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .alias-preview-card {
        width: fit-content;
        max-width: 100%;
        min-width: 18rem;
        justify-self: center;
        margin-inline: auto;
        min-height: 0;
        padding: 0.78rem 0.95rem;
    }

    .alias-preview-top {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .alias-preview-empty {
        display: none !important;
    }
}

.alias-duplicate-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.08);
}

.alias-duplicate-title {
    color: #fecaca;
    font-weight: 750;
}

.alias-duplicate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.alias-action-row {
    display: grid;
    grid-template-columns: minmax(13.75rem, auto) minmax(0, 1fr) minmax(12rem, auto);
    align-items: center;
    gap: 1rem;
}

.alias-action-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 1rem;
    white-space: nowrap;
}

.alias-action-row [data-alias-random-button] {
    min-width: 14.5rem;
    justify-self: end;
}

.alias-action-row [data-alias-random-button].alias-random-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-inline: 1rem 0.95rem;
    color: #fff;
    background: rgba(17, 17, 19, 0.96);
    border-color: rgba(129, 140, 248, 0.58);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12), 0 10px 22px rgba(99, 102, 241, 0.12);
    transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease, background-color 210ms ease;
}

.alias-action-row [data-alias-random-button].alias-random-button:hover,
.alias-action-row [data-alias-random-button].alias-random-button:focus-visible {
    background: rgba(20, 20, 24, 0.98);
    border-color: rgba(167, 139, 250, 0.86);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22), 0 0 0 0.2rem rgba(129, 140, 248, 0.12), 0 12px 26px rgba(99, 102, 241, 0.18);
    transform: translateY(-1px);
}

.alias-action-row [data-alias-random-button].alias-random-button:active {
    transform: translateY(0);
    background: rgba(15, 15, 18, 1);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.18), 0 8px 18px rgba(99, 102, 241, 0.1);
}

.alias-action-row [data-alias-random-button].alias-random-button:disabled {
    color: rgba(255, 255, 255, 0.58);
    background: rgba(17, 17, 19, 0.7);
    border-color: rgba(129, 140, 248, 0.2);
    box-shadow: none;
    transform: none;
}

.alias-random-button-icon,
.alias-random-button-chevron {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
}

.alias-random-button-label {
    flex: 0 1 auto;
    font-weight: 600;
    color: #fff;
}

.alias-random-button-icon svg,
.alias-random-button-chevron svg {
    width: 100%;
    height: 100%;
}

.alias-action-row [data-alias-create-button] {
    min-width: 12rem;
    justify-self: start;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: rgba(129, 140, 248, 0.72);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.24);
}

.alias-action-row [data-alias-create-button]:hover,
.alias-action-row [data-alias-create-button]:focus-visible {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    border-color: rgba(165, 180, 252, 0.8);
}

.alias-action-row [data-alias-create-button]:disabled {
    color: rgba(255, 255, 255, 0.62);
    background: rgba(99, 102, 241, 0.36);
    border-color: rgba(129, 140, 248, 0.25);
    box-shadow: none;
}

.alias-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alias-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.05rem;
}

.alias-feature-card {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-height: 9.2rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.alias-feature-card h2 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.alias-feature-card p {
    font-size: 0.84rem;
    line-height: 1.55;
}

.alias-feature-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.alias-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    flex: 0 0 auto;
}

.alias-feature-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.alias-feature-icon-purple {
    color: #c084fc;
    background: transparent;
}

.alias-feature-icon-green {
    color: #4ade80;
    background: transparent;
}

.alias-feature-icon-gold {
    color: #fbbf24;
    background: transparent;
}

.alias-feature-link {
    margin-top: auto;
    color: #c4b5fd;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.alias-feature-link:hover,
.alias-feature-link:focus-visible {
    color: #ddd6fe;
}

.alias-duplicate-footnote {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alias-footnote-icon {
    display: inline-grid;
    place-items: center;
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 0.95rem;
}

.alias-footnote-icon svg {
    width: 100%;
    height: 100%;
}

.table,
.premium-table {
    --bs-table-color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-soft);
    --bs-table-hover-color: var(--text);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.035);
    margin-bottom: 0;
}

.table thead th {
    color: var(--muted);
    border-bottom-color: var(--border-soft);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table td,
.table th {
    padding: 0.85rem 0.8rem;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color 140ms ease;
}

.badge,
.badge-soft {
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
    font-weight: 650;
    letter-spacing: 0;
}

.badge-alias {
    color: #ddd6fe;
    border-color: rgba(129, 140, 248, 0.24);
    background: rgba(99, 102, 241, 0.14);
}

.alias-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.56rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1;
}

.alias-type-badge-premium {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
}

.alias-type-badge-free {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5e1;
}

.alias-type-badge-icon {
    display: inline-grid;
    place-items: center;
    width: 0.85rem;
    height: 0.85rem;
}

.alias-type-badge-icon svg {
    width: 100%;
    height: 100%;
}

.alias-upgrade-modal {
    z-index: 1065;
}

.alias-upgrade-modal .modal-dialog,
.alias-upgrade-modal .modal-content {
    pointer-events: auto;
}

body:has(.alias-upgrade-modal.show) > .modal-backdrop {
    z-index: 1060;
    background:
        radial-gradient(circle at 50% 34%, rgba(20, 184, 166, 0.15), transparent 34rem),
        rgba(2, 8, 10, 0.78);
    opacity: 1;
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.alias-upgrade-modal .modal-content {
    color: var(--text);
    border: 1px solid rgba(129, 140, 248, 0.24);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98), rgba(14, 14, 17, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.alias-upgrade-modal .modal-header,
.alias-upgrade-modal .modal-footer {
    border-color: var(--border-soft);
}

.alias-upgrade-modal .modal-header,
.alias-upgrade-modal .modal-body,
.alias-upgrade-modal .modal-footer {
    padding: 1rem 1.1rem;
}

.alias-upgrade-modal .modal-title {
    font-weight: 800;
}

.badge-domain {
    color: #bfdbfe;
    border-color: rgba(56, 189, 248, 0.18);
    background: rgba(56, 189, 248, 0.1);
}

.sync-summary-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.68rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 650;
}

.sync-badge strong {
    color: inherit;
    font-weight: 750;
}

.sync-badge-success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.11);
    color: #bbf7d0;
}

.sync-badge-info {
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.11);
    color: #bae6fd;
}

.sync-badge-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
}

.sync-badge-neutral {
    color: var(--text);
}

.inbox-search-card {
    padding: 1rem;
}

.inbox-search-card .form-label {
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inbox-search-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.inbox-filter-minimize {
    display: none;
    margin-bottom: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fca5a5;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 160ms ease, opacity 160ms ease;
}

.inbox-filter-minimize:hover,
.inbox-filter-minimize:focus-visible {
    color: #fecaca;
    outline: none;
}

@media (min-width: 992px) {
    .inbox-search-card {
        padding: 0.24rem 0.9rem 0.68rem;
        border-color: rgba(94, 234, 212, 0.2);
        border-radius: 1.08rem;
        background:
            radial-gradient(circle at 12% 0%, rgba(20, 184, 166, 0.12), transparent 36%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
            rgba(4, 12, 16, 0.78);
        box-shadow:
            0 22px 62px rgba(0, 0, 0, 0.28),
            0 0 34px rgba(20, 184, 166, 0.075),
            inset 0 1px 0 rgba(255, 255, 255, 0.055);
        backdrop-filter: blur(18px);
    }

    .inbox-filter-form {
        display: grid !important;
        grid-template-columns:
            minmax(320px, 1.75fr)
            minmax(178px, 0.76fr)
            minmax(220px, 0.96fr)
            minmax(138px, 0.42fr);
        align-items: end;
        gap: 0.72rem;
        margin: 0;
    }

    .inbox-filter-form > [class*="col-"] {
        width: auto;
        max-width: none;
        flex: none;
        padding: 0;
        margin-top: 0;
    }

    .inbox-search-card .form-label {
        margin-bottom: 0.18rem;
        color: rgba(174, 236, 225, 0.68);
        font-size: 0.66rem;
        font-weight: 850;
        letter-spacing: 0.09em;
        line-height: 1.1;
    }

    .inbox-search-label-row {
        align-items: flex-end;
    }

    .inbox-search-field {
        width: 100%;
    }

    .inbox-search-card .form-control,
    .inbox-search-card .form-select,
    .inbox-search-card .btn {
        min-height: 2.64rem;
        border-radius: 0.82rem;
        font-size: 0.92rem;
    }

    .inbox-search-card .form-control,
    .inbox-search-card .form-select {
        color: #ecfeff;
        border-color: rgba(94, 234, 212, 0.16);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
            rgba(3, 10, 14, 0.72);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 10px 24px rgba(0, 0, 0, 0.12);
    }

    .inbox-search-card .form-control:focus,
    .inbox-search-card .form-select:focus {
        border-color: rgba(94, 234, 212, 0.54);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(3, 13, 18, 0.88);
        box-shadow:
            0 0 0 0.18rem rgba(20, 184, 166, 0.12),
            0 0 24px rgba(20, 184, 166, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.055);
    }

    .inbox-search-card .form-select {
        padding-right: 2rem;
    }

    .inbox-search-icon {
        left: 1rem;
        color: #5eead4;
        opacity: 0.82;
    }

    .inbox-filter-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 2.64rem;
        padding-inline: 0.95rem;
        border-color: rgba(167, 139, 250, 0.62);
        background:
            linear-gradient(135deg, #4f46e5, #7c3aed 55%, #14b8a6),
            #4f46e5;
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 850;
        box-shadow:
            0 16px 34px rgba(99, 102, 241, 0.24),
            0 0 22px rgba(20, 184, 166, 0.11),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .inbox-filter-submit:hover,
    .inbox-filter-submit:focus-visible {
        border-color: rgba(196, 181, 253, 0.82);
        background:
            linear-gradient(135deg, #6366f1, #8b5cf6 55%, #2dd4bf),
            #6366f1;
        box-shadow:
            0 18px 38px rgba(99, 102, 241, 0.3),
            0 0 28px rgba(20, 184, 166, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.inbox-sync-summary {
    padding: 0.95rem 1rem;
}

.inbox-sync-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sync-last-sync {
    color: var(--muted);
    font-size: 0.84rem;
    white-space: nowrap;
}

.inbox-sync-warning {
    width: 100%;
}

.text-bg-secondary {
    color: #d4d4d8 !important;
    background: rgba(161, 161, 170, 0.14) !important;
}

.text-bg-success {
    color: #bbf7d0 !important;
    background: rgba(34, 197, 94, 0.14) !important;
}

.text-bg-warning {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.16) !important;
}

.text-bg-danger {
    color: #fecaca !important;
    background: rgba(239, 68, 68, 0.16) !important;
}

.text-bg-info {
    color: #bae6fd !important;
    background: rgba(56, 189, 248, 0.14) !important;
}

.pagination {
    gap: 0.35rem;
    margin-top: 1rem;
}

.page-link {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border-soft);
    border-radius: 8px;
}

.page-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.page-item.disabled .page-link {
    color: var(--muted-2);
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-soft);
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 12rem;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

.mail-table-header {
    display: grid;
    grid-template-columns: 1.25rem minmax(12rem, 1.1fr) minmax(0, 2.1fr) minmax(8rem, 9rem) minmax(7rem, 8rem) 7rem;
    gap: 0.85rem;
    align-items: center;
    padding: 0 1rem 0.65rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mail-select-head,
.mail-select {
    display: grid;
    place-items: center;
}

.mail-checkbox {
    width: 1rem;
    height: 1rem;
    margin: 0;
    border: 1px solid var(--border-soft);
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.mail-checkbox:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.6);
    outline-offset: 2px;
}

.mail-bulk-form {
    margin-bottom: 0.9rem;
}

.mail-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 0.95rem;
    background: rgba(99, 102, 241, 0.08);
}

.mail-bulk-count {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 750;
}

.mail-bulk-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.inbox-delete-modal-open {
    overflow: hidden;
}

body.safe-mode-info-modal-open {
    overflow: hidden;
}

.inbox-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(3, 3, 7, 0.62);
    backdrop-filter: blur(14px);
}

.inbox-delete-modal-card {
    width: min(100%, 29rem);
    padding: 1.2rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.13), transparent 38%),
        linear-gradient(180deg, rgba(24, 24, 27, 0.98), rgba(12, 12, 15, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.inbox-delete-modal-icon {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.26);
    border-radius: 0.9rem;
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.inbox-delete-modal-icon svg {
    width: 1.28rem;
    height: 1.28rem;
}

.inbox-delete-modal-copy h2 {
    color: var(--text);
    font-weight: 800;
}

.inbox-delete-modal-copy p {
    color: var(--muted);
    line-height: 1.6;
}

.inbox-delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.inbox-delete-confirm-button {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.08);
}

.inbox-delete-confirm-button:hover,
.inbox-delete-confirm-button:focus-visible {
    color: #fff;
    border-color: rgba(239, 68, 68, 0.68);
    background: rgba(239, 68, 68, 0.22);
}

.safe-mode-info-modal {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(3, 3, 7, 0.66);
    backdrop-filter: blur(14px);
}

.safe-mode-info-card {
    position: relative;
    width: min(100%, 48rem);
    max-height: min(92vh, 52rem);
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid rgba(129, 140, 248, 0.24);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.2), transparent 34%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(24, 24, 27, 0.98), rgba(12, 12, 15, 0.98));
    box-shadow: 0 30px 88px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: safeModeModalIn 210ms ease both;
}

.safe-mode-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(9, 9, 11, 0.58);
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.safe-mode-info-close svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.safe-mode-info-close:hover,
.safe-mode-info-close:focus-visible {
    color: var(--text);
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(99, 102, 241, 0.16);
    transform: translateY(-1px);
}

.safe-mode-info-hero {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.safe-mode-info-hero-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2.5rem;
}

.safe-mode-info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid rgba(129, 140, 248, 0.32);
    border-radius: 1rem;
    color: #c4b5fd;
    background: rgba(99, 102, 241, 0.14);
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.2);
}

.safe-mode-info-icon svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.safe-mode-info-hero h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 850;
}

.safe-mode-info-hero p {
    margin: 0;
}

.safe-mode-info-hero p,
.safe-mode-info-choice p,
.safe-mode-info-panel p,
.safe-mode-info-note,
.safe-mode-info-bottom {
    color: var(--muted);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .safe-mode-info-hero {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        justify-items: center;
    }

    .safe-mode-info-hero-row {
        justify-content: center;
    }

    .safe-mode-info-hero p {
        width: max-content;
        max-width: 100%;
        color: #c4b5fd;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
    }
}

.safe-mode-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.safe-mode-info-choice {
    padding: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(9, 9, 11, 0.42);
}

.safe-mode-info-choice-original {
    border-color: rgba(56, 189, 248, 0.24);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.13), transparent 38%),
        rgba(9, 9, 11, 0.42);
}

.safe-mode-info-choice-safe {
    border-color: rgba(34, 197, 94, 0.24);
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.13), transparent 38%),
        rgba(9, 9, 11, 0.42);
}

.safe-mode-info-choice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.safe-mode-info-choice h3,
.safe-mode-info-panel h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
}

.safe-mode-info-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(129, 140, 248, 0.24);
    border-radius: 999px;
    color: #ddd6fe;
    background: rgba(99, 102, 241, 0.14);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.safe-mode-info-choice-safe .safe-mode-info-badge {
    border-color: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
}

.safe-mode-info-choice ul {
    display: grid;
    gap: 0.42rem;
    padding: 0;
    margin: 0.8rem 0 0;
    list-style: none;
}

.safe-mode-info-choice li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.safe-mode-info-choice li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e;
    font-weight: 900;
}

.safe-mode-info-panel {
    margin-top: 0.9rem;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(129, 140, 248, 0.22);
    border-radius: 1rem;
    background: rgba(99, 102, 241, 0.1);
}

.safe-mode-info-panel p {
    margin-bottom: 0;
}

.safe-mode-info-note {
    margin: 0.95rem 0 0;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 0.9rem;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.08);
    font-size: 0.86rem;
}

.safe-mode-info-bottom {
    margin: 0.8rem 0 0;
    text-align: center;
    font-size: 0.86rem;
}

@keyframes safeModeModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mail-header-subject,
.mail-header-alias,
.mail-header-received,
.mail-header-actions {
    text-align: center;
}

.mail-list {
    display: grid;
    gap: 0.65rem;
}

.mail-item {
    display: grid;
    grid-template-columns: 1.25rem minmax(12rem, 1.1fr) minmax(0, 2.1fr) minmax(8rem, 9rem) minmax(7rem, 8rem) 7rem;
    gap: 0.85rem;
    align-items: center;
    padding: 0.92rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.mail-item:hover {
    border-color: rgba(129, 140, 248, 0.26);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.mail-sender,
.mail-subject {
    color: var(--text);
    font-weight: 700;
}

.mail-sender,
.mail-subject {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.mail-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    color: #f8fafc;
    background: linear-gradient(135deg, var(--success), #2563eb);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 800;
}

.mail-avatar-lg {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 0.95rem;
}

.mail-item-main-copy {
    min-width: 0;
}

.mail-item-alias {
    display: flex;
    justify-content: center;
}

.mail-item-date {
    color: var(--muted-2);
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
}

.mail-recipient,
.mail-meta,
.mail-preview {
    color: var(--muted);
    font-size: 0.86rem;
}

.mail-recipient {
    margin-top: 0.18rem;
}

.mail-preview {
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mail-item-content {
    min-width: 0;
    text-align: center;
}

.mail-actions {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.btn-mail-open,
.btn-mail-delete {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    min-height: 2.6rem;
    padding: 0;
    border-radius: 0.8rem;
}

.btn-mail-delete {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.3);
    background: transparent;
}

.btn-mail-delete:hover,
.btn-mail-delete:focus-visible {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.45);
}

.mail-detail {
    max-width: 980px;
    display: grid;
    gap: 1rem;
}

.mail-detail-subject {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.mail-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.mail-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mail-detail-from {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.mail-detail-from-copy {
    min-width: 0;
}

.mail-detail-from-line {
    color: var(--text);
    font-size: 1rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.mail-detail-to-line,
.mail-detail-date {
    color: var(--muted);
    font-size: 0.84rem;
}

.mail-detail-date {
    white-space: nowrap;
    padding-top: 0.15rem;
}

.mail-detail-date-mobile,
.mail-detail-toggle-icon {
    display: none;
}

.detail-label,
.section-caption {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    margin-top: 0.35rem;
    color: var(--text);
    font-weight: 650;
    word-break: break-word;
}

.mail-header-card,
.mail-body-card,
.mail-html-card,
.mail-detail-actions {
    padding: 1rem;
}

.mail-html-card .section-caption {
    margin-bottom: 0.5rem;
}

.mail-content-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mail-content-heading-compact {
    justify-content: flex-end;
}

.mail-content-heading .section-caption {
    margin-bottom: 0;
}

.mail-render-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
}

.mail-detail.is-email-view-pending .mail-render-controls,
.mail-detail.is-email-view-pending [data-email-view-scroll] {
    opacity: 0;
    pointer-events: none;
}

.mail-render-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.22rem;
    border: 1px solid rgba(167, 139, 250, 0.38);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.16), transparent 42%),
        rgba(9, 9, 11, 0.48);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.mail-render-toggle-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 1.85rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mail-render-toggle-link:hover,
.mail-render-toggle-link:focus-visible,
.mail-render-toggle-link.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.22);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.28);
}

.mail-render-toggle-separator {
    width: 1px;
    align-self: stretch;
    min-height: 1.85rem;
    margin: 0 0.2rem;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.62), transparent);
}

.mail-safe-mode-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 1.85rem;
    padding: 0.22rem 0.55rem;
    border: 0;
    border-radius: 999px;
    color: #f0d7a6;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.08;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.mail-safe-mode-info-link:hover,
.mail-safe-mode-info-link:focus-visible {
    color: #ffe7b8;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.14);
    transform: translateY(-1px);
}

.mail-safe-mode-info-text {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
    text-decoration: none;
}

.email-content-scroll {
    width: 100%;
}

.mail-detail-delete-button {
    min-height: 2.65rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.85rem;
    font-weight: 700;
}

.inbox-preview,
.log-details {
    max-width: 34rem;
    white-space: normal;
    word-break: break-word;
}

.email-body-text {
    margin: 0;
    min-height: 16rem;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    font: inherit;
    line-height: 1.65;
    color: var(--text);
    background: rgba(9, 9, 11, 0.72);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
}

.mail-html-details {
    display: grid;
    gap: 0.8rem;
}

.mail-html-summary {
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mail-html-summary::-webkit-details-marker {
    display: none;
}

.mail-html-note {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.email-html-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 540px;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.58);
    border-radius: 1rem;
    background: #f1f5f9;
    filter: brightness(0.9) contrast(0.96) saturate(0.92);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.1),
        0 16px 34px rgba(0, 0, 0, 0.18);
}

.empty-state.inbox-empty {
    min-height: 16rem;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1rem;
}

.inbox-empty .empty-icon {
    animation: inbox-empty-float 5.5s ease-in-out infinite, inbox-empty-glow 4.8s ease-in-out infinite;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    background: rgba(99, 102, 241, 0.12);
    color: #c4b5fd;
}

.empty-icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.inbox-empty-copy {
    max-width: 28rem;
}

.inbox-empty-title {
    color: var(--text);
    animation: inbox-empty-title-in 520ms ease-out both;
}

.inbox-empty-tagline {
    min-height: 1.6em;
    color: #ddd6fe;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0;
}

.inbox-empty-tagline::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 1em;
    margin-left: 0.14rem;
    vertical-align: -0.12em;
    background: currentColor;
    animation: inbox-empty-cursor 900ms steps(2, start) infinite;
}

.inbox-empty-tagline.is-typed::after {
    animation: none;
    opacity: 0;
}

.inbox-empty-description {
    color: var(--muted);
    animation: inbox-empty-description-in 520ms ease-out 260ms both;
}

@keyframes inbox-empty-title-in {
    from {
        opacity: 0;
        transform: translateY(0.45rem);
    }

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

@keyframes inbox-empty-description-in {
    from {
        opacity: 0;
        transform: translateY(0.25rem);
    }

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

@keyframes inbox-empty-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.35rem);
    }
}

@keyframes inbox-empty-glow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
    }

    50% {
        box-shadow: 0 0 2rem rgba(99, 102, 241, 0.22);
    }
}

@keyframes inbox-empty-cursor {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inbox-empty .empty-icon,
    .inbox-empty-title,
    .inbox-empty-description,
    .inbox-empty-tagline::after {
        animation: none;
    }

    .inbox-empty-tagline::after {
        display: none;
    }
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    min-height: 10rem;
    padding: 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
}

.action-card p {
    color: var(--muted);
}

.action-card .btn {
    margin-top: auto;
    width: fit-content;
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-103%);
        width: min(86vw, 320px);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(1.05rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.55);
        transition: transform 180ms ease;
    }

    .sidebar-brand,
    .sidebar-footer {
        flex: 0 0 auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

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

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(6px);
        z-index: 1030;
    }

    .main-content {
        padding: 4.3rem 1rem 1.5rem;
    }

    .main-content:has(.alias-create-card) {
        padding-top: 4rem;
    }

    .inbox-create-alias-button {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .main-content:has(.inbox-page-header) {
        padding-top: 1.35rem;
    }

    .inbox-page-header {
        align-items: center;
        margin-bottom: 1.45rem !important;
    }

    .inbox-page-header .page-title {
        line-height: 1;
    }
}

@media (max-width: 767.98px) {
    .dashboard-header,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-panel,
    .panel,
    .premium-card {
        padding: 1rem;
    }

    .auth-shell {
        width: min(93vw, 100%);
        padding: 0.55rem 0 0.85rem;
        align-content: center;
    }

    .auth-panel .auth-title {
        font-size: 1.55rem;
    }

    .auth-panel {
        padding: 0.85rem;
        border-radius: 1.15rem;
    }

    .auth-tabs {
        margin-bottom: 0.9rem;
    }

    .auth-tab {
        min-height: 2.35rem;
        padding-inline: 0.55rem;
        font-size: 0.84rem;
    }

    .auth-panel .auth-subtitle {
        font-size: 0.82rem;
    }

    .auth-panel .auth-form {
        margin-top: 0.8rem;
    }

    .auth-shell .form-control,
    .auth-shell .form-select,
    .auth-shell .form-control-dark,
    .auth-shell .btn {
        min-height: 2.75rem;
    }

    .email-verify-page {
        min-height: calc(100dvh - 5.8rem);
        padding: 0;
    }

    .email-verify-card {
        width: 100%;
        padding: 1rem;
        border-radius: 1.18rem;
    }

    .email-verify-icon {
        width: 3.65rem;
        height: 3.65rem;
        margin-bottom: 0.82rem;
        border-radius: 1.08rem;
    }

    .email-verify-icon img {
        width: 1.95rem;
        height: 1.95rem;
    }

    .email-otp-grid {
        gap: 0.38rem;
    }

    .email-otp-box {
        min-height: 2.68rem;
        border-radius: 0.78rem;
        font-size: 1.12rem;
    }

    .alias-create-header {
        display: none;
    }

    .alias-details-header {
        display: none;
    }

    .alias-create-card {
        margin-top: -2.55rem;
        padding: 1rem;
        overflow: hidden;
    }

    .alias-create-form {
        gap: 1rem;
        min-width: 0;
    }

    .alias-details-header h2 {
        font-size: 1.28rem;
    }

    .alias-details-header p {
        max-width: 100%;
        overflow-wrap: anywhere;
        line-height: 1.45;
    }

    .alias-composer {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 100%;
        margin-inline: 0;
        min-width: 0;
    }

    .alias-field-local,
    .alias-field-domain {
        display: grid;
        gap: 0.34rem;
        grid-column: auto;
        grid-row: auto;
        min-width: 0;
    }

    .alias-field-domain {
        margin-top: 0.92rem;
    }

    .alias-field-local .form-label,
    .alias-field-domain .form-label,
    .alias-local-input-shell,
    .alias-field-local .form-control,
    .alias-domain-shell,
    .alias-field-local .invalid-feedback,
    .alias-field-domain .invalid-feedback,
    .alias-field-local .form-text,
    .alias-domain-meta,
    .alias-at {
        grid-column: auto;
        grid-row: auto;
    }

    .alias-local-input-shell,
    .alias-field-local .form-control,
    .alias-domain-shell {
        width: 100%;
        max-width: none;
        min-width: 0;
        justify-self: stretch;
    }

    .alias-desktop-label {
        display: none;
    }

    .alias-mobile-label {
        display: inline;
    }

    .alias-field-local .form-label,
    .alias-field-domain .form-label {
        margin-bottom: 0;
    }

    .alias-local-input-shell {
        position: relative;
    }

    .alias-mobile-email-display {
        display: none;
        position: absolute;
        inset: 0;
        z-index: 3;
        align-items: center;
        padding: 0.68rem 0.9rem;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        opacity: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        pointer-events: none;
    }

    .alias-local-input-shell.has-mobile-email .form-control {
        position: relative;
        z-index: 2;
        color: transparent;
        -webkit-text-fill-color: transparent;
        caret-color: var(--text);
        background-color: rgba(9, 9, 11, 0.72);
    }

    .alias-local-input-shell.has-mobile-email .alias-mobile-email-display {
        display: flex;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }

    .alias-field-local .form-text,
    .alias-at {
        display: none;
    }

    .alias-field-local .form-label,
    .alias-field-local .form-text,
    .alias-field-local .invalid-feedback,
    .alias-field-domain .form-label,
    .alias-domain-meta,
    .alias-field-domain .invalid-feedback {
        max-width: none;
        justify-self: stretch;
    }

    .alias-domain-menu {
        position: static;
        margin-top: 0.45rem;
        max-height: none;
    }

    .alias-domain-meta {
        flex-wrap: wrap;
    }

    .alias-domain-meta-desktop {
        display: none;
    }

    .alias-domain-meta-mobile {
        display: inline;
    }

    .alias-domain-trigger-expiry {
        display: none !important;
    }

    .alias-at {
        display: none;
    }

    .alias-action-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .alias-action-row [data-alias-random-button],
    .alias-action-row [data-alias-create-button] {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .alias-preview-email {
        display: none !important;
    }

    .alias-preview-card {
        padding: 0.72rem;
        gap: 0.35rem;
        min-height: 0;
    }

    .alias-preview-empty {
        display: none !important;
    }

    .alias-preview-top {
        align-items: center;
        gap: 0.55rem;
    }

    .alias-feature-grid {
        grid-template-columns: 1fr;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }

    .mail-table-header {
        display: none;
    }

    .mail-item {
        grid-template-columns: 1fr;
    }

    .mail-select {
        justify-content: flex-start;
        place-items: center start;
    }

    .mail-bulk-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .mail-bulk-actions {
        justify-content: flex-start;
    }

    .mail-item-main {
        align-items: flex-start;
    }

    .mail-item-alias,
    .mail-item-date,
    .mail-actions {
        justify-content: flex-start;
        text-align: left;
    }

    .btn-mail-open,
    .btn-mail-delete {
        width: 2.45rem;
        height: 2.45rem;
        min-height: 2.45rem;
    }

    .mail-detail-grid {
        grid-template-columns: 1fr;
    }

    .mail-detail-page-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 2rem;
        margin-top: 0;
        margin-bottom: 0.85rem !important;
        padding-right: 4rem;
    }

    .mail-detail-page-header .mail-detail-back-button {
        display: none;
    }

    .mail-detail-page-header .mail-detail-subject {
        font-size: 1.08rem;
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .mail-detail {
        gap: 0.72rem;
    }

    .mail-header-card {
        position: relative;
        padding: 0.64rem 0.74rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mail-header-card:focus-visible {
        outline: 2px solid rgba(129, 140, 248, 0.7);
        outline-offset: 3px;
    }

    .mail-detail-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        gap: 0;
    }

    .mail-detail-from {
        gap: 0.56rem;
        min-width: 0;
        padding-right: 1.85rem;
    }

    .mail-avatar.mail-avatar-lg {
        width: 2.18rem;
        height: 2.18rem;
        font-size: 0.84rem;
        flex: 0 0 2.18rem;
    }

    .mail-detail-from-copy {
        min-width: 0;
    }

    .mail-detail-from-line {
        font-size: 0.82rem;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mail-detail-meta {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-0.18rem);
        transition: max-height 240ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
    }

    .mail-header-card.is-expanded .mail-detail-meta {
        max-height: 4rem;
        opacity: 1;
        transform: translateY(0);
        margin-top: 0.22rem;
    }

    .mail-detail-date-desktop {
        display: none;
    }

    .mail-detail-date-mobile {
        display: block;
        white-space: normal;
        padding-top: 0.08rem;
    }

    .mail-detail-to-line,
    .mail-detail-date-mobile {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .mail-detail-toggle-icon {
        display: inline-grid;
        place-items: center;
        position: absolute;
        top: -0.86rem;
        right: 0.68rem;
        width: 1.78rem;
        height: 1.78rem;
        border: 1px solid rgba(139, 92, 246, 0.34);
        border-radius: 999px;
        color: #ddd6fe;
        background:
            linear-gradient(145deg, rgba(39, 39, 42, 0.96), rgba(17, 17, 19, 0.92)),
            rgba(17, 17, 19, 0.92);
        box-shadow:
            0 12px 26px rgba(0, 0, 0, 0.34),
            0 0 0 1px rgba(255, 255, 255, 0.035) inset,
            0 0 18px rgba(124, 58, 237, 0.16);
        transition: transform 230ms ease, color 230ms ease, border-color 230ms ease, background 230ms ease, box-shadow 230ms ease;
    }

    .mail-detail-toggle-icon svg {
        display: block;
        width: 0.92rem;
        height: 0.92rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.35;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mail-header-card.is-expanded .mail-detail-toggle-icon {
        transform: rotate(180deg) scale(1.04);
        color: #ffffff;
        border-color: rgba(167, 139, 250, 0.64);
        background:
            linear-gradient(145deg, rgba(99, 102, 241, 0.34), rgba(24, 24, 27, 0.95)),
            rgba(24, 24, 27, 0.95);
        box-shadow:
            0 14px 30px rgba(0, 0, 0, 0.38),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 0 24px rgba(139, 92, 246, 0.28);
    }

    .mail-html-card {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .mail-html-card .section-caption {
        margin-bottom: 0.38rem;
        padding-inline: 0.2rem;
        color: rgba(196, 181, 253, 0.72);
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .mail-content-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
        margin-bottom: 0.5rem;
    }

    .mail-content-heading .section-caption {
        margin-bottom: 0;
    }

    .mail-render-controls {
        align-items: center;
        justify-content: stretch;
    }

    .mail-render-toggle {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: 0.14rem;
        padding: 0.18rem;
    }

    .mail-render-toggle-link {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        min-height: 1.78rem;
        padding-inline: 0.32rem;
        font-size: 0.68rem;
    }

    .mail-safe-mode-info-link {
        flex: 0 1 5.8rem;
        min-height: 1.78rem;
        padding-inline: 0.28rem;
        font-size: 0.68rem;
    }

    .mail-safe-mode-info-link:active {
        transform: scale(0.96);
    }

    .mail-render-toggle-separator {
        min-height: 1.72rem;
        margin-inline: 0.12rem;
    }

    .mail-safe-mode-info-text {
        max-width: 3.9rem;
        line-height: 1.05;
    }

    .email-content-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .email-content-scroll.is-original-view {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    .email-content-scroll::-webkit-scrollbar {
        height: 0.42rem;
    }

    .email-content-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 999px;
    }

    .email-content-scroll::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.42);
        border-radius: 999px;
    }

    .email-html-frame,
    .email-body-text {
        width: 100%;
        min-width: 100%;
        max-width: none;
        border: 1px solid rgba(203, 213, 225, 0.58);
        border-radius: 1.08rem;
        background-color: #f1f5f9;
        box-shadow:
            0 0 0 1px rgba(148, 163, 184, 0.12),
            0 14px 34px rgba(0, 0, 0, 0.2),
            0 0 26px rgba(99, 102, 241, 0.08);
    }

    .email-html-frame {
        filter: brightness(0.88) contrast(0.95) saturate(0.9);
        min-height: 490px;
    }

    .inbox-header-actions {
        width: 100%;
    }

    .inbox-header-actions .btn {
        flex: 1 1 auto;
    }

    .sync-last-sync {
        white-space: normal;
    }

    .safe-mode-info-modal {
        padding: 0.85rem;
        align-items: center;
    }

    .safe-mode-info-card {
        width: 100%;
        max-height: 88vh;
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .safe-mode-info-hero {
        gap: 0.8rem;
    }

    .safe-mode-info-hero-row {
        gap: 0.72rem;
        padding-right: 2.25rem;
    }

    .safe-mode-info-icon {
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 0.9rem;
    }

    .safe-mode-info-hero h2 {
        font-size: 1.2rem;
    }

    .safe-mode-info-hero p {
        font-size: 0.86rem;
    }

    .safe-mode-info-grid {
        grid-template-columns: 1fr;
    }

    .safe-mode-info-choice {
        padding: 0.9rem;
    }

    .safe-mode-info-choice-head {
        align-items: center;
    }

    .safe-mode-info-note,
    .safe-mode-info-bottom {
        font-size: 0.82rem;
    }
}

@keyframes safeModeInfoPulse {
    0% {
        opacity: 0.8;
        transform: scale(0.82);
    }
    70% {
        opacity: 0;
        transform: scale(1.18);
    }
    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

@media (max-width: 575.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        padding: 4.15rem 0.85rem 1.2rem;
    }

    .main-content:has(.checkout-flow-method),
    .main-content:has(.checkout-flow-usdt),
    .main-content:has(.checkout-flow-cash) {
        padding-top: 1.95rem;
    }

    .main-content:has(.inbox-page-header) {
        padding-top: 0.5rem;
    }

    body:has(.inbox-upgrade-promo) .main-content:has(.inbox-page-header) {
        padding-bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
    }

    .main-content:has(.account-page-header) {
        padding-top: 0.9rem;
    }

    .main-content:has(.mail-detail-page-header) {
        padding-top: 0.78rem;
    }

    body:has(.mail-detail-page-header) .mobile-sidebar-toggle {
        top: 0.72rem;
        width: 2rem;
        height: 2rem;
        border-radius: 0.72rem;
    }

    body:has(.mail-detail-page-header) .mobile-sidebar-toggle span:not(.visually-hidden) {
        width: 0.95rem;
        margin-block: 3px;
    }

    .mobile-sidebar-toggle {
        top: 0.85rem;
        right: 0.85rem;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 0.78rem;
    }

    .account-page-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem !important;
        padding-right: 3.1rem;
    }

    .account-page-header h1 {
        line-height: 1;
    }

    .account-page-header > .btn {
        display: none;
    }

    .account-page-grid {
        --bs-gutter-y: 0.9rem;
    }

    .account-card {
        border-radius: 1.15rem;
        box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24);
    }

    .account-card-header {
        align-items: center;
        margin-bottom: 0.8rem;
    }

    .account-info-list {
        gap: 0.55rem;
    }

    .account-info-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        min-height: 0;
        padding: 0.72rem;
    }

    .account-info-row dt {
        font-size: 0.72rem;
    }

    .account-info-row dd {
        font-size: 0.92rem;
    }

    .account-copy-row {
        gap: 0.65rem;
    }

    .account-edit-header {
        margin-bottom: 0.85rem;
    }

    .account-edit-header p {
        line-height: 1.45;
    }

    .account-form {
        --bs-gutter-y: 0.85rem;
    }

    .account-password-note {
        padding: 0.72rem;
        font-size: 0.85rem;
    }

    .account-form .btn-primary {
        width: 100%;
    }

    .inbox-page-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.65rem;
        margin-top: 0;
        margin-bottom: 0.455rem !important;
        padding-right: 0;
    }

    .inbox-page-header .page-title {
        font-size: 1.58rem;
        line-height: 1;
    }

    .inbox-header-actions {
        justify-content: center;
        width: 100%;
        align-self: center;
    }

    .inbox-page-header .inbox-header-menu-button {
        position: static;
        display: block;
        justify-self: end;
        flex: 0 0 auto;
        width: 1.95rem;
        height: 1.95rem;
        border-radius: 0.7rem;
    }

    .inbox-page-header .inbox-header-menu-button span:not(.visually-hidden) {
        width: 0.98rem;
        margin-block: 3px;
    }

    .inbox-header-actions .btn {
        flex: 0 0 auto;
        min-height: 2.18rem;
        padding: 0.36rem 0.68rem;
        border-radius: 0.74rem;
        font-size: 0.86rem;
    }

    .inbox-page-header .inbox-refresh-button {
        border-color: rgba(129, 140, 248, 0.36);
        background:
            linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.08)),
            rgba(255, 255, 255, 0.045);
        color: #eef2ff;
        box-shadow: 0 12px 28px rgba(99, 102, 241, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .inbox-page-header .inbox-refresh-button:hover,
    .inbox-page-header .inbox-refresh-button:focus-visible {
        border-color: rgba(165, 180, 252, 0.56);
        background:
            linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(56, 189, 248, 0.12)),
            rgba(255, 255, 255, 0.06);
    }

    .inbox-page-header .inbox-refresh-button {
        display: none !important;
    }

    .inbox-upgrade-promo {
        left: 50%;
        bottom: calc(0.72rem + env(safe-area-inset-bottom, 0px));
        width: min(430px, calc(100vw - 1.2rem));
        min-height: 4rem;
        gap: 0.6rem;
        padding: 0.58rem 0.62rem;
        border-radius: 0.9rem;
    }

    .inbox-upgrade-promo-icon {
        width: 2.05rem;
        height: 2.05rem;
        border-radius: 0.68rem;
    }

    .inbox-upgrade-promo-icon svg {
        width: 1.08rem;
        height: 1.08rem;
    }

    .inbox-upgrade-promo-copy strong {
        font-size: 0.82rem;
    }

    .inbox-upgrade-promo-copy span {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.68rem;
        line-height: 1.25;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .inbox-upgrade-promo-action {
        width: 2.1rem;
        height: 2.1rem;
        border-radius: 0.7rem;
    }

    .inbox-upgrade-promo-action svg {
        width: 0.95rem;
        height: 0.95rem;
    }

    .inbox-mobile-create-alias {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        min-height: 2.32rem;
        margin-bottom: 0.58rem;
        padding-block: 0.42rem;
        border-radius: 0.78rem;
        font-size: 0.86rem;
        font-weight: 800;
        box-shadow: 0 14px 32px rgba(99, 102, 241, 0.24);
    }

    .inbox-mobile-create-alias span[aria-hidden="true"] {
        display: inline-grid;
        place-items: center;
        width: 0.95rem;
        height: 0.95rem;
        font-size: 0.98rem;
        line-height: 1;
    }

    .inbox-search-card {
        padding: 0.45rem;
        margin-bottom: 0.72rem !important;
        border-radius: 0.86rem;
    }

    .inbox-search-card form {
        --bs-gutter-y: 0.46rem;
        justify-content: center;
    }

    .inbox-search-card .form-label {
        margin-bottom: 0.32rem;
        font-size: 0.72rem;
        letter-spacing: 0.065em;
    }

    .inbox-search-label-row {
        margin-bottom: 0;
    }

    .inbox-search-field {
        width: 95%;
        margin-inline: auto;
    }

    .inbox-search-label-row .form-label {
        display: none;
    }

    .inbox-search-card .form-control,
    .inbox-search-card .form-select,
    .inbox-search-card .btn {
        min-height: 2.08rem;
        border-radius: 0.72rem;
        font-size: 0.84rem;
    }

    .inbox-search-card .inbox-filter-extra {
        display: none;
    }

    .inbox-search-card.is-expanded .inbox-filter-extra {
        display: block;
    }

    .inbox-search-card.is-expanded .inbox-filter-minimize {
        display: inline-flex;
    }

    .inbox-filter-submit {
        justify-content: center;
        width: 100%;
        border-color: rgba(129, 140, 248, 0.72);
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        box-shadow: 0 12px 26px rgba(99, 102, 241, 0.28);
    }

    .inbox-filter-submit:hover,
    .inbox-filter-submit:focus-visible {
        border-color: rgba(196, 181, 253, 0.8);
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
    }

    .inbox-search-control {
        padding-left: 2.08rem;
        padding-top: 0.32rem;
        padding-bottom: 0.32rem;
    }

    .inbox-search-icon {
        left: 0.76rem;
    }

    .inbox-search-icon svg {
        width: 0.85rem;
        height: 0.85rem;
    }

    .inbox-list-card {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: hidden;
    }

    .mail-list {
        gap: 0.45rem;
    }

    .mail-item {
        grid-template-columns: 1.8rem minmax(0, 1fr) auto;
        grid-template-areas:
            "select main date"
            ". subject subject"
            ". alias actions";
        column-gap: 0.5rem;
        row-gap: 0.38rem;
        align-items: center;
        padding: 0.54rem;
        border-radius: 0.82rem;
        min-width: 0;
    }

    .mail-select {
        grid-area: select;
        align-self: start;
        justify-content: center;
        min-height: 1.8rem;
    }

    .mail-checkbox {
        width: 1rem;
        height: 1rem;
        border-radius: 0.28rem;
    }

    .mail-item-main {
        grid-area: main;
        min-width: 0;
        gap: 0.48rem;
    }

    .mail-avatar {
        width: 1.62rem;
        height: 1.62rem;
        font-size: 0.68rem;
    }

    .mail-item-main-copy,
    .mail-sender,
    .mail-recipient,
    .mail-item-content,
    .mail-subject {
        min-width: 0;
    }

    .mail-sender {
        max-width: 100%;
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .mail-recipient {
        display: none;
    }

    .mail-item-content {
        grid-area: subject;
        text-align: left;
        padding-left: 0;
    }

    .mail-subject {
        display: block;
        font-size: 0.78rem;
        line-height: 1.24;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mail-item-date {
        grid-area: date;
        justify-self: end;
        align-self: start;
        max-width: 5rem;
        padding-top: 0.08rem;
        font-size: 0.64rem;
        line-height: 1.2;
        white-space: normal;
        text-align: right;
    }

    .mail-item-alias {
        grid-area: alias;
        justify-content: flex-start;
        min-width: 0;
    }

    .badge-alias,
    .badge-domain {
        max-width: 100%;
        padding: 0.22rem 0.42rem;
        font-size: 0.62rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mail-actions {
        grid-area: actions;
        justify-self: end;
        gap: 0.28rem;
    }

    .btn-mail-open,
    .btn-mail-delete {
        width: 2rem;
        height: 2rem;
        min-height: 2rem;
        border-radius: 0.64rem;
    }

    .btn-mail-open .btn-icon,
    .btn-mail-delete .btn-icon {
        width: 0.82rem;
        height: 0.82rem;
    }

    .mail-bulk-form {
        margin-bottom: 0.7rem;
    }

    .mail-bulk-bar {
        gap: 0.65rem;
        padding: 0.68rem;
        border-radius: 0.9rem;
    }

    .mail-bulk-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .mail-bulk-actions .btn {
        width: 100%;
        min-height: 2.35rem;
    }

    .empty-state.inbox-empty {
        min-height: 12rem;
        padding: 1.35rem 0.75rem;
    }
}

@media (max-width: 390px) {
    .main-content {
        padding-inline: 0.7rem;
    }

    .inbox-list-card {
        padding: 0;
    }

    .mail-item {
        grid-template-columns: 1.62rem minmax(0, 1fr) auto;
        column-gap: 0.45rem;
        padding: 0.48rem;
    }

    .mail-avatar {
        width: 1.5rem;
        height: 1.5rem;
    }

    .mail-sender {
        font-size: 0.76rem;
    }

    .mail-item-date {
        max-width: 4.4rem;
        font-size: 0.6rem;
    }

    .btn-mail-open,
    .btn-mail-delete {
        width: 1.94rem;
        height: 1.94rem;
        min-height: 1.94rem;
    }
}

.custom-domains-mobile-list {
    display: none;
}

.aliases-mobile-list {
    display: none;
}

@media (max-width: 767.98px) {
    .aliases-table-wrap {
        display: none;
    }

    .panel:has(.aliases-mobile-list) {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .aliases-mobile-list {
        display: grid;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .alias-mobile-card,
    .alias-mobile-empty {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .alias-mobile-card {
        overflow: hidden;
        border: 1px solid var(--border-soft);
        border-radius: 16px;
        background:
            radial-gradient(circle at 12% 0%, rgba(99, 102, 241, 0.1), transparent 34%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(17, 17, 19, 0.92);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
        transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    }

    .alias-mobile-card:focus-within,
    .alias-mobile-card.is-open {
        border-color: rgba(129, 140, 248, 0.34);
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(129, 140, 248, 0.08);
    }

    .alias-mobile-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 2.35rem;
        align-items: center;
        gap: 0.45rem;
        padding: 0.78rem 0.82rem;
    }

    .alias-mobile-toggle {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "summary chevron"
            "badges chevron";
        align-items: center;
        gap: 0.72rem;
        width: 100%;
        min-height: 44px;
        padding: 0.08rem 0;
        border: 0;
        background: transparent;
        color: var(--text);
        text-align: left;
        cursor: pointer;
    }

    .alias-mobile-toggle:focus-visible {
        outline: 2px solid rgba(129, 140, 248, 0.68);
        outline-offset: -3px;
        border-radius: 14px;
    }

    .alias-mobile-copy-button {
        display: inline-grid;
        place-items: center;
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 13px;
        color: rgba(226, 232, 240, 0.88);
        background:
            radial-gradient(circle at 30% 0%, rgba(45, 212, 191, 0.12), transparent 58%),
            rgba(8, 13, 31, 0.58);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        cursor: pointer;
        transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    }

    .alias-mobile-copy-button::before {
        content: "";
        display: block;
        width: 1rem;
        height: 1rem;
        background: center / contain no-repeat var(--asset-copypaste-white);
        opacity: 0.78;
    }

    .alias-mobile-copy-button:hover,
    .alias-mobile-copy-button:focus-visible,
    .alias-mobile-copy-button.is-copied {
        color: #dffdf4;
        border-color: rgba(94, 234, 212, 0.4);
        background:
            radial-gradient(circle at 30% 0%, rgba(45, 212, 191, 0.2), transparent 58%),
            rgba(10, 24, 38, 0.74);
        box-shadow: 0 10px 24px rgba(20, 184, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .alias-mobile-copy-button:focus-visible {
        outline: 2px solid rgba(94, 234, 212, 0.58);
        outline-offset: 2px;
    }

    .alias-mobile-copy-button.is-copied::before {
        display: none;
    }

    .alias-mobile-summary {
        grid-area: summary;
        display: grid;
        gap: 0.22rem;
        min-width: 0;
    }

    .alias-mobile-email {
        min-width: 0;
        color: var(--text);
        font-size: 0.98rem;
        font-weight: 750;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .alias-mobile-domain {
        min-width: 0;
        color: var(--muted);
        font-size: 0.84rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .alias-mobile-badges {
        grid-area: badges;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
    }

    .alias-mobile-chevron {
        grid-area: chevron;
        display: grid;
        place-items: center;
        width: 1.95rem;
        height: 1.95rem;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.035);
        transition: transform 240ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease;
    }

    .alias-mobile-card.is-open .alias-mobile-chevron {
        transform: rotate(180deg);
        color: var(--text);
        border-color: rgba(129, 140, 248, 0.36);
        background: rgba(99, 102, 241, 0.12);
    }

    .alias-mobile-body {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 260ms ease, opacity 180ms ease;
    }

    .alias-mobile-card.is-open .alias-mobile-body {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .alias-mobile-body-inner {
        overflow: hidden;
        padding: 0 0.9rem;
    }

    .alias-mobile-card.is-open .alias-mobile-body-inner {
        padding-bottom: 0.95rem;
    }

    .alias-mobile-details {
        display: grid;
        gap: 0.65rem;
        margin: 0;
        padding-top: 0.15rem;
        border-top: 1px solid var(--border-soft);
    }

    .alias-mobile-details > div {
        display: grid;
        grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .alias-mobile-details dt {
        color: var(--muted-2);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .alias-mobile-details dd {
        min-width: 0;
        margin: 0;
        color: var(--text);
        overflow-wrap: anywhere;
        text-align: right;
    }

    .alias-mobile-actions {
        display: grid;
        gap: 0.62rem;
        margin-top: 0.9rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--border-soft);
    }

    .alias-mobile-actions-label {
        color: var(--muted-2);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .alias-mobile-actions-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem;
    }

    .alias-mobile-actions-group form {
        margin: 0;
    }

    .alias-mobile-empty .empty-state {
        min-height: 9rem;
        padding: 1.25rem 0.9rem;
        border: 1px solid var(--border-soft);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.026);
    }

    .custom-domains-table-wrap {
        display: none;
    }

    .custom-domains-mobile-list {
        display: grid;
        gap: 0.75rem;
        max-width: 100%;
        min-width: 0;
    }

    .custom-domain-mobile-card,
    .custom-domain-mobile-empty {
        max-width: 100%;
        min-width: 0;
    }

    .custom-domain-mobile-card {
        overflow: hidden;
        border: 1px solid var(--border-soft);
        border-radius: 16px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(17, 17, 19, 0.92);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
        transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    }

    .custom-domain-mobile-card:focus-within,
    .custom-domain-mobile-card.is-open {
        border-color: rgba(129, 140, 248, 0.34);
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(129, 140, 248, 0.08);
    }

    .custom-domain-mobile-toggle {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 0.7rem;
        width: 100%;
        min-height: 44px;
        padding: 0.85rem 0.9rem;
        border: 0;
        background: transparent;
        color: var(--text);
        text-align: left;
        cursor: pointer;
    }

    .custom-domain-mobile-toggle:focus-visible {
        outline: 2px solid rgba(129, 140, 248, 0.68);
        outline-offset: -3px;
        border-radius: 14px;
    }

    .custom-domain-mobile-domain {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 0.98rem;
        font-weight: 750;
        line-height: 1.25;
    }

    .custom-domain-mobile-chevron {
        display: grid;
        place-items: center;
        width: 1.95rem;
        height: 1.95rem;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.035);
        transition: transform 240ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease;
    }

    .custom-domain-mobile-card.is-open .custom-domain-mobile-chevron {
        transform: rotate(180deg);
        color: var(--text);
        border-color: rgba(129, 140, 248, 0.36);
        background: rgba(99, 102, 241, 0.12);
    }

    .custom-domain-mobile-body {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 260ms ease, opacity 180ms ease;
    }

    .custom-domain-mobile-card.is-open .custom-domain-mobile-body {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .custom-domain-mobile-body-inner {
        overflow: hidden;
        padding: 0 0.9rem;
    }

    .custom-domain-mobile-card.is-open .custom-domain-mobile-body-inner {
        padding-bottom: 0.95rem;
    }

    .custom-domain-mobile-details {
        display: grid;
        gap: 0.65rem;
        margin: 0;
        padding-top: 0.15rem;
        border-top: 1px solid var(--border-soft);
    }

    .custom-domain-mobile-details > div {
        display: grid;
        grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .custom-domain-mobile-details dt {
        color: var(--muted-2);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .custom-domain-mobile-details dd {
        min-width: 0;
        margin: 0;
        color: var(--text);
        overflow-wrap: anywhere;
        text-align: right;
    }

    .custom-domain-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: 0.9rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--border-soft);
    }

    .custom-domain-mobile-actions-label {
        color: var(--muted-2);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .custom-domain-mobile-empty .empty-state {
        min-height: 9rem;
        padding: 1.25rem 0.9rem;
        border: 1px solid var(--border-soft);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.026);
    }
}

@media (prefers-reduced-motion: reduce) {
    .alias-mobile-card,
    .alias-mobile-chevron,
    .alias-mobile-body,
    .custom-domain-mobile-card,
    .custom-domain-mobile-chevron,
    .custom-domain-mobile-body {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .main-content:has(.aliases-page-header),
    .main-content:has(.custom-domains-page-header),
    .main-content:has(.alias-transfer-page-header),
    .main-content:has(.upgrade-page-header) {
        padding-top: 1rem;
    }

    .aliases-page-header,
    .custom-domains-page-header,
    .alias-transfer-page-header,
    .upgrade-page-header {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        min-height: 2.2rem;
        margin-top: 0;
        margin-bottom: 1.05rem !important;
        padding-right: 3.1rem;
    }

    .aliases-page-header h1,
    .custom-domains-page-header h1,
    .alias-transfer-page-header h1,
    .upgrade-page-header h1 {
        line-height: 1;
    }

    .upgrade-page-header > .btn {
        display: none;
    }

    .upgrade-page-header .text-secondary {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .main-content:has(.aliases-page-header),
    .main-content:has(.custom-domains-page-header),
    .main-content:has(.alias-transfer-page-header),
    .main-content:has(.upgrade-page-header) {
        padding-top: 1rem;
    }

    .aliases-page-header > div,
    .custom-domains-page-header > div,
    .alias-transfer-page-header > div,
    .upgrade-page-header > div {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .main-content:has(.upgrade-page-header) {
        padding-top: 0.75rem;
        padding-inline: 0.35rem;
    }

    .upgrade-page-header {
        min-height: 0;
        margin-bottom: 0.45rem !important;
    }

    .upgrade-page-header > div {
        display: none;
    }
}
