/* سیلگون — لندینگ تجاری فلزات پایه و نقره */
:root {
  --sg-navy: #0c1a2e;
  --sg-navy-soft: #132238;
  --sg-silver: #8b9aab;
  --sg-silver-light: #d4dce6;
  --sg-silver-glow: #e8eef4;
  --sg-accent: #1a6b8a;
  --sg-accent-hover: #145a75;
  --sg-mint: #10b981;
  --sg-gold: #b8922e;
  --sg-copper: #b87333;
  --sg-copper-light: #fde8d8;
  --sg-aluminum: #94a3b8;
  --sg-aluminum-light: #e2e8f0;
  --sg-white: #ffffff;
  --sg-bg: #f4f6f9;
  --sg-bg-alt: #eef2f7;
  --sg-text: #0f172a;
  --sg-text-muted: #64748b;
  --sg-border: #e2e8f0;
  --sg-shadow: 0 4px 24px rgba(12, 26, 46, 0.08);
  --sg-shadow-lg: 0 20px 50px rgba(12, 26, 46, 0.14);
  --sg-radius: 16px;
  --sg-radius-lg: 24px;
  --sg-font: "IRANSans", Tahoma, Arial, sans-serif;
  --sg-header-h: 72px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sg-font);
  color: var(--sg-text);
  direction: rtl;
  background: var(--sg-bg);
  line-height: 1.65;
}

body.sg-theme-dark {
  --sg-bg: #060d18;
  --sg-bg-alt: #0c1628;
  --sg-text: #e8eef4;
  --sg-text-muted: #94a3b8;
  --sg-border: #1e293b;
  --sg-white: #111c2e;
  --sg-silver-glow: #1a2740;
  background: var(--sg-bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

.sg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Topbar ─── */
.sg-topbar {
  font-size: 12px;
  background: var(--sg-navy);
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.sg-topbar-live {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sg-mint);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35);
  animation: sg-pulse 2s ease infinite;
}

@keyframes sg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Header ─── */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sg-border);
  box-shadow: 0 1px 0 rgba(12, 26, 46, 0.04);
}

body.sg-theme-dark .sg-header {
  background: rgba(12, 22, 40, 0.94);
}

.sg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sg-header-h);
  gap: 16px;
}

.sg-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.sg-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #c5cdd8 0%, #6b7d8f 45%, #3d4f63 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(12, 26, 46, 0.2);
}

.sg-logo-text { display: flex; flex-direction: column; gap: 2px; }
.sg-logo-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.sg-logo-sub { font-size: 11px; color: var(--sg-text-muted); }

.sg-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.sg-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sg-text-muted);
  transition: color 0.2s;
}

.sg-nav a:hover { color: var(--sg-accent); }

.sg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.sg-btn:active { transform: scale(0.98); }
.sg-btn-block { width: 100%; }

.sg-btn-primary {
  background: linear-gradient(135deg, var(--sg-accent) 0%, #0e4d66 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 107, 138, 0.35);
}

.sg-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(26, 107, 138, 0.45);
}

.sg-btn-outline {
  background: transparent;
  color: var(--sg-text);
  border: 1.5px solid var(--sg-border);
}

body.sg-theme-dark .sg-btn-outline {
  border-color: #334155;
}

.sg-btn-ghost {
  background: var(--sg-silver-glow);
  color: var(--sg-text);
}

.sg-btn-silver {
  background: linear-gradient(135deg, #7a8a9c 0%, #4a5d72 100%);
  color: #fff;
}

.sg-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--sg-border);
  background: var(--sg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pg-theme-icon,
.sg-theme-icon {
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}

.pg-theme-icon--sun { opacity: 1; }
body.sg-theme-dark .pg-theme-icon--sun,
body.pg-theme-dark .pg-theme-icon--sun { opacity: 0; transform: rotate(-20deg); pointer-events: none; }
.pg-theme-icon--moon { opacity: 0; }
body.sg-theme-dark .pg-theme-icon--moon,
body.pg-theme-dark .pg-theme-icon--moon { opacity: 1; }

.sg-theme-toggle { position: relative; }

.sg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}

.sg-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--sg-text);
  border-radius: 2px;
}

.sg-header-actions--mobile { display: none; align-items: center; gap: 8px; }

.sg-hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sg-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}

