:root {
    --primary: #1A6FD4;
    --accent: #F5821F;
    --bg: #FFFFFF;
    --surface: #F4F7FC;
    --text-p: #1A1A2E;
    --text-s: #4A4A68;
    --border: #DDE3EF;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-p);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.3; margin-bottom: 1rem; }

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--text-p);
    margin-top: 0;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

/* Navigation — stacks directly below the 38px eco bar */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 38px;
    z-index: 1000;
    padding: 0 5%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--text-s); padding: 8px 0; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-actions { display: flex; gap: 15px; align-items: center; }

.cart-btn {
    background: var(--surface);
    padding: 10px 18px;
    border-radius: var(--radius);
    position: relative;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    color: var(--text-p);
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); background: white; transform: translateY(-1px); }

.cart-count {
    background: var(--accent); color: white; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.cart-count[data-count="0"] { display: none; }

.btn-signin {
    background: var(--primary); color: white; padding: 10px 22px; border-radius: var(--radius);
    font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(26, 111, 212, 0.2);
}
.btn-signin:hover { background: #155bbf; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26, 111, 212, 0.3); }

/* Utilities */
.container { max-width: 1440px; margin: 0 auto; padding: 0 30px; }

.btn {
    border-radius: var(--radius); font-weight: 700; cursor: pointer; border: none;
    padding: 14px 28px; font-family: inherit; font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-s); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.btn:active { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Card / Service Card */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); }

.service-card {
    background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); border-color: var(--primary); }
.service-cat { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 8px; }
.service-price { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 26px; color: var(--primary); margin: 10px 0; }
.service-price small { font-size: 13px; font-weight: 600; color: var(--text-s); }
.service-card.featured { border-color: var(--primary); box-shadow: 0 10px 30px rgba(26,111,212,0.12); }
.featured-badge {
    position: absolute; top: -12px; right: 20px; background: var(--accent); color: white;
    font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 20px; letter-spacing: 0.5px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #143A63 100%);
    color: white; padding: 90px 0 110px; position: relative; overflow: hidden;
}
.hero-tag {
    display: inline-block; background: rgba(245,130,31,0.15); color: var(--accent);
    font-weight: 800; font-size: 12px; letter-spacing: 1.5px; padding: 8px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { color: white; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 640px; margin-bottom: 30px; }

.domain-search-hero {
    background: white; border-radius: 20px; padding: 10px; display: flex; gap: 10px;
    max-width: 640px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.domain-search-hero input {
    flex: 1; border: none; outline: none; padding: 14px 18px; font-family: inherit; font-size: 16px; border-radius: 12px; color: var(--text-p);
}
.domain-search-hero button {
    background: var(--accent); color: white; border: none; border-radius: 12px; padding: 14px 26px;
    font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.tld-tags { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tld-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }

/* Domain result rows */
.domain-result-row {
    display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
    border: 1.5px solid var(--border); border-radius: 14px; margin-bottom: 12px; gap: 20px; flex-wrap: wrap;
}
.domain-result-row.status-available { border-color: #9AE6B4; background: #F0FFF4; }
.domain-result-row.status-taken { border-color: var(--border); background: var(--surface); opacity: 0.75; }
.domain-result-row.status-unknown { border-color: #FBD38D; background: #FFFAF0; }
.domain-status-pill { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.domain-status-pill.available { background: #38A169; color: white; }
.domain-status-pill.taken { background: var(--text-s); color: white; }
.domain-status-pill.unknown { background: #DD6B20; color: white; }

/* Grids */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 40px 0; }
.stats-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.layout-checkout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.layout-account { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }

/* Status badges (admin + client portal share these) */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.status-active, .status-issued, .status-delivered { background: #E6FFFA; color: #2C7A7B; }
.status-pending, .status-pending_registration, .status-pending_provisioning, .status-pending_issuance, .status-pending_kickoff, .status-queued { background: #FFFAF0; color: #C05621; }
.status-cancelled, .status-failed, .status-revoked, .status-suspended, .status-expired { background: #FFF5F5; color: #C53030; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 15px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-s); border-bottom: 2px solid var(--surface); }
td { padding: 12px 15px; border-bottom: 1px solid var(--surface); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* Mobile Drawer */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-p);
    cursor: pointer;
}

.mobile-drawer {
    position: fixed;
    top: 38px;
    left: -300px;
    width: 280px;
    height: calc(100% - 38px);
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 30px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-drawer.active { left: 0; }

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active { display: block; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.drawer-links { display: flex; flex-direction: column; gap: 15px; }

.drawer-link {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-p);
    padding: 10px 0;
    border-bottom: 1px solid var(--surface);
}

@media (max-width: 900px) {
    .layout-checkout, .layout-account { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-nav-toggle { display: block; }
    .navbar-inner { gap: 15px; height: 65px; }
}
