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

/* ─── Design Tokens ───────────────────────────────────────────────────── */
:root {
    --navy:         #0d1b2a;
    --navy-700:     #1a2e45;
    --navy-600:     #1e3a5f;
    --navy-100:     #e8edf3;

    --gold:         #f5a623;
    --gold-dark:    #d4891a;
    --gold-light:   #fef3d9;

    --blue:         #2563eb;
    --blue-light:   #eff6ff;
    --blue-600:     #1d4ed8;

    --green:        #059669;
    --green-light:  #ecfdf5;
    --amber:        #d97706;
    --amber-light:  #fffbeb;
    --red:          #dc2626;
    --red-light:    #fef2f2;

    --white:        #ffffff;
    --bg:           #f7f9fc;
    --surface:      #ffffff;
    --surface-2:    #f1f5f9;
    --border:       #e2e8f0;
    --border-dark:  #cbd5e1;

    --text-1:       #0d1b2a;
    --text-2:       #374151;
    --text-3:       #6b7280;
    --text-4:       #9ca3af;

    --font-display: 'Sora', sans-serif;
    --font-body:    'Arial', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --r-sm:  4px;
    --r-md:  8px;
    --r-lg:  12px;
    --r-xl:  16px;
    --r-2xl: 24px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --shadow-blue: 0 4px 14px rgba(37,99,235,0.25);
    --shadow-blue-lg: 0 8px 25px rgba(37,99,235,0.30);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --t: all 0.18s var(--ease);
    --t-slow: all 0.3s var(--ease);

    --max-w: 1200px;
    --nav-h: 68px;
}

/* ─── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg);
    color: var(--text-2);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; transition: var(--t); }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

img { max-width: 100%; display: block; }

/* ─── Layout ──────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

main.container {
    padding-top: 36px;
    padding-bottom: 56px;
}


/* ─── Navigation ──────────────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: #000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

nav .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    background: var(--navy-600);
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.logo-mark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

.logo-mark img,
.logo-mark svg {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.04em;
}

.logo-tld {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--t);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-link.active {
    color: var(--gold);
}

.nav-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: none;
}

.nav-spacer { flex: 1; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Override btn colours inside the black nav */
nav .btn-ghost {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.2);
}

nav .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border-radius: var(--r-lg);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--t);
    text-decoration: none;
    position: relative;
}

.nav-user:hover {
    background: rgba(255,255,255,0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    background: var(--gold);
    color: #000;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    letter-spacing: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.user-email {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    border-radius: var(--r-md);
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: var(--t);
}

/* ─── User Dropdown ───────────────────────────────────────────────────── */
.nav-user-wrap {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.nav-dropdown-header .dd-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    display: block;
}

.nav-dropdown-header .dd-email {
    font-size: 11px;
    color: var(--text-4);
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: var(--t);
    white-space: nowrap;
}

.nav-dropdown a svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--text-4);
}

.nav-dropdown a:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

.nav-dropdown a:hover svg {
    color: var(--text-2);
}

.nav-dropdown .dd-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.nav-dropdown .dd-danger:hover {
    background: #fff0f0;
    color: #d93025;
}

.nav-dropdown .dd-danger:hover svg {
    color: #d93025;
}

.nav-user-chevron {
    transition: transform 0.2s ease;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.nav-user-wrap.open .nav-user-chevron {
    transform: rotate(180deg);
}

/* ─── Mobile Nav ──────────────────────────────────────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    backdrop-filter: blur(4px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1200;
    transition: right 0.3s var(--ease-out);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active { right: 0; }
.mobile-nav.active ~ .mobile-overlay { display: block; }
body.menu-open .mobile-overlay { display: block; }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-header .logo-text { color: var(--navy); }
.mobile-nav-header .logo-mark { border: none; background: var(--navy); }
.mobile-nav-header .logo-mark img { width: 18px; height: 18px; }

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    background: var(--surface-2);
    border-radius: var(--r-md);
    cursor: pointer;
    color: var(--text-2);
    transition: var(--t);
}

.mobile-nav-close:hover { background: var(--border); }

.mobile-nav ul {
    list-style: none;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-lg);
    font-weight: 500;
    color: var(--text-2);
    font-size: 14px;
    text-decoration: none;
    transition: var(--t);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    background: var(--blue-light);
    color: var(--blue);
}

.mobile-nav ul li a svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 28px;
    border-radius: var(--r-lg);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--t);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--blue-600);
    box-shadow: var(--shadow-blue-lg);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-navy {
    background: black;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,27,42,0.25);
}

.btn-navy:hover {
    background: var(--navy-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,27,42,0.30);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(245,166,35,0.3);
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.btn-outline {
    /*! background: var(--white); */
    color: var(--text-2);
    border: 1px solid #9c9c9c;
    /*! box-shadow: var(--shadow-xs); */
}

.btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--border-dark);
    color: var(--text-1);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-3);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text-2);
}

.btn-warning {
    background: var(--amber);
    color: #fff;
    box-shadow: 0 2px 8px rgba(217,119,6,0.2);
}

.btn-warning:hover {
    background: #b45309;
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 11px 28px;
    font-size: 13px;
    border-radius: var(--r-md);
    gap: 5px;
}

.btn-sm svg { width: 13px; height: 13px; display: none;}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--r-xl);
}

.btn-block { width: 100%; }

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ─── Badges ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-blue    { background: var(--blue-light); color: var(--blue); }
.badge-green   { background: var(--green-light); color: var(--green); }
.badge-amber   { background: var(--amber-light); color: var(--amber); }
.badge-red     { background: var(--red-light); color: var(--red); }
.badge-navy    { background: var(--navy-100); color: var(--navy); }
.badge-gold    { background: var(--gold-light); color: var(--gold-dark); }
.badge-grey    { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-registered { background: var(--green-light); color: var(--green); }
.status-registered::before { background: var(--green); }
.status-pending    { background: var(--amber-light); color: var(--amber); }
.status-pending::before { background: var(--amber); }
.status-expired    { background: var(--red-light); color: var(--red); }
.status-expired::before { background: var(--red); }
.status-transferred { background: var(--blue-light); color: var(--blue); }
.status-transferred::before { background: var(--blue); }

/* ─── Alerts ──────────────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-lg);
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    margin-bottom: 16px;
    line-height: 1.5;
}

.alert svg { flex-shrink: 0; margin-top: 1px; }

.alert-success { background: var(--green-light); color: #065f46; border-color: #a7f3d0; }
.alert-error,
.alert-danger  { background: var(--red-light); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--amber-light); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--blue-light); color: #1e40af; border-color: #bfdbfe; }

/* ─── Forms ───────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #5d5e5f;
    border-radius: var(--r-lg);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-1);
    background: var(--white);
    transition: var(--t);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-4);
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
   
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input.domain-input {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-4);
    margin-top: 2px;
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    padding: 16px 0 8px;
    border-top: 1px solid var(--border);
    margin: 8px 0 16px;
}

/* ─── Cards ───────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.card-static { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 32px; }
.form-card   { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 32px; max-width: 680px; }

/* ─── Profile Form ────────────────────────────────────────────────────── */
.pf-card {
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-width: 760px;
    overflow: hidden;
}

.pf-profile-name-group {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-profile-name-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-3);
}

.pf-profile-name-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pf-profile-name-group input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.pf-hint {
    font-size: 12px;
    color: var(--text-4);
}

.pf-section {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pf-section-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
}

.pf-section-head svg { color: var(--blue); flex-shrink: 0; }

.pf-section-note {
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.6;
    margin-top: -4px;
    padding: 10px 14px;
    background: var(--surface-1);
    border-radius: var(--r-md);
    border-left: 3px solid var(--border-dark);
}

.pf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pf-req {
    color: var(--red);
    font-weight: 700;
    margin-left: 2px;
}

.pf-opt {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-4);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

.pf-badge-opt {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-3);
    background: var(--surface-2);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 4px;
}

.pf-ns-group {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pf-ns-label {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-3);
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
}

.pf-ns-group .pf-grid-2 {
    padding: 14px;
    gap: 12px;
}

.pf-ns-group .form-group { margin: 0; }

.pf-actions {
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border);
    background: var(--surface-1);
}

@media (max-width: 640px) {
    .pf-card { border-radius: var(--r-lg); }
    .pf-profile-name-group,
    .pf-section { padding: 20px; }
    .pf-actions { padding: 16px 20px; }
    .pf-grid-2 { grid-template-columns: 1fr; }
    .pf-ns-group .pf-grid-2 { padding: 12px; grid-template-columns: 1fr; }
}

/* ─── Stat Cards ──────────────────────────────────────────────────────── */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--t-slow);
}

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

.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    width: fit-content;
}

.stat-badge.badge-positive { background: var(--green-light); color: var(--green); }
.stat-badge.badge-negative { background: var(--blue-light); color: var(--blue); }
.stat-badge.badge-warning  { background: var(--amber-light); color: var(--amber); }
.stat-badge.badge-danger   { background: var(--red-light); color: var(--red); }

/* ─── Section Cards (wrappers around tables/forms) ────────────────────── */
.section-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-card-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-3);
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

/* ─── Table ───────────────────────────────────────────────────────────── */
.table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.table-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.domain-table-wrap { overflow-x: auto; }

.domain-table-wrap .btn-outline {
    border: none;
    background: var(--surface-2);
    color: var(--text-2);
}

.domain-table-wrap .btn-outline:hover {
    background: var(--border);
    color: var(--text-1);
    transform: none;
}

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