.sg-hamburger.is-active .sg-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sg-hamburger.is-active .sg-hamburger-line:nth-child(2) {
  opacity: 0;
}
.sg-hamburger.is-active .sg-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile top ticker */
.sg-topbar--desktop { display: block; }
.sg-topbar-ticker {
  display: none;
  overflow: hidden;
  background: var(--sg-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sg-topbar-ticker-track {
  display: flex;
  width: max-content;
  animation: sg-ticker 22s linear infinite;
  gap: 48px;
  padding-inline: 16px;
}

.sg-topbar-ticker-track span { white-space: nowrap; }

@keyframes sg-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Drawer menu */
.sg-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}

.sg-drawer-root.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sg-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 46, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sg-drawer-root.is-open .sg-drawer-backdrop { opacity: 1; }

.sg-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  max-width: 100%;
  background: var(--sg-white);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(12, 26, 46, 0.2);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

body.sg-theme-dark .sg-drawer { background: #0f1a2e; }

.sg-drawer-root.is-open .sg-drawer { transform: translateX(0); }

.sg-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sg-border);
  flex-shrink: 0;
}

.sg-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--sg-silver-glow);
  color: var(--sg-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-drawer-price {
  margin: 16px 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4a5d72, #2d3e52);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.sg-drawer-price-label { font-size: 12px; opacity: 0.85; }
.sg-drawer-price strong { font-size: 16px; font-weight: 800; }

.sg-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.sg-drawer-nav-title {
  margin: 16px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sg-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sg-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-text);
  transition: background 0.15s;
}

.sg-drawer-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--sg-accent);
}

.sg-drawer-link:active,
.sg-drawer-link:hover {
  background: var(--sg-silver-glow);
}

.sg-drawer-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sg-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: var(--sg-white);
}

body.sg-theme-dark .sg-drawer-foot { background: #0f1a2e; }

.sg-drawer-support {
  text-align: center;
  font-size: 13px;
  color: var(--sg-accent);
  font-weight: 600;
  padding-top: 4px;
}

body.sg-menu-open { overflow: hidden; touch-action: none; }

/* ─── Hero ─── */
.sg-hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
  background: linear-gradient(165deg, #0c1a2e 0%, #132a45 40%, #1a3d5c 100%);
  color: #fff;
}

.sg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 154, 171, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(26, 107, 138, 0.2), transparent);
  pointer-events: none;
}

.sg-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.sg-hero-content { position: relative; z-index: 1; }

.sg-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sg-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
}

.sg-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sg-mint);
}

.sg-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.sg-hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 520px;
}

.sg-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.sg-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sg-hero-stat {
  padding: 16px;
  border-radius: var(--sg-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-hero-stat-label { font-size: 11px; color: rgba(255, 255, 255, 0.6); display: block; margin-bottom: 4px; }
.sg-hero-stat-value { font-size: 18px; font-weight: 800; }

/* Calculator card */
.sg-calc-card {
  position: relative;
  z-index: 1;
  background: var(--sg-white);
  border-radius: var(--sg-radius-lg);
  padding: 24px;
  box-shadow: var(--sg-shadow-lg);
  color: var(--sg-text);
}

body.sg-theme-dark .sg-calc-card {
  background: #111c2e;
  border: 1px solid #1e293b;
}

.sg-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sg-calc-head h2 { margin: 0; font-size: 17px; font-weight: 700; }

.sg-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--sg-bg-alt);
  border-radius: 12px;
}

body.sg-theme-dark .sg-tabs { background: #0c1628; }

.sg-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-text-muted);
  transition: all 0.2s;
}

.sg-tab--active {
  background: var(--sg-white);
  color: var(--sg-accent);
  box-shadow: var(--sg-shadow);
}

body.sg-theme-dark .sg-tab--active {
  background: #1e293b;
  color: #7dd3fc;
}

.sg-input-group { margin-bottom: 16px; }
.sg-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--sg-text-muted);
}

.sg-input-wrapper input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--sg-border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: var(--sg-white);
  color: var(--sg-text);
}

body.sg-theme-dark .sg-input-wrapper input {
  background: #0c1628;
  border-color: #334155;
}

.sg-input-helper { font-size: 11px; color: var(--sg-text-muted); margin-top: 6px; display: block; }

.sg-output-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--sg-silver-glow);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}

.sg-fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--sg-text-muted);
  margin-bottom: 16px;
}

.sg-calc-note { font-size: 11px; color: var(--sg-text-muted); text-align: center; margin: 12px 0 0; }

