@import url('/assets/css/fonts.css');

:root {
    --primary:    #2563eb;
    --primary-d:  #1d4ed8;
    --dark:       #0f172a;
    --text:       #1e293b;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --success:    #16a34a;
    --danger:     #dc2626;
    --warning:    #d97706;
    --radius:     10px;
    --shadow:     0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
    --font:       'GB Museo Sans', Arial, Helvetica, sans-serif;
}

html { font-size: 16px; }

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input, button, select, textarea {
    font-family: var(--font);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0 20px;
    display: flex; align-items: center; gap: 32px;
    height: 64px;
}
.nav-logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.9rem !important;
}
.nav-btn:hover { background: var(--primary-d); text-decoration: none !important; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px 80px;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.hero p  { font-size: 1.2rem; opacity: .85; max-width: 500px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.btn-white  { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #e0eaff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); width: 100%; }
.btn-primary:hover { background: var(--primary-d); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: .85rem; width: auto; display: inline-block; }

/* ── SEARCH DOMAIN ── */
.domain-search {
    max-width: 620px; margin: 0 auto;
    display: flex; gap: 0;
}
.domain-search input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
}
.domain-search button {
    padding: 14px 24px;
    background: #0f172a;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}
.domain-search button:hover { background: #1e293b; }

/* ── SECTION ── */
.section { padding: 72px 20px; }
.section-center { text-align: center; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-sub   { color: var(--muted); font-size: 1.05rem; margin-bottom: 48px; }

/* ── CARDS ── */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3   { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p    { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.card-price {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primary); margin: 16px 0 4px;
}
.card-price span { font-size: .9rem; font-weight: 400; color: var(--muted); }

/* ── PRICING ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px; align-items: start;
}
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.pricing-badge {
    background: var(--primary);
    color: var(--white);
    font-size: .75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    display: inline-block; margin-bottom: 16px;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin: 12px 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-features { list-style: none; margin: 20px 0 28px; text-align: left; }
.pricing-features li { padding: 6px 0; font-size: .9rem; color: var(--muted); }
.pricing-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ── AUTH FORMS ── */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.auth-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px 40px;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.auth-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.auth-box .sub { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .95rem;
    transition: border-color .2s;
    outline: none;
}
.form-group input:focus { border-color: var(--primary); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }

.alert {
    padding: 12px 16px;
    border-radius: 7px;
    font-size: .9rem;
    margin-bottom: 20px;
}
.alert-error   { background: #fef2f2; color: var(--danger);  border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* ── CABINET ── */
.cabinet-layout { display: flex; min-height: 100vh; }

/* Mobile top bar (cabinet) */
.mob-cab-bar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    height: 56px; background: #0f172a;
    align-items: center; gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mob-cab-logo {
    font-size: 1.25rem; font-weight: 900; color: #fff; letter-spacing: -.5px;
    text-decoration: none; flex: 1;
}
.mob-cab-logo span { color: #3b82f6; }
.mob-cab-balance {
    font-size: .78rem; font-weight: 700; color: #93c5fd;
    background: rgba(59,130,246,.15); padding: 4px 10px; border-radius: 20px;
}
.mob-cab-burger {
    width: 38px; height: 38px; background: rgba(255,255,255,.08);
    border: none; border-radius: 8px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mob-cab-burger span {
    display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: all .22s;
}
.mob-cab-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-cab-burger.open span:nth-child(2) { opacity: 0; }
.mob-cab-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar overlay */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 310;
    background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

.sidebar {
    width: 256px; flex-shrink: 0;
    background: #0f172a;
    color: var(--white);
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    display: flex; flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.06);
    transition: transform .25s ease;
    z-index: 320;
}

/* Logo */
.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 22px 20px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 8px;
}
.sidebar-logo:hover { text-decoration: none; }
.sidebar-logo-text {
    font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -.5px; line-height: 1;
}
.sidebar-logo-text span { color: #3b82f6; }
.sidebar-logo-badge {
    font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(59,130,246,.2); color: #93c5fd;
    padding: 2px 8px; border-radius: 20px;
}

/* Section label */
.sidebar-section {
    padding: 14px 20px 5px;
    font-size: .63rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255,255,255,.28);
}

/* Nav links */
.sidebar-nav {
    padding: 0 10px;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    color: rgba(255,255,255,.6);
    font-size: .875rem; font-weight: 500;
    border-radius: 9px;
    margin-bottom: 2px;
    transition: all .15s;
    text-decoration: none;
    position: relative;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.9);
    text-decoration: none;
}
.sidebar-nav a.active {
    background: rgba(59,130,246,.18);
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
}
.sidebar-nav a.active::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 2px 2px 0;
    background: #3b82f6;
}

/* Icon wrapper in nav */
.sidebar-nav a > *:first-child {
    width: 20px; text-align: center; flex-shrink: 0;
    font-size: .95rem; opacity: .85;
}

.cabinet-main { flex: 1; padding: 32px 36px; overflow-x: hidden; }
.cabinet-header { margin-bottom: 32px; }
.cabinet-header h1 { font-size: 1.6rem; font-weight: 700; }
.cabinet-header p { color: var(--muted); margin-top: 4px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px; margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card .label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.stat-card .sub   { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; margin-bottom: 24px;
}
.table-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.table-card-header h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 24px; text-align: left; font-size: .88rem; }
th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
tr:hover td { background: #fafafa; }

.badge {
    display: inline-block;
    padding: 3px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 600;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state p { margin-bottom: 16px; }

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    text-align: center;
    padding: 32px 20px;
    font-size: .85rem;
}
footer a { color: rgba(255,255,255,.6); }

@media (max-width: 768px) {
    html { font-size: 15px; }
    .hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .auth-box { padding: 32px 20px; }
    .nav-links { display: none; }
    .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    th, td { padding: 12px 16px; }

    /* Cabinet mobile */
    .mob-cab-bar { display: flex; }
    .cabinet-layout { flex-direction: column; }
    .cabinet-main { padding: 72px 16px 24px; }
    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh;
        width: 260px; transform: translateX(-100%);
    }
    .sidebar.mob-open { transform: translateX(0); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
    .stat-card { padding: 16px; }
    .stat-card .value { font-size: 1.4rem; }
    .table-card-header { padding: 14px 16px; }
    th, td { padding: 10px 12px; font-size: .82rem; }
    .cabinet-header { margin-bottom: 20px; }
    .cabinet-header h1 { font-size: 1.3rem; }
}

@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.8; transform:scale(1.1); }
}
