/* ==========================================================================
   Luxury Financial & Gold Investment Theme with Integrated URL Shortener
   ikhtisar.almostakbal24.ma
   ========================================================================== */

:root {
  --bg-deep: #070B14;
  --bg-surface: #0E1726;
  --bg-card: rgba(18, 28, 48, 0.75);
  --bg-card-hover: rgba(28, 42, 70, 0.85);
  --border-subtle: rgba(245, 158, 11, 0.18);
  --border-gold: #F59E0B;
  
  --gold-primary: #F59E0B;
  --gold-glow: #FBBF24;
  --gold-dark: #B45309;
  --gold-gradient: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  
  --emerald: #10B981;
  --emerald-glow: #34D399;
  --emerald-gradient: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%);
  
  --rose-accent: #EC4899;
  --cyan-accent: #06B6D4;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.25), 0 8px 10px -6px rgba(245, 158, 11, 0.15);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-deep);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.05) 0%, transparent 45%);
  min-height: 100vh;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--gold-glow);
}

/* ---------------- Ticker Bar ---------------- */
.ticker-wrap {
  width: 100%;
  background: linear-gradient(90deg, #0b1120 0%, #17223b 50%, #0b1120 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  font-size: 0.9rem;
  overflow: hidden;
  position: relative;
  z-index: 40;
}
.ticker-content {
  display: flex;
  gap: 30px;
  align-items: center;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-content:hover {
  animation-play-state: paused;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item .badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-glow);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.ticker-item .price {
  font-weight: 800;
  color: #FFFFFF;
}
.ticker-item .change-up {
  color: var(--emerald-glow);
  font-weight: 700;
}

/* ---------------- Navigation ---------------- */
.navbar {
  background: rgba(14, 23, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
}
.brand-logo .gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #070B14;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-glow);
}

/* ---------------- Main Layout ---------------- */
.main-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}
@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
    margin: 15px auto;
    padding: 0 14px;
    gap: 24px;
  }
}

/* ==========================================================================
   SHORTENER / COUNTDOWN HERO BOX (THE 5-SECOND REDIRECT UNIT)
   ========================================================================== */
.countdown-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(14, 23, 38, 0.92) 50%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 35px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-gold);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: boxGlow 3s ease-in-out infinite alternate;
}
@keyframes boxGlow {
  0% { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15); }
  100% { border-color: #F59E0B; box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35); }
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 3px;
  background: var(--gold-gradient);
  animation: shimmer 4s infinite linear;
}
@keyframes shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.cd-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cd-header .icon-badge {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cd-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}
.cd-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* Timer Ring & Digits */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}
.timer-dial {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-svg {
  transform: rotate(-90deg);
  width: 90px;
  height: 90px;
}
.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}
.timer-circle-progress {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.timer-number {
  position: absolute;
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}
.timer-status-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-glow);
  margin-top: 10px;
}

/* Action Buttons */
.cd-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 42px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
  min-width: 280px;
}

/* Disabled State during countdown */
.btn-continue.disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  cursor: not-allowed;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Active State after 5 seconds */
.btn-continue.active {
  background: var(--emerald-gradient);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 0 15px rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  animation: pulseEmerald 1.8s infinite;
}
@keyframes pulseEmerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-continue.active:hover {
  background: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
  transform: translateY(-4px) scale(1.02);
  color: #FFFFFF;
}

.direct-link-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------------- Articles & Editorial Content ---------------- */
.article-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.article-category {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-glow);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.article-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.9;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-glow);
  margin: 32px 0 16px;
  border-right: 4px solid var(--gold-primary);
  padding-right: 12px;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 24px 0 12px;
}

.callout-gold {
  background: rgba(245, 158, 11, 0.08);
  border-right: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 25px 0;
  font-size: 1rem;
}
.callout-gold strong {
  color: var(--gold-glow);
}

/* ---------------- Table Styles ---------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 25px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.95rem;
}
.data-table th {
  background: rgba(14, 23, 38, 0.95);
  color: var(--gold-glow);
  padding: 14px 18px;
  font-weight: 800;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 28, 48, 0.5);
}
.data-table tr:hover td {
  background: rgba(245, 158, 11, 0.06);
}

/* ---------------- Sidebar Cards ---------------- */
.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.sidebar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.price-row:last-child {
  border-bottom: none;
}
.price-label {
  font-weight: 600;
  color: var(--text-muted);
}
.price-val {
  font-weight: 800;
  color: var(--gold-glow);
}

/* Quick Shortener Form in Sidebar */
.shorten-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(10, 16, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.shorten-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.btn-shorten {
  width: 100%;
  padding: 12px;
  background: var(--gold-gradient);
  color: #070B14;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-shorten:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}

/* ---------------- Footer ---------------- */
.footer {
  background: #050810;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px 25px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
