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

:root {
    --sidebar-bg: #111827;
    --sidebar-soft: #182235;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --page-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-blue: #eff6ff;
    --text: #172033;
    --text-soft: #667085;
    --text-faint: #98a2b3;
    --line: #e7ebf2;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eaf2ff;
    --green: #12b76a;
    --green-soft: #ecfdf3;
    --orange: #f79009;
    --orange-soft: #fff7e8;
    --red: #f04438;
    --red-soft: #fff1f0;
    --purple: #7f56d9;
    --purple-soft: #f4f0ff;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 12px 28px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --sidebar-width: 282px;
}

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

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

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.sidebar-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

a {
    color: inherit;
    text-decoration: none;
}

svg.icon,
.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.app-shell {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.22), transparent 30%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #ffffff;
    border-right: 1px solid var(--sidebar-border);
    transition: transform 0.28s ease;
}

.sidebar-header {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #3b82f6, #7c3aed);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: #8fa0bb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    cursor: pointer;
}

.sidebar-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 18px 10px;
    padding: 14px;
    border: 1px solid var(--sidebar-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-avatar,
.topbar-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    font-weight: 800;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.profile-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.profile-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy span {
    margin-top: 2px;
    color: #8fa0bb;
    font-size: 11px;
}

.online-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.sidebar-nav {
    padding: 18px;
}

.nav-label {
    margin: 0 10px 10px;
    color: #71809a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 13px;
    margin-bottom: 6px;
    padding: 0 14px;
    border-radius: 12px;
    color: #aeb9cb;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.82));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.nav-count {
    display: grid;
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.nav-count-warning {
    background: rgba(247, 144, 9, 0.2);
    color: #fdb022;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px;
}

.support-card {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--sidebar-border);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.08));
}

.support-icon {
    display: grid;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
}

.support-card strong {
    display: block;
    font-size: 13px;
}

.support-card p {
    margin: 5px 0 12px;
    color: #93a3bb;
    font-size: 11px;
    line-height: 1.55;
}

.support-card a {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
}

.logout-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 12px;
    color: #aeb9cb;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.logout-link:hover {
    background: rgba(240, 68, 56, 0.1);
    color: #fda29b;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