thead { background: var(--surface-2); }

th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px 20px;
    font-size: 13.5px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

tbody tr {
    transition: var(--t);
}

tbody tr:hover { background: var(--bg); }

.domain-name-cell {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.expiry-date {
    font-size: 13px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* ─── Page Header ─────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.greeting-headline {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.greeting-subtitle {
    font-size: 14px;
    color: var(--text-3);
    margin-top: 4px;
    font-weight: 400;
}

/* ─── Empty State ─────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 24px;
    text-align: center;
}

.empty-state svg { color: var(--text-4); opacity: 0.6; }

.empty-state p {
    font-size: 14px;
    color: var(--text-3);
    max-width: 320px;
    line-height: 1.6;
}

/* ─── Profile Cards ───────────────────────────────────────────────────── */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--t-slow);
}

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

.profile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.profile-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.profile-card-meta {
    font-size: 11.5px;
    color: var(--text-4);
    display: block;
    margin-top: 3px;
    font-weight: 400;
}

.profile-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-card-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
}

.profile-card-field svg { color: var(--text-4); flex-shrink: 0; }

.profile-card-field strong { color: var(--text-3); font-weight: 600; }

.profile-card-actions {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

/* ─── Profile/Form Select ─────────────────────────────────────────────── */
.profile-select-wrapper {
    background: var(--blue-light);
    border: 1.5px solid #bfdbfe;
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.profile-select-wrapper label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.profile-select-wrapper select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--r-md);
    background: white;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-1);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.profile-select-wrapper select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.profile-select-wrapper .form-hint {
    margin-top: 6px;
    color: #3b82f6;
    font-weight: 500;
}

/* ─── Auth Pages ──────────────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.auth-brand {
    background: #00028c;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245,166,35,0.1);
}

.auth-brand::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(37,99,235,0.15);
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.auth-brand-logo .logo-mark {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

.auth-brand-logo .logo-mark::after { background: var(--gold); }
.auth-brand-logo .logo-mark img { width: 18px; height: 18px; }
.auth-brand-logo .logo-text { color: #fff; }

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-brand-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.auth-brand-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.auth-trust-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

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

.auth-form-panel {
    background: var(--white);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-panel h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--text-3);
    margin-bottom: 28px;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    margin-top: 20px;
}

.auth-footer a { font-weight: 600; color: var(--blue); }
.auth-footer a:hover { color: var(--blue-600); }

/* Legacy fallback for auth-container if needed */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-h) - 80px);
    padding: 24px;
}

/* ─── Hero Section ────────────────────────────────────────────────────── */
.hero {
    padding: 80px 0 72px;
    text-align: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-light);
    border: 1px solid #fde68a;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.04em;
    line-height: 1.1;
    max-width: 640px;
    margin: 0 auto 20px;
}

.hero h1 .accent { color: var(--blue); }
.hero h1 .tld { color: var(--gold-dark); }

.hero-sub {
    font-size: 17px;
    color: var(--text-3);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.65;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}

.trust-item svg { color: var(--green); }

.trust-item strong {
    color: var(--text-2);
    font-weight: 700;
}

/* ─── Features Section ────────────────────────────────────────────────── */
.features-section {
    padding: 64px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-3);
    max-width: 440px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    transition: var(--t-slow);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover .feature-icon { background: var(--blue); }
.feature-card:hover .feature-icon svg { color: #fff; }

.feature-num {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    transition: var(--t-slow);
}

.feature-icon svg { color: var(--blue); }

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.65;
}

/* ─── CTA Section ─────────────────────────────────────────────────────── */
.cta-section {
    padding: 72px 0 0;
}

.cta-inner {
    background: var(--navy);
    border-radius: var(--r-2xl);
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(37,99,235,0.15);
}

.cta-inner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245,166,35,0.1);
}

.cta-inner h2 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-inner p {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-inner .btn {
    position: relative;
    z-index: 1;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
/* ─── App Footer ──────────────────────────────────────────────────────── */
.app-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.app-footer-copy {
    font-size: 12.5px;
    color: var(--text-4);
}

.app-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-footer-links a {
    font-size: 12.5px;
    color: var(--text-4);
    transition: var(--t);
}

.app-footer-links a:hover {
    color: var(--text-2);
}

.footer-support {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

.footer-zispa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--green);
    background: var(--green-light);
    padding: 3px 10px;
    border-radius: var(--r-pill);
}

/* ─── Manage Domain ───────────────────────────────────────────────────── */
.manage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ── Manage Tabs ────────────────────────────────────────────────────── */
.manage-tabs {
    display: flex;
    gap: 2px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.manage-tabs::-webkit-scrollbar { display: none; }

.manage-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-body);
}

.manage-tab svg { flex-shrink: 0; }

