/* ============================================================
   USDT Exchange — Design Tokens & Identity
   لوحة الألوان: حبر بحري غامق + أخضر ثقة + كهرماني تحذيري
   ============================================================ */
:root{
  --ink-900:#0B1220;
  --ink-800:#101A2E;
  --ink-700:#16243F;
  --teal-600:#0E7C66;
  --teal-500:#129E82;
  --teal-100:#E3F5EF;
  --amber-600:#D97706;
  --amber-100:#FDF1E0;
  --paper:#F7F5F0;
  --paper-card:#FFFFFF;
  --slate-700:#334155;
  --slate-500:#64748B;
  --slate-300:#CBD5E1;
  --success:#16A34A;
  --danger:#DC2626;
  --warning:#D97706;
  --info:#0E7C66;

  --font-display:'Cairo', 'Tajawal', sans-serif;
  --font-body:'Tajawal', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --shadow-soft:0 8px 30px rgba(11,18,32,.08);
  --shadow-card:0 4px 18px rgba(11,18,32,.06);
}

*{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--slate-700);
  line-height: 1.75;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-900);
}

.skip-link{ position:absolute; top:0; right:0; z-index:2000; }

.text-accent{ color: var(--amber-600); }
.text-teal{ color: var(--teal-600) !important; }
.bg-paper{ background: var(--paper); }
.tabular-nums{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-brand-dark{
  background: var(--ink-900);
  padding: 14px 0;
}
.navbar-brand-dark .navbar-brand{ text-decoration:none; }
.brand-mark{
  font-family: var(--font-mono);
  background: var(--teal-500);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 5px 9px;
  border-radius: 6px;
}
.brand-name{ font-family: var(--font-display); font-weight: 800; color:#fff; font-size:1.15rem; }
.navbar-brand-dark .nav-link{
  color: rgba(255,255,255,.78);
  font-weight: 600;
  padding: .55rem 1rem !important;
  border-radius: 999px;
  transition: all .2s ease;
}
.navbar-brand-dark .nav-link:hover,
.navbar-brand-dark .nav-link.active{
  color: #fff;
  background: rgba(255,255,255,.08);
}
.btn-accent{
  background: var(--teal-500);
  border: none;
  color: #fff !important;
  transition: all .2s ease;
}
.btn-accent:hover{ background: var(--teal-600); color:#fff; transform: translateY(-1px); }
.navbar-toggler{ border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO + PRICE TICKER (Signature element)
   ============================================================ */
.hero-section{
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14,124,102,.25), transparent), var(--ink-900);
  padding: 88px 0 0;
  position: relative;
  overflow:hidden;
}
.hero-section::before{
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity:.5;
}
.hero-content{ position:relative; z-index:2; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--teal-100);
  font-size:.85rem; font-weight:600;
  padding: 7px 16px;
  border-radius: 999px;
}
.pulse-dot{
  width:8px; height:8px; border-radius:50%;
  background: #22D3A8;
  box-shadow: 0 0 0 0 rgba(34,211,168,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(34,211,168,.6); }
  70%{ box-shadow: 0 0 0 8px rgba(34,211,168,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,211,168,0); }
}
.hero-title{
  color:#fff;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  margin: 22px 0 18px;
}
.hero-subtitle{
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 560px;
}

/* Ticker board: the signature visual element */
.ticker-board{
  position: relative; z-index:2;
  background: var(--ink-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  margin-top: 40px;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.ticker-row{ display:flex; flex-wrap:wrap; }
.ticker-cell{
  flex: 1 1 280px;
  padding: 26px 30px;
  border-inline-end: 1px solid rgba(255,255,255,.07);
  position:relative;
}
.ticker-cell:last-child{ border-inline-end:none; }
.ticker-label{
  display:flex; align-items:center; gap:8px;
  color: rgba(255,255,255,.55);
  font-size:.82rem; font-weight:700;
  text-transform: uppercase; letter-spacing:.06em;
  margin-bottom: 10px;
}
.ticker-label .dot{ width:7px; height:7px; border-radius:50%; }
.dot-buy{ background: var(--teal-500); }
.dot-sell{ background: var(--amber-600); }
.ticker-price{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color:#fff;
  font-variant-numeric: tabular-nums;
}
.ticker-price small{ font-size:1rem; color: rgba(255,255,255,.5); font-weight:500; margin-right:6px; }
.ticker-cta{
  display:flex; align-items:center; justify-content:center;
  padding: 10px;
  background: rgba(255,255,255,.03);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section{ padding: 80px 0; }
.section-sm{ padding: 50px 0; }
.section-title{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 14px;
}
.section-eyebrow{
  font-family: var(--font-mono);
  color: var(--teal-600);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-subtitle{ color: var(--slate-500); max-width: 600px; }

/* Cards */
.feature-card{
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid rgba(11,18,32,.06);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-icon{
  width:54px; height:54px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.payment-card{
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align:center;
  border: 1px solid rgba(11,18,32,.06);
  height:100%;
  transition: all .2s ease;
}
.payment-card:hover{ border-color: var(--teal-500); box-shadow: var(--shadow-card); }
.payment-icon{ font-size: 2rem; color: var(--teal-600); margin-bottom: 10px; }

/* Recent orders ticker list */
.recent-order-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 18px;
  background: var(--paper-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11,18,32,.06);
  margin-bottom: 10px;
}
.recent-order-row .badge-type-buy{ background: var(--teal-100); color: var(--teal-600); }
.recent-order-row .badge-type-sell{ background: var(--amber-100); color: var(--amber-600); }

/* Reviews */
.review-card{
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(11,18,32,.06);
  height:100%;
}
.review-stars{ color: var(--amber-600); font-size: .95rem; }
.review-comment{ color: var(--slate-700); margin: 14px 0; }
.review-author{ font-weight:700; color: var(--ink-900); }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--ink-900), var(--ink-700));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  color:#fff;
  position: relative;
  overflow:hidden;
}

/* ============================================================
   FORMS (Buy/Sell/Contact)
   ============================================================ */
.form-panel{
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11,18,32,.05);
}
.form-control, .form-select{
  border-radius: 10px;
  padding: .65rem .9rem;
  border-color: var(--slate-300);
}
.form-control:focus, .form-select:focus{
  border-color: var(--teal-500);
  box-shadow: 0 0 0 .2rem rgba(14,124,102,.15);
}
.form-label{ font-weight:700; color: var(--ink-900); margin-bottom:.4rem; }
.price-summary-box{
  background: var(--teal-100);
  border: 1px dashed var(--teal-600);
  border-radius: var(--radius-md);
  padding: 20px;
}
.price-summary-box .total-value{
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight:700;
  color: var(--ink-900);
}
.network-badge{
  display:inline-flex; align-items:center; gap:6px;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  padding: 5px 14px;
  font-size:.82rem; font-weight:600;
  font-family: var(--font-mono);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{ font-weight:700; border-radius: 10px; padding: .6rem 1.4rem; }
.btn-lg{ padding: .85rem 2rem; border-radius:12px; }
.btn-primary{ background: var(--teal-600); border-color: var(--teal-600); }
.btn-primary:hover{ background: var(--teal-500); border-color: var(--teal-500); }
.btn-warning{ background: var(--amber-600); border-color: var(--amber-600); color:#fff; }
.btn-warning:hover{ background:#C2670A; border-color:#C2670A; color:#fff; }
.btn-outline-light:hover{ color: var(--ink-900); }
.rounded-pill.btn-lg{ padding: .8rem 2.2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--ink-900); color: rgba(255,255,255,.65); }
.text-footer-muted{ color: rgba(255,255,255,.55); }
.footer-heading{ color:#fff; font-weight:700; margin-bottom: 16px; font-size:.95rem; }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom: 10px; color: rgba(255,255,255,.55); font-size:.92rem; }
.footer-links a{ color: rgba(255,255,255,.65); text-decoration:none; transition: color .2s; }
.footer-links a:hover{ color: var(--teal-500); }
.footer-divider{ border-color: rgba(255,255,255,.1); margin: 30px 0 20px; }
.social-icon{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border-radius:50%;
  color:#fff;
  transition: all .2s;
}
.social-icon:hover{ background: var(--teal-600); }

/* WhatsApp floating button */
.whatsapp-float{
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 1050;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float i{ font-size: 1.55rem; line-height: 1; }
.whatsapp-float-text{ white-space: nowrap; }
.whatsapp-float:hover{
  color: #fff;
  background: #1ebe5d;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, .55);
}

/* على الجوال: زر دائري بالأيقونة فقط لتوفير المساحة */
@media (max-width: 575.98px){
  .whatsapp-float{
    bottom: 18px;
    inset-inline-start: 18px;
    padding: 0;
    width: 56px;
    justify-content: center;
  }
  .whatsapp-float-text{ display: none; }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-card{
  background: var(--paper-card);
  border-radius: var(--radius-md);
  overflow:hidden;
  border: 1px solid rgba(11,18,32,.06);
  height:100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.blog-card img{ width:100%; height:200px; object-fit:cover; }
.blog-card-body{ padding: 22px; }
.blog-meta{ font-size:.82rem; color: var(--slate-500); }
.blog-category-pill{
  display:inline-block;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size:.75rem; font-weight:700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.article-content{ font-size: 1.05rem; line-height: 1.9; color: var(--slate-700); }
.article-content h2{ margin-top: 2rem; font-size:1.5rem; }
.article-content h3{ margin-top: 1.6rem; font-size:1.25rem; }
.article-content p{ margin-bottom: 1.1rem; }
.article-content ul, .article-content ol{ margin-bottom: 1.1rem; padding-inline-start: 1.4rem; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.accordion-button{ font-weight:700; color: var(--ink-900); }
.accordion-button:not(.collapsed){ background: var(--teal-100); color: var(--teal-600); }
.accordion-button:focus{ box-shadow: 0 0 0 .2rem rgba(14,124,102,.15); }

/* ============================================================
   AUTH / LOGIN
   ============================================================ */
.auth-wrapper{
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  background: var(--ink-900);
  padding: 20px;
}
.auth-card{
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 440px;
  width:100%;
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px){
  .ticker-cell{ flex-basis: 100%; border-inline-end:none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .ticker-cell:last-child{ border-bottom:none; }
}
@media (max-width: 576px){
  .section{ padding: 56px 0; }
  .form-panel{ padding: 24px; }
  .hero-section{ padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}