/* Main layout */
.main-panel {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid rgba(231, 235, 242, 0.9);
    background: rgba(17, 24, 39, 0.96);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-right,
.topbar-user,
.topbar-date {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 14px;
}

.topbar-eyebrow {
    display: block;
    color: #8fa0bb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.topbar h1 {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.topbar-right {
    gap: 18px;
}

.topbar-date {
    gap: 8px;
    color: #aeb9cb;
    font-size: 12px;
    font-weight: 600;
}

.topbar-date .icon {
    width: 18px;
    height: 18px;
}

.topbar-user {
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
}

.topbar-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.topbar-user-copy strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-copy small {
    margin-top: 3px;
    color: #8fa0bb;
    font-size: 10px;
}

.content {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 30px 34px 24px;
}

/* Welcome */
.welcome-panel {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: 34px 38px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 82% 15%, rgba(59, 130, 246, 0.18), transparent 25%),
        radial-gradient(circle at 70% 90%, rgba(124, 58, 237, 0.13), transparent 30%),
        linear-gradient(135deg, #ffffff, #f5f8ff);
    box-shadow: var(--shadow-sm);
}

.welcome-panel::after {
    position: absolute;
    top: -74px;
    right: -50px;
    width: 250px;
    height: 250px;
    border: 46px solid rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    content: '';
}

.welcome-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.welcome-copy h2 {
    color: #101828;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.welcome-copy p {
    max-width: 650px;
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn-inline {
    width: auto;
    flex: 0 0 auto;
}

.btn-primary {
    position: relative;
    z-index: 1;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.23);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 13px 28px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    border-color: #d8e1ef;
    background: #ffffff;
    color: #344054;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-light:hover {
    border-color: #b9c6da;
    background: #f8fafc;
}

.btn-light {
    border-color: transparent;
    background: var(--surface-soft);
    color: #475467;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.stat-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
}

.stat-icon-blue {
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-icon-green {
    background: var(--green-soft);
    color: var(--green);
}

.stat-icon-purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.stat-icon-orange {
    background: var(--orange-soft);
    color: var(--orange);
}

.stat-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.stat-copy span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
}

.stat-copy strong {
    margin: 2px 0 1px;
    color: #101828;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.stat-copy small {
    overflow: hidden;
    color: var(--text-faint);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sections */
.section-block {
    padding-top: 38px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 17px;
}

.section-heading h2 {
    color: #101828;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 12px;
}

.section-heading-row {
    align-items: center;
}

.record-count {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

/* Domain cards */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.domain-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.domain-card:hover {
    border-color: #cfd8e7;
    box-shadow: var(--shadow-md);
}

.domain-card-head,
.domain-main,
.api-key-title,
.domain-actions,
.plan-top {
    display: flex;
    align-items: center;
}

.domain-card-head {
    justify-content: space-between;
    gap: 15px;
}

.domain-main {
    min-width: 0;
    gap: 12px;
}

.domain-icon,
.plan-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}

.domain-label,
.plan-caption {
    display: block;
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.domain-main h3 {
    max-width: 340px;
    overflow: hidden;
    margin-top: 2px;
    color: #101828;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 19px 0;
}

.domain-meta > div {
    padding: 13px 14px;
    border: 1px solid #edf0f5;
    border-radius: 11px;
    background: var(--surface-soft);
}

.domain-meta span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.domain-meta strong {
    color: #344054;
    font-size: 11px;
}

.api-key-panel {
    padding: 14px;
    border: 1px dashed #c8d1e0;
    border-radius: 12px;
    background: #f8fafc;
}

.api-key-title {
    justify-content: space-between;
    margin-bottom: 9px;
}

.api-key-title > span {
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.api-key-panel code {
    display: block;
    overflow-wrap: anywhere;
    color: #175cd3;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.copy-button .icon {
    width: 15px;
    height: 15px;
}

.domain-actions {
    gap: 10px;
    margin-top: 16px;
}

.domain-actions .btn {
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    min-height: 27px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.badge-active,
.badge-paid,
.badge-success,
.badge-completed {
    background: var(--green-soft);
    color: #027a48;
}

.badge-pending,
.badge-processing {
    background: var(--orange-soft);
    color: #b54708;
}

.badge-inactive,
.badge-rejected,
.badge-failed,
.badge-cancelled,
.badge-expired {
    background: var(--red-soft);
    color: #b42318;
}

.badge-default {
    background: #f2f4f7;
    color: #475467;
}

/* Plans */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plan-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.plan-card-featured {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
}

.popular-label {
    position: absolute;
    top: 17px;
    right: 17px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.plan-top {
    gap: 12px;
}

.plan-top h3 {
    margin-top: 2px;
    color: #101828;
    font-size: 16px;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 24px 0 0;
}

.plan-price .currency {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
}

.plan-price strong {
    color: #101828;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-duration {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 11px;
}

.plan-features {
    display: grid;
    gap: 11px;
    margin: 21px 0 23px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
}

.plan-features .icon {
    width: 17px;
    height: 17px;
    color: var(--green);
}

.plan-card form {
    margin-top: auto;
}

.plan-card .btn {
    width: 100%;
}

/* Orders table */
.table-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 830px;
    border-collapse: collapse;
}

thead {
    background: #f8fafc;
}

th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #667085;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    color: #667085;
    font-size: 11px;
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: #fbfcfe;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.text-right {
    text-align: right;
}

.order-number,
.table-primary {
    color: #344054;
    font-weight: 700;
}

.domain-cell {
    display: inline-flex;
    max-width: 230px;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: #475467;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-cell .icon {
    width: 16px;
    height: 16px;
    color: #98a2b3;
}

.table-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.table-action .icon {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.table-action:hover .icon {
    transform: translateX(2px);
}

/* Empty states */
.empty-state {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border: 1px dashed #cfd8e7;
    border-radius: var(--radius-md);
    background: #ffffff;
    text-align: center;
}

.empty-state.compact {
    min-height: 220px;
    border: 0;
    border-radius: 0;
}

.empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary);
}

.empty-state h3 {
    color: #101828;
    font-size: 16px;
}

.empty-state p {
    max-width: 460px;
    margin: 6px 0 16px;
    color: var(--text-soft);
    font-size: 11px;
}

/* Footer */
.dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding: 20px 2px 4px;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: 10px;
}

.dashboard-footer div {
    display: flex;
    gap: 18px;
}

.dashboard-footer a:hover {
    color: var(--primary);
}

/* Toast */
.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
    color: #027a48;
    box-shadow: var(--shadow-lg);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast .icon {
    width: 18px;
    height: 18px;
}

/* Tablet */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 282px;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

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

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .sidebar-close,
    .menu-button {
        display: grid;
    }

    .main-panel {
        margin-left: 0;
    }

    .topbar {
        padding: 0 24px;
    }

    .content {
        padding: 26px 24px 22px;
    }

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

/* Mobile */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 82px;
    }

    .sidebar {
        width: min(86vw, 310px);
    }

    .topbar {
        min-height: 72px;
        padding: 0 15px;
    }

    .topbar h1 {
        font-size: 17px;
    }

    .topbar-date,
    .topbar-user-copy {
        display: none;
    }

    .topbar-user {
        padding-left: 0;
        border-left: 0;
    }

    .topbar-avatar {
        width: 36px;
        height: 36px;
    }

    .content {
        padding: 18px 14px 20px;
    }

    .welcome-panel {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 21px;
        border-radius: 18px;
    }

    .welcome-panel::after {
        right: -120px;
    }

    .welcome-copy h2 {
        font-size: 25px;
    }

    .welcome-copy p {
        font-size: 12px;
    }

    .welcome-panel .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 14px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
    }

    .stat-copy strong {
        font-size: 24px;
    }

    .section-block {
        padding-top: 30px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 14px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .section-heading-row {
        gap: 11px;
    }

    .domain-card {
        padding: 17px;
    }

    .domain-card-head {
        align-items: flex-start;
    }

    .domain-main h3 {
        max-width: 180px;
        font-size: 13px;
    }

    .domain-meta {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 15px 0;
    }

    .domain-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .domain-actions .btn {
        width: 100%;
    }

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

    .plan-card {
        padding: 20px;
    }

    .record-count {
        align-self: flex-start;
    }

    .table-card {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .table-scroll {
        overflow: visible;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 12px;
    }

    tbody tr {
        padding: 6px 15px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: var(--shadow-sm);
    }

    tbody tr:hover {
        background: #ffffff;
    }

    td {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
        border-bottom: 1px solid #eef1f5;
        text-align: right;
    }

    td::before {
        flex: 0 0 auto;
        color: #98a2b3;
        content: attr(data-label);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    tbody tr td:last-child {
        border-bottom: 0;
    }

    .domain-cell {
        max-width: 190px;
    }

    .text-right {
        text-align: right;
    }

    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 30px;
    }

    .dashboard-footer div {
        flex-wrap: wrap;
    }

    .toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .topbar-left {
        gap: 10px;
    }

    .menu-button {
        width: 38px;
        height: 38px;
    }

    .welcome-copy h2 {
        font-size: 22px;
    }

    .domain-main h3 {
        max-width: 145px;
    }

    .badge {
        min-height: 25px;
        padding: 0 8px;
        font-size: 8px;
    }

    .popular-label {
        position: static;
        align-self: flex-start;
        margin-bottom: 12px;
    }
}

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


/* =========================================================
   AUTHENTICATION PAGES
   ========================================================= */

.auth-page {
    min-height: 100vh;
    background: #eef3f9;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
}

.auth-visual-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    padding: 36px 44px 30px;
    background:
        radial-gradient(circle at 16% 14%, rgba(59, 130, 246, 0.33), transparent 29%),
        radial-gradient(circle at 86% 84%, rgba(124, 58, 237, 0.25), transparent 30%),
        linear-gradient(145deg, #111827 0%, #101a2d 52%, #0f172a 100%);
    color: #ffffff;
}

.auth-visual-panel::before,
.auth-visual-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: '';
}