.manage-tab:hover {
    color: var(--text-1);
    background: rgba(0,0,0,0.04);
}

.manage-tab.active {
    background: var(--white);
    color: var(--text-1);
    box-shadow: var(--shadow-sm);
}

.manage-tab--danger { color: var(--red); }
.manage-tab--danger:hover { color: var(--red); background: var(--red-light); }
.manage-tab--danger.active { color: var(--red); box-shadow: var(--shadow-sm); }

.manage-panel { display: none; }
.manage-panel.active { display: block; }

/* ── Manage Panel Header ────────────────────────────────────────────── */
.manage-panel-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.manage-panel-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}

.manage-panel-header p {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ── Danger Zone ────────────────────────────────────────────────────── */
.danger-zone {
    background: var(--white);
    border: 1px solid #fecaca;
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: 0 0 0 4px rgba(220,38,38,0.04);
}

.danger-zone-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #fecaca;
}

.danger-zone-header svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.danger-zone-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 6px;
}

.danger-zone-header p {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.55;
}

.danger-zone-header p code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--red-light);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--red);
}

/* ── Transfer How-it-Works Steps ────────────────────────────────────── */
.transfer-how {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--surface-2);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}

.transfer-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.55;
}

.transfer-step:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.transfer-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    margin-top: 1px;
}

/* ── Transfer Status Banner ─────────────────────────────────────────── */
.transfer-status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--amber-light);
    border: 1px solid #fde68a;
    border-radius: var(--r-lg);
    font-size: 13.5px;
    color: var(--amber);
    font-weight: 500;
    margin-bottom: 24px;
}

.transfer-status-banner svg { flex-shrink: 0; }

/* ── File Upload Area ───────────────────────────────────────────────── */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-dark);
    border-radius: var(--r-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--t);
    background: var(--surface-2);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--navy);
    background: var(--navy-100);
}

.file-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-ui {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-ui svg { color: var(--text-4); }

.file-upload-ui p {
    font-size: 13.5px;
    color: var(--text-2);
    font-weight: 500;
}

.file-upload-ui p span {
    color: var(--blue);
    text-decoration: underline;
}

.file-upload-hint {
    font-size: 11.5px !important;
    color: var(--text-4) !important;
    font-weight: 400 !important;
}

/* ─── Change Password ─────────────────────────────────────────────────── */
.narrow-form {
    max-width: 480px;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-page { padding: 28px 16px; }
    .auth-wrapper { grid-template-columns: 1fr; max-width: 460px; }
    .auth-brand { display: none; }
    .auth-form-panel { padding: 40px 32px; }
    .app-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .manage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --page-padding-x: 16px; }
    .container { padding: 0 20px; }
    main.container { padding-top: 24px; padding-bottom: 40px; }

    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .hamburger { display: flex; }
    .nav-spacer { display: none; }
    .nav-dropdown { right: 0; min-width: 220px; }
    .nav-user .user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 15px; }
    .hero-trust { gap: 16px; }

    .features-section { margin: 0; padding: 48px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .profiles-grid { grid-template-columns: 1fr; }

    .cta-inner { padding: 40px 28px; }
    .cta-inner h2 { font-size: 26px; }

    .app-footer-links { gap: 14px; }

    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header-actions { width: 100%; }
    .page-header-actions { flex-direction: column; align-items: stretch; }
    .page-header-actions .btn { width: 100%; justify-content: center; }

    .table-header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }

    .stat-value { font-size: 26px; }

    th, td { padding: 12px 16px; }

    /* ── Manage tabs ── */
    .manage-tab { padding: 8px 12px; font-size: 12px; }
    .manage-tab svg { display: none; }
    .danger-zone { padding: 20px 16px; }
    .transfer-how { padding: 14px; }

    /* ── Domain table: hide Expiry column, icon-only actions ── */
    .domain-table-wrap th:nth-child(3),
    .domain-table-wrap td:nth-child(3) { display: none; }

    .domain-table-wrap .btn-sm { padding: 7px 9px; min-width: 34px; gap: 0; }
    .domain-table-wrap .btn-sm svg { display: inline-block; width: 14px; height: 14px; }
    .domain-table-wrap .btn-label { display: none; }
    .domain-table-wrap th,
    .domain-table-wrap td { padding: 10px 12px; }
    .domain-name-cell { font-size: 12px; }

    .form-card, .card-static { padding: 24px 20px; }

    .wizard-header { padding: 18px 16px; }
    .wizard-steps {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .wizard-steps::-webkit-scrollbar { display: none; }
    .wizard-step-indicator { min-width: 58px; }
    .ws-connector { flex: 0 0 18px; min-width: 18px; margin: 0 6px; margin-top: -18px; }
    .wizard-body { padding: 24px 20px; }
    .wizard-step-header h2 { font-size: 20px; }
    .wizard-nav { flex-direction: column; align-items: stretch; }
    .wizard-nav .btn { width: 100%; }

    .auth-form-panel { padding: 32px 24px; }
    .auth-form-panel h2 { font-size: 20px; }
    .auth-brand-content h2 { font-size: 22px; }

    .dns-page { gap: 16px; }
    .dns-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .dns-topbar-left {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 4px;
    }
    .dns-topbar-label { display: none; }
    .dns-notice { align-items: flex-start; }
    .dns-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .dns-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .dns-search-wrap { width: 100%; min-width: 0; }
    .dns-type-filters { width: 100%; }
    .dns-filter-btn { flex: 1 1 calc(33.333% - 4px); text-align: center; }
    .dns-add-body { padding: 18px 16px; }
    .dns-table { min-width: 560px; }
    .dns-actions { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
    .dns-actions .btn { white-space: nowrap; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 12px; }
    .auth-page { padding: 18px 12px; }
    .auth-form-panel { padding: 28px 18px; }
    .wizard-body { padding: 20px 16px; }
    .dns-filter-btn { flex-basis: calc(50% - 4px); }
    .dns-table { min-width: 520px; }
}

/* ─── Home Page ───────────────────────────────────────────────────────── */
.home-body {
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-page {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 48px;
}

.brand-logo-image {
    width: auto;
    height: 90px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.home-signin-prompt {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-4);
}

.home-signin-prompt a {
    color: var(--blue);
    font-weight: 600;
}

.home-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    font-size: 12px;
    color: var(--text-4);
    background: var(--white);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.home-footer a { color: var(--text-4); }
.home-footer a:hover { color: var(--text-2); }


.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 70%;
    max-width: 900px;
    margin: 0 auto;
    padding: 88px 24px 72px;
    background: var(--white);
   
}

.home-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-4);
    margin-bottom: 24px;
}

