/* ============================================================
   xHOST.pro — Dizayn Sistemi V2
   İstiqamət: texniki sxem / server-rack cədvəli / "datasheet" estetikası.
   Açıq "blueprint" kağız fonu, tünd lacivərd mətn, siqnal-narıncı möhür rəngi.
   Bucaqlı guşələr, monospace etiketlər, real server məlumatına söykənən
   "rack elevation" zolağı imza elementidir.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg:        #EDEFF4;
  --bg-line:   rgba(22,33,62,.05);
  --surface:   #FFFFFF;
  --surface-2: #F4F5F9;
  --surface-3: #E9EBF1;
  --border:    #D2D7E1;
  --border-soft: #E2E5EC;

  --text:      #16213E;
  --text-muted:#5B6478;
  --text-dim:  #8891A3;

  --accent:      #C8402A;
  --accent-dim:  #8F2C1D;
  --accent-glow: rgba(200,64,42,.13);

  --success: #2F7D5C;
  --warning: #B8791A;
  --danger:  #B8322A;
  --muted-badge: #8891A3;

  --radius: 3px;
  --radius-sm: 2px;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*{ box-sizing: border-box; }

body{
  background:
    repeating-linear-gradient(0deg, var(--bg-line) 0, var(--bg-line) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, var(--bg-line) 0, var(--bg-line) 1px, transparent 1px, transparent 28px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6{ font-family: var(--font-display); letter-spacing: -0.01em; color: var(--text); font-weight: 800; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-dim); }
code, .mono, .font-mono{ font-family: var(--font-mono); }

/* ---------- Status işıq nöqtəsi ---------- */
.status-light{
  display:inline-block; width:8px; height:8px; margin-right:6px; flex-shrink:0;
  border: 1px solid rgba(0,0,0,.15);
}
.status-light.on{ background: var(--success); }
.status-light.warn{ background: var(--warning); }
.status-light.off{ background: var(--danger); }
.status-light.idle{ background: var(--text-dim); }

/* ---------- Layout qabıqları ---------- */
.app-shell{ display:flex; min-height:100vh; }

.topbar{
  background: var(--surface);
  border-bottom: 2px solid var(--text);
  padding: 12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  position: sticky; top:0; z-index: 40;
}
.brand{
  font-family: var(--font-display); font-weight:900; font-size:1.15rem; color:var(--text);
  display:flex; align-items:center; gap:8px; letter-spacing:-0.01em; text-transform:uppercase;
}
.brand .bi{ color: var(--accent); }
.brand .brand-x{ color: var(--accent); }

.wallet-chip{
  background: var(--surface-2); border:1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 14px; font-family: var(--font-mono);
  font-size:.85rem; display:flex; align-items:center; gap:8px; color:var(--text);
}
.wallet-chip .bi{ color: var(--success); }

/* ---------- Sidebar (admin + user) ---------- */
.sidebar{
  width: 240px; flex-shrink:0; background: var(--surface);
  border-right: 2px solid var(--text);
  min-height: 100vh; padding: 18px 12px;
  position: sticky; top:0; align-self:flex-start; height:100vh; overflow-y:auto;
}
.sidebar .brand{ padding: 6px 10px 20px; }
.side-label{
  font-family: var(--font-mono); font-size:.66rem; text-transform:uppercase; letter-spacing:.1em; color: var(--text-dim);
  padding: 14px 12px 6px;
}
.side-link{
  display:flex; align-items:center; gap:10px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size:.9rem; font-weight:500; margin-bottom:2px;
  border-left: 3px solid transparent;
}
.side-link .bi{ font-size:1.05rem; width:20px; text-align:center; }
.side-link:hover{ background: var(--surface-2); color: var(--text); }
.side-link.active{
  background: var(--surface-2);
  color: var(--text); border-left-color: var(--accent); font-weight:600;
}
.side-role{
  margin-top:auto; font-size:.75rem; color:var(--text-dim); padding:10px 12px; font-family: var(--font-mono);
}

.main-area{ flex:1; min-width:0; padding: 24px; }
@media (max-width: 991px){
  .sidebar{ position:fixed; left:-260px; top:0; z-index:100; transition:left .2s ease; box-shadow: 10px 0 40px rgba(0,0,0,.15);}
  .sidebar.open{ left:0; }
  .main-area{ padding:16px; }
  .sidebar-overlay{ display:none; position:fixed; inset:0; background:rgba(22,33,62,.35); z-index:90; }
  .sidebar-overlay.show{ display:block; }
}

/* ---------- Kartlar ---------- */
.card-panel{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; position:relative;
}
.card-panel .card-panel-title{
  font-family: var(--font-display); font-weight:700; font-size:1rem; margin-bottom:14px;
  display:flex; align-items:center; gap:8px; text-transform:uppercase; letter-spacing:.02em;
}
.card-panel .card-panel-title .bi{ color: var(--accent); }

.stat-tile{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position:relative; overflow:hidden;
}
.stat-tile::before{
  content:''; position:absolute; top:0; left:0; width:4px; height:100%; background: var(--accent);
}
.stat-tile .stat-num{ font-family: var(--font-mono); font-size:1.7rem; font-weight:600; color:var(--text); }
.stat-tile .stat-label{ font-size:.72rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; font-family: var(--font-mono); }

