/* ============================================
   CheckPlace — Shared CSS (extracted from index.html)
   Identyczny styl jak strona główna + dodatki dla podstron
   ============================================ */

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

:root {
  --green: #2ecc71; --green-dark: #27ae60; --teal: #1abc9c;
  --dark: #0a0e13; --dark2: #0f1419; --dark3: #1a1f27; --card: #141920;
  --border: rgba(255,255,255,0.07); --text: #e2e8f0; --muted: #7c8694;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--dark); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ============================================
   NAV — identyczny jak w index.html
   ============================================ */
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 5%; background: rgba(10,14,19,0.88); backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.logo-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--green), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 16px rgba(46,204,113,0.25); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { background: var(--green) !important; color: var(--dark) !important; padding: 9px 20px; border-radius: 8px; font-weight: 700 !important; transition: all 0.2s !important; }
.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-1px); }
.nav-secondary { border: 1px solid rgba(255,255,255,0.2) !important; color: #fff !important; padding: 9px 20px; border-radius: 8px; font-weight: 600 !important; transition: all 0.2s !important; }
.nav-secondary:hover { border-color: rgba(46,204,113,0.5) !important; background: rgba(46,204,113,0.06) !important; }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Nav user (gdy zalogowany) */
.nav-user { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 4px 14px 4px 4px; text-decoration: none !important; color: var(--text) !important; transition: all 0.2s; }
.nav-user:hover { border-color: rgba(46,204,113,0.3); color: #fff !important; }
.nav-user img, .nav-user .nu-avatar { width: 26px; height: 26px; border-radius: 50%; }
.nav-user .nu-avatar { background: linear-gradient(135deg, var(--green), var(--teal)); display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 800; font-size: 0.74rem; }
.nav-user .nu-name { font-size: 0.82rem; font-weight: 600; }

/* ============================================
   PAGE HERO (mniejszy hero dla podstron)
   ============================================ */
.page-hero { padding: 80px 5% 50px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; top:-80px; left:50%; transform:translateX(-50%); width:800px; height:400px; background:radial-gradient(ellipse, rgba(46,204,113,0.10), transparent 70%); pointer-events:none; }
.page-hero .container { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.22); color: var(--green); padding: 7px 18px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.02em; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.5)} }

h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; max-width: 800px; margin: 0 auto; }
h1 .accent { color: var(--green); font-style: italic; }
.hero-sub { margin-top: 20px; max-width: 580px; margin-left: auto; margin-right: auto; font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7; }
.hero-sub strong { color: #fff; font-weight: 700; }

.fomo { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.fomo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }

/* ============================================
   SECTIONS — identyczne jak w index.html
   ============================================ */
section { padding: 100px 5%; }
.section-label { display: inline-block; color: var(--green); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h2 .accent { color: var(--green); }
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-top: 14px; max-width: 480px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 640px; margin: 0 auto; }

/* ============================================
   BUTTONS — identyczne
   ============================================ */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--dark); padding: 16px 32px; border-radius: 14px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.25s; box-shadow: 0 0 30px rgba(46,204,113,0.35), 0 4px 12px rgba(0,0,0,0.3); animation: cta-glow 3s ease-in-out infinite; border: none; cursor: pointer; font-family: inherit; justify-content: center; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 0 50px rgba(46,204,113,0.5), 0 8px 24px rgba(0,0,0,0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; animation: none; }
.btn-primary-block { width: 100%; }
@keyframes cta-glow { 0%,100%{box-shadow:0 0 30px rgba(46,204,113,0.35),0 4px 12px rgba(0,0,0,0.3)} 50%{box-shadow:0 0 50px rgba(46,204,113,0.5),0 4px 12px rgba(0,0,0,0.3)} }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--text); padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 0.88rem; border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; cursor: pointer; font-family: inherit; }
.btn-secondary:hover { border-color: rgba(46,204,113,0.5); color: var(--green); background: rgba(46,204,113,0.04); }