/* Live price cards in hero */
.sg-live-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.sg-price-card {
  padding: 14px;
  border-radius: var(--sg-radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sg-price-card--featured {
  background: linear-gradient(135deg, rgba(139, 154, 171, 0.25), rgba(26, 107, 138, 0.2));
  border-color: rgba(255, 255, 255, 0.2);
}

.sg-live-prices--metals {
  grid-template-columns: repeat(2, 1fr);
}

.sg-live-prices--metals .sg-price-card--featured {
  grid-column: 1 / -1;
}

.sg-price-card--copper {
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.28), rgba(234, 88, 12, 0.12));
  border-color: rgba(251, 146, 60, 0.35);
}

.sg-price-card--copper.sg-price-card--featured {
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.35), rgba(124, 74, 30, 0.2));
}

.sg-price-card--aluminum {
  background: linear-gradient(135deg, rgba(168, 180, 192, 0.22), rgba(100, 116, 139, 0.12));
  border-color: rgba(148, 163, 184, 0.35);
}

.sg-price-card--silver {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.sg-price-card--gold {
  background: linear-gradient(135deg, rgba(184, 146, 46, 0.2), rgba(161, 98, 7, 0.1));
  border-color: rgba(251, 191, 36, 0.25);
}

.sg-drawer-prices {
  padding: 12px 20px;
  border-bottom: 1px solid var(--sg-border);
  display: grid;
  gap: 10px;
}

.sg-drawer-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.sg-drawer-price-row strong {
  font-size: 14px;
  color: var(--sg-accent);
}

.sg-metal-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.sg-metal-tabs .sg-tab {
  flex: 1 1 auto;
  min-width: 72px;
  padding: 8px 12px;
  font-size: 12px;
}

.sg-metals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sg-metal-card {
  padding: 24px;
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-border);
  background: var(--sg-white);
  box-shadow: var(--sg-shadow);
}

body.sg-theme-dark .sg-metal-card {
  background: var(--sg-navy-soft);
}

.sg-metal-card--copper {
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
}

.sg-metal-card--aluminum {
  border-color: rgba(148, 163, 184, 0.5);
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 55%, #e2e8f0 100%);
}