.home-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.home-tld {
    color: var(--blue);
}

.home-sub {
    font-size: 16px;
    color: var(--text-3);
    max-width: 400px;
    line-height: 1.65;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Search card */
.home-search-card {
    width: 100%;
    max-width: 580px;
    margin-bottom: 36px;
}

.home-search-bar {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 5px solid #0d0d0d;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.home-search-bar:focus-within {
   
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1), var(--shadow-lg);
}

.home-search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.home-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 18px 0 18px 20px;
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-1);
    background: transparent;
    letter-spacing: -0.01em;
}

.home-search-input::placeholder {
    color: var(--text-4);
    font-weight: 400;
}

.home-search-suffix {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-3);
    padding: 0 16px 0 4px;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.home-search-btn {
    border-radius: 0 !important;
    padding: 18px 28px !important;
    font-size: 15px !important;
    border-left: 5px solid #000;
    flex-shrink: 0;
    box-shadow: none !important;
    /* border-top-right-radius: calc(var(--r-xl) - 2px) !important; */
    /* border-bottom-right-radius: calc(var(--r-xl) - 2px) !important; */
}

.home-btn-spinner {
    display: inline-flex;
    align-items: center;
}

/* Result area */
.home-result {
    margin-top: 14px;
    border-radius: var(--r-lg);
    padding: 20px 22px;
    text-align: left;
    animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-result.hr-available {
    background: #f0fdf4;
   
}

.home-result.hr-taken {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
}

.home-result.hr-error {
    background: var(--amber-light);
    border: 1.5px solid #fde68a;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

.hr-available-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hr-domain-name {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.hr-domain-link {
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: rgba(220,38,38,0.35);
    text-underline-offset: 3px;
    transition: var(--t);
}

.hr-domain-link:hover {
    color: #b91c1c;
    text-decoration-color: rgba(220,38,38,0.7);
}

.hr-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hr-badge-green { background: #dcfce7; color: #166534; }
.hr-badge-red   { background: #fee2e2; color: #991b1b; }

.hr-desc {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.55;
}

.home-result .btn {
    font-size: 14px;
}

.hr-price {
    font-size: 12px;
    color: var(--text-4);
    margin-top: 10px;
}

.hr-disclaimer {
    font-size: 11.5px;
    color: var(--text-4);
    margin-top: 8px;
    font-style: italic;
}

/* Trust bar */
.home-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-4);
    font-weight: 500;
    white-space: nowrap;
}

.home-trust-item svg { color: var(--text-4); flex-shrink: 0; }

.home-trust-sep {
    color: var(--border-dark);
    font-size: 14px;
}

/* How it works */
.home-how {
    padding: 56px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.home-how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    flex: 1;
    max-width: 200px;
}

.how-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.how-step-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.how-step-body p {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.55;
}

.how-step-arrow {
    color: var(--text-4);
    flex-shrink: 0;
    margin-top: 10px;
    padding: 0 8px;
}

/* Auth brand domain box */
.auth-brand-domain-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-xl);
    padding: 18px 20px;
    position: relative;
    z-index: 1;
}

.auth-brand-domain-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 6px;
}

