/* ============================================================
   SolidPanel.lv — shared stylesheet
   Covers: landing (v3a) + registration (v2)
   ============================================================ */

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

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --fg: #1f1a14;
  --card: #faf7f4;
  --primary: #f27d20;
  --primary-fg: #ffffff;
  --primary-hover: #e06e15;
  --accent: #b8461a;
  --muted: #8a7a6b;
  --border: #e8e0d8;
  --input-bg: #ffffff;
  --gradient: linear-gradient(135deg, #f27d20, #b8461a);
  --hero-bg: linear-gradient(180deg, #faf7f4 0%, #f0e8df 100%);
  --shadow: 0 8px 32px rgba(30,20,10,0.08);
  --radius: 12px;
  --error: #dc2626;
}

/* ---------- Base ---------- */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
/* Registration page uses a flex column body to push footer down */
body.page-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; }
.logo-text span { color: var(--muted); font-weight: 400; font-size: 14px; }

.nav-btns { display: flex; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--primary); }
.btn-ghost:hover { background: rgba(242,125,32,0.1); }

.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }

/* Alias used in registration nav */
.btn-primary-nav { background: var(--primary); color: var(--primary-fg); }
.btn-primary-nav:hover { background: var(--primary-hover); }

.btn-outline { background: transparent; border: 1px solid rgba(242,125,32,0.3); color: var(--fg); }
.btn-outline:hover { background: rgba(242,125,32,0.1); }

.btn-lg { padding: 14px 32px; font-size: 16px; }
.glow { box-shadow: 0 0 30px rgba(242,125,32,0.2); }