.auth-visual-panel::before {
    top: 16%;
    right: -110px;
    width: 330px;
    height: 330px;
}

.auth-visual-panel::after {
    bottom: -150px;
    left: -130px;
    width: 390px;
    height: 390px;
}

.register-visual-panel {
    background:
        radial-gradient(circle at 20% 15%, rgba(16, 185, 129, 0.22), transparent 29%),
        radial-gradient(circle at 86% 80%, rgba(37, 99, 235, 0.27), transparent 30%),
        linear-gradient(145deg, #111827 0%, #102234 52%, #0f172a 100%);
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
}

.auth-brand-dark .brand-copy strong {
    color: #172033;
}

.auth-brand-dark .brand-copy small {
    color: #7b879a;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 610px;
    margin: auto 0;
    padding: 60px 0;
}

.auth-visual-kicker {
    color: #93c5fd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.register-visual-panel .auth-visual-kicker {
    color: #6ee7b7;
}

.auth-visual-content h1 {
    max-width: 590px;
    margin-top: 17px;
    font-size: clamp(38px, 4.3vw, 61px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.auth-visual-content > p {
    max-width: 590px;
    margin-top: 21px;
    color: #aab6c8;
    font-size: 13px;
    line-height: 1.75;
}

.auth-feature-list {
    display: grid;
    gap: 15px;
    max-width: 530px;
    margin-top: 35px;
}

.auth-feature-list > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-feature-list > div > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.register-visual-panel .auth-feature-list > div > span {
    border-color: rgba(110, 231, 183, 0.17);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.auth-feature-list .icon {
    width: 17px;
    height: 17px;
}

.auth-feature-list p {
    display: flex;
    flex-direction: column;
}

.auth-feature-list strong {
    color: #ffffff;
    font-size: 12px;
}

.auth-feature-list small {
    margin-top: 3px;
    color: #8695ab;
    font-size: 10px;
    line-height: 1.5;
}

.auth-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #71809a;
    font-size: 9px;
    font-weight: 600;
}

.auth-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.auth-form-panel {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: #ffffff;
}

.auth-mobile-header {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 44px;
    border-bottom: 1px solid #edf0f5;
}

.auth-mobile-header .auth-brand {
    display: none;
}

.auth-header-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #d9e0ea;
    border-radius: 10px;
    color: #344054;
    font-size: 10px;
    font-weight: 700;
}

.auth-header-link:hover {
    border-color: #b9c6da;
    background: #f8fafc;
}

.auth-form-wrap {
    width: 100%;
    max-width: 590px;
    margin: auto;
    padding: 54px 48px;
}

.register-form-panel .auth-form-wrap {
    max-width: 720px;
}

.auth-form-heading > span {
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.auth-form-heading h2 {
    margin-top: 8px;
    color: #101828;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.045em;
}

.auth-form-heading p {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.65;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
}

.auth-alert > .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.auth-alert div {
    display: flex;
    flex-direction: column;
}

.auth-alert strong {
    font-size: 10px;
}

.auth-alert span {
    margin-top: 2px;
    font-size: 9px;
}

.auth-form {
    margin-top: 27px;
}

.auth-form .form-group {
    margin-bottom: 19px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 10px;
    font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 49px;
    padding: 0 45px 0 43px;
    border: 1px solid #d9e0ea;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #101828;
    font-size: 11px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    transition: 0.2s ease;
}

.auth-form input::placeholder {
    color: #b0bac8;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.auth-form .input-shell:focus-within .input-icon {
    color: var(--primary);
}

.auth-password-shell input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f2f4f7;
    color: #475467;
}

.password-toggle .icon {
    width: 17px;
    height: 17px;
}

.password-toggle .eye-hide {
    display: none;
}

.password-toggle.showing .eye-show {
    display: none;
}

.password-toggle.showing .eye-hide {
    display: block;
}

.auth-submit {
    width: 100%;
    min-height: 49px;
    margin-top: 5px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 18px;
    color: #98a2b3;
    font-size: 9px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: #edf0f5;
    content: '';
}

.auth-create-button {
    width: 100%;
    min-height: 47px;
}

.auth-security-note,
.auth-terms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 17px;
    color: #98a2b3;
    font-size: 8px;
    text-align: center;
}

.auth-security-note .icon {
    width: 13px;
    height: 13px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 44px;
    border-top: 1px solid #edf0f5;
    color: #98a2b3;
    font-size: 8px;
}

.auth-form-footer div {
    display: flex;
    gap: 15px;
}

.auth-form-footer a:hover {
    color: var(--primary);
}

.registration-success {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 27px;
    padding: 33px 24px;
    border: 1px solid #d1fadf;
    border-radius: 17px;
    background: linear-gradient(145deg, #f6fef9, #ecfdf3);
    text-align: center;
}

.registration-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 17px;
    background: #d1fadf;
    color: #039855;
}

.registration-success-icon .icon {
    width: 27px;
    height: 27px;
}

.registration-success h3 {
    color: #101828;
    font-size: 18px;
}

.registration-success p {
    margin: 7px 0 20px;
    color: #667085;
    font-size: 10px;
}

.registration-success .btn {
    min-width: 190px;
}

/* =========================================================
   ORDER DETAILS PAGE
   ========================================================= */

.order-sidebar-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 27px 22px;
}