.auth-brand-domain-name {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.auth-brand-domain-price {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* Home page responsive */
@media (max-width: 600px) {
    .home-hero { width: 100%; padding: 60px 20px 48px; }
    .home-search-bar { flex-direction: column; border-radius: var(--r-xl); }
    .home-search-btn {
        
        border-left: none !important;
        border-top: 2px solid var(--border) !important;
        width: 100%;
        padding: 16px !important;
    }
    .home-search-input { padding: 16px 16px 16px 16px; font-size: 15px; }
    .home-how-steps { flex-direction: column; align-items: center; gap: 8px; }
    .how-step-arrow { transform: rotate(90deg); margin: 0; }
    .home-trust-sep { display: none; }
    .home-trust { gap: 8px; }
    .home-trust-item { font-size: 12px; }
}

/* ─── Wizard ──────────────────────────────────────────────────────────── */
.wizard-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Progress bar */
.wizard-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ws-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: grid;
    place-items: center;
    position: relative;
    transition: var(--t-slow);
}

.ws-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-4);
    transition: var(--t-slow);
}

.ws-check { display: none; color: #fff; }

.ws-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--t-slow);
    white-space: nowrap;
}

.wizard-step-indicator.active .ws-circle {
    border-color: var(--blue);
    background: var(--blue-light);
}
.wizard-step-indicator.active .ws-num { color: var(--blue); }
.wizard-step-indicator.active .ws-label { color: var(--blue); }

.wizard-step-indicator.completed .ws-circle {
    border-color: var(--green);
    background: var(--green);
}
.wizard-step-indicator.completed .ws-num { display: none; }
.wizard-step-indicator.completed .ws-check { display: block; }
.wizard-step-indicator.completed .ws-label { color: var(--green); }

.ws-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 8px;
    margin-top: -18px; /* align with circles */
    transition: background 0.3s;
}

/* Body */
.wizard-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px;
}

.wizard-step-header {
    margin-bottom: 28px;
}

.wizard-step-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.wizard-step-header p {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
}

.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.wizard-nav .btn { min-width: 120px; }

/* Form grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Domain search */
.domain-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.domain-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--white);
    overflow: hidden;
    transition: var(--t);
}

.domain-input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.domain-input-wrap .domain-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-1);
    background: transparent;
    box-shadow: none !important;
    border-radius: 0;
}

.domain-input-wrap .domain-input::placeholder { color: var(--text-4); font-weight: 400; }

.domain-suffix {
    padding: 0 16px 0 4px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
    user-select: none;
}

/* Availability badges */
.avail-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 500;
}

.avail-badge strong { font-family: var(--font-mono); font-weight: 600; }

.avail-yes  { background: var(--green-light); color: #065f46; border: 1px solid #a7f3d0; }
.avail-no   { background: var(--red-light);   color: #991b1b; border: 1px solid #fecaca; }
.avail-warn { background: var(--amber-light);  color: #92400e; border: 1px solid #fde68a; }

.avail-disclaimer {
    font-size: 11.5px;
    color: var(--text-4);
    margin-top: 8px;
    font-style: italic;
}

/* Required asterisk */
.required { color: var(--red); font-size: 12px; }

/* Input error flash */
.input-error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

/* Domain chip */
.domain-chip {
    font-family: var(--font-mono);
    font-size: 13.5px;
    background: var(--navy-100);
    color: var(--navy);
    padding: 2px 8px;
    border-radius: var(--r-sm);
}

/* Skip nameserver checkbox */
.skip-ns-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    user-select: none;
}

.skip-ns-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

/* Order summary */
.order-summary {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-2);
    padding: 4px 0;
}

.order-label { color: var(--text-3); }

.order-domain-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-1);
}

.order-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.order-total {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-1);
}

/* Payment cards */
.payment-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.payment-card {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    min-height: 48px;
    padding: 0 12px;
    cursor: pointer;
    transition: var(--t-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    position: relative;
    white-space: nowrap;
}

.payment-card:hover {
    border-color: var(--blue);
    background: #f8fbff;
    box-shadow: var(--shadow-sm);
}

.payment-card.selected {
    border-color: #0f3f8c;
    background: #0f3f8c;
    box-shadow: 0 0 0 3px rgba(15,63,140,0.16);
    transform: translateY(-1px);
}

.payment-card.selected::after {
    content: 'Selected';
    position: absolute;
    top: -8px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #15a36d;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.payment-method-logo {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: 0;
}

.payment-card.selected .payment-method-logo {
    color: #fff;
}

/* Payment instructions */
.payment-instructions {
    margin-top: 0;
    margin-bottom: 4px;
}

/* Manual tabs */
.manual-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 8px 8px 0;
}