/* ---------- Cədvəllər (ledger üslubu) ---------- */
.table-ledger{ width:100%; border-collapse:separate; border-spacing:0; font-size:.88rem; }
.table-ledger thead th{
  text-align:left; color: var(--text); font-weight:600; font-size:.68rem; text-transform:uppercase;
  letter-spacing:.07em; padding: 10px 14px; border-bottom:2px solid var(--text); background: var(--surface-2);
  font-family: var(--font-mono);
}
.table-ledger tbody td{
  padding: 12px 14px; border-bottom:1px solid var(--border-soft); vertical-align:middle; color: var(--text);
}
.table-ledger tbody tr:hover{ background: var(--surface-2); }
.table-ledger .mono-cell{ font-family: var(--font-mono); font-size:.83rem; color:var(--text-muted); }

@media (max-width: 767px){
  .table-ledger thead{ display:none; }
  .table-ledger, .table-ledger tbody, .table-ledger tr, .table-ledger td{ display:block; width:100%; }
  .table-ledger tr{
    background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
    margin-bottom:12px; padding: 8px 4px;
  }
  .table-ledger td{
    border:none; padding:6px 14px; display:flex; justify-content:space-between; gap:10px; text-align:right;
  }
  .table-ledger td::before{
    content: attr(data-label); font-size:.7rem; text-transform:uppercase; letter-spacing:.05em;
    color: var(--text-dim); text-align:left; font-family: var(--font-mono);
  }
}

/* ---------- Nişanlar (badge) ---------- */
.badge-pill{
  display:inline-flex; align-items:center; gap:5px; padding: 3px 9px; border-radius: var(--radius-sm);
  font-size:.72rem; font-weight:600; letter-spacing:.02em; white-space:nowrap; font-family: var(--font-mono);
  border:1px solid transparent; text-transform:uppercase;
}
.badge-success{ background: rgba(47,125,92,.09); color: var(--success); border-color: rgba(47,125,92,.3); }
.badge-warning{ background: rgba(184,121,26,.09); color: var(--warning); border-color: rgba(184,121,26,.3); }
.badge-danger{ background: rgba(184,50,42,.09); color: var(--danger); border-color: rgba(184,50,42,.3); }
.badge-muted{ background: rgba(136,145,163,.12); color: var(--text-muted); border-color: var(--border); }

