/* Base */
:root{--bg:#0b0f1a;--panel:#12182a;--muted:#a7b6d4;--text:#eaf0ff;--line:#1f2a44;--c1:#60a5fa;--c2:#34d399;--pill:#0f1730;--pillb:#14213a}
*{box-sizing:border-box}img{max-width:100%;height:auto;display:block}
html,body{margin:0;background:radial-gradient(1200px 600px at 80% -10%,#1a2240 0,#0b0f1a 60%),#0b0f1a;color:var(--text);font:16px/1.6 Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif}
.container{max-width:1200px;margin:0 auto;padding:24px}
/* Header */
.header{position:sticky;top:0;background:rgba(11,15,26,.7);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;gap:12px;align-items:center}
.brand img{width:56px;height:56px;border-radius:12px}
.navlinks{display:flex;gap:12px;align-items:centerflex-wrap:nowrap;overflow:visible;}

a{color:inherit;text-decoration:none}
.cta{background:linear-gradient(135deg,var(--c1),var(--c2));color:#081018;padding:12px 18px;border-radius:12px;font-weight:800}
/* Cards & sections */
.card{background:linear-gradient(180deg,#12182a,#0f1424);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.section{padding:36px 0;border-top:1px solid #132040}
.hero{padding:14px}
.title{display:flex;align-items:center;gap:12px;font-size:40px;margin:10px 0 6px}
.subtitle{color:var(--muted);margin-bottom:18px}
.lede{color:var(--muted);margin:6px 0 16px}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.feature{background:linear-gradient(180deg,#0f1424,#0d1322);border:1px solid #17233c;border-radius:16px;padding:16px}
.feature h3{margin:0 0 10px;font-size:24px}
.bullets{margin:0;padding:0 0 0 18px}
.bullets li{margin:10px 0}
.hero-actions{display:flex;gap:12px;align-items:center;margin-top:18px;flex-wrap:wrap}
.pill{background:linear-gradient(180deg,var(--pill),var(--pillb));border:1px solid #26385f;color:#c8d8ff;border-radius:999px;padding:8px 12px;font-size:12px}
.muted{color:var(--muted)}
.pad{padding:22px}
.pad-top{margin-top:16px}
/* Backtests grid */
.grid{display:grid;gap:16px}
@media(min-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
figure.card{padding:14px;border-radius:16px}
figcaption{font-size:14px;color:#a8b7d9;margin:8px 0}
.btn.full{display:inline-flex;gap:8px;align-items:center;background:linear-gradient(135deg,var(--c1),var(--c2));color:#081018;border:0;border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer}
/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;z-index:99}
.lightbox.open{display:flex}.lightbox img{max-width:95vw;max-height:90vh;border-radius:12px}
.lightbox .close{position:absolute;top:16px;right:16px;background:#162036;border:1px solid #2a3b59;color:#cfe1ff;border-radius:10px;padding:8px 10px;cursor:pointer}
/* Checkout layout */
.wrap{max-width:1600px;margin:0 auto;padding:36px}
.grid-ck{display:grid;gap:36px;grid-template-columns:520px 1fr}
.panel{background:linear-gradient(180deg,#0f141c,#0e131a);border:1px solid #1c2b3d;border-radius:20px;padding:28px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.brand-lg{display:flex;gap:18px;align-items:center;margin-bottom:12px}
.brand-lg img{width:80px;height:80px;border-radius:16px}
.row{display:flex;justify-content:space-between;align-items:center;margin:12px 0}
.price{font-size:42px;font-weight:900}
.divider{height:1px;background:#1c2b3d;margin:18px 0}
.tabs{display:flex;gap:10px;margin-bottom:16px}
.tab{flex:1;text-align:center;padding:14px;border-radius:14px;border:1px solid #203149;background:#0d131c;color:#cfe1ff;cursor:pointer}
.tab.active{background:#132033;border-color:#2d4670;box-shadow:inset 0 0 0 1px #2d4670}
.tabcontent{display:none}.tabcontent.active{display:block}
.form{display:grid;gap:12px}
input,select{background:#0a0f16;border:1px solid #1a2736;color:#e5efff;border-radius:10px;padding:14px;width:100%;font-size:16px}
.cols2{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,var(--c1),var(--c2));color:#091222;border:0;border-radius:12px;padding:12px 14px;font-weight:800;text-decoration:none;cursor:pointer}
.cards{display:flex;gap:8px;align-items:center;margin-top:10px;opacity:.95}
.cards svg{height:22px}
@media(max-width:1100px){.grid-ck{grid-template-columns:1fr}.price{font-size:36px}}


/* --- Fix clickability & tab visibility --- */
.tabs{display:flex;gap:.5rem;margin-bottom:1rem;position:relative;z-index:5}
.tab{cursor:pointer;padding:.6rem 1rem;border-radius:.6rem;background:#0e1726;border:1px solid #243b55;color:#cfe3ff}
.tab.active{background:linear-gradient(90deg,#1e88e5,#26c6da);color:#07131f;font-weight:600;border-color:transparent}
.tabcontent{display:none;position:relative;z-index:1}
.tabcontent.active{display:block}
.btn{cursor:pointer;user-select:none}
/* ensure no invisible overlay blocks clicks */
.panel{position:relative}
.panel::after{content:'';display:none}
.form, .grid-ck, .panel, .wrap{pointer-events:auto}

/* ---------- Lightbox styles ---------- */
#lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999}
#lightbox.open{display:flex}
#lightbox .lb__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.75)}
#lightbox .lb__img{position:relative;max-width:92vw;max-height:92vh;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
#lightbox .lb__close{position:absolute;top:16px;right:20px;font-size:32px;line-height:1;background:#111;color:#fff;border:1px solid #333;border-radius:10px;padding:6px 10px;cursor:pointer}
/* Make cards clickable safely */
.card, .shot, .preview, .item, figure, .box{position:relative;pointer-events:auto}
a.btn, button.btn{pointer-events:auto}





/* Subscription consent block (under payments) */
.subscription-consent{margin-top:16px;background:#0e1522;border:1px solid #233651;border-radius:14px;padding:14px}
.subscription-consent label{display:flex;gap:10px;align-items:flex-start}
.subscription-consent a{text-decoration:underline}


/* Tiny privacy note under payment form */
.note-privacy{font-size:12px;color:var(--muted);margin-top:6px}
.note-privacy a{text-decoration:underline}


/* Accept terms + CTA combo inside PayPal tab */
.accept-terms .terms-label a{text-decoration:underline}
.accept-terms .btn[disabled]{opacity:.6;cursor:not-allowed}


/* Global accept terms block under payment panel */
.accept-terms-global{margin-top:16px;background:#0e1522;border:1px solid #233651;border-radius:14px;padding:14px}
.accept-terms-global .terms-label{gap:3px;align-items:center;justify-content:flex-start;margin:0}
.accept-terms-global a{text-decoration:underline}
.accept-terms-global .btn[disabled]{opacity:.6;cursor:not-allowed}


/* --- Consent block tweaks --- */
.accept-terms-global .terms-label{gap:3px;align-items:center;justify-content:flex-start;margin:0}
.accept-terms-global .btn[disabled]{opacity:.6;cursor:not-allowed;pointer-events:none}
.accept-terms-global .btn:not([disabled]){pointer-events:auto}


/* --- Consent block grid layout (button left, checkbox+text right) --- */
.accept-terms-global{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;margin-top:16px;background:#0e1522;border:1px solid #233651;border-radius:14px;padding:14px}
.accept-terms-global .terms-label{gap:3px;align-items:center;justify-content:flex-start;margin:0}
.accept-terms-global .btn[disabled]{opacity:.6;cursor:not-allowed;pointer-events:none}
.accept-terms-global .btn:not([disabled]){pointer-events:auto}
.accept-terms-global a{text-decoration:underline}


/* Tighter spacing between checkbox and text in consent label */
.accept-terms-global .terms-label{gap:3px;align-items:center;justify-content:flex-start;margin:0}
.accept-terms-global .terms-label input[type="checkbox"]{margin:0}


/* Swap positions: label left, button right */
.accept-terms-global .terms-label{gap:3px;align-items:center;justify-content:flex-start;margin:0}
.accept-terms-global #complete-purchase{order:2; justify-self:end}
@media (max-width: 720px){
  .accept-terms-global{grid-template-columns:1fr}
  .accept-terms-global #complete-purchase{justify-self:stretch}
}


/* --- Consent block: label left, button right --- */
.accept-terms-global{display:flex !important;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;background:#0e1522;border:1px solid #233651;border-radius:14px;padding:14px}
.accept-terms-global .terms-label{display:flex;align-items:center;gap:4px;margin:0}
.accept-terms-global .terms-label input[type="checkbox"]{margin:0}
.accept-terms-global .btn[disabled]{opacity:.6;cursor:not-allowed;pointer-events:none}
@media (max-width: 720px){
  .accept-terms-global{flex-direction:column;align-items:stretch;gap:12px}
  .accept-terms-global .btn{width:100%}
}


/* --- Backtests dropdown --- */
.header .dropdown { position: relative; display:inline-block; margin-right: 12px; }
.header .backtests-toggle { /* reuse .btn gradient already applied */ }

.header .dropdown-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(50,60,90,.9) 0%, rgba(20,24,38,.95) 60%, rgba(10,12,20,.98) 100%);
  border: 1px solid rgba(123, 187, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 20px rgba(100, 180, 255, .15);
  backdrop-filter: blur(4px);
  transform-origin: top right;
  transform: translateY(-8px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}

.header .dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  display:block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e8efff;
  text-decoration:none;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(110, 190, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(110, 190, 255, .25);
}


/* --- Futuristic Space Background --- */
body {
  background: url('images/space-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 15, 0.95),
    rgba(15, 10, 40, 0.9),
    rgba(0, 0, 0, 0.95)
  );
  z-index: -1;
}

/* --- Animated Stars Overlay --- */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image: url('images/stars_l1.png'), url('images/stars_l2.png');
  background-repeat: repeat;
  background-size: 800px 800px, 1200px 1200px;
  mix-blend-mode: screen;
  opacity: .22;
  z-index: -1;
  animation: starsDrift1 120s linear infinite, starsDrift2 220s linear infinite;
  animation-composition: accumulate;
}

@keyframes starsDrift1 {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: -400px -300px, 0 0; }
}

@keyframes starsDrift2 {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 500px 350px; }
}


/* --- Neon Glow Animation --- */
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(120, 90, 255, 0.6),
                0 0 24px rgba(120, 90, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(150, 100, 255, 0.9),
                0 0 40px rgba(150, 100, 255, 0.6);
  }
}

/* Buttons with glow */
.btn {
  animation: neonPulse 2.5s infinite ease-in-out;
  transition: transform 0.2s ease;
}
.btn:hover {
  transform: scale(1.05);
}

/* Banners with glow */
.hero-banner {
  border: 1px solid rgba(140, 100, 255, 0.6);
  animation: neonPulse 4s infinite ease-in-out;
}


/* Neon glow for backtest cards */
.card {
  border: 1px solid rgba(140, 100, 255, 0.35);
  border-radius: 14px;
  animation: neonPulse 5s infinite ease-in-out;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* --- Footer Contact block --- */
footer .footer-contact{
  margin-top: 10px;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cdd7ff;
  border-top: 1px dashed rgba(160, 160, 255, .25);
}
footer .footer-contact .icon{ color:#9fb2ff; }
footer .footer-contact .footer-email{
  color: #e9f0ff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(160, 160, 255, .45);
}
footer .footer-contact .footer-email:hover{
  color: #ffffff;
  text-shadow: 0 0 8px rgba(140,100,255,.6);
}

/* --- Contact form --- */
.contact-form{ background: rgba(10,12,20,.6); border:1px solid rgba(140,100,255,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); border-radius: 16px; padding: 20px; }
.contact-form .grid.two{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.contact-form .field{ display:flex; flex-direction:column; gap:6px; }
.contact-form label{ font-weight:600; }
.contact-form input, .contact-form textarea{
  background: rgba(12,14,24,.85); border:1px solid rgba(130,100,255,.25);
  border-radius: 10px; padding: 10px 12px; color:#e8efff;
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; box-shadow: 0 0 0 2px rgba(140,100,255,.35); }
.contact-form .error{ display:none; color:#ff9aa2; font-size:12px; }
.contact-form .check{ display:flex; align-items:center; gap:8px; margin:8px 0 12px; }
.contact-form .actions{ display:flex; align-items:center; gap:12px; margin-top:6px; }
@media (max-width: 768px){ .contact-form .grid.two{ grid-template-columns: 1fr; } }


/* --- Email display as plain text (non-clickable) --- */
.email-text { text-decoration: none; cursor: default; }
a.footer-email { pointer-events: none; text-decoration: none; cursor: default; }
a[href^="mailto:"] { pointer-events: none; text-decoration: none; cursor: default; }


/* ===== Mobile-friendly typography & layout tweaks ===== */
h1,h2,h3,.title,.subtitle,.lede,.panel p,.feature li,.muted, .brand-lg div {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Default responsive heading sizes using clamp */
.title { font-size: clamp(22px, 5.5vw, 40px); line-height: 1.15; }
h2 { font-size: clamp(18px, 4.8vw, 28px); line-height: 1.2; }
h3 { font-size: clamp(16px, 4.2vw, 24px); line-height: 1.25; }

/* Feature grid: 3 → 2 → 1 columns */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Checkout layout: stack columns on mobile */
@media (max-width: 980px) {
  .grid-ck { grid-template-columns: 1fr; }
  .wrap { padding: 18px; }
  .panel { padding: 18px; }
  .brand-lg img { width: 64px; height: 64px; }
  .price { font-size: 34px; }
}

/* Header/nav compact on phones */
@media (max-width: 760px) {
  .container { padding: 16px; }
  .brand img { width: 44px; height: 44px; }
  .navlinks { gap: 8px; }
  .btn, .cta { padding: 10px 14px; border-radius: 10px; }
  .card { padding: 14px; }
  .hero-actions { gap: 10px; }
}

/* Buttons: allow text wrap for Greek strings */
button, .btn, .cta {
  white-space: normal;
}

/* Bullet lists spacing tighter on phone */
@media (max-width: 760px) {
  .bullets li { margin: 8px 0; }
}

/* currency switcher */
.currency-switcher{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.currency-switcher select{ padding:6px 10px; border-radius:10px; border:1px solid rgba(0,0,0,.15); background:rgba(255,255,255,.9); }
@media (max-width:720px){
  .currency-switcher{ margin:12px 0 0; }
}

/* compact currency switcher near CTA */
.currency-switcher.compact{
  display:inline-flex; align-items:center; margin-left:12px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:12px; padding:2px 6px;
}
.currency-switcher.compact select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:transparent; border:none; color:#fff;
  font-weight:600; padding:4px 4px; border-radius:8px;
}
.currency-switcher.compact select:focus{ outline:none; box-shadow:0 0 0 2px rgba(90,132,255,.35); }
@media (max-width:720px){
  .currency-switcher.compact{ margin-left:8px; }
}

.pill.lifetime{ background:rgba(80,200,120,.15); border:1px solid rgba(80,200,120,.35); }

.currency-note{ color:#3cf; font-weight:600; }
@media (max-width:720px){ .currency-note{ color:#3cf; font-weight:600; } }


/* Electric blue emphasis for the currency note */
.currency-note{
  color:#7DF9FF !important;
  font-weight:700;
  text-shadow:0 0 6px rgba(125,249,255,.55);
  letter-spacing:.2px;
}


/* Electric blue emphasis */
.electric{ color:#7DF9FF !important; font-weight:800; text-shadow:0 0 6px rgba(125,249,255,.55); letter-spacing:.2px; }

/* Contact page */
.contact-grid{display:grid;grid-template-columns:1fr;gap:2rem;max-width:980px;margin:0 auto}
@media(min-width:900px){.contact-grid{grid-template-columns:1fr 1fr}}
.contact-form .form-row{display:flex;flex-direction:column;margin-bottom:1rem}
.contact-form input,.contact-form textarea{padding:.75rem;border-radius:.75rem;border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.25);outline:none}
.contact-form input:focus,.contact-form textarea:focus{border-color:rgba(255,255,255,.35)}
.page-title{font-size:2.25rem;line-height:1.2;margin-bottom:.5rem}
.lead{opacity:.9;margin-bottom:2rem}

/* Contact simple */
.contact-simple{display:flex;flex-direction:column;gap:1rem}
.contact-simple .muted{opacity:.85}

/* Electric blue email styling */
.electric-blue{color:#00E5FF;font-weight:700;text-shadow:0 0 6px rgba(0,229,255,.6),0 0 18px rgba(0,229,255,.35);text-decoration:none}
.electric-blue:hover,.electric-blue:focus{text-decoration:underline}

/* Inline contact block spacing */
.contact-inline{max-width:980px;margin:8px 0 0 0;text-align:left}


/* === Mobile nav spacing tweaks === */
@media (max-width: 520px){
  .navlinks{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .navlinks .btn{
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.95rem;
  }
  .brand-name{
    font-size: 1rem;
  }
}


/* Auto-inserted: backtests alignment */
.backtests { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.backtest-card { background: #111; border-radius: 16px; padding: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.2); }
.backtest-card img { width: 100%; height: auto; border-radius: 12px; display: block; }
.backtest-card figcaption { margin-top: 8px; font-size: 0.9rem; opacity: 0.85; text-align: center; }

/* Remove top border from footer section */
footer.section{ border-top: none !important; }

.electric-blue-strong{color:#33F5FF;font-weight:800;text-shadow:0 0 8px rgba(0,229,255,.9),0 0 22px rgba(0,229,255,.55),0 0 36px rgba(0,229,255,.35);text-decoration:none}

.electric-blue-ultra{color:#33F5FF;font-weight:900;text-shadow:0 0 10px rgba(0,245,255,.95),0 0 26px rgba(0,245,255,.65),0 0 42px rgba(0,245,255,.45);text-decoration:none}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}


/* Balanced card spacing for System Overview */
.feature{display:flex;flex-direction:column;gap:8px}
.feature h3{margin:0 0 8px 0}
.feature p{margin:0 0 8px 0;line-height:1.6}
.feature p:last-child{margin-bottom:0}
@media (max-width: 980px){
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media (max-width: 640px){
  .feature-grid{grid-template-columns:1fr;gap:16px}
}

/* Equalized spacing for tab buttons */
.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.tab{margin:0}


/* Slight upward nudge for the middle System Overview card */
.feature-grid .feature:nth-child(2){ transform: translateY(-10px); }
@media (max-width: 980px){
  .feature-grid .feature:nth-child(2){ transform: none; } /* reset on smaller screens */
}