.manual-tab {
    padding: 9px 18px;
    border-radius: var(--r-md) var(--r-md) 0 0;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    cursor: pointer;
    transition: var(--t);
}

.manual-tab:hover { color: var(--text-1); background: rgba(0,0,0,0.04); }
.manual-tab.active { background: var(--white); color: var(--blue); border: 1px solid var(--border); border-bottom: 1px solid var(--white); margin-bottom: -1px; }

.manual-tab-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
    padding: 20px;
}

/* Payment steps (EcoCash) */
.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-step {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-2);
    align-items: flex-start;
    line-height: 1.5;
}

.pay-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-family: var(--font-display);
}

/* Bank details */
.bank-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    background: var(--surface-2);
}

.bank-row span { color: var(--text-3); }
.bank-row strong { color: var(--text-1); }

/* Reference code */
.ref-code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--navy);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: var(--r-sm);
    letter-spacing: 0.02em;
}

/* Paynow poll status */
.poll-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--blue-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 500;
    color: #1e40af;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }

/* Responsive wizard */
@media (max-width: 640px) {
    .wizard-body { padding: 24px 20px; }
    .wizard-header { padding: 20px; }
    .wizard-steps {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .wizard-steps::-webkit-scrollbar { display: none; }
    .wizard-step-indicator { min-width: 58px; }
    .ws-connector { flex: 0 0 18px; min-width: 18px; margin: 0 6px; margin-top: -18px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .payment-cards {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .payment-cards::-webkit-scrollbar { display: none; }
    .payment-card {
        flex: 0 0 112px;
        min-height: 46px;
    }
    .domain-search-row { flex-direction: column; }
    .ws-label { display: none; }
    .wizard-nav { flex-direction: column; align-items: stretch; }
    .wizard-nav .btn { flex: none; width: 100%; min-width: unset; }
}

/* ─── DNS Manager ────────────────────────────────────────────────────── */
.dns-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dns-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 4px;
}
.dns-topbar-left { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dns-back-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text-3); text-decoration: none; font-weight: 500;
}
.dns-back-link:hover { color: var(--navy); }
.dns-topbar-sep   { color: var(--text-4); }
.dns-topbar-domain { font-weight: 700; color: var(--text-1); font-family: var(--font-display); }
.dns-topbar-label  { font-size: 13px; color: var(--text-4); }

.dns-notice {
    display: flex; align-items: center; gap: 10px;
    background: var(--blue-light); border: 1px solid #bfdbfe;
    border-radius: var(--r-md); padding: 12px 16px;
    font-size: 13px; color: #1e40af;
}
.dns-notice svg { flex-shrink: 0; }

.dns-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm);
}
.dns-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.dns-card-header h2 {
    font-family: var(--font-display); font-size: 16px; font-weight: 700;
    color: var(--text-1); margin: 0;
}

.dns-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 24px; border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.dns-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 6px 12px; flex: 1; min-width: 180px;
}
.dns-search-wrap svg { color: var(--text-4); flex-shrink: 0; }
.dns-search-input {
    border: none; outline: none; background: transparent;
    font-size: 13px; color: var(--text-1); width: 100%;
}
.dns-search-input::placeholder { color: var(--text-4); }
.dns-type-filters { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dns-filter-btn {
    padding: 5px 11px; border-radius: var(--r-md); font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); background: var(--white); color: var(--text-3);
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
}
.dns-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.dns-filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.dns-empty-row { text-align: center; color: var(--text-4); padding: 24px !important; }

.dns-loading {
    display: flex; align-items: center; gap: 10px;
    padding: 32px 24px; font-size: 14px; color: var(--text-3);
}
.dns-error {
    padding: 16px 24px; font-size: 14px; color: var(--red);
    background: var(--red-light); border-top: 1px solid #fecaca;
}

/* DNS Table */
.dns-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dns-table th {
    background: var(--navy); color: var(--white); text-align: left;
    padding: 10px 16px; font-size: 11px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
}
.dns-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dns-table tr:last-child td { border-bottom: none; }
.dns-table tr:hover td { background: var(--bg); }
.dns-row-readonly td { opacity: .55; }
.dns-readonly-label { font-size: 11px; color: var(--text-4); font-style: italic; }

.dns-cell-value { font-family: var(--font-mono); font-size: 13px; max-width: 280px; word-break: break-all; }
.dns-cell-name  { font-weight: 600; }
.dns-actions    { white-space: nowrap; text-align: right; }

