/* ===================================================
   TRAGEDOCS WEBSITE — SHARED STYLES
   Professional Commodity Trading Document Bundle
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ── VARIABLES ── */
:root {
  --gold:       #B8960C;
  --gold-light: #f0c040;
  --gold-pale:  #fff8e1;
  --navy:       #0f1629;
  --navy-mid:   #1a1a2e;
  --navy-light: #16213e;
  --navy-card:  #1e2240;
  --blue-acc:   #0f3460;
  --text-light: #e8e0cc;
  --text-muted: #8a8a9a;
  --border:     #2d2d44;
  --white:      #ffffff;
  --success:    #22c55e;
  --danger:     #ef4444;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Libre Baskerville', Georgia, serif; line-height: 1.25; }
p { color: var(--text-muted); line-height: 1.75; }

/* ── NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 22, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1em;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--text-light); font-weight: 400; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,150,12,0.4); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: rgba(184,150,12,0.1); }
.btn-lg { padding: 16px 40px; font-size: 1.05em; border-radius: 10px; }
.btn-sm { padding: 8px 18px; font-size: 0.82em; }
.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.35); }

/* ── SECTION LAYOUT ── */
.section { padding: 80px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8em, 4vw, 2.6em);
  color: var(--white);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05em;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 50px;
  line-height: 1.8;
}
.text-center { text-align: center; }

/* ── GOLD DIVIDER ── */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 auto 32px;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  background: rgba(184,150,12,0.15);
  border: 1px solid rgba(184,150,12,0.4);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }

/* ── DOC CARDS ── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.doc-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.doc-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(184,150,12,0.12); }
.doc-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg,var(--gold),var(--gold-light)); }
.doc-num { font-size:2.4em; font-weight:700; color:var(--border); position:absolute; top:14px; right:18px; font-family:'Libre Baskerville',serif; }
.doc-tag { display:inline-block; background:var(--blue-acc); color:#7eb8f7; padding:3px 10px; border-radius:12px; font-size:0.72em; font-weight:600; margin-bottom:10px; letter-spacing:0.5px; }
.doc-card h3 { font-size:0.95em; font-weight:600; color:var(--white); margin-bottom:8px; font-family:'Libre Baskerville',serif; }
.doc-card p { font-size:0.82em; color:#777; line-height:1.6; }

/* ── PRICING BOX ── */
.pricing-box {
  background: linear-gradient(135deg, var(--navy-mid), var(--blue-acc));
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.pricing-box::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 18px; right: -22px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 36px;
  transform: rotate(30deg);
}
.price-tag { margin: 20px 0; }
.price-was { text-decoration: line-through; color: var(--text-muted); font-size: 1.1em; }
.price-now { font-size: 4em; font-weight: 800; color: var(--gold); line-height: 1; font-family:'Libre Baskerville',serif; }
.price-now sup { font-size: 0.4em; vertical-align: top; margin-top: 14px; display: inline-block; }
.price-period { color: var(--text-muted); font-size: 0.9em; margin-top: 6px; }
.price-includes { list-style: none; text-align: left; margin: 28px 0; }
.price-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(184,150,12,0.15);
  font-size: 0.92em;
  color: var(--text-light);
}
.price-includes li:last-child { border-bottom: none; }
.check { color: var(--gold); font-size: 1em; flex-shrink: 0; margin-top: 2px; }

/* ── STRIPE BUTTON AREA ── */
.stripe-area {
  margin: 28px 0 16px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.stripe-fallback {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-top: 8px;
}
.stripe-fallback a { color: var(--gold); text-decoration: none; }
.secure-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.78em;
  color: var(--text-muted);
}
.secure-badges span::before { content: '🔒 '; }