/* ---------- Mobile menu / hamburger ---------- */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--fg); font-size: 24px;
}
.mobile-menu {
  display: none; padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--hero-bg);
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(242,125,32,0.08);
  filter: blur(100px);
  animation: pulse 3s ease-in-out infinite;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242,125,32,0.3);
  background: rgba(242,125,32,0.08);
  font-size: 14px; color: var(--primary); font-weight: 500;
  margin-bottom: 32px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 3s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 24px;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--muted);
  max-width: 600px; margin: 0 auto 40px;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 64px; flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.stat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(250,247,244,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232,224,216,0.5);
  box-shadow: var(--shadow);
}
.stat-icon { font-size: 24px; }
.stat-value {
  font-size: 28px; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- Features ---------- */
.features { padding: 96px 0; position: relative; }
.features-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(242,125,32,0.03) 0%, transparent 100%);
  pointer-events: none;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(232,224,216,0.5);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(242,125,32,0.4); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(242,125,32,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card:hover .feature-icon { background: rgba(242,125,32,0.2); }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Gift cards ---------- */
.giftcards { padding: 48px 0 96px; }
.gc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.gc-card {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(232,224,216,0.5);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.gc-card:hover { border-color: rgba(242,125,32,0.4); transform: translateY(-4px); }
.gc-img { aspect-ratio: 4/3; overflow: hidden; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gc-card:hover .gc-img img { transform: scale(1.05); }
.gc-name {
  padding: 16px 16px 4px; text-align: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.gc-value {
  padding: 0 16px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin:-7px 0px 7px 0px;
}
.gc-cost {
  padding: 0 16px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.gc-action {
  padding: 0 16px 16px;
  display: flex; justify-content: center;
}
.gc-action .btn { width: 100%; justify-content: center; }

/* Balvas page — centered points card */
.user-summary.points-only {
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 32px;
}
.user-points.centered {
  align-items: center;
  text-align: center;
}

/* ============================================================
   REGISTRATION PAGE
   ============================================================ */

.main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
  padding-top: calc(64px + 3rem);
}

.form-card {
  width: 100%; max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}
.form-card h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.form-card .subtitle { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }

.form-row { display: flex; gap: 1rem; }
.form-group {
  display: flex; flex-direction: column; gap: 0.35rem;
  margin-bottom: 1.25rem; flex: 1;
}
.form-group label { font-size: 0.8125rem; font-weight: 500; color: var(--fg); }
.form-group input,
.form-group select {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--input-bg);
  color: var(--fg);
  transition: border-color .2s;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7a6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242,125,32,.15);
}

.checkbox-group {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-bottom: 1.25rem; cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0; cursor: pointer;
}
.checkbox-group label {
  font-size: 0.8125rem; color: var(--muted);
  line-height: 1.4; cursor: pointer;
}
.checkbox-group label a { color: var(--primary); text-decoration: underline; }

.btn-submit {
  width: 100%; height: 44px;
  border: none; border-radius: 10px;
  background: var(--primary); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--primary-hover); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.login-link {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.8125rem; color: var(--muted);
}
.login-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.login-link a:hover { text-decoration: underline; }

.error-msg {
  font-size: 0.75rem; color: var(--error);
  margin-top: 2px; display: none;
  font-weight: 600;
  padding-left: 5px;
  border: 1px solid var(--error);
  border-radius: 5px;
}

/* ============================================================
   LOGIN PAGE
   Matches .form-card styling from registration for visual parity.
   Uses shared .main, .form-group, .btn — only new selectors below.
   ============================================================ */
.login-card {
  width: 100%; max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-header { text-align: left; padding: 2.5rem 2rem 1.5rem; }
.login-header .logo-icon {
  width: 48px; height: 48px; font-size: 1.25rem;
  margin: 0 auto 1rem;
}
.login-header h1 {
  font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem;
}
.login-header p {
  font-size: 0.9rem; color: var(--muted);
}

.login-body { padding: 0 2rem 2rem; }

.forgot-link {
  display: block; text-align: right;
  font-size: .8rem; color: var(--primary);
  text-decoration: none; margin-top: .35rem;
  transition: opacity .2s;
}
.forgot-link:hover { opacity: .8; }

.btn-full { display: flex; width: 100%; padding: .75rem; justify-content: center; }

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

.btn-social {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  margin-bottom: .6rem; gap: .6rem; font-weight: 500;
}
.btn-social:hover { border-color: var(--primary); background: rgba(242,125,32,.04); }
.btn-social svg  { width: 20px; height: 20px; }

.login-footer-card {
  text-align: center;
  padding: 1.25rem 2rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted);
}
.login-footer-card a {
  color: var(--primary); text-decoration: none; font-weight: 600;
}
.login-footer-card a:hover { text-decoration: underline; }

.checkbox-row {
  display: flex; align-items: center; gap: .5rem; margin-top: .25rem;
}
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.checkbox-row label {
  font-size: .85rem; color: var(--muted); cursor: pointer;
}

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  text-align: center; font-size: 12px; color: var(--muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-btns { display: none; }
  .hamburger { display: block; }
  .mobile-menu.active { display: block; }
  .mobile-menu .nav-btns { display: flex; margin-top: 12px; }

  .stats-grid { grid-template-columns: 1fr; }
  .features-grid,
  .gc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .login-header { padding: 2rem 1.5rem 1rem; }
  .login-body   { padding: 0 1.5rem 1.5rem; }
}

@media (max-width: 640px) {
  .form-row { flex-direction: column; gap: 0; }
  .form-card { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .features-grid,
  .gc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Static content pages (Privacy, Terms, etc.) ---------- */
.content { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 4rem; line-height: 1.75; }
.content h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.content .subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--primary); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.content h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content p { margin-bottom: 1rem; font-size: 0.9375rem; color: var(--fg); }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; font-size: 0.9375rem; }
.content li { margin-bottom: 0.4rem; }
.content strong { font-weight: 600; }
.content a { color: var(--primary); }
.content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.875rem; }
.content th, .content td { border: 1px solid var(--border); padding: 0.6rem 0.75rem; text-align: left; }
.content th { background: var(--card); font-weight: 600; }

.footer-simple { margin-top: auto; border-top: 1px solid var(--border); padding: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 640px) {
  .content h1 { font-size: 1.5rem; }
  .content { padding: 2rem 1rem 3rem; }
}

/* ---------- FAQ page ---------- */
.faq-hero { text-align: center; padding: 4rem 1.5rem 2rem; }
.faq-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.faq-hero p { font-size: 1rem; color: var(--muted); max-width: 540px; margin: 0 auto; }

.faq-section { max-width: 720px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.faq-category { margin-bottom: 2.5rem; }
.faq-category h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--primary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--card); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 1rem 1.25rem; font-family: 'DM Sans', sans-serif; font-size: 0.9375rem; font-weight: 600; color: var(--fg); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .15s; }
.faq-question:hover { background: rgba(242,125,32,.05); }
.faq-question .icon { font-size: 1.25rem; color: var(--primary); transition: transform .25s; flex-shrink: 0; margin-left: 1rem; }
.faq-question.active .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-answer-inner { padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 640px) {
  .faq-hero h1 { font-size: 1.75rem; }
}