/* Mega reward styled element (przejęte z index) */
.mega-reward { background: radial-gradient(ellipse at center, rgba(46,204,113,0.15), transparent 70%); border: 1px solid rgba(46,204,113,0.2); border-radius: 14px; padding: 10px 24px; font-size: 1rem; font-weight: 800; color: #fff; text-align: center; animation: mega-pulse 3s ease-in-out infinite; }
.mega-reward span { color: var(--green); font-size: 1.3rem; }
@keyframes mega-pulse { 0%,100%{box-shadow:0 0 20px rgba(46,204,113,0.1)} 50%{box-shadow:0 0 40px rgba(46,204,113,0.25)} }

/* ============================================
   STORE BTNS (z index)
   ============================================ */
.store-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:34px; }
.store-btn { display:inline-flex; align-items:center; gap:10px; background:var(--dark3); border:1px solid var(--border); color:var(--text); text-decoration:none; padding:14px 24px; border-radius:12px; font-size:0.88rem; font-weight:600; transition:all 0.25s; }
.store-btn:hover { border-color:rgba(46,204,113,0.4); background:rgba(46,204,113,0.06); transform: translateY(-2px); }
.store-btn-icon { font-size:1.5rem; }
.store-btn-text small { display:block; font-size:0.68rem; color:var(--muted); font-weight:400; }

/* ============================================
   FORMS — w stylu CheckPlace
   ============================================ */
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row label { font-size: 0.78rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.form-row label .req { color: var(--green); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: rgba(46,204,113,0.5);
  background: rgba(46,204,113,0.04);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.08);
}
.form-row textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-row .hint { font-size: 0.74rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.form-row .hint a { color: var(--green); text-decoration: none; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.form-checkbox input { margin-top: 3px; accent-color: var(--green); width: auto !important; }

/* Wrapper formularzy (jak download-inner z index) */
.form-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  margin-top: 30px;
}
.form-wrapper::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(46,204,113,0.10), transparent 70%);
  pointer-events: none;
}
.form-wrapper > * { position: relative; z-index: 1; }

/* ============================================
   LOGIN GATE — w stylu CheckPlace
   ============================================ */
.login-gate {
  max-width: 460px;
  margin: 40px auto 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.login-gate::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(46,204,113,0.14), transparent 70%);
  pointer-events: none;
}
.login-gate-content { position: relative; z-index: 1; }
.login-gate h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.login-gate > .login-gate-content > p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }

.login-providers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.login-provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}
.login-provider:hover { border-color: rgba(46,204,113,0.4); background: rgba(46,204,113,0.06); transform: translateY(-1px); }
.login-provider svg { width: 20px; height: 20px; }
.login-provider-apple { background: #000; border-color: #000; color: #fff; }
.login-provider-apple:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

.login-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.75rem; margin: 20px 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.email-form { display: flex; flex-direction: column; gap: 12px; }
.email-form .form-row { margin: 0; }

.login-form-toggle { margin-top: 18px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.login-form-toggle a, .login-form-toggle button { color: var(--green); text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; font-weight: 600; padding: 0; }
.login-form-toggle a:hover, .login-form-toggle button:hover { text-decoration: underline; }

.login-error {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.3);
  color: #ff7a6c;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
  text-align: left;
}
.login-error.active { display: block; }

.login-footnote { font-size: 0.74rem; color: var(--muted); margin-top: 22px; line-height: 1.5; }

/* ============================================
   FOOTER — identyczny jak w index.html
   ============================================ */
footer { background:var(--dark2); border-top:1px solid var(--border); padding:56px 5% 28px; }
.footer-top { display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:40px; }
.footer-brand { max-width: 260px; }
.footer-brand p { color:var(--muted); font-size:0.85rem; margin-top:12px; line-height:1.65; }
.footer-links h4 { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted); margin-bottom:14px; font-weight: 600; }
.footer-links a { display:block; color:var(--muted); text-decoration:none; font-size:0.85rem; margin-bottom:8px; transition:color 0.2s; }
.footer-links a:hover { color:var(--text); }
.footer-bottom { border-top:1px solid var(--border); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.footer-bottom p { color:var(--muted); font-size:0.78rem; }

/* ============================================
   LOADING
   ============================================ */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 80px 20px; color: var(--muted); font-size: 0.9rem; min-height: 50vh; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   FADE-IN (z index)
   ============================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark2); padding: 20px; gap: 14px; border-bottom: 1px solid var(--border); }
  .hamburger { display: block; }
}
@media(max-width:600px) {
  section { padding: 60px 5%; }
  .page-hero { padding: 50px 5% 30px; }
  .login-gate { padding: 32px 22px; }
  .form-wrapper { padding: 28px 22px; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem) !important; }
}