/* ---------- Formlar ---------- */
.form-control, .form-select{
  background: var(--surface); border:1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); font-size:.9rem;
}
.form-control:focus, .form-select:focus{
  background: var(--surface); border-color: var(--accent); color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder{ color: var(--text-dim); }
.form-label{ font-size:.78rem; color: var(--text-muted); font-weight:600; margin-bottom:5px; font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.04em; }
label.form-check-label{ color: var(--text-muted); font-size:.87rem; }

/* ---------- Düymələr ---------- */
.btn{ border-radius: var(--radius-sm); font-weight:700; font-size:.85rem; padding:9px 18px;
  font-family: var(--font-body); text-transform:uppercase; letter-spacing:.03em; transition: transform .08s, box-shadow .08s; }
.btn-accent{ background: var(--accent); border:1px solid var(--accent-dim); color:#fff; border-bottom:3px solid var(--accent-dim); }
.btn-accent:hover{ background:#B23524; color:#fff; }
.btn-accent:active{ transform: translateY(2px); border-bottom-width:1px; }
.btn-outline-accent{ border:1px solid var(--accent); color: var(--accent); background: var(--surface); }
.btn-outline-accent:hover{ background: var(--accent-glow); color: var(--accent-dim); }
.btn-ghost{ background: var(--surface); border:1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover{ background: var(--surface-2); color: var(--text); border-color: var(--text-dim); }
.btn-sm{ padding:6px 12px; font-size:.74rem; }

/* ---------- Login / auth ekranları ---------- */
.auth-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px;
}
.auth-card{
  width:100%; max-width:400px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; position:relative;
  box-shadow: 0 1px 0 var(--border);
}
.auth-card .brand{ justify-content:center; margin-bottom:22px; font-size:1.35rem; }

/* ---------- Divider / eyebrow (texniki annotasiya) ---------- */
.eyebrow{
  font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color: var(--accent); font-weight:600;
  margin-bottom:8px; display:flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:''; width:22px; height:1px; background: var(--accent); display:inline-block; }

/* ---------- Plan kartları (sifariş səhifəsi) ---------- */
.plan-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding:22px; height:100%; display:flex; flex-direction:column; transition: border-color .15s; position:relative;
}
.plan-card:hover{ border-color: var(--text); }
.plan-card .plan-price{ font-family: var(--font-mono); font-size:1.5rem; font-weight:600; color: var(--text); }
.plan-card .plan-price small{ font-size:.75rem; color:var(--text-muted); font-weight:400; text-transform:none; }
.plan-card ul{ list-style:none; padding:0; margin: 14px 0; flex:1; }
.plan-card ul li{ font-size:.85rem; color: var(--text-muted); padding:4px 0; display:flex; gap:8px; align-items:flex-start; }
.plan-card ul li .bi{ color: var(--success); margin-top:3px; }

/* ---------- Contact / marka ---------- */
.contact-channel{
  display:flex; align-items:center; gap:12px; padding:14px 16px; background: var(--surface-2);
  border:1px solid var(--border); border-radius: var(--radius-sm); margin-bottom:10px;
}
.contact-channel .bi{ font-size:1.3rem; color: var(--accent); }

/* ---------- Utility ---------- */
.text-muted-soft{ color: var(--text-muted) !important; }
.text-dim{ color: var(--text-dim) !important; }
.border-soft{ border-color: var(--border) !important; }
.bg-surface{ background: var(--surface) !important; }
.bg-surface-2{ background: var(--surface-2) !important; }
hr{ border-color: var(--border); }

.alert-flash{ border:1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.alert-success{ color: var(--success); border-color: rgba(47,125,92,.3); }
.alert-danger{ color: var(--danger); border-color: rgba(184,50,42,.3); }
.alert-warning{ color: var(--warning); border-color: rgba(184,121,26,.3); }
.alert-info{ color: var(--accent); border-color: rgba(200,64,42,.3); }

.modal-content{ background: var(--surface); border:1px solid var(--border); color: var(--text); border-radius: var(--radius); }
.modal-header, .modal-footer{ border-color: var(--border); }

::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--border); border-radius:0; }

/* ============================================================
   PUBLİK SƏHİFƏLƏR ÜÇÜN ƏLAVƏ SİSTEM (index / servers / about / privacy / contact)
   ============================================================ */

.corner-frame{ position:relative; }
.corner-frame::before, .corner-frame::after{
  content:''; position:absolute; width:14px; height:14px; pointer-events:none;
}
.corner-frame::before{ top:-1px; left:-1px; border-top:2px solid var(--text); border-left:2px solid var(--text); }
.corner-frame::after{ bottom:-1px; right:-1px; border-bottom:2px solid var(--text); border-right:2px solid var(--text); }

.public-nav{
  padding:18px 0; border-bottom:2px solid var(--text); background: var(--surface);
}
.public-nav .nav-links a, .public-footer .nav-links a{
  color: var(--text-muted); font-size:.85rem; font-weight:600; text-transform:uppercase; letter-spacing:.03em;
  margin: 0 11px;
}
.public-nav .nav-links a:hover, .public-nav .nav-links a.is-active,
.public-footer .nav-links a:hover{ color: var(--accent); }

.public-hero{ padding: 64px 0 40px; }
.public-hero-title{ font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight:900; line-height:1.06; }
.public-hero-title .accent-word{ color: var(--accent); }
.public-hero-sub{ color: var(--text-muted); font-size:1.05rem; max-width:560px; }

/* Rack elevation zolağı — imza elementi: real serverlərin siyahısı, U-blok üslubunda */
.rack-strip{
  border:1px solid var(--text); border-radius: var(--radius); background: var(--surface);
  margin-top:30px; overflow:hidden;
}
.rack-strip-head{
  display:flex; justify-content:space-between; align-items:center; padding:8px 14px;
  background: var(--text); color:#fff; font-family: var(--font-mono); font-size:.7rem;
  text-transform:uppercase; letter-spacing:.08em;
}
.rack-node{
  display:flex; align-items:center; gap:12px; padding:11px 14px; border-top:1px solid var(--border-soft);
  font-family: var(--font-mono); font-size:.83rem;
}
.rack-node:first-of-type{ border-top:none; }
.rack-node .unit-tag{
  color: var(--text-dim); font-size:.72rem; width:38px; flex-shrink:0;
}
.rack-node .node-name{ font-weight:600; color:var(--text); flex:1; }
.rack-node .node-loc{ color: var(--text-muted); flex:1; }

.section-block{ padding: 46px 0; }
.section-eyebrow-row{ display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.section-title{ font-size:1.7rem; font-weight:800; margin:0; }
.section-lead{ color: var(--text-muted); max-width:640px; }

.feature-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:20px; height:100%;
}
.feature-card .bi{ font-size:1.5rem; color: var(--accent); }

.doc-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:30px;
}
.doc-card h2{ font-size:1.3rem; margin-top:28px; }
.doc-card h2:first-child{ margin-top:0; }
.doc-card p, .doc-card li{ color: var(--text-muted); font-size:.94rem; line-height:1.7; }

.nav-tabs-public .nav-link{
  color: var(--text-muted); border:1px solid var(--border); background:var(--surface); margin-right:6px;
  border-radius: var(--radius-sm); font-family: var(--font-mono); font-size:.78rem; text-transform:uppercase; letter-spacing:.03em;
}
.nav-tabs-public .nav-link.active{ background: var(--text); color:#fff; border-color:var(--text); }

.public-footer{ border-top:2px solid var(--text); padding:28px 0; margin-top:50px; background: var(--surface); }

.status-strip{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.status-strip .pill{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding:6px 14px;
  font-size:.78rem; color:var(--text-muted); display:flex; align-items:center; gap:7px; font-family: var(--font-mono);
}
