/* =========================================================
   DEMO-Metastocks — design system
   Reference: trading212.com (white bg + bright green accent)
   ========================================================= */

/* =========================================================
   FLOATING CONTACT WIDGET — Telegram + WhatsApp (Albanian CTA)
   Appears bottom-right on every page, including dashboard.
   ========================================================= */
.contact-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.contact-widget > * { pointer-events: auto; }

.contact-widget .cw-label {
  background: #C8102E;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 18px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(6,20,57,.16), 0 2px 4px rgba(6,20,57,.08);
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  animation: cwPulse 2.4s ease-in-out infinite;
}
@keyframes cwPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.contact-widget .cw-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-widget .cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(6,20,57,.18), 0 2px 6px rgba(6,20,57,.10);
  transition: transform 0.18s, box-shadow 0.18s;
}
.contact-widget .cw-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(6,20,57,.24), 0 4px 8px rgba(6,20,57,.14);
  color: #FFFFFF;
}
.contact-widget .cw-btn svg {
  width: 28px;
  height: 28px;
}
.contact-widget .cw-tg {
  background: #229ED9;   /* Telegram brand blue */
}
.contact-widget .cw-wa {
  background: #25D366;   /* WhatsApp brand green */
}

@media (max-width: 700px) {
  .contact-widget { right: 16px; bottom: 16px; gap: 8px; }
  .contact-widget .cw-label { font-size: 11px; padding: 6px 12px; }
  .contact-widget .cw-btn { width: 50px; height: 50px; }
  .contact-widget .cw-btn svg { width: 26px; height: 26px; }
}

/* =========================================================
   DEMO MARQUEE — top red bar, scrolls right→left, bilingual EN+SQ
   Appears on EVERY page (homepage, register, login, dashboard, admin)
   ========================================================= */
.demo-marquee {
  background: #C8102E;
  color: #FFFFFF;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 200;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 6px rgba(200,16,46,0.18);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.demo-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 10px 0;
  animation: dmMarquee 38s linear infinite;
  will-change: transform;
}
.demo-marquee-track:hover { animation-play-state: paused; }
.demo-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-marquee-item .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  opacity: 0.7;
  flex: none;
}
.demo-marquee-item a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 800;
  transition: opacity 0.15s;
}
.demo-marquee-item a:hover { opacity: 0.85; color: #FFFFFF; }
@keyframes dmMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-marquee-track { animation: none; padding-left: 16px; }
}
@media (max-width: 700px) {
  .demo-marquee-item { font-size: 12px; padding: 0 22px; gap: 12px; }
}