/* ============================================================
   CONTACT PAGE
   Mirrors .login-card layout. Adds textarea + info row support.
   ============================================================ */
.form-group textarea {
  height: 90px;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--input-bg);
  color: var(--fg);
  transition: border-color .2s;
  width: 100%;
}
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242,125,32,.15);
}

.contact-info {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted);
}
.contact-info a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

/* ===== Portal header (reuses .navbar / .container / .logo / .btn) ===== */
.navbar.portal .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar.portal .logo { margin-right: auto; }
.portal-nav { display: flex; align-items: center; gap: 4px; }
.portal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.portal-nav a:hover { background: rgba(242,125,32,0.1); color: var(--fg); }
.portal-nav a.active { background: rgba(242,125,32,0.15); color: var(--fg); }
.portal-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.portal-nav button.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.portal-nav button.profile-trigger:hover { background: rgba(242,125,32,0.1); }
.portal-nav button.profile-trigger svg { width: 18px; height: 18px; flex-shrink: 0; }
.portal-nav button.profile-trigger .chevron { width: 14px; height: 14px; transition: transform 0.2s; }
.portal-nav .profile-dropdown[data-open="true"] .profile-trigger,
.portal-nav button.profile-trigger.active { background: rgba(242,125,32,0.15); color: var(--fg); }
.portal-nav .profile-dropdown[data-open="true"] .chevron { transform: rotate(180deg); }

.profile-dropdown { position: relative; }
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 6px;
  display: none;
  z-index: 100;
}
.profile-dropdown[data-open="true"] .profile-menu { display: block; }
.profile-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s;
}
.profile-menu a:hover { background: rgba(242,125,32,0.1); }
.profile-menu .menu-separator { height: 1px; background: rgba(0,0,0,0.08); margin: 6px 4px; }
.profile-menu a.logout { color: #c0392b; }
.profile-menu a.logout:hover { background: rgba(192,57,43,0.08); }

@media (max-width: 640px) {
  .navbar.portal .container { gap: 8px; }
  .portal-nav a,
  .portal-nav button.profile-trigger { padding: 6px 10px; font-size: 14px; }
  .portal-nav a span,
  .portal-nav button.profile-trigger span { display: none; }
}

/* ============================================================
   PORTAL PAGE — dashboard (user summary, streak, surveys)
   ============================================================ */
.portal-main {
  flex: 1;
  padding: calc(64px + 2rem) 0 4rem;
}
.portal-main .container { display: flex; flex-direction: column; gap: 24px; }

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.dashboard-top > .user-summary,
.dashboard-top > .streak-card { height: 100%; min-width: 0; }
@media (max-width: 760px) {
  .dashboard-top { grid-template-columns: 1fr; }
}

/* User summary */
.user-summary {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.user-summary-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.user-info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.user-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-avatar svg { width: 28px; height: 28px; }
.user-greeting {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
}
.user-sub { font-size: 13px; color: var(--muted); }

.user-points {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  min-width: 180px;
}
.user-points-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  font-weight: 600;
}
.user-points-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  line-height: 1;
}
.user-points-value .points-number {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.points-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Streak card */
.streak-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.streak-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px;
}
.streak-header h2 {
  font-size: 20px; font-weight: 600; margin-bottom: 4px;
}
.streak-header p { font-size: 14px; color: var(--muted); max-width: 480px; }
.streak-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--primary);
  background: rgba(242,125,32,0.1);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.streak-track {
  display: flex; align-items: center;
  margin-bottom: 24px;
}
.streak-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.streak-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 14px;
  color: var(--muted);
}
.streak-step.done .streak-dot {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.streak-step.gift .gift-dot {
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: 20px;
  width: 44px; height: 44px;
  box-shadow: none;
}
.streak-step.gift.done .gift-dot {
  background: var(--primary);
  border-color: var(--primary);
}
.streak-label { font-size: 11px; color: var(--muted); }
.streak-step.done .streak-label { color: var(--fg); font-weight: 600; }
.streak-line {
  flex: 1; height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 18px;
}

/* Gift box */
.gift-box-wrap { display: flex; }
.gift-box {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: 100%;
  background: linear-gradient(135deg, rgba(242,125,32,0.08), rgba(184,70,26,0.08));
  border: 1px dashed rgba(242,125,32,0.4);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: default;
  pointer-events: none;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  transition: border-color 0.2s, background 0.3s;
}
.gift-box.locked {
  opacity: 0.85;
}
.gift-box.opened {
  border-style: solid;
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(242,125,32,0.18), rgba(184,70,26,0.12));
  cursor: default;
  animation: gift-box-open 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 0 0 rgba(242,125,32,0.5);
}
@keyframes gift-box-open {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(242,125,32,0.6); }
  20%  { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(242,125,32,0.25); }
  40%  { transform: scale(0.98); box-shadow: 0 0 0 18px rgba(242,125,32,0.12); }
  60%  { transform: scale(1.04); box-shadow: 0 8px 30px rgba(242,125,32,0.35); }
  100% { transform: scale(1); box-shadow: 0 8px 24px rgba(242,125,32,0.25); }
}
.gift-box-icon { font-size: 43px; flex-shrink: 0; transition: transform 0.3s; }
.gift-box.opened .gift-box-icon {
  animation: gift-icon-pop 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes gift-icon-pop {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-18deg) scale(1.35); }
  30%  { transform: rotate(14deg) scale(1.25); }
  45%  { transform: rotate(-10deg) scale(1.4); }
  60%  { transform: rotate(6deg) scale(1.3); }
  100% { transform: rotate(-10deg) scale(1.15); }
}
.gift-box-message {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}
.gift-box-reward {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; color: var(--primary);
  font-size: 15px;
  white-space: nowrap;
}