.order-sidebar-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-top: 8px;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 17px;
    background: rgba(37, 99, 235, 0.11);
    color: #93c5fd;
}

.order-sidebar-icon .icon {
    width: 27px;
    height: 27px;
}

.order-sidebar-kicker {
    margin-top: 24px;
    color: #60a5fa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.order-sidebar-content > h2 {
    margin-top: 7px;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.order-sidebar-content > p {
    margin-top: 8px;
    color: #91a0b6;
    font-size: 10px;
    line-height: 1.65;
}

.order-progress {
    display: grid;
    gap: 0;
    margin-top: 31px;
}

.order-progress-item {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: flex-start;
    gap: 12px;
}

.order-progress-item:not(:last-child)::after {
    position: absolute;
    top: 30px;
    bottom: -4px;
    left: 14px;
    width: 1px;
    background: rgba(255, 255, 255, 0.11);
    content: '';
}

.order-progress-item.complete:not(:last-child)::after {
    background: rgba(34, 197, 94, 0.34);
}

.order-progress-item > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: #172033;
    color: #71809a;
    font-size: 9px;
    font-weight: 800;
}

.order-progress-item > span .icon {
    width: 15px;
    height: 15px;
}

.order-progress-item.active > span {
    border-color: #3b82f6;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.13);
}