/* ── STAT ROW ── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 50px 0; }
.stat-box { text-align: center; }
.stat-num { font-size: 2.5em; font-weight: 800; color: var(--gold); font-family:'Libre Baskerville',serif; }
.stat-label { font-size: 0.82em; color: var(--text-muted); margin-top: 4px; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--text-light);
  gap: 16px;
}
.faq-q:hover { color: var(--gold); }
.faq-icon { color: var(--gold); font-size: 1.4em; flex-shrink: 0; transition: transform 0.25s; }
.faq-a { display: none; font-size: 0.9em; color: var(--text-muted); line-height: 1.8; padding-top: 12px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  font-size: 0.8em;
  color: var(--text-muted);
}
.footer a { color: var(--gold); text-decoration: none; }

/* ── SUCCESS / CANCEL PAGE ── */
.page-center {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.result-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px 48px;
  text-align: center;
  max-width: 580px;
  width: 100%;
}
.result-icon { font-size: 4.5em; margin-bottom: 24px; }
.result-card h1 { font-size: 2em; color: var(--white); margin-bottom: 16px; }
.result-card p { font-size: 0.95em; line-height: 1.8; margin-bottom: 28px; }
.download-box {
  background: rgba(34,197,94,0.08);
  border: 1.5px solid rgba(34,197,94,0.35);
  border-radius: 10px;
  padding: 24px;
  margin: 28px 0;
}
.download-box p { color: var(--text-light); font-size: 0.88em; margin-bottom: 16px; }
.download-steps { list-style: none; text-align: left; margin: 16px 0; }
.download-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88em;
  color: var(--text-muted);
  padding: 6px 0;
}
.step-num {
  background: var(--gold);
  color: var(--navy);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── SETUP GUIDE ── */
.guide-step {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
}
.guide-step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: 12px;
}
.guide-step h3 { color: var(--white); font-size: 1.1em; margin: 8px 0 12px; }
.guide-step p, .guide-step li { font-size: 0.9em; color: var(--text-muted); line-height: 1.8; }
.guide-step ul, .guide-step ol { padding-left: 20px; margin-top: 10px; }
.guide-step li { margin-bottom: 6px; }
.code-block {
  background: #0d0d1a;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  color: #7eb8f7;
  margin: 14px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.tip-box {
  background: rgba(184,150,12,0.08);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 14px 0;
  font-size: 0.88em;
  color: var(--text-light);
}
.tip-box strong { color: var(--gold); }
.warn-box {
  background: rgba(239,68,68,0.08);
  border-left: 4px solid #ef4444;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 14px 0;
  font-size: 0.88em;
  color: #fca5a5;
}

/* ── HERO GRADIENT ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, var(--blue-acc) 100%);
  padding: 90px 40px 80px;
  text-align: center;
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(184,150,12,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2em, 5vw, 3.2em);
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .subhead {
  font-size: 1.1em;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ── COMMODITIES BAR ── */
.commodity-bar {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 28px;
  margin: 40px 0;
}
.commodity-bar h4 {
  font-family:'Inter',sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.ctags { display: flex; flex-wrap: wrap; gap: 8px; }
.ctag {
  background: var(--blue-acc);
  color: #7eb8f7;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78em;
}

/* ── FLOATING CONTACT BUTTONS ── */
.floating-contacts {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: all 0.25s ease;
  position: relative;
}
.float-btn:hover { transform: scale(1.12); box-shadow: 0 6px 22px rgba(0,0,0,0.45); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn.whatsapp { background: #25D366; }
.float-btn.telegram { background: #0088CC; }
.float-label {
  position: absolute;
  right: 60px;
  background: rgba(15,22,41,0.95);
  color: var(--text-light);
  font-size: 0.75em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}
.float-btn:hover .float-label { opacity: 1; }

/* ── LOCALE TOGGLE ── */
.locale-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
  user-select: none;
}
.locale-toggle:hover { border-color: var(--gold); color: var(--text-light); }
.locale-toggle .flag { font-size: 1.1em; }
.locale-toggle.us-mode .uk-lbl { opacity: 0.35; }
.locale-toggle.uk-mode .us-lbl { opacity: 0.35; }

/* ── DOCUMENT PREVIEW GALLERY ── */
.preview-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 16px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--navy-card);
}
.preview-scroll::-webkit-scrollbar { height: 4px; }
.preview-scroll::-webkit-scrollbar-track { background: var(--navy-card); border-radius: 2px; }
.preview-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.paper-card {
  flex-shrink: 0;
  width: 155px;
  background: #f8f7f2;
  border-radius: 3px;
  box-shadow: 4px 6px 18px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.paper-card:hover { transform: translateY(-6px) scale(1.04); box-shadow: 6px 14px 28px rgba(0,0,0,0.6); }
.paper-header {
  background: linear-gradient(135deg, var(--navy), var(--blue-acc));
  padding: 7px 9px;
  border-bottom: 2px solid var(--gold);
}
.paper-header-brand {
  font-size: 0.46em;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.paper-header .doc-title-mini {
  font-size: 0.52em;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}
.paper-body { padding: 7px 9px 5px; }
.paper-line {
  height: 3px;
  background: #c8c4bc;
  border-radius: 2px;
  margin-bottom: 4px;
}
.paper-line.short { width: 50%; }
.paper-line.med { width: 75%; }
.paper-line.full { width: 100%; }
.paper-line.gold { background: rgba(184,150,12,0.45); width: 65%; }
.paper-field {
  height: 12px;
  background: #fffae8;
  border: 1px solid #c8a020;
  border-radius: 1px;
  margin-bottom: 4px;
}
.paper-section {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid #ddd;
}
.paper-tag-mini {
  font-size: 0.44em;
  background: var(--navy);
  color: var(--gold);
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.paper-sig {
  margin-top: 8px;
  border-top: 1px solid #aaa;
  padding-top: 3px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.paper-sig-line { width: 46%; height: 1px; background: #888; margin-bottom: 2px; }
.paper-label {
  text-align: center;
  font-size: 0.68em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 7px 4px 10px;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}
.paper-label span { color: var(--gold); display: block; font-size: 0.9em; margin-bottom: 1px; }

/* ── BONUS ITEMS ── */
.bonus-tag {
  display: inline-block;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.contact-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-card .c-icon { font-size: 1.8em; margin-bottom: 8px; }
.contact-card .c-label { font-size: 0.7em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.contact-card .c-value { font-size: 0.85em; color: var(--text-light); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .section { padding: 60px 20px; }
  .hero { padding: 60px 20px 50px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.8em; }
  .doc-grid { grid-template-columns: 1fr; }
  .pricing-box { padding: 36px 24px; }
  .result-card { padding: 40px 24px; }
  .guide-step { padding: 24px 20px; }
  .price-now { font-size: 3em; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 0.88em; }
  .btn-lg { padding: 14px 28px; font-size: 0.95em; }
}