:root {
  /* Surface */
  --bg:           #FFFFFF;
  --bg-2:         #F5F8F7;    /* alt section bg */
  --bg-3:         #F0F4F2;    /* hover */
  --surface:      #FFFFFF;
  --border:       #E5EAE8;
  --border-dark:  #C7D0CC;

  /* Text */
  --text:         #061439;    /* deep navy — Trading212 signature */
  --text-dim:     #54627A;
  --text-mute:    #7B8696;
  --text-inverse: #FFFFFF;

  /* Brand — Trading212 bright green */
  --accent:        #00AA72;
  --accent-hover:  #008A5C;
  --accent-dark:   #006B47;
  --accent-soft:   rgba(0,170,114,.08);
  --accent-2:      #4BCB9C;   /* lighter green for gradients */

  /* Status */
  --success: #00AA72;
  --success-soft: rgba(0,170,114,.10);
  --danger:  #E33B3B;
  --warning: #F7A02E;

  /* Effects */
  --radius:    8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(6,20,57,.05);
  --shadow:    0 4px 16px rgba(6,20,57,.06);
  --shadow-lg: 0 12px 40px rgba(6,20,57,.10);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5 { color: var(--text); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.035em; line-height: 1; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.05; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 14px; color: var(--text-dim); }

/* =========================================================
   LAYOUT
   ========================================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 100px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* =========================================================
   NAV — Trading212-style: white, minimal, sticky
   ========================================================= */
.nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark { display: inline-block; border-radius: 8px; }

/* =========================================================
   GLOBAL LOGO SIZE CLAMP — prevents native-size logo on any brand link
   ========================================================= */
.nav .brand img,
.appform-top .brand img,
.brand-link img,
.brand img:not([class]),
.footer .brand img,
.auth-brand img { width: 36px; height: 36px; object-fit: contain; flex: none; }

/* Larger only in dashboard sidebar */
.dash-side .brand-link img { width: 30px; height: 30px; }
/* And appform header keeps it slightly smaller */
.appform-top .brand img { width: 34px; height: 34px; }
.brand-text { color: var(--text); }
.brand-text .accent { color: var(--accent); }

.nav-links {
  display: flex; gap: 6px; align-items: center;
  flex: 1; justify-content: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-3); color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .lang {
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 6px;
}
.nav-cta .lang:hover { background: var(--bg-3); }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* =========================================================
   BUTTONS — Trading212-style: rounded pills
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,170,114,.25);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-dark:hover { background: #1a2540; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--text); color: var(--text); }

.btn-link {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 8px 0;
  font-weight: 700;
  position: relative;
}
.btn-link::after {
  content: " →";
  transition: transform .2s;
  display: inline-block;
}
.btn-link:hover::after { transform: translateX(4px); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* =========================================================
   HERO — Trading212 signature: big text + phone + scrolling logos
   ========================================================= */
.hero-t212 {
  background: var(--bg);
  padding: 80px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-t212 .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-t212 .inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-t212 { padding: 56px 0 0; }
}
.hero-t212 h1 {
  margin-bottom: 32px;
  color: var(--text);
}
.hero-t212 h1 .accent { color: var(--accent); }
.hero-t212 .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
@media (max-width: 1000px) { .hero-t212 .ctas { justify-content: center; } }
.hero-t212 .tiny-print {
  font-size: 12px; color: var(--text-mute);
  max-width: 480px;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .hero-t212 .tiny-print { margin: 0 auto; }
}
.hero-t212 .tiny-print a { color: var(--text-dim); text-decoration: underline; }

/* Hero phone visual */
.hero-phone {
  display: flex; justify-content: center;
  position: relative;
}
.hero-phone img { width: 100%; max-width: 420px; height: auto; }
.hero-phone svg { width: 100%; max-width: 420px; height: auto; }

/* Scrolling stock logos strip (below hero) */
.logos-strip {
  background: var(--bg);
  padding: 40px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.logos-track {
  display: flex; gap: 56px;
  align-items: center;
  white-space: nowrap;
  animation: logos-scroll 40s linear infinite;
  width: max-content;
}
.logos-track img,
.logos-track .stock-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity .2s;
  font-weight: 700; font-size: 16px;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.logos-track .stock-logo:hover { opacity: 1; }
.logos-track .stock-logo .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px; font-weight: 800;
}
@keyframes logos-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   STAT/SOCIAL PROOF bar
   ========================================================= */
.stat-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 32px; text-align: center;
}
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; gap: 24px; } }
.stat .num {
  font-size: 2.4rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.025em; margin-bottom: 6px;
}
.stat .num .accent { color: var(--accent); }
.stat .lbl { color: var(--text-dim); font-size: 14px; font-weight: 500; }

/* =========================================================
   SECTION HEADERS — Trading212 large + tagline
   ========================================================= */
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.section-head h2 { color: var(--text); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--text-dim); }

/* =========================================================
   3-STEP CARDS — "Buy stocks instantly"
   ========================================================= */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.step-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.step-card .step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--text-dim); margin: 0; }

/* =========================================================
   FEATURE SPLIT — image left, text right (alternating)
   ========================================================= */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 40px; } }
.feature-split .text h2 { margin-bottom: 20px; }
.feature-split .text p { font-size: 17px; margin-bottom: 24px; color: var(--text-dim); }
.feature-split .visual {
  display: flex; justify-content: center;
}
.feature-split .visual svg,
.feature-split .visual img {
  width: 100%; max-width: 480px; height: auto;
}

/* =========================================================
   PIE CHART illustration
   ========================================================= */