.order-progress-item.complete > span {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.order-progress-item strong {
    display: block;
    margin-top: 4px;
    color: #a6b2c3;
    font-size: 11px;
}

.order-progress-item.active strong,
.order-progress-item.complete strong {
    color: #ffffff;
}

.order-progress-item small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 9px;
}

.order-content {
    max-width: 1280px;
}

.order-topbar .topbar-back-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbe4f0;
    font-size: 10px;
    font-weight: 700;
}

.order-hero {
    display: flex;
    min-height: 158px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 27px 30px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.17), transparent 27%),
        linear-gradient(135deg, #ffffff, #f6f9ff);
    box-shadow: var(--shadow-sm);
}

.order-title-row {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.order-title-row h2 {
    color: #101828;
    font-size: 27px;
    letter-spacing: -0.045em;
}

.order-hero p {
    margin-top: 8px;
    color: #667085;
    font-size: 10px;
}

.order-hero-icon {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 21px;
    background: linear-gradient(145deg, #eaf2ff, #eef2ff);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.order-hero-icon .icon {
    width: 34px;
    height: 34px;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.order-main-column {
    display: grid;
    gap: 18px;
}

.order-status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid;
    border-radius: 16px;
}

.order-status-banner > div {
    min-width: 0;
    flex: 1;
}

.order-status-banner strong {
    color: #101828;
    font-size: 12px;
}

.order-status-banner p {
    margin-top: 3px;
    color: #667085;
    font-size: 9px;
}

.status-banner-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
}

.status-success {
    border-color: #abefc6;
    background: #f6fef9;
}

.status-success .status-banner-icon {
    background: #d1fadf;
    color: #039855;
}

.status-pending {
    border-color: #fedf89;
    background: #fffcf5;
}

.status-pending .status-banner-icon {
    background: #fef0c7;
    color: #dc6803;
}

.status-error {
    border-color: #fecdca;
    background: #fffafa;
}

.status-error .status-banner-icon {
    background: #fee4e2;
    color: #d92d20;
}

.order-details-card,
.order-payment-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.order-details-card {
    padding: 24px;
}

.order-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
}

.order-card-heading > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}

.order-card-heading h3 {
    color: #101828;
    font-size: 15px;
}

.order-card-heading p {
    margin-top: 2px;
    color: #667085;
    font-size: 9px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.order-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px;
    border: 1px solid #edf0f5;
    border-radius: 13px;
    background: #fafbfc;
}

.detail-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.detail-icon .icon {
    width: 17px;
    height: 17px;
}

.order-detail-item small,
.order-detail-item strong,
.order-detail-item p {
    display: block;
}

.order-detail-item small {
    color: #98a2b3;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.order-detail-item strong {
    margin-top: 3px;
    color: #344054;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.order-detail-item p {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 8px;
}

.callback-detail {
    margin-top: 13px;
    padding: 14px 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: #f8fafc;
}

.callback-detail-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.callback-detail-label .icon {
    width: 15px;
    height: 15px;
}

.callback-detail code {
    display: block;
    margin-top: 9px;
    overflow-wrap: anywhere;
    color: #175cd3;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 10px;
    line-height: 1.6;
}

