/* ============================================================
   Oblivus Marketplace — styles.css
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Share+Tech&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-page:       #0C0D11;
  --bg-card:       #14131B;
  --color-text:    #FFFFFF;
  --color-muted:   #8F8F8F;
  --color-hero-desc: #E3E7EE;
  --color-amber:   #FAB758;
  --color-purple:  #9040DB;
  --color-border:  #15141C;
  --grad-primary:  linear-gradient(90deg, #FAB758 0%, #9040DB 36.32%);
  --grad-hero-btn: linear-gradient(277deg, #9040DB 0%, #FAB758 100%);
  --grad-alt:      linear-gradient(90deg, #A254CF 0%, #E8A373 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-page);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Typography ---------- */
.heading-a {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
}
.heading-b {
  font-family: 'Share Tech', monospace;
  font-size: 52px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}
.heading-f {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.section-heading {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
}
.section-heading-alt {
  font-family: 'Share Tech', monospace;
  font-size: 36px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
}
.icon-heading {
  font-family: 'Share Tech', monospace;
  font-size: 34px;
  color: var(--color-text);
}
.icon-heading-alt {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
}
.icon-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}
.hero-description {
  font-size: 18px;
  color: var(--color-hero-desc);
  line-height: 1.7;
}
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Hero CTA */
.hero-button {
  padding: 14px 36px;
  border-radius: 48px;
  background: var(--grad-hero-btn);
  color: #fff;
  font-size: 16px;
}

/* Border gradient pill */
.border-gradient {
  position: relative;
  background-clip: padding-box;
}
.border-gradient-purple {
  border: 2px solid transparent;
  background-image: var(--grad-hero-btn);
  background-origin: border-box;
}

/* Secondary / outline button */
.button-alt {
  padding: 12px 32px;
  border-radius: 48px;
  border: 2px solid #A95DC4;
  background: transparent;
  color: #fff;
  font-size: 15px;
}
.button-alt:hover { background: rgba(160,93,196,.15); }