body.sg-theme-dark .sg-metal-card--copper {
  background: linear-gradient(145deg, #1c1208 0%, #2a1810 55%, #3d2414 100%);
}

body.sg-theme-dark .sg-metal-card--aluminum {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.sg-metal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sg-metal-symbol {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.sg-metal-card--copper .sg-metal-symbol {
  background: linear-gradient(145deg, #fdba74, #ea580c);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.sg-metal-card--aluminum .sg-metal-symbol {
  background: linear-gradient(145deg, #cbd5e1, #64748b);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.sg-metal-live {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.95);
  color: #047857;
}

.sg-metal-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.sg-metal-card p {
  margin: 0 0 16px;
  color: var(--sg-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.sg-metal-card-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

body.sg-theme-dark .sg-metal-card-price {
  background: rgba(0, 0, 0, 0.2);
}

.sg-metal-card-price strong {
  font-size: 1.1rem;
}

.sg-btn-copper {
  background: linear-gradient(135deg, #ea580c 0%, #b87333 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.sg-btn-aluminum {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.35);
}

.sg-metal-price-box--copper {
  border-color: rgba(251, 146, 60, 0.35);
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.9), rgba(254, 215, 170, 0.5));
}

.sg-metal-price-box--aluminum {
  border-color: rgba(148, 163, 184, 0.4);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.6));
}

.sg-metal-price-box--silver {
  border-color: rgba(148, 163, 184, 0.35);
}

.sg-metal-price-box--gold {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(145deg, rgba(255, 247, 214, 0.9), rgba(251, 191, 36, 0.15));
}

body.sg-theme-dark .sg-metal-price-box--copper,
body.sg-theme-dark .sg-metal-price-box--aluminum {
  background: rgba(15, 26, 46, 0.6);
}

.sg-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.sg-price-value { font-size: 22px; font-weight: 800; }
.sg-price-change { font-size: 12px; font-weight: 600; }
.sg-price-change--up { color: #4ade80; }
.sg-price-change--down { color: #f87171; }
.sg-price-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-price-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.sg-price-refresh-btn svg {
  width: 14px;
  height: 14px;
}

.sg-price-refresh-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.sg-price-refresh-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sg-price-refresh-btn--spinning svg {
  animation: sg-spin 0.8s linear infinite;
}

.sg-price-refresh-btn--dark {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.15);
}

.sg-metal-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.sg-metal-price-head h3 {
  margin: 0;
}

@keyframes sg-spin {
  to { transform: rotate(360deg); }
}

.sg-price-source {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sg-price-source:hover {
  color: #fff;
}

/* ─── Trust strip ─── */
.sg-trust-strip {
  padding: 32px 0;
  background: var(--sg-white);
  border-bottom: 1px solid var(--sg-border);
}

body.sg-theme-dark .sg-trust-strip { background: var(--sg-navy-soft); }

.sg-trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.sg-trust-item {
  text-align: center;
  padding: 16px 8px;
}

.sg-trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--sg-silver-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.sg-trust-item h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.sg-trust-item p { margin: 0; font-size: 11px; color: var(--sg-text-muted); line-height: 1.5; }

/* ─── Sections ─── */
.sg-section { padding: 72px 0; }
.sg-section-alt { background: var(--sg-bg-alt); }
body.sg-theme-dark .sg-section-alt { background: #0a1220; }

.sg-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.sg-section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 107, 138, 0.1);
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sg-section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-section-header p {
  margin: 0;
  color: var(--sg-text-muted);
  font-size: 15px;
}

/* Market chart section */
.sg-market-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: stretch;
}

.sg-market-chart-card {
  background: var(--sg-white);
  border-radius: var(--sg-radius-lg);
  padding: 24px;
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow);
}

body.sg-theme-dark .sg-market-chart-card {
  background: #111c2e;
}

.sg-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sg-chart-periods {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--sg-bg-alt);
  border-radius: 10px;
}

.sg-chart-period {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--sg-text-muted);
}

.sg-chart-period--active {
  background: var(--sg-white);
  color: var(--sg-accent);
  box-shadow: var(--sg-shadow);
}

.sg-chart-wrap {
  height: 280px;
  position: relative;
}

.sg-market-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sg-metal-price-box {
  flex: 1;
  padding: 24px;
  border-radius: var(--sg-radius-lg);
  background: linear-gradient(145deg, #4a5d72, #2d3e52);
  color: #fff;
}

.sg-metal-price-box h3 { margin: 0 0 8px; font-size: 14px; opacity: 0.85; }
.sg-metal-price-box .sg-big-price { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.sg-metal-price-box .sg-unit { font-size: 12px; opacity: 0.7; }

.sg-metal-price-box--gold {
  background: linear-gradient(145deg, #8b6914, #5c4510);
}

/* Silver spotlight */
.sg-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sg-spotlight-visual {
  position: relative;
  border-radius: var(--sg-radius-lg);
  min-height: 360px;
  background: linear-gradient(160deg, #1a2740 0%, #2d4158 50%, #4a6278 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.sg-spotlight-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sg-spotlight-badge {
  position: relative;
  z-index: 1;
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.sg-feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.sg-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sg-border);
  font-size: 14px;
}

.sg-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--sg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Feature grid */
.sg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.sg-feature-card {
  padding: 28px;
  background: var(--sg-white);
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sg-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow-lg);
}

body.sg-theme-dark .sg-feature-card { background: #111c2e; }

.sg-feature-card .sg-ficon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sg-silver-glow), var(--sg-silver-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.sg-feature-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.sg-feature-card p { margin: 0; font-size: 13px; color: var(--sg-text-muted); line-height: 1.65; }

/* Steps */
.sg-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.sg-step {
  position: relative;
  padding: 28px 20px;
  background: var(--sg-white);
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
  text-align: center;
}

body.sg-theme-dark .sg-step { background: #111c2e; }

.sg-step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sg-accent), #0e4d66);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-step h3 { margin: 0 0 8px; font-size: 15px; }
.sg-step p { margin: 0; font-size: 13px; color: var(--sg-text-muted); }

/* Delivery */
.sg-delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sg-delivery-card {
  padding: 32px;
  background: var(--sg-white);
  border-radius: var(--sg-radius-lg);
  border: 1px solid var(--sg-border);
}

body.sg-theme-dark .sg-delivery-card { background: #111c2e; }

.sg-delivery-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.sg-delivery-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sg-delivery-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sg-silver-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Modules */
.sg-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sg-module-card {
  padding: 24px;
  background: var(--sg-white);
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
}

body.sg-theme-dark .sg-module-card { background: #111c2e; }

.sg-module-card h3 { margin: 0 0 10px; font-size: 16px; }
.sg-module-card p { margin: 0 0 12px; font-size: 13px; color: var(--sg-text-muted); }
.sg-module-card ul { margin: 0; padding-right: 18px; font-size: 12px; color: var(--sg-text-muted); }

/* Licenses */
.sg-license-strip {
  text-align: center;
  padding: 32px;
  background: var(--sg-white);
  border-radius: var(--sg-radius-lg);
  border: 1px dashed var(--sg-border);
  margin-bottom: 40px;
}

body.sg-theme-dark .sg-license-strip { background: #111c2e; }

.sg-license-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.sg-license-badge {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--sg-silver-glow);
  font-size: 13px;
  font-weight: 600;
}

/* FAQ */
.sg-faq-list { max-width: 760px; margin: 0 auto; }

.sg-faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  background: var(--sg-white);
  overflow: hidden;
}

body.sg-theme-dark .sg-faq-item { background: #111c2e; }

.sg-faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sg-faq-item summary::-webkit-details-marker { display: none; }

.sg-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--sg-accent);
  font-weight: 400;
}

.sg-faq-item[open] summary::after { content: "−"; }

.sg-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--sg-text-muted);
  line-height: 1.7;
}

/* Blog */
.sg-blog-card {
  padding: 24px;
  background: var(--sg-white);
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
  transition: box-shadow 0.2s;
}

.sg-blog-card:hover { box-shadow: var(--sg-shadow-lg); }

body.sg-theme-dark .sg-blog-card { background: #111c2e; }

.sg-blog-card h3 { margin: 0 0 10px; font-size: 16px; }
.sg-blog-card p { margin: 0; font-size: 13px; color: var(--sg-text-muted); }

/* CTA band */
.sg-cta-band {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--sg-navy) 0%, #1a3d5c 100%);
  color: #fff;
  text-align: center;
}

.sg-cta-band h2 { margin: 0 0 12px; font-size: 1.75rem; font-weight: 800; }
.sg-cta-band p { margin: 0 0 28px; opacity: 0.85; max-width: 520px; margin-inline: auto; }

/* Contact */
.sg-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.sg-contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.sg-contact-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--sg-border);
  font-size: 14px;
}

/* Footer */
.sg-footer {
  background: var(--sg-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.sg-footer h4 { color: #fff; margin: 0 0 16px; font-size: 14px; }
.sg-footer a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.sg-footer a:hover { color: #fff; }

.sg-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* Dashboard preview (logged in) */
.sg-dashboard-preview {
  background: var(--sg-white);
  border-radius: var(--sg-radius-lg);
  padding: 28px;
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow);
}

body.sg-theme-dark .sg-dashboard-preview { background: #111c2e; }

.sg-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.sg-dash-stat {
  padding: 16px;
  background: var(--sg-silver-glow);
  border-radius: 12px;
}

.sg-dash-stat span { display: block; font-size: 11px; color: var(--sg-text-muted); }
.sg-dash-stat strong { font-size: 18px; }

/* Modal & toast (compat) */
.sg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 46, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.sg-modal {
  background: var(--sg-white);
  border-radius: var(--sg-radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  color: var(--sg-text);
}

body.sg-theme-dark .sg-modal { background: #111c2e; }

.sg-modal-summary { margin: 20px 0; }
.sg-modal-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--sg-border);
  font-size: 14px;
}

.sg-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.sg-modal-note { font-size: 11px; color: var(--sg-text-muted); margin-top: 12px; }

.sg-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--sg-navy);
  color: #fff;
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.sg-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile bottom tab bar */
.sg-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--sg-white);
  border-top: 1px solid var(--sg-border);
  box-shadow: 0 -4px 24px rgba(12, 26, 46, 0.08);
}

body.sg-theme-dark .sg-tabbar {
  background: #0f1a2e;
  border-top-color: #1e293b;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.sg-tabbar-item {
  flex: 1;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border: none;
  background: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--sg-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sg-tabbar-item--active { color: var(--sg-accent); }
.sg-tabbar-item--active .sg-tabbar-icon { stroke: var(--sg-accent); }

.sg-tabbar-icon {
  width: 22px;
  height: 22px;
}

.sg-tabbar-fab {
  position: relative;
  top: -18px;
  width: 56px;
  height: 56px;
  margin: 0 4px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sg-accent), #0e4d66);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 6px 20px rgba(26, 107, 138, 0.45);
  flex-shrink: 0;
}

.sg-tabbar-fab svg {
  width: 22px;
  height: 22px;
}

.sg-tabbar-fab span {
  font-size: 9px;
  font-weight: 700;
}

/* Animations */
.sg-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sg-animate--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rules list */
.sg-rules-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sg-rules-list li {
  padding: 14px 20px 14px 48px;
  position: relative;
  margin-bottom: 8px;
  background: var(--sg-white);
  border-radius: 12px;
  border: 1px solid var(--sg-border);
  font-size: 14px;
}

body.sg-theme-dark .sg-rules-list li { background: #111c2e; }

.sg-rules-list li::before {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sg-mint);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .sg-hero-inner { grid-template-columns: 1fr; }
  .sg-calc-card { order: -1; }
  .sg-market-layout { grid-template-columns: 1fr; }
  .sg-spotlight { grid-template-columns: 1fr; }
  .sg-trust-grid { grid-template-columns: repeat(3, 1fr); }
  .sg-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sg-steps { grid-template-columns: repeat(2, 1fr); }
  .sg-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --sg-header-h: 56px;
  }

  .sg-hero-content { order: 1; }
  .sg-calc-card { order: 2; }

  .sg-topbar--desktop { display: none; }
  .sg-topbar-ticker { display: block; }

  .sg-nav,
  .sg-header-actions--desktop { display: none; }

  .sg-header-actions--mobile,
  .sg-hamburger { display: flex; }

  .sg-container { padding: 0 16px; }

  .sg-header-inner { height: var(--sg-header-h); }

  .sg-logo-sub { display: none; }
  .sg-logo-mark { width: 38px; height: 38px; font-size: 16px; }
  .sg-logo-title { font-size: 16px; }

  .sg-hero {
    padding: 24px 0 32px;
  }

  .sg-hero-inner {
    gap: 20px;
  }

  .sg-hero h1 {
    font-size: 1.35rem;
  }

  .sg-hero-sub {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .sg-hero-cta-row {
    flex-direction: column;
  }

  .sg-hero-cta-row .sg-btn {
    width: 100%;
    justify-content: center;
  }

  .sg-live-prices,
  .sg-live-prices--metals {
    grid-template-columns: 1fr;
  }

  .sg-metals-grid {
    grid-template-columns: 1fr;
  }

  .sg-price-card--featured,
  .sg-live-prices--metals .sg-price-card--featured {
    grid-column: auto;
  }

  .sg-calc-card {
    padding: 18px;
    border-radius: 20px;
  }

  .sg-section {
    padding: 48px 0;
  }

  .sg-section-header {
    margin-bottom: 32px;
  }

  .sg-section-header h2 {
    font-size: 1.35rem;
  }

  .sg-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sg-trust-item { padding: 12px 6px; }
  .sg-trust-item p { display: none; }

  .sg-grid-3,
  .sg-grid-4,
  .sg-modules-grid,
  .sg-delivery-grid,
  .sg-contact-grid { grid-template-columns: 1fr; }

  .sg-steps { grid-template-columns: 1fr; }
  .sg-hero-stats { grid-template-columns: 1fr; gap: 10px; }

  .sg-chart-wrap { height: 220px; }

  .sg-chart-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-spotlight-visual {
    min-height: 200px;
    padding: 24px;
  }

  .sg-spotlight-badge { font-size: 40px; }

  .sg-cta-band {
    padding: 40px 0;
  }

  .sg-cta-band h2 { font-size: 1.35rem; }

  .sg-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .sg-tabbar { display: flex; }

  body.sg-has-tabbar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .sg-footer-grid { grid-template-columns: 1fr; }
  .sg-dash-stats { grid-template-columns: 1fr; }

  .sg-toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .sg-tabbar-item span { font-size: 9px; }
  .sg-tabbar-fab { width: 50px; height: 50px; top: -14px; }
}

/* Legacy pg- class aliases for JS price change colors */
.pg-price-change--up { color: #4ade80; }
.pg-price-change--down { color: #f87171; }
.pg-price-change--neutral { color: rgba(255, 255, 255, 0.5); }

/* Blog pages */
.sg-page-inner { min-height: 100vh; display: flex; flex-direction: column; }
.sg-main-inner { flex: 1; padding: 32px 0 64px; }
.sg-nav-active { color: var(--sg-accent, #c0c0c0) !important; font-weight: 600; }

.sg-blog-page .sg-section-header { margin-bottom: 32px; }
.sg-blog-page .sg-section-header h1 { font-size: 2rem; margin-bottom: 8px; }
.sg-blog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

.sg-blog-sidebar { position: sticky; top: 24px; }
.sg-blog-filter { background: var(--sg-surface, #fff); border: 1px solid var(--sg-border, #e5e7eb); border-radius: 16px; padding: 20px; }
.sg-blog-filter h3 { font-size: 14px; margin: 16px 0 8px; }
.sg-blog-filter h3:first-child { margin-top: 0; }
.sg-input { width: 100%; padding: 10px 12px; border: 1px solid var(--sg-border, #e5e7eb); border-radius: 10px; font-family: inherit; }
.sg-blog-cat-list { list-style: none; padding: 0; margin: 0 0 16px; }
.sg-blog-cat-list li { margin-bottom: 8px; font-size: 14px; }
.sg-blog-cat-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sg-blog-cat-list a { color: inherit; text-decoration: none; }
.sg-blog-cat-list a:hover { text-decoration: underline; }

.sg-blog-grid { gap: 24px; }
.sg-blog-card { background: var(--sg-surface, #fff); border: 1px solid var(--sg-border, #e5e7eb); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.sg-blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.sg-blog-card-link { display: block; text-decoration: none; color: inherit; }
.sg-blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.sg-blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.sg-blog-card-body { padding: 16px 20px 20px; }
.sg-blog-card-cat { display: inline-block; font-size: 12px; color: var(--sg-accent, #64748b); margin-bottom: 8px; }
.sg-blog-card-body h3 { font-size: 1.1rem; margin: 0 0 8px; line-height: 1.4; }
.sg-blog-card-body p { font-size: 14px; color: var(--sg-text-muted, #64748b); margin: 0 0 12px; line-height: 1.6; }
.sg-blog-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--sg-text-muted, #94a3b8); }

.sg-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 24px; color: var(--sg-text-muted, #64748b); }
.sg-breadcrumb a { color: inherit; text-decoration: none; }
.sg-breadcrumb a:hover { text-decoration: underline; }

.sg-blog-show-inner { max-width: 820px; }
.sg-blog-hero { border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.sg-blog-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.sg-blog-article-header h1 { font-size: 2rem; line-height: 1.3; margin: 12px 0; }
.sg-blog-article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--sg-text-muted, #64748b); margin-bottom: 20px; }
.sg-blog-lead { font-size: 1.125rem; line-height: 1.7; color: var(--sg-text-muted, #475569); margin-bottom: 24px; }
.sg-blog-content { line-height: 1.85; font-size: 16px; }
.sg-blog-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sg-blog-content h2, .sg-blog-content h3 { margin-top: 1.5em; }
.sg-blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 16px; }
.sg-tag { display: inline-block; padding: 4px 12px; background: var(--sg-surface-alt, #f1f5f9); border-radius: 999px; font-size: 13px; text-decoration: none; color: inherit; }
.sg-tag:hover { background: #e2e8f0; }
.sg-blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--sg-border, #e5e7eb); font-size: 14px; }
.sg-btn-sm { padding: 6px 12px; font-size: 13px; }

.sg-blog-faq, .sg-blog-related { margin-top: 48px; }
.sg-blog-faq h2, .sg-blog-related h2 { font-size: 1.25rem; margin-bottom: 16px; }
.sg-faq-item { border: 1px solid var(--sg-border, #e5e7eb); border-radius: 12px; margin-bottom: 8px; padding: 12px 16px; }
.sg-faq-item summary { cursor: pointer; font-weight: 600; }
.sg-faq-answer { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--sg-text-muted, #475569); }

.sg-pagination { margin-top: 32px; display: flex; justify-content: center; }
.sg-empty-state { text-align: center; padding: 48px; color: var(--sg-text-muted, #64748b); }

@media (max-width: 768px) {
  .sg-blog-layout { grid-template-columns: 1fr; }
  .sg-blog-sidebar { position: static; }
  .sg-blog-article-header h1 { font-size: 1.5rem; }
}
