/* ============================================================
   QuoteFixer — shared stylesheet
   Wszystkie strony używają tego pliku.
   ============================================================ */

:root {
  --navy-900: #0F1B3D;
  --navy-800: #18254B;
  --navy-700: #1F2D5C;
  --navy-50:  #F4F6FB;
  --accent:   #FF6B35;
  --accent-dark: #E15623;
  --green:    #2E8B57;
  --green-light: #DCF1E4;
  --gray-900: #1A1A1A;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #FAFAFA;
  --white:    #FFFFFF;
  --sand-50:  #FAF8F4;
  --red:      #EF4444;
  --shadow-sm: 0 1px 2px rgba(15,27,61,0.05);
  --shadow-md: 0 4px 12px rgba(15,27,61,0.08);
  --shadow-lg: 0 20px 40px rgba(15,27,61,0.12);
  --radius: 12px;
  --radius-lg: 20px;

  /* Flag colours — reactive to <html lang> */
  --flag-soft-1: #BDCEE9;
  --flag-soft-2: #F0C0CC;
  --flag-soft-3: #E0E9F5;
  --flag-accent: #8C1F2E;
  --flag-accent-2: #2C3E73;
  --flag-gradient-angle: 180deg;
}
html[lang="pl"] {
  --flag-soft-1: #FFFFFF;
  --flag-soft-2: #EFB5C0;
  --flag-soft-3: #FBE2E8;
  --flag-accent: #B81F33;
  --flag-accent-2: #B81F33;
  --flag-gradient-angle: 180deg;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ===== Flag bar ===== */
.flag-bar {
  height: 5px;
  background: linear-gradient(90deg, #012169 0%, #012169 33.33%, #fff 33.33%, #fff 66.66%, #C8102E 66.66%, #C8102E 100%);
  transition: background 0.4s ease;
  position: relative;
  z-index: 60;
}
html[lang="pl"] .flag-bar {
  background: linear-gradient(180deg, #fff 50%, #DC143C 50%);
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
header.site {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--navy-900); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 32px; height: 32px; background: var(--navy-900); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 18px; position: relative; }
.logo-mark::after { content: ''; position: absolute; bottom: -3px; right: -3px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; border: 2px solid var(--white); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--navy-900); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 0; background: var(--gray-100); border-radius: 8px; padding: 3px; font-size: 13px; font-weight: 600; }
.lang-switch a, .lang-switch button { border: none; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--gray-500); font-family: inherit; font-weight: 600; transition: all 0.2s; text-decoration: none; }
.lang-switch a.active, .lang-switch button.active { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }

/* ===== Buttons ===== */
.btn { padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy-900); color: var(--white); }
.btn-secondary:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: var(--green); color: var(--white); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.form-label.required::after { content: ' *'; color: var(--red); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-help { font-size: 13px; color: var(--gray-500); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--red); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--gray-700); line-height: 1.5; }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-lg { padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.card-title { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; border-left: 4px solid; }
.alert-success { background: var(--green-light); border-color: var(--green); color: #14532D; }
.alert-error { background: #FEE2E2; border-color: var(--red); color: #7F1D1D; }
.alert-info { background: var(--navy-50); border-color: var(--navy-700); color: var(--navy-900); }
.alert-warning { background: #FEF3C7; border-color: #F59E0B; color: #78350F; }

/* ===== Wizard ===== */
.wizard-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.wizard-step { flex: 1; height: 4px; background: var(--gray-200); border-radius: 2px; transition: background 0.3s; }
.wizard-step.completed { background: var(--green); }
.wizard-step.active { background: var(--accent); }

.wizard-header { text-align: center; margin-bottom: 28px; }
.wizard-header .step-label { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.wizard-header h1 { font-size: 28px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.wizard-header p { color: var(--gray-700); margin-top: 8px; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }

/* ===== Section ===== */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; color: var(--navy-900); font-weight: 800; margin-bottom: 20px; }
h1 .accent { color: var(--accent); }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy-900); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 22px; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--gray-700); line-height: 1.6; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(var(--flag-gradient-angle), var(--flag-soft-1) 0%, var(--flag-soft-3) 35%, #FFFFFF 55%, var(--flag-soft-3) 75%, var(--flag-soft-2) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Trust statement ===== */
.trust-statement { background: var(--navy-900); color: var(--white); padding: 64px 0; }
.trust-statement h2 { color: var(--white); text-align: center; max-width: 900px; margin: 0 auto; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.3; }
.trust-statement .accent { color: var(--accent); }

/* ===== Categories ===== */
.categories { background: linear-gradient(180deg, #FFFFFF 0%, var(--flag-soft-3) 100%); transition: background 0.5s ease; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--white); padding: 24px 20px; border-radius: var(--radius); text-align: left; text-decoration: none; color: var(--navy-900); border: 1px solid var(--gray-200); transition: all 0.2s; cursor: pointer; display: block; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cat-icon { font-size: 28px; margin-bottom: 12px; }
.cat-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--gray-500); }

/* ===== How ===== */
.how { background: linear-gradient(180deg, var(--flag-soft-3) 0%, #FFFFFF 100%); transition: background 0.5s ease; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.how-card { background: var(--white); padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--gray-200); position: relative; }
.how-num { font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; letter-spacing: -0.04em; }
.how-title { font-weight: 700; font-size: 17px; color: var(--navy-900); margin-bottom: 8px; }
.how-desc { font-size: 14px; color: var(--gray-700); line-height: 1.5; }

/* ===== Verification ===== */
.verification { background: var(--white); }
.verif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.verif-steps { display: flex; flex-direction: column; gap: 24px; }
.verif-step { display: flex; gap: 20px; align-items: flex-start; padding: 20px; background: var(--navy-50); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.verif-num { width: 36px; height: 36px; background: var(--navy-900); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.verif-title { font-weight: 700; color: var(--navy-900); margin-bottom: 4px; font-size: 16px; }
.verif-desc { font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.verif-visual { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-radius: var(--radius-lg); padding: 40px; color: var(--white); }
.verif-visual h3 { font-size: 22px; margin-bottom: 16px; color: var(--white); }
.verif-visual .accent { color: var(--accent); }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.check-list li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.check-icon { width: 22px; height: 22px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; color: var(--white); }

/* ===== Polish-speaking highlight (pastel) ===== */
.polish-highlight {
  background: linear-gradient(135deg, #EEF3FA 0%, #FFFFFF 40%, #FFFFFF 60%, #FCE1E7 100%);
  color: var(--gray-900);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15,27,61,0.04);
  border-bottom: 1px solid rgba(15,27,61,0.04);
}
.polish-highlight::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184,31,51,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.polish-highlight::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(44,62,115,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.polish-highlight h2 { color: var(--navy-900); }
.polish-highlight .section-eyebrow { color: #B81F33; }
.ph-text p { color: var(--gray-700); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ph-stat { background: rgba(255,255,255,0.85); padding: 20px; border-radius: 12px; backdrop-filter: blur(8px); border: 1px solid rgba(184,31,51,0.12); box-shadow: 0 4px 20px rgba(15,27,61,0.04); }
.ph-stat-num { font-size: 32px; font-weight: 800; color: var(--navy-900); }
.ph-stat-label { font-size: 13px; color: var(--gray-700); margin-top: 4px; }

/* ===== Trades CTA ===== */
.trades-cta { background: var(--navy-900); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.trades-cta::before { content: ''; position: absolute; top: 0; left: -10%; width: 60%; height: 100%; background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 60%); }
.trades-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.trades-cta h2 { color: var(--white); margin-bottom: 16px; }
.trades-cta p { color: rgba(255,255,255,0.85); font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.trades-cta-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.trades-cta-list li { list-style: none; display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.95); }

/* ===== Pricing card ===== */
.pricing-card { background: var(--white); color: var(--navy-900); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 22px; margin-bottom: 8px; color: var(--navy-900); }
.pricing-card .price { font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; margin: 12px 0; }
.pricing-card .price span { font-size: 16px; color: var(--gray-500); font-weight: 500; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.pricing-features li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); }
.pricing-features .check-icon { background: var(--green); width: 20px; height: 20px; font-size: 11px; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== Trade cards (catalog & profile) ===== */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.trade-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; transition: all 0.2s; }
.trade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trade-card-head { display: flex; gap: 14px; margin-bottom: 16px; }
.trade-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 20px; flex-shrink: 0; }
.trade-name { font-weight: 700; font-size: 17px; color: var(--navy-900); }
.trade-cat { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.verified-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--green-light); color: var(--green); padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; margin-top: 6px; }
.pl-pill { display: inline-flex; align-items: center; gap: 5px; background: #FEE2E2; color: #B81F33; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.trade-stats { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); font-size: 13px; color: var(--gray-700); }
.trade-stats strong { color: var(--navy-900); font-weight: 700; font-size: 15px; display: block; }
.trade-bio { font-size: 14px; color: var(--gray-700); line-height: 1.5; margin-top: 14px; min-height: 60px; }

/* ===== Tables (admin) ===== */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tbl th { background: var(--navy-900); color: var(--white); padding: 12px 14px; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: 14px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--gray-50); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-pending  { background: var(--gray-200); color: var(--gray-700); }
.badge-review   { background: #FEF3C7; color: #78350F; }
.badge-verified { background: var(--green-light); color: var(--green); }
.badge-elite    { background: #FED7AA; color: #9A3412; }
.badge-rejected { background: #FEE2E2; color: #B91C1C; }
.badge-suspended{ background: #E5E7EB; color: #374151; }

/* ===== Admin layout ===== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy-900); color: var(--white); padding: 24px 0; }
.admin-sidebar .logo { color: var(--white); padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar a { display: block; padding: 12px 24px; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.admin-sidebar a.active { background: var(--accent); color: var(--white); }
.admin-main { padding: 32px 40px; background: var(--gray-50); }
.admin-main h1 { font-size: 28px; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.stat-box .num { font-size: 32px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.stat-box .lbl { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ===== Footer ===== */
footer.site { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer.site a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--white); }
.footer-tag { font-size: 14px; line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 16px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .verif-grid, .ph-grid, .trades-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 540px) {
  .cat-grid, .how-grid, .footer-grid { grid-template-columns: 1fr; }
}
