/* =====================================================
   oplacam.to – portal płatności
   Broker Usług sp. z o.o.
   ===================================================== */

:root {
  --color-bg:        #0a0f1c;
  --color-surface:   #0f172a;
  --color-surface2:  #1e293b;
  --color-border:    #334155;
  --color-text:      #f8fafc;
  --color-muted:     #94a3b8;
  --color-disabled:  #64748b;
  --color-green:     #22c55e;
  --color-green-h:   #16a34a;
  --color-teal:      #2dd4bf;
  --color-violet:    #6366f1;
  --color-violet-h:  #4f46e5;
  --color-orange:    #f97316;
  --color-red:       #ef4444;
  --color-link:      #60a5fa;
  --radius:          12px;
  --radius-lg:       20px;
  --shadow:          0 4px 24px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { color: #93c5fd; }

/* ===== NAV ===== */
.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--color-green); }
.nav-logo .icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-green), var(--color-teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: var(--color-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface2); }
.btn-nav {
  padding: 9px 22px !important;
  background: var(--color-green) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600;
  font-size: 14px !important;
}
.btn-nav:hover { background: var(--color-green-h) !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: none; cursor: pointer;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-green), #16a34a);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.25); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-green); color: var(--color-green); }
.btn-violet {
  background: linear-gradient(135deg, var(--color-violet), var(--color-violet-h));
  color: #fff;
}
.btn-violet:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  padding: 90px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--color-green);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}
.hero h1 .accent { color: var(--color-green); }
.hero .sub {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.stat-item { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--color-green); line-height: 1; }
.stat-label { font-size: 13px; color: var(--color-muted); margin-top: 4px; }

/* ===== FEATURES ===== */
.section { padding: 72px 32px; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.8px; }
.section-title p { color: var(--color-muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover { border-color: var(--color-green); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(34,197,94,0.08); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.icon-green  { background: rgba(34,197,94,0.12); }
.icon-teal   { background: rgba(45,212,191,0.12); }
.icon-violet { background: rgba(99,102,241,0.12); }
.icon-orange { background: rgba(249,115,22,0.12); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--color-muted); font-size: 14px; line-height: 1.65; }

/* ===== HOW IT WORKS ===== */
.steps { max-width: 900px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.step-item { text-align: center; padding: 20px; position: relative; }
.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--color-green), var(--color-teal));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 16px;
}
.step-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-item p { color: var(--color-muted); font-size: 13px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #0d2a14, #1a3d2e);
  border-top: 1px solid rgba(34,197,94,0.2);
  border-bottom: 1px solid rgba(34,197,94,0.2);
  padding: 64px 32px;
  text-align: center;
}
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--color-muted); margin-bottom: 32px; font-size: 16px; }

/* ===== PAYMENT BADGES ===== */
.payment-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.badge-item {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--color-muted);
  display: flex; align-items: center; gap: 6px;
}
.badge-item .bi { color: var(--color-green); }