/* Surveys */
.surveys-section { margin-top: 8px; }
.surveys-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.surveys-header h2 { font-size: 22px; font-weight: 600; }
.surveys-count { font-size: 13px; color: var(--muted); }
.surveys-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 900px;
  margin: -16px auto 24px;
}

.survey-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; width: 100%; }
.survey-card {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.survey-card:hover {
  border-color: rgba(242,125,32,0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30,20,10,0.06);
}
.survey-main { flex: 1; min-width: 0; }
.survey-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(242,125,32,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.survey-main h3 {
  font-size: 16px; font-weight: 600;
  margin-bottom: 8px;
}
.survey-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--muted);
}
.survey-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  flex-shrink: 0;
}
.survey-points {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 16px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .user-summary { padding: 22px 16px; }
  .streak-header { flex-direction: column; }
  .streak-track { overflow-x: auto; padding-bottom: 8px; }
  .gift-box { flex-wrap: wrap; }
  .survey-card { flex-direction: column; align-items: flex-start; }
  .survey-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .portal-main { padding: calc(64px + 1rem) 0 3rem; }
  .portal-main .container { padding: 0 16px; }
  .user-points { min-width: 0; width: 100%; }
  .streak-card { padding: 20px 16px; }
}
html, body { overflow-x: hidden; }

/* Empty state for survey list */
.survey-empty {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.survey-empty-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 4px;
}
.survey-empty h3 {
  margin: 0;
  font-size: 20px;
  color: #2b2b2b;
}
.survey-empty p {
  margin: 0;
  max-width: 620px;
  color: #6b6b6b;
  line-height: 1.55;
}
@media (max-width: 480px) {
  .survey-empty { padding: 36px 20px; }
  .survey-empty h3 { font-size: 18px; }
}