.order-payment-card {
    position: sticky;
    top: 105px;
    padding: 23px;
}

.order-payment-header > span {
    color: var(--primary);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.order-payment-header h3 {
    margin-top: 4px;
    color: #101828;
    font-size: 18px;
}

.order-payment-price {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 23px 0 16px;
}

.order-payment-price small {
    margin-top: 7px;
    color: #667085;
    font-size: 9px;
    font-weight: 700;
}

.order-payment-price strong {
    color: #101828;
    font-size: 33px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.crypto-amount-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 17px;
    padding: 17px;
    border: 1px solid #d1fadf;
    border-radius: 13px;
    background: #f6fef9;
    text-align: center;
}

.crypto-amount-box span {
    color: #667085;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.crypto-amount-box strong {
    margin-top: 5px;
    color: #027a48;
    font-size: 19px;
}

.crypto-amount-box small {
    margin-top: 2px;
    color: #667085;
    font-size: 8px;
}

.order-pay-button {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
}

.btn-pay {
    background: #12b76a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 183, 106, 0.18);
}

.btn-pay:hover {
    background: #039855;
}

.order-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 11px;
    color: #98a2b3;
    font-size: 8px;
}

.order-secure-note .icon {
    width: 13px;
    height: 13px;
}

.order-payment-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 17px;
}

.order-payment-error .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.order-return-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 17px;
    color: #667085;
    font-size: 9px;
    font-weight: 700;
}

.order-return-link:hover {
    color: var(--primary);
}

.order-return-link .icon {
    width: 14px;
    height: 14px;
}

/* =========================================================
   DOWNLOAD ERROR PAGE
   ========================================================= */

.download-error-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.1), transparent 28%),
        #f4f7fb;
}

.download-error-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.download-error-card {
    position: relative;
    width: min(100%, 560px);
    overflow: hidden;
    padding: 31px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.download-error-card::before {
    position: absolute;
    top: -90px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
    content: '';
}

.download-error-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 35px;
}

.download-error-code {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.download-error-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 18px auto;
    place-items: center;
    border-radius: 20px;
    background: #fff4ed;
    color: #e04f16;
}

.download-error-icon svg {
    width: 31px;
    height: 31px;
}

.download-error-card h1 {
    color: #101828;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.download-error-card > p {
    max-width: 420px;
    margin: 10px auto 24px;
    color: #667085;
    font-size: 11px;
    line-height: 1.7;
}

.download-error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 42% 58%;
    }

    .auth-visual-panel {
        padding: 31px 30px 26px;
    }

    .auth-form-wrap {
        padding: 45px 34px;
    }

    .order-layout {
        grid-template-columns: minmax(0, 1fr) 315px;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        display: block;
    }

    .auth-visual-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
    }

    .auth-mobile-header {
        justify-content: space-between;
        padding: 0 24px;
    }

    .auth-mobile-header .auth-brand {
        display: inline-flex;
    }

    .auth-form-wrap {
        padding: 45px 24px;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-payment-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 767px) {
    .auth-mobile-header {
        min-height: 73px;
        padding: 0 16px;
    }

    .auth-mobile-header .brand-copy {
        display: none;
    }

    .auth-mobile-header .brand-mark {
        width: 39px;
        height: 39px;
    }

    .auth-form-wrap {
        max-width: none;
        padding: 34px 17px;
    }

    .auth-form-heading h2 {
        font-size: 27px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-form-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 17px;
    }

    .order-topbar .topbar-back-button span {
        display: none;
    }

    .order-topbar .topbar-back-button {
        width: 38px;
        min-height: 38px;
        justify-content: center;
        padding: 0;
    }

    .order-hero {
        min-height: auto;
        padding: 22px 19px;
    }

    .order-title-row h2 {
        font-size: 22px;
    }

    .order-hero-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .order-hero-icon .icon {
        width: 26px;
        height: 26px;
    }

    .order-status-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .order-status-banner .btn {
        width: 100%;
    }

    .order-details-card,
    .order-payment-card {
        border-radius: 17px;
    }

    .order-details-card {
        padding: 18px;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .download-error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .download-error-actions .btn {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .auth-header-link {
        padding: 0 11px;
        font-size: 9px;
    }

    .auth-form-heading h2 {
        font-size: 24px;
    }

    .order-hero {
        align-items: flex-start;
    }

    .order-hero-icon {
        display: none;
    }

    .download-error-card {
        padding: 24px 18px;
    }
}