/* Card CTA */
.card-btn {
  padding: 8px 22px;
  border-radius: 24px;
  background: var(--grad-hero-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.card-btn:hover { opacity: .85; color: #fff; }

.card-btn-pricing {
  padding: 10px 28px;
  border-radius: 28px;
  border: 2px solid #A95DC4;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.card-btn-pricing:hover { background: rgba(160,93,196,.15); color: #fff; }

.card-btn-pricing-2 {
  padding: 10px 28px;
  border-radius: 28px;
  background: var(--grad-hero-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

/* ---------- Badges ---------- */
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(144,64,219,.7);
  background: rgba(144,64,219,.12);
  backdrop-filter: blur(8px);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-running   { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.status-starting  { background: rgba(250,183,88,.15); color: #FAB758; border: 1px solid rgba(250,183,88,.3); }
.status-stopping  { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.status-stopped   { background: rgba(100,116,139,.15); color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }
.status-online    { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.status-offline   { background: rgba(100,116,139,.15); color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }

/* ---------- Cards ---------- */
.card-info {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: border-color .2s;
}
.card-info:hover { border-color: rgba(144,64,219,.4); }

.card-2 {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 20px;
}

.card-info-pricing {
  background: var(--bg-page);
  border-radius: 40px;
  border: 1px solid var(--color-border);
  padding: 32px;
}
.card-info-pricing-2 {
  background: var(--bg-card);
  border-radius: 40px;
  border: 1px solid var(--color-border);
  padding: 32px;
}

.card-blog {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* GPU Offer Card */
.gpu-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 24px;
  transition: border-color .25s, transform .2s;
  cursor: pointer;
}
.gpu-card:hover {
  border-color: rgba(144,64,219,.5);
  transform: translateY(-2px);
}
.gpu-card .gpu-model {
  font-family: 'Share Tech', monospace;
  font-size: 20px;
  color: var(--color-text);
}
.gpu-card .gpu-price {
  font-family: 'Share Tech', monospace;
  font-size: 28px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gpu-card .gpu-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}
.gpu-card .gpu-spec svg { flex-shrink: 0; }

/* ---------- Navigation ---------- */
#header-container nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1200px;
  background: rgba(20,19,27,.7);
  backdrop-filter: blur(16px);
  border-radius: 36px;
  border: 1px solid rgba(144,64,219,.2);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: 'Share Tech', monospace;
  font-size: 22px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-amber); }
.nav-login {
  padding: 8px 22px;
  border-radius: 28px;
  background: rgba(144,64,219,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(144,64,219,.35);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.nav-login:hover { background: rgba(144,64,219,.3); }

/* ---------- Masthead / Hero ---------- */
.masthead {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(144,64,219,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144,64,219,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.masthead-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-purple {
  background: radial-gradient(circle, rgba(144,64,219,.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.glow-amber {
  background: radial-gradient(circle, rgba(250,183,88,.12) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Stats grid ---------- */
.col-border {
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
}
.margin-negative { margin: -1px; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--bg-card) !important;
  color: var(--color-muted) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 24px !important;
  padding: 10px 18px !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(144,64,219,.6) !important;
  box-shadow: 0 0 0 3px rgba(144,64,219,.1) !important;
  outline: none;
  color: var(--color-text) !important;
}
.form-control::placeholder { color: rgba(143,143,143,.6) !important; }
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 6px;
}

/* Auth form card */
.auth-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--color-border);
  padding: 40px 36px;
  max-width: 440px;
  margin: 0 auto;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-bar .form-control,
.filter-bar .form-select {
  max-width: 180px;
}

/* ---------- Dashboard sidebar ---------- */
.dashboard-sidebar {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 24px 16px;
  min-height: calc(100vh - 200px);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(144,64,219,.12);
  color: var(--color-text);
}
.sidebar-item svg { flex-shrink: 0; }

/* ---------- Table ---------- */
.table-dark-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table-dark-custom th {
  background: rgba(144,64,219,.08);
  color: var(--color-muted);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.table-dark-custom td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21,20,28,.6);
  color: var(--color-text);
  vertical-align: middle;
}
.table-dark-custom tbody tr:hover {
  background: rgba(144,64,219,.04);
}

/* ---------- Balance widget ---------- */
.balance-widget {
  background: linear-gradient(135deg, rgba(144,64,219,.2) 0%, rgba(250,183,88,.1) 100%);
  border-radius: 20px;
  border: 1px solid rgba(144,64,219,.3);
  padding: 24px;
}
.balance-amount {
  font-family: 'Share Tech', monospace;
  font-size: 42px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-button {
  background: var(--grad-hero-btn) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 12px !important;
}
.accordion-button::after { filter: invert(1); }
.accordion-collapse { background: var(--bg-card); }
.accordion-body { color: var(--color-muted); font-size: 14px; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-page);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-heading {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 16px;
}
.footer-text { font-size: 13px; color: var(--color-muted); }
.link-list { list-style: none; padding: 0; }
.link-list li a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  line-height: 2;
  transition: color .2s;
}
.link-list li a:hover { color: var(--color-amber); }
.footer-brand {
  font-family: 'Share Tech', monospace;
  font-size: 26px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Scroll Animations ---------- */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Loading spinner ---------- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(144,64,219,.2);
  border-top-color: var(--color-purple);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-msg {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--color-text);
  min-width: 240px;
  animation: toast-in .3s ease;
}
.toast-msg.success { border-color: rgba(34,197,94,.4); }
.toast-msg.error   { border-color: rgba(239,68,68,.4); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- Code block / terminal ---------- */
.code-block {
  background: #0a0a0f;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  font-family: 'Share Tech', monospace;
  font-size: 14px;
  color: #a5f3fc;
  overflow-x: auto;
  position: relative;
}
.code-block .prompt { color: var(--color-amber); }
.code-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(144,64,219,.2);
  border: 1px solid rgba(144,64,219,.3);
  color: var(--color-muted);
  font-size: 11px;
  cursor: pointer;
  transition: background .2s;
}
.code-copy-btn:hover { background: rgba(144,64,219,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .masthead { padding: 120px 0 60px; }
  .heading-a { font-size: 36px; }
  .heading-b { font-size: 40px; }
  .section-heading { font-size: 30px; }
  .section-heading-alt { font-size: 28px; }
  .filter-bar .form-control,
  .filter-bar .form-select { max-width: 100%; }
  #header-container nav { width: calc(100% - 24px); }
}
@media (max-width: 768px) {
  .heading-a { font-size: 30px; }
  .heading-b { font-size: 32px; }
  .dashboard-sidebar { min-height: auto; margin-bottom: 16px; }
  .nav-links { display: none; }
}