/* ============================================================
   BALVA DETAIL PAGE
   ============================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

.balva-detail {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.balva-detail-title {
  font-size: 28px;
  font-weight: 700;
  padding: 28px 32px 20px;
  line-height: 1.25;
}
.balva-detail-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #fff;
  max-width: 360px;
  margin: 0 auto;
}
.balva-detail-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.balva-detail-body {
  padding: 28px 32px 32px;
}
.balva-detail-body p {
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 16px;
}
.balva-cost-line {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-size: 16px;
  margin: 24px 0 20px;
  color: var(--fg);
}
.balva-cost-line strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

/* Notices (info / error) */
.notice {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
  max-width:485px;
  margin:0px auto 0px auto;
}
.notice-info {
  background: color-mix(in oklab, #3b82f6 8%, transparent);
  border: 1px solid color-mix(in oklab, #3b82f6 25%, transparent);
  color: #1e3a8a;
}
.notice-error {
  background: color-mix(in oklab, var(--error) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--error) 35%, transparent);
  color: var(--error);
  font-weight: 500;
}
.notice-error strong { font-weight: 700; }

.balva-detail-action {
  margin-top: 8px;
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 600px) {
  .balva-detail-title { font-size: 22px; padding: 22px 20px 16px; }
  .balva-detail-body { padding: 22px 20px 24px; }
}

.balva-note {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}
.balva-detail-action { display: flex; justify-content: center; }

/* Balvas page — wider points block to accommodate longer translations */
.user-summary.points-only .user-points {
  min-width: 210px;
  padding-left: 33px;
  padding-right: 33px;
}

/* ============================================================
   MANI PUNKTI — points history list
   ============================================================ */
.points-list {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.points-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.points-row:last-child { border-bottom: none; }
.points-row-head {
  background: rgba(242,125,32,0.06);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding-top: 14px;
  padding-bottom: 14px;
}
.points-col-date { color: var(--fg); }
.points-col-id {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.points-col-amount {
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.points-row-head .points-col-amount {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 540px) {
  .points-row { padding: 14px 16px; font-size: 14px; gap: 10px; }
  .points-row-head { font-size: 11px; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 900px;
  margin: 24px auto 0;
}
.pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(242,125,32,0.5);
  background: rgba(242,125,32,0.06);
}
.pg-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pg-nav { font-size: 18px; line-height: 1; }
.pg-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--muted);
  font-weight: 600;
}

/* Survey ID badge inside survey cards */
.survey-id {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  opacity: 0.65;
  margin-top: 8px;
}

/* ===== Page title block (centered) ===== */
.page-title-block {
  text-align: center;
  padding: 32px 0 16px;
}
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ===== Claimed gift cards list ===== */
.gc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--card, #fff);
  border: 1px solid rgba(138,122,107,0.15);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.gc-row:hover {
  border-color: rgba(242,125,32,0.4);
  transform: translateY(-2px);
}
.gc-row-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.gc-row-img {
  width: 96px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(138,122,107,0.08);
}
.gc-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gc-row-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.gc-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #f27d20);
}
.gc-row-right {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .gc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .gc-row-right { display: flex; }
  .gc-row-right .btn { width: 100%; text-align: center; }
  .page-title { font-size: 28px; }
}

/* ===== Bonus points card ===== */
.bonus-points-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--card, #fff);
  border: 1px solid rgba(138,122,107,0.15);
  border-radius: 14px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.bonus-points-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent, #f27d20);
  flex-shrink: 0;
}
.bonus-points-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .bonus-points-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .bonus-points-value { font-size: 28px; }
}

/* Animated points counter */
.points-number.points-animating {
  color: var(--color-primary, #2b7a4b);
  transition: color 0.2s ease;
}
@keyframes points-pulse-anim {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.points-number.points-pulse {
  display: inline-block;
  animation: points-pulse-anim 0.6s ease-out;
}

/* Newly-completed streak step flash animation */
@keyframes streak-flash-anim {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55); background-color: #e53935; color: #fff; }
  30%  { transform: scale(1.25); box-shadow: 0 0 0 14px rgba(229, 57, 53, 0); background-color: #e53935; color: #fff; }
  60%  { transform: scale(1.1);  background-color: #e53935; color: #fff; }
  100% { transform: scale(1);    background-color: #e53935; color: #fff; }
}
.streak-step.streak-step-flash .streak-dot {
  animation: streak-flash-anim 1.2s ease-out forwards;
  border-color: #e53935 !important;
}
.streak-step.streak-step-flash .streak-label {
  color: #e53935;
  font-weight: 600;
  transition: color 0.3s ease;
}