/* ============ SonnyServer public styles ============ */
:root {
  --primary: #f5a623;
  --primary-2: #e0202b;
  --primary-grad: linear-gradient(135deg, #fbbf24 0%, #f5a623 45%, #e0202b 100%);
  --gold: #f5a623;
  --accent: #e0202b;
  --ink: #1a1208;
  --ink-soft: #5b5140;
  --muted: #948a76;
  --bg: #ffffff;
  --bg-soft: #fff9ef;
  --line: #f0e5d0;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(245, 158, 11, 0.14);
  --shadow-lg: 0 24px 60px rgba(26, 18, 8, 0.18);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.85em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 8px 20px rgba(224,32,43,.30); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(224,32,43,.42); }
.btn-ghost { background: rgba(245,158,11,.10); color: #b45309; }
.btn-ghost:hover { background: rgba(245,158,11,.20); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--primary-2); color: var(--primary-2); }
.btn-light { background: #fff; color: var(--primary-2); box-shadow: var(--shadow); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 6px 13px; font-size: 0.85rem; border-radius: 9px; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: #fee2e2; color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: #fecaca; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--primary-grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(224,32,43,.40);
}
.brand-text { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand-text span { color: var(--primary-2); }
.brand-light .brand-text { color: #fff; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-weight: 500; position: relative; }
.main-nav a.active { color: var(--primary-2); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--primary-grad); border-radius: 2px;
}
.header-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(245,166,35,.32), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(224,32,43,.30), transparent 60%),
    linear-gradient(160deg, #1a1208 0%, #241608 55%, #2c1013 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: 0.82rem; letter-spacing: .04em; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero-sub { font-size: 1.12rem; color: #cbd5e1; max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; color: #e2e8f0; }
.hero-stats li { display: flex; flex-direction: column; font-size: 0.85rem; }
.hero-stats strong { font-size: 1.35rem; color: #fff; }

.hero-visual { display: grid; place-items: center; }
.server-card {
  width: 100%; max-width: 420px; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.server-card-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ef4444; } .dot-amber { background: #f59e0b; } .dot-green { background: #22c55e; }
.server-id { margin-left: auto; font-family: Consolas, monospace; font-size: 0.78rem; color: #cbd5e1; }
.server-body { padding: 24px 20px; }
.meter { margin-bottom: 20px; }
.meter-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: #cbd5e1; margin-bottom: 7px; }
.meter-track { height: 9px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--primary-grad); transition: width .8s ease; }
.server-status { margin-top: 22px; font-size: 0.85rem; color: #cbd5e1; display: flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6);} 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0);} }

/* ---------- domain search ---------- */
.domain-search { position: relative; margin-top: -52px; z-index: 5; padding-bottom: 8px; }
.domain-search-box {
  background: #fff; border-radius: var(--radius); padding: 34px 36px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  text-align: center;
}
.domain-search-box h2 { margin-bottom: 6px; }
.domain-search-box p { color: var(--ink-soft); margin-bottom: 22px; }
.domain-form { max-width: 640px; margin: 0 auto; }
.domain-input-group {
  display: flex; align-items: center; gap: 10px;
  background: #fff9ef; border: 2px solid var(--line); border-radius: 14px; padding: 7px 8px;
  transition: border-color .15s ease;
}
.domain-input-group:focus-within { border-color: var(--gold); }
.domain-globe { font-size: 1.3rem; padding-left: 8px; }
.domain-input-group input {
  flex: 1; border: 0; background: transparent; padding: 10px 6px;
  font-size: 1.05rem; outline: none; font-family: inherit; color: var(--ink);
}
.domain-tlds { margin-top: 16px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tld-chip {
  padding: 4px 12px; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); cursor: pointer;
}
.tld-chip:hover { border-color: var(--primary-2); color: var(--primary-2); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; color: var(--primary-2); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 10px;
}.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); }

/* ---------- plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan-popular { border: 2px solid var(--primary-2); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary-grad); color: #fff; padding: 5px 16px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.plan-head h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan-tag { color: var(--muted); font-size: 0.92rem; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 22px 0 6px; }
.plan-price-symbol { font-size: 1.2rem; font-weight: 700; color: var(--primary-2); }.plan-price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-price-period { color: var(--muted); }
.plan-resources {
  display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 0; margin: 14px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  font-size: 0.85rem; color: var(--ink-soft); font-weight: 600;
}
.plan-features { list-style: none; margin-bottom: 24px; flex: 1; }
.plan-features li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-soft); }
.plan-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800;
}
.plan-card .btn { margin-top: auto; }

/* ---------- features ---------- */
.features-section { background: var(--bg-soft); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(245,158,11,.14); font-size: 1.5rem; margin-bottom: 16px;
}
.feature h4 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-section { background: var(--primary-grad); color: #fff; text-align: center; }
.cta-inner { padding: 72px 22px; }
.cta-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }
.cta-inner p { opacity: .9; margin-bottom: 26px; }

/* ---------- page hero ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(245,166,35,.30), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 6px 0 10px; }
.page-hero-sub { color: #cbd5e1; max-width: 560px; margin: 0 auto; }
.page-hero-small { padding: 46px 0; }

/* ---------- domain results ---------- */
.search-summary { text-align: center; margin: 30px 0 18px; color: var(--ink-soft); }
.domain-results { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.domain-result {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.domain-result.is-available { border-color: #bbf7d0; background: #f0fdf4; }
.domain-result.is-taken { opacity: .75; }
.domain-result-name { display: flex; align-items: center; gap: 10px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-avail { background: #dcfce7; color: var(--green); }
.badge-taken { background: #fee2e2; color: var(--red); }
.domain-result-price { font-weight: 700; }
.search-suggest { text-align: center; padding: 40px 0; }
.search-suggest h3 { margin-bottom: 16px; color: var(--ink-soft); }
.search-suggest-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.search-suggest-chips a { background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--ink-soft); }
.search-suggest-chips a:hover { border-color: var(--primary-2); color: var(--primary-2); }

/* ---------- alerts / flash ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin: 14px 0; background: var(--bg-soft); border: 1px solid var(--line); }
.alert-error { background: #fef2f2; border-color: #fecaca; color: var(--red); }
.flash { padding: 14px 0; background: #f0fdf4; border-bottom: 1px solid #bbf7d0; color: #166534; font-weight: 600; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: var(--red); }

/* ---------- auth ---------- */
.auth-section { padding: 90px 0; background: var(--bg-soft); min-height: 60vh; }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 4px; }
.auth-sub { color: var(--muted); margin-bottom: 22px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit;
  font-size: 1rem; outline: none; transition: border-color .15s ease; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); }
textarea { resize: vertical; }

/* ---------- order ---------- */
.order-layout { max-width: 820px; }
.order-step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.order-step-card h3 { margin: 22px 0 14px; }
.order-step-card h3:first-child { margin-top: 0; }
.order-plans { display: flex; flex-direction: column; gap: 10px; }
.order-plan {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; color: var(--ink);
}
.order-plan:hover { border-color: var(--primary-2); text-decoration: none; }
.order-plan.selected { border-color: var(--primary-2); background: rgba(224,32,43,.06); box-shadow: 0 0 0 1px var(--primary-2); }
.order-plan strong { display: block; }
.order-plan span { color: var(--muted); font-size: 0.9rem; }
.order-plan-price { font-weight: 700; color: var(--primary-2) !important; white-space: nowrap; }
.term-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.term-option input { display: none; }
.term-option span {
  display: block; text-align: center; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; font-weight: 700;
}
.term-option input:checked + span { border-color: var(--primary-2); background: rgba(224,32,43,.06); color: var(--primary-2); }
.term-option small { display: block; font-weight: 500; color: var(--muted); }
.order-summary { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 20px 0; background: var(--bg-soft); }
.order-summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-soft); }
.order-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; color: var(--ink); font-size: 1.1rem; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(245,158,11,.14); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h4 { margin-bottom: 2px; }
.contact-item p { color: var(--ink-soft); }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-form-card h3 { margin-bottom: 18px; }

/* ---------- client area ---------- */
.page-client .site-main { min-height: 60vh; }
.client-main { padding: 40px 22px; }
.client-hero { margin-bottom: 30px; }
.client-hero h1 { font-size: 1.9rem; }
.client-hero p { color: var(--ink-soft); }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 520px; margin-top: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--primary-2); }
.stat-card span:last-child { color: var(--ink-soft); font-size: 0.85rem; }.client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.client-tabs { display: flex; gap: 22px; margin-left: auto; }
.client-tabs a { color: var(--ink-soft); font-weight: 500; }
.client-tabs a.active { color: var(--primary-2); }
.client-greeting { color: var(--muted); font-size: 0.9rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel-narrow { max-width: 560px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h3 { font-size: 1.15rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; }
.table tr:last-child td { border-bottom: 0; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.status-active, .status-ok { background: #dcfce7; color: var(--green); }
.status-pending { background: #fef3c7; color: #b45309; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-suspended { background: #fee2e2; color: var(--red); }
.status-cancelled, .status-failed, .status-muted { background: #f1f5f9; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 56px 22px 40px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; color: #cbd5e1; margin-bottom: 8px; }
.footer-col a:hover { color: #fbbf24; }
.footer-blurb { margin-top: 14px; color: var(--muted); }
.footer-hours { color: var(--muted); }
.footer-social a { display: inline-block; margin-right: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 18px; font-size: 0.85rem; color: var(--muted); }
.footer-bottom a { color: #cbd5e1; }
.footer-powered { text-align: right; }
.site-footer-thin .container { padding-top: 22px; padding-bottom: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 130px; }
  .hero-visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav.open, .header-actions.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 18px 22px; border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .term-toggle { grid-template-columns: 1fr; }
  .domain-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .client-tabs { display: none; }
}