.pie-illustration {
  background: linear-gradient(135deg, #E8F7F1, #F5FBF8);
  border-radius: var(--radius-lg);
  padding: 48px;
}

/* =========================================================
   INTEREST MOCKUP — earnings card
   ========================================================= */
.earnings-card {
  background: var(--text);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(6,20,57,.25);
}
.earnings-card .label { color: rgba(255,255,255,.6); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.earnings-card .val { font-size: 1.6rem; font-weight: 800; color: #fff; }
.earnings-card .val.green { color: #4BCB9C; }
.earnings-card .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.earnings-card .stock-row {
  display: grid; grid-template-columns: 40px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.earnings-card .stock-row .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}

/* =========================================================
   EXCHANGE FLAGS strip
   ========================================================= */
.exchanges-strip {
  background: var(--bg-2);
  padding: 56px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.exchanges-track {
  display: flex; gap: 64px;
  align-items: center;
  white-space: nowrap;
  animation: logos-scroll 50s linear infinite;
  width: max-content;
}
.exchange {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 120px;
}
.exchange .flag {
  width: 56px; height: 40px;
  border-radius: 6px;
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.exchange .name {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.3;
}

/* =========================================================
   TESTIMONIALS — Trustpilot reviews carousel
   ========================================================= */
.reviews-wrap {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.reviews-wrap::-webkit-scrollbar { height: 6px; }
.reviews-wrap::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
.review {
  flex: 0 0 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  scroll-snap-align: start;
}
.review .top { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.review .stars {
  display: inline-flex; gap: 1px;
}
.review .stars span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #00B67A;
  color: #fff;
  font-size: 12px;
}
.review .invited {
  font-size: 11px; color: var(--text-mute);
  background: var(--bg-3);
  padding: 2px 8px; border-radius: 4px;
}
.review h4 { font-size: 14px; color: var(--text); margin: 0 0 8px; font-weight: 700; }
.review p { font-size: 14px; line-height: 1.5; color: var(--text-dim); margin: 0 0 16px; }
.review .who { font-size: 12px; color: var(--text-mute); display: flex; justify-content: space-between; }

.trustpilot-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.trustpilot-badge .trustpilot-stars {
  display: inline-flex; gap: 2px;
}
.trustpilot-badge .trustpilot-stars span {
  width: 24px; height: 24px;
  background: #00B67A; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.trustpilot-badge .info { font-size: 14px; color: var(--text-dim); }
.trustpilot-badge .info strong { color: var(--text); font-size: 15px; }

/* =========================================================
   AWARDS row
   ========================================================= */
.awards {
  display: flex; gap: 32px; align-items: center;
  justify-content: center; flex-wrap: wrap;
  padding: 40px 0;
}
.award-badge {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px; color: var(--text); font-weight: 600;
  min-width: 140px;
  line-height: 1.4;
}
.award-badge strong { color: var(--accent); display: block; font-size: 16px; }

/* =========================================================
   REGULATION FOOTER (4 regulators)
   ========================================================= */
.regulation {
  background: var(--bg-2);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reg-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}
@media (max-width: 900px) { .reg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .reg-grid { grid-template-columns: 1fr; } }
.reg-card {
  text-align: center;
}
.reg-card .badge {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
}
.reg-card h4 { font-size: 14px; margin: 0 0 8px; color: var(--text); }
.reg-card p { font-size: 12px; line-height: 1.5; color: var(--text-mute); margin: 0; }

/* =========================================================
   PAYMENT METHODS strip
   ========================================================= */
.payments {
  display: flex; justify-content: center; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.payment-logo {
  height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: 700;
  letter-spacing: -0.005em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
  font-size: 14px;
}
.footer .container { max-width: 1240px; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid .about p { color: rgba(255,255,255,.6); font-size: 14px; }
.foot-grid h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid ul li a { color: rgba(255,255,255,.7); font-size: 14px; }
.foot-grid ul li a:hover { color: #fff; }

.foot-socials { display: flex; gap: 12px; margin-top: 16px; }
.foot-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.foot-socials a:hover { background: var(--accent); color: #fff; }
.foot-socials svg { width: 18px; height: 18px; }

.foot-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  flex-wrap: wrap; gap: 16px;
}
.foot-bottom a { color: rgba(255,255,255,.6); }

.foot-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* =========================================================
   CTA BAND — final pre-footer
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, #E8F7F1, #FFFFFF);
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { font-size: 18px; max-width: 540px; margin: 0 auto 32px; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   QR CODE box
   ========================================================= */
.qr-box {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-left: 20px;
  vertical-align: middle;
}
.qr-box svg { width: 90px; height: 90px; display: block; }

/* =========================================================
   UTILITY
   ========================================================= */
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-block; }
.text-muted { color: var(--text-mute); }

/* =========================================================
   FLOATING CONTACT WIDGET — bottom-right (Telegram + WhatsApp)
   Albanian text: "DEMO FALAS, KONTAKTO TANI"
   ========================================================= */
.contact-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.contact-widget .cw-label {
  background: #C8102E;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(200,16,46,.35);
  white-space: nowrap;
  animation: cw-pulse 2.5s ease-in-out infinite;
  text-transform: uppercase;
}
@keyframes cw-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(200,16,46,.35); }
  50%      { transform: scale(1.05); box-shadow: 0 8px 32px rgba(200,16,46,.55); }
}
.contact-widget .cw-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact-widget a.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.20);
  transition: transform .15s, box-shadow .15s;
}
.contact-widget a.cw-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.contact-widget a.cw-btn.cw-tg { background: #229ED9; }
.contact-widget a.cw-btn.cw-wa { background: #25D366; }
.contact-widget svg { width: 26px; height: 26px; }

/* =========================================================
   MOBILE NAV DRAWER — slide-in from right
   ========================================================= */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 57, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #FFFFFF;
  box-shadow: -8px 0 32px rgba(6,20,57,.18);
  padding: 80px 24px 32px;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,.2,.2,1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-drawer a:hover, .nav-drawer a:active { background: var(--bg-3); color: var(--accent); }
.nav-drawer .nav-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.nav-drawer .nav-drawer-cta .btn { width: 100%; padding: 14px 22px; font-size: 15px; }

@media (min-width: 1001px) {
  .nav-drawer, .nav-backdrop { display: none !important; }
}

/* =========================================================
   MOBILE NAV — fix overflow + hide redundant CTAs
   ========================================================= */
@media (max-width: 1000px) {
  /* Hide nav buttons on mobile — they move into the drawer */
  .nav-cta .btn,
  .nav-cta .lang { display: none !important; }
  /* Keep only the hamburger visible */
  .nav-inner { padding: 14px 16px; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .nav-toggle { width: 44px; height: 44px; flex: none; }
}
@media (max-width: 480px) {
  .brand { font-size: 15px; }
  .nav-inner { padding: 12px 14px; }
}
/* Prevent any element from causing horizontal overflow */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }

/* =========================================================
   STICKY MARQUEE — always visible at top, even when scrolling
   ========================================================= */
:root { --marquee-h: 40px; }
.demo-marquee {
  position: sticky;
  top: 0;
  z-index: 250;          /* above nav & dashboard sidebar */
}
/* Push the sticky nav below the marquee */
.nav { top: var(--marquee-h) !important; }
/* And the dashboard sidebar */
.dash-side { top: var(--marquee-h) !important; height: calc(100vh - var(--marquee-h)) !important; }
/* Auth shells use full height — clamp them so they don't overlap marquee */
.auth-shell, .appform-shell { min-height: calc(100vh - var(--marquee-h)); }

@media (max-width: 700px) {
  :root { --marquee-h: 38px; }
}

/* =========================================================
   MARQUEE FIX — force fixed position (more reliable than sticky)
   ========================================================= */
.demo-marquee {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9998;
}
/* Body needs padding-top so content doesn't hide under fixed marquee */
body { padding-top: var(--marquee-h, 40px); }
/* Reset sticky tops since marquee is now fixed (already pushes content down) */
.nav { top: 0 !important; }
.dash-side { top: 0 !important; height: calc(100vh - var(--marquee-h, 40px)) !important; }
.auth-shell, .appform-shell { min-height: calc(100vh - var(--marquee-h, 40px)); }

@media (max-width: 700px) {
  :root { --marquee-h: 38px; }
}

/* =========================================================
   FIXED HEADER STACK — marquee + nav both always visible
   ========================================================= */
:root {
  --marquee-h: 40px;
  --nav-h: 68px;
}
@media (max-width: 1000px) {
  :root { --nav-h: 64px; }
}
@media (max-width: 700px) {
  :root { --marquee-h: 38px; }
}

/* Marquee at very top */
.demo-marquee {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}

/* Nav fixed right below marquee */
.nav {
  position: fixed !important;
  top: var(--marquee-h) !important;
  left: 0; right: 0;
  z-index: 9998 !important;
}

/* Body content starts below both */
body { padding-top: calc(var(--marquee-h) + var(--nav-h)); }

/* Pages WITHOUT .nav (dashboard, admin, auth shells) — only push down by marquee */
body:has(.dash),
body:has(.auth-shell),
body:has(.appform-shell) {
  padding-top: var(--marquee-h);
}

/* Dashboard sidebar fits below marquee */
.dash-side {
  top: 0 !important;
  height: calc(100vh - var(--marquee-h)) !important;
}
.auth-shell, .appform-shell { min-height: calc(100vh - var(--marquee-h)); }

/* =========================================================
   MOBILE NAV DRAWER — fix overlap with marquee+nav, compact items
   ========================================================= */
.nav-drawer {
  padding-top: calc(var(--marquee-h) + var(--nav-h) + 12px) !important;
  padding-bottom: 80px !important;  /* room for floating widget */
  gap: 2px !important;
}
.nav-drawer a {
  padding: 12px 18px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}
.nav-drawer .nav-drawer-cta {
  margin-top: 18px !important;
  padding-top: 18px !important;
  gap: 8px !important;
}
.nav-drawer .nav-drawer-cta .btn {
  padding: 13px 18px !important;
  font-size: 14px !important;
}

/* Hide floating WhatsApp/Telegram widget when drawer is open */
body.nav-open .contact-widget { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* =========================================================
   NAV DROPDOWNS — mega-menu style
   ========================================================= */
.nav-drop { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.nav-trigger:hover { background: var(--bg-3); color: var(--text); }
.nav-trigger .caret { transition: transform .15s; opacity: .7; }
.nav-drop:hover .caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(6,20,57,.10), 0 4px 12px rgba(6,20,57,.04);
  padding: 10px;
  min-width: 280px;
  display: none;
  z-index: 200;
  flex-direction: column;
  gap: 2px;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: flex; }
.nav-menu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
}
.nav-menu a:hover { background: var(--bg-2); }
.nav-menu a strong { color: var(--text); font-size: 14px; font-weight: 600; }
.nav-menu a small { color: var(--text-mute); font-size: 12px; }
@media (max-width: 1000px) {
  .nav-drop .nav-menu { display: none !important; }
}

/* ===== New pages — high-end layout polish (demo15) ===== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "+";
  display:inline-block;
  width:24px; height:24px;
  background:var(--accent); color:#fff;
  border-radius:6px;
  text-align:center; line-height:24px;
  margin-right:12px; font-weight:700;
  transition: transform .2s ease;
}
details[open] > summary::before { content: "−"; transform: rotate(0deg); }

.trust-band a { transition: opacity .15s ease; }
.trust-band a:hover { opacity: .85; }

@media (max-width: 900px) {
  .trust-band > .container > div { grid-template-columns: 1fr !important; gap: 24px !important; }
  .trust-band > .container > div > div:last-child { grid-template-columns: repeat(2,1fr) !important; }
  section .container > div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  section .container > div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  section[class*=section] div[style*="grid-template-columns:1.6fr 1fr"],
  section[class*=section] div[style*="grid-template-columns:1.2fr 1fr"],
  section[class*=section] div[style*="grid-template-columns:1.4fr 2.6fr"] {
    grid-template-columns: 1fr !important;
  }
}