/* Type badges */
.dns-type-badge {
    display: inline-block; padding: 2px 8px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700; font-family: var(--font-mono); letter-spacing: .04em;
}
.dns-type-a     { background: #dbeafe; color: #1d4ed8; }
.dns-type-aaaa  { background: #e0e7ff; color: #4338ca; }
.dns-type-cname { background: var(--green-light); color: var(--green); }
.dns-type-mx    { background: #f3e8ff; color: #7c3aed; }
.dns-type-txt   { background: var(--gold-light); color: var(--amber); }
.dns-type-ns    { background: var(--surface-2); color: var(--text-3); }
.dns-type-soa   { background: var(--surface-2); color: var(--text-3); }
.dns-type-other { background: var(--surface-2); color: var(--text-3); }

/* Inline edit inputs */
.dns-inline-input {
    width: 100%; min-width: 120px; padding: 5px 8px;
    border: 1px solid var(--blue); border-radius: var(--r-sm);
    font-size: 13px; font-family: var(--font-mono);
    background: var(--white); color: var(--text-1);
}
.dns-inline-short { min-width: 70px; max-width: 90px; }

/* Small button variant */
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: var(--red); color: var(--white); border: none; }
.btn-danger:hover { background: #b91c1c; color: var(--white); }

/* Add record form */
.dns-add-body { padding: 20px 24px; }
.dns-add-fields {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px;
}
.dns-add-fields .form-group { margin: 0; flex: 1; min-width: 120px; }
.dns-add-fields .dns-value-group { flex: 2; min-width: 200px; }
.dns-hint { font-size: 11px; color: var(--text-4); font-weight: 400; margin-left: 4px; }
.dns-form-error {
    padding: 10px 14px; background: var(--red-light); color: var(--red);
    border-radius: var(--r-md); font-size: 13px; margin-bottom: 12px;
}

@media (max-width: 640px) {
    .dns-add-fields { flex-direction: column; }
    .dns-add-fields .form-group, .dns-add-fields .dns-value-group { min-width: unset; width: 100%; }
    .dns-table th:nth-child(4), .dns-table td:nth-child(4),
    .dns-table th:nth-child(5), .dns-table td:nth-child(5) { display: none; }
}

/* ─── Wizard Draft Banner ────────────────────────────────────────────── */
#draft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: var(--r-md);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--amber);
    font-weight: 500;
}
#draft-banner button {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--amber);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}
#draft-banner button:hover { opacity: 0.75; }

/* ─── Password Reveal ────────────────────────────────────────────────── */
.input-reveal-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-reveal-wrap input {
    flex: 1;
    padding-right: 44px;
}
.reveal-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s;
}
.reveal-btn:hover { color: var(--text-2); }

/* ─── Transfer Page ───────────────────────────────────────────────────── */
.transfer-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.transfer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.transfer-body {
    flex: 1;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.transfer-hero {
    text-align: center;
    padding: 8px 0 4px;
}

.transfer-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-xl);
    background: var(--navy-100);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.transfer-hero h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 12px;
    line-height: 1.25;
}

.transfer-domain-name {
    color: var(--blue);
}

.transfer-hero p {
    font-size: 16px;
    color: var(--text-3);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* WhatsApp Card */
.transfer-wa-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.transfer-wa-icon {
    color: #25d366;
    margin-bottom: 16px;
    line-height: 1;
}

.transfer-wa-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 12px;
}

.transfer-wa-card p {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 12px;
}

.transfer-wa-domain-note {
    font-size: 14px;
    color: var(--text-2);
    background: var(--blue-light);
    border-radius: var(--r-md);
    padding: 10px 16px;
    display: inline-block;
    margin-bottom: 4px !important;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    margin-top: 20px;
    gap: 8px;
}
.btn-whatsapp:hover {
    background: #1fb857;
    color: #fff;
}

.transfer-wa-alt {
    margin-top: 16px !important;
    font-size: 13px;
    color: var(--text-4);
}
.transfer-wa-alt a {
    color: var(--blue);
    text-decoration: none;
}
.transfer-wa-alt a:hover { text-decoration: underline; }

/* Steps card (reused on transfer page) */
.transfer-steps-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.transfer-steps-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.transfer-steps-header h2 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.transfer-steps {
    padding: 8px 0;
}

.transfer-step {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}
.transfer-step:last-child { border-bottom: none; }

.ts-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ts-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 6px;
}

.ts-body p {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
    margin: 0 0 8px;
}
.ts-body p:last-child { margin-bottom: 0; }

.ts-note {
    font-size: 13px;
    color: var(--text-3);
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.ts-note-success {
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ts-note-success svg { flex-shrink: 0; margin-top: 1px; }

/* Responsive transfer */
@media (max-width: 600px) {
    .transfer-topbar { padding: 14px 20px; }
    .transfer-body { padding: 32px 16px 48px; }
    .transfer-wa-card { padding: 28px 20px; }
    .transfer-hero h1 { font-size: 22px; }
    .transfer-steps-header, .transfer-step { padding-left: 20px; padding-right: 20px; }
}