/* ===== FOOTER ===== */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 32px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--color-muted); font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--color-muted); font-size: 14px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  max-width: 1100px; margin: 40px auto 0;
  font-size: 13px; color: var(--color-muted);
}
.company-info small { color: var(--color-muted); font-size: 12px; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.login-card .sub  { color: var(--color-muted); font-size: 14px; text-align: center; margin-bottom: 32px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--color-muted); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 14px 18px;
  background: var(--color-surface2);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 17px;
  transition: border-color 0.2s;
  outline: none; letter-spacing: 0.5px;
}
.form-input:focus { border-color: var(--color-green); }
.form-input::placeholder { color: var(--color-disabled); font-size: 15px; }
.form-hint { font-size: 12px; color: var(--color-muted); margin-top: 6px; }
.alert {
  padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-info  { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.sms-digits {
  display: flex; gap: 6px; justify-content: center; margin: 8px 0 24px;
  flex-wrap: wrap;
}
.sms-digit {
  width: 40px; height: 50px;
  background: var(--color-surface2);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  text-align: center; font-size: 22px; font-weight: 700;
  color: var(--color-text); outline: none;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.sms-digit:focus { border-color: var(--color-green); }
.back-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--color-muted); }
.back-link a { color: var(--color-link); }

/* ===== PANEL ===== */
.panel-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.panel-greeting h2 { font-size: 24px; font-weight: 800; }
.panel-greeting p { color: var(--color-muted); font-size: 14px; }
.wallet-card {
  background: linear-gradient(135deg, #0d2a14, #1a3d2e);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.wallet-balance { }
.wallet-balance .label { font-size: 13px; color: rgba(134,239,172,0.8); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.wallet-balance .amount { font-size: 48px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }
.wallet-balance .currency { font-size: 22px; font-weight: 500; color: rgba(255,255,255,0.7); }
.wallet-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.panel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.panel-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
}
.panel-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.status-ok  { color: var(--color-green); font-size: 12px; font-weight: 600; }
.status-warn { color: var(--color-orange); font-size: 12px; font-weight: 600; }
.status-err  { color: var(--color-red); font-size: 12px; font-weight: 600; }

.sub-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.sub-item:last-child { border-bottom: none; }
.sub-name { font-weight: 600; }
.sub-detail { color: var(--color-muted); font-size: 12px; }
.price-tag { color: var(--color-green); font-weight: 700; }

.tx-list { }
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--color-border);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 38px; height: 38px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.tx-plus  { background: rgba(34,197,94,0.12); color: var(--color-green); }
.tx-minus { background: rgba(249,115,22,0.12); color: var(--color-orange); }
.tx-info { flex: 1; }
.tx-title { font-size: 14px; font-weight: 600; }
.tx-date  { font-size: 12px; color: var(--color-muted); }
.tx-amount { font-weight: 700; font-size: 15px; }
.tx-amount.plus  { color: var(--color-green); }
.tx-amount.minus { color: var(--color-orange); }

/* ===== STATIC PAGES ===== */
.static-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px;
}
.static-page h1 { font-size: 34px; font-weight: 900; margin-bottom: 8px; }
.static-page .meta { color: var(--color-muted); font-size: 13px; margin-bottom: 40px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.static-page h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; color: var(--color-green); }
.static-page h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.static-page p { color: var(--color-muted); margin-bottom: 14px; line-height: 1.75; }
.static-page ul, .static-page ol { color: var(--color-muted); margin: 0 0 14px 24px; line-height: 1.8; }
.static-page table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.static-page th { background: var(--color-surface2); padding: 10px 14px; text-align: left; font-weight: 700; border: 1px solid var(--color-border); }
.static-page td { padding: 10px 14px; border: 1px solid var(--color-border); color: var(--color-muted); }
.info-box {
  background: var(--color-surface2);
  border-left: 4px solid var(--color-green);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--color-muted);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0 40px;
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.pricing-card:hover { border-color: var(--color-green); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(34,197,94,0.08); }
.pricing-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.pricing-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.pricing-desc { color: var(--color-muted); font-size: 13px; line-height: 1.65; margin-bottom: 20px; }
.pricing-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.pricing-price .from { color: var(--color-muted); font-size: 14px; }
.pricing-price .amount { font-size: 42px; font-weight: 900; color: var(--color-green); letter-spacing: -1px; line-height: 1; }
.pricing-price .currency { color: var(--color-muted); font-size: 14px; }
.pricing-features {
  list-style: none; margin: 0 0 24px; padding: 0;
  flex: 1;
}
.pricing-features li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 14px; color: var(--color-muted);
}
.pricing-features li .bi { color: var(--color-green); font-size: 14px; }

/* ===== DEMO BANNER ===== */
.demo-banner {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #a5b4fc;
  text-align: center;
}
.demo-banner strong { color: #c7d2fe; }
.demo-banner a { color: #818cf8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-main { padding: 12px 16px; }
  .nav-logo { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 16px 50px; }
  .section { padding: 52px 16px; }
  .hero-stats { gap: 24px; }
  .wallet-card { flex-direction: column; }
  .panel-wrap { padding: 20px 16px; }
  .sms-digits { gap: 4px; }
  .sms-digit { width: 36px; height: 46px; font-size: 20px; border-radius: 8px; }
  .login-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
