/* ═══════════════════════════════════════════════════════════════════
   SI PARASHIKON — Modern Light UI
   Clean, editorial, inspired by Linear / Vercel design language
   gazetasi.al
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Vidaloka&family=DM+Mono:wght@400;500&display=swap');

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  --sip-bg:           #eef0f6;
  --sip-surface:      #ffffff;
  --sip-surface-2:    #f6f7fb;
  --sip-surface-3:    #f0f2f7;
  --sip-border:       #e4e7f0;
  --sip-border-2:     #d8dce8;
  --sip-text:         #0f1117;
  --sip-text-2:       #5a6478;
  --sip-text-3:       #9ba3b8;
  --sip-accent:       #c8102e;
  --sip-accent-2:     #e8314e;
  --sip-accent-glow:  rgba(200,16,46,0.12);
  --sip-yes:          #0e6f92;
  --sip-yes-bg:       #e8f6fd;
  --sip-yes-border:   #b8e4f5;
  --sip-no:           #92700a;
  --sip-no-bg:        #fffbee;
  --sip-no-border:    #f0dfa0;
  --sip-gold:         #c07800;
  --sip-gold-bg:      #fdf4e0;
  --sip-alt1:         #2d5be3;
  --sip-alt1-bg:      #edf1fd;
  --sip-alt2:         #7c3aed;
  --sip-alt2-bg:      #f3effe;
  --sip-alt3:         #d97706;
  --sip-alt3-bg:      #fef3e2;
  --sip-alt4:         #0891b2;
  --sip-alt4-bg:      #e0f5fa;
  --sip-radius:       14px;
  --sip-radius-sm:    9px;
  --sip-font:         'Barlow', system-ui, sans-serif;
  --sip-heading-font: 'Vidaloka', Georgia, serif;
  --sip-mono:         'DM Mono', 'Courier New', monospace;
  --sip-shadow:       0 1px 3px rgba(15,17,23,0.06), 0 4px 16px rgba(15,17,23,0.04);
  --sip-shadow-md:    0 4px 24px rgba(15,17,23,0.09), 0 1px 4px rgba(15,17,23,0.06);
  --sip-shadow-lg:    0 8px 40px rgba(15,17,23,0.12), 0 2px 8px rgba(15,17,23,0.06);
  --sip-transition:   0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────────────── */
.sip-page *, .sip-card *, .sip-sidebar * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.sip-page, .sip-card {
  font-family: var(--sip-font);
  -webkit-font-smoothing: antialiased;
}

/* ── Heading font (Vidaloka) applied globally to all SIP headings ── */
.sip-page-title,
.sip-hero-title,
.sip-card-question,
.sip-dc-question,
.sip-section-title,
.sip-modal-title,
.sip-empty-title,
.sip-mini-title,
.sip-stat-value,
.sip-hbw-value {
  font-family: var(--sip-heading-font) !important;
}

/* ════════════════════════════════════════════════════════════════════
   PAGE WRAPPER
   ════════════════════════════════════════════════════════════════════ */
.sip-page {
  background: var(--sip-bg);
  color: var(--sip-text);
  border-radius: 20px;
  padding: 36px;
  min-height: 500px;
}

/* ── Page Header ─────────────────────────────────────────────────── */
.sip-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sip-page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* "PANEL I TREGJEVE" style badge */
.sip-page-title-row-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sip-text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--sip-shadow);
}
.sip-logo-mark {
  font-size: 15px;
  color: var(--sip-accent);
  line-height: 1;
}
.sip-page-title {
  font-family: var(--sip-font) !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  color: var(--sip-text) !important;
  letter-spacing: -1px;
  line-height: 1.15 !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
}
.sip-page-subtitle {
  font-size: 15px;
  color: var(--sip-text-2);
  margin: 8px 0 0;
  line-height: 1.6;
  max-width: 460px;
}
.sip-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sip-yes-bg);
  border: 1px solid var(--sip-yes-border);
  color: var(--sip-yes);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sip-pulse {
  width: 6px;
  height: 6px;
  background: var(--sip-yes);
  border-radius: 50%;
  animation: sip-pulse 2s infinite;
}
@keyframes sip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Balance widget */
.sip-header-balance-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  padding: 16px 22px;
  min-width: 150px;
  box-shadow: var(--sip-shadow);
}
.sip-hbw-label {
  font-size: 10px;
  color: var(--sip-text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.sip-hbw-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--sip-text);
  font-family: var(--sip-mono);
  line-height: 1;
  letter-spacing: -1px;
}
.sip-hbw-unit {
  font-size: 11px;
  color: var(--sip-text-3);
  margin-top: 3px;
  font-weight: 500;
}

/* CTA (logged out) */
.sip-header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.sip-cta-register {
  background: var(--sip-text);
  color: white;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--sip-transition);
  letter-spacing: 0.01em;
}
.sip-cta-register:hover { background: #2a2e3a; color: white; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.sip-cta-sub { font-size: 12px; color: var(--sip-text-3); }

/* ── Stats Bar ───────────────────────────────────────────────────── */
.sip-stats-bar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
}
.sip-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  padding: 18px 20px;
  box-shadow: var(--sip-shadow);
  position: relative;
}
.sip-stat-label {
  font-size: 10px;
  color: var(--sip-text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}
.sip-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--sip-text);
  font-family: var(--sip-mono);
  letter-spacing: -1px;
  line-height: 1;
}
.sip-stat-unit {
  font-size: 11px;
  color: var(--sip-text-3);
  margin-top: 3px;
}
/* Balance card — neutral, slightly elevated */
.sip-stat--balance {
  border-color: var(--sip-border-2);
  background: var(--sip-surface);
}
.sip-stat--balance .sip-stat-value {
  color: var(--sip-text);
}
.sip-stat-divider { display: none; }

/* ── Layout ──────────────────────────────────────────────────────── */
.sip-main-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.sip-markets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ════════════════════════════════════════════════════════════════════
   MARKET CARD
   ════════════════════════════════════════════════════════════════════ */
.sip-card {
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  overflow: hidden;
  box-shadow: var(--sip-shadow);
  transition: border-color var(--sip-transition), transform var(--sip-transition), box-shadow var(--sip-transition);
  position: relative;
}
.sip-card--list:hover {
  border-color: var(--sip-border-2);
  transform: translateY(-2px);
  box-shadow: var(--sip-shadow-md);
}
.sip-card--inline {
  margin: 28px 0;
  border-color: var(--sip-border-2);
  box-shadow: var(--sip-shadow-md);
}
.sip-card--closed { opacity: 0.75; }

/* Thin accent top line on open cards */
.sip-card--open::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f1117 0%, #64748b 55%, transparent 90%);
}

/* ── Card Top Bar ────────────────────────────────────────────────── */
.sip-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--sip-border);
}
.sip-card-meta-left { display: flex; align-items: center; gap: 10px; }

/* Badges */
.sip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sip-dot {
  width: 5px;
  height: 5px;
  background: var(--sip-yes);
  border-radius: 50%;
  animation: sip-pulse 2s infinite;
}
.sip-badge--live     { background: var(--sip-yes-bg);  border: 1px solid var(--sip-yes-border); color: var(--sip-yes); }
.sip-badge--closed   { background: var(--sip-surface-3); border: 1px solid var(--sip-border); color: var(--sip-text-3); }
.sip-badge--resolved { background: var(--sip-gold-bg);  border: 1px solid #e0c060; color: var(--sip-gold); }

.sip-card-time { font-size: 12px; color: var(--sip-text-3); font-weight: 500; }

.sip-card-meta-right { display: flex; align-items: baseline; gap: 5px; }
.sip-card-pool-label { font-size: 10px; color: var(--sip-text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.sip-card-pool-value { font-size: 14px; font-weight: 700; color: var(--sip-text); font-family: var(--sip-mono); }
.sip-card-pool-unit  { font-size: 11px; font-weight: 400; color: var(--sip-text-3); }

/* ── Card Question ───────────────────────────────────────────────── */
.sip-card-question {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--sip-text) !important;
  line-height: 1.45 !important;
  padding: 20px 20px 8px !important;
  margin: 0 !important;
  border: none !important;
  letter-spacing: -0.3px !important;
}
.sip-card-desc {
  font-size: 13px;
  color: var(--sip-text-2);
  padding: 0 20px 14px;
  line-height: 1.6;
}

/* ── Card image + description row ───────────────────────────────── */
.sip-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 20px 14px;
}
.sip-card-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--sip-border);
  box-shadow: var(--sip-shadow);
}
.sip-card-body .sip-card-desc {
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--sip-text-2);
  line-height: 1.6;
  flex: 1;
}
/* When there's no image, the desc sits alone */
.sip-card-body:not(:has(.sip-card-image)) {
  padding-top: 0;
}

/* ── Options ─────────────────────────────────────────────────────── */
.sip-options-grid {
  padding: 4px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sip-options-binary  { flex-direction: row; }
.sip-options-multi   { flex-direction: column; }

.sip-option-btn {
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border);
  border-radius: var(--sip-radius-sm);
  padding: 12px 14px;
  cursor: default;
  transition: border-color var(--sip-transition), background var(--sip-transition), box-shadow var(--sip-transition);
  position: relative;
  overflow: hidden;
}

/* Color variants */
.sip-option-btn--yes  { border-color: var(--sip-yes-border);  background: var(--sip-yes-bg); }
.sip-option-btn--no   { border-color: var(--sip-no-border);   background: var(--sip-no-bg); }
.sip-option-btn--alt1 { border-color: #c0cfff; background: var(--sip-alt1-bg); }
.sip-option-btn--alt2 { border-color: #d4b8f8; background: var(--sip-alt2-bg); }
.sip-option-btn--alt3 { border-color: #f0cc80; background: var(--sip-alt3-bg); }
.sip-option-btn--alt4 { border-color: #90d8ea; background: var(--sip-alt4-bg); }

.sip-option-btn--mine   { box-shadow: 0 0 0 2px var(--sip-gold) !important; border-color: var(--sip-gold) !important; }
.sip-option-btn--winner { box-shadow: 0 0 0 2px var(--sip-yes) !important; border-color: var(--sip-yes) !important; }

.sip-ob-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sip-ob-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sip-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sip-ob-check {
  color: var(--sip-yes);
  font-weight: 700;
}
.sip-ob-you {
  background: var(--sip-gold);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.sip-ob-pct {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--sip-mono);
  line-height: 1;
  letter-spacing: -0.5px;
}
.sip-option-btn--yes  .sip-ob-pct { color: var(--sip-yes); }
.sip-option-btn--no   .sip-ob-pct { color: var(--sip-no); }
.sip-option-btn--alt1 .sip-ob-pct { color: var(--sip-alt1); }
.sip-option-btn--alt2 .sip-ob-pct { color: var(--sip-alt2); }
.sip-option-btn--alt3 .sip-ob-pct { color: var(--sip-alt3); }
.sip-option-btn--alt4 .sip-ob-pct { color: var(--sip-alt4); }
.sip-ob-pct-symbol { font-size: 12px; opacity: 0.6; }

/* Progress bar */
.sip-ob-bar {
  height: 4px;
  background: rgba(0,0,0,0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 7px;
}
.sip-ob-fill {
  height: 100%;
  width: var(--fill, 50%);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  animation: sip-bar-grow 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.sip-option-btn--yes  .sip-ob-fill { background: var(--sip-yes); }
.sip-option-btn--no   .sip-ob-fill { background: var(--sip-no); }
.sip-option-btn--alt1 .sip-ob-fill { background: var(--sip-alt1); }
.sip-option-btn--alt2 .sip-ob-fill { background: var(--sip-alt2); }
.sip-option-btn--alt3 .sip-ob-fill { background: var(--sip-alt3); }
.sip-option-btn--alt4 .sip-ob-fill { background: var(--sip-alt4); }
@keyframes sip-bar-grow {
  from { width: 0; }
  to   { width: var(--fill, 50%); }
}

.sip-ob-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sip-ob-staked { font-size: 11px; color: var(--sip-text-3); font-family: var(--sip-mono); font-weight: 500; }
.sip-ob-seeded {
  font-size: 9px;
  color: var(--sip-text-3);
  background: var(--sip-surface-3);
  border: 1px solid var(--sip-border);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Card Stats Row ──────────────────────────────────────────────── */
.sip-card-stats-row {
  padding: 0 20px 14px;
}
.sip-predictors-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--sip-text-3);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════
   BET PANEL
   ════════════════════════════════════════════════════════════════════ */
.sip-bet-panel {
  border-top: 1px solid var(--sip-border);
  background: var(--sip-surface-2);
  padding: 20px;
}
.sip-bet-panel-inner { display: flex; flex-direction: column; gap: 14px; }

.sip-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sip-bet-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--sip-text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sip-bet-balance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--sip-gold);
  font-family: var(--sip-mono);
  font-weight: 600;
  background: var(--sip-gold-bg);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #e8cc70;
}

/* Radio option selector */
.sip-bet-option-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sip-bet-option-label {
  display: inline-flex;
  align-items: center;
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border);
  border-radius: var(--sip-radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sip-text-2);
  cursor: pointer;
  transition: all var(--sip-transition);
  user-select: none;
}
.sip-bet-option-label:hover { border-color: var(--sip-text); color: var(--sip-text); }
.sip-bet-option-label--active,
.sip-bet-option-label:has(input:checked) {
  background: var(--sip-text);
  border-color: var(--sip-text);
  color: white;
}
.sip-bet-radio { display: none; }

/* Amount row */
.sip-bet-amount-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.sip-amount-field {
  display: flex;
  align-items: center;
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border);
  border-radius: var(--sip-radius-sm);
  overflow: hidden;
}
.sip-amount-adj {
  background: transparent;
  border: none;
  color: var(--sip-text-2);
  font-size: 18px;
  width: 36px;
  height: 40px;
  cursor: pointer;
  transition: background var(--sip-transition), color var(--sip-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sip-amount-adj:hover { background: var(--sip-surface-3); color: var(--sip-text); }
.sip-amount-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--sip-text);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sip-mono);
  width: 64px;
  text-align: center;
  height: 40px;
  -moz-appearance: textfield;
}
.sip-amount-input::-webkit-inner-spin-button,
.sip-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.sip-amount-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sip-preset {
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border);
  border-radius: var(--sip-radius-sm);
  color: var(--sip-text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--sip-transition);
  font-family: var(--sip-mono);
}
.sip-preset:hover { border-color: var(--sip-text); color: var(--sip-text); }
.sip-preset--max  { border-color: var(--sip-accent); color: var(--sip-accent); }
.sip-preset--max:hover { background: var(--sip-accent); border-color: var(--sip-accent); color: white; }

/* Payout preview */
.sip-payout-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border);
  border-radius: var(--sip-radius-sm);
  padding: 11px 14px;
  margin-top: 12px;
}
.sip-pp-label { font-size: 12px; color: var(--sip-text-3); font-weight: 500; }
.sip-pp-value { font-size: 16px; font-weight: 700; color: var(--sip-text); font-family: var(--sip-mono); }

/* Submit button */
.sip-submit-btn {
  width: 100%;
  background: var(--sip-text);
  color: white;
  border: none;
  border-radius: var(--sip-radius-sm);
  padding: 14px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sip-font);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--sip-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sip-submit-btn:hover:not(:disabled) {
  background: #2a2e3a;
  box-shadow: 0 4px 18px rgba(15,17,23,0.25);
  transform: translateY(-1px);
}
.sip-submit-btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.sip-submit-btn:disabled { background: var(--sip-text-3); cursor: not-allowed; }

/* Spinner */
.sip-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: sip-spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes sip-spin { to { transform: rotate(360deg); } }

/* Messages */
.sip-bet-msg {
  padding: 10px 14px;
  border-radius: var(--sip-radius-sm);
  font-size: 13px;
  font-weight: 500;
  animation: sip-fade-in 0.2s ease;
}
.sip-bet-msg.sip-msg-success { background: var(--sip-yes-bg); border: 1px solid var(--sip-yes-border); color: var(--sip-yes); }
.sip-bet-msg.sip-msg-error   { background: var(--sip-no-bg);  border: 1px solid var(--sip-no-border);  color: var(--sip-no); }
@keyframes sip-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.sip-bet-disclaimer { font-size: 11px; color: var(--sip-text-3); text-align: center; font-weight: 500; }

/* ── Auth Prompt ─────────────────────────────────────────────────── */
.sip-auth-prompt {
  border-top: 1px solid var(--sip-border);
  padding: 22px 20px;
  background: var(--sip-surface-2);
  text-align: center;
}
.sip-auth-text {
  font-size: 14px;
  color: var(--sip-text-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.sip-auth-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sip-btn-login {
  flex: 1;
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border-2);
  color: var(--sip-text);
  padding: 11px 16px;
  border-radius: var(--sip-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all var(--sip-transition);
}
.sip-btn-login:hover { border-color: var(--sip-text); }
.sip-btn-register {
  flex: 2;
  background: var(--sip-text);
  color: white;
  padding: 11px 16px;
  border-radius: var(--sip-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all var(--sip-transition);
  border: 1.5px solid var(--sip-text);
}
.sip-btn-register:hover { background: #2a2e3a; border-color: #2a2e3a; color: white; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }

/* ── Prediction Receipt ──────────────────────────────────────────── */
.sip-prediction-receipt {
  border-top: 1px solid var(--sip-border);
  padding: 16px 20px;
  background: var(--sip-surface-2);
}
.sip-pr-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sip-surface);
  border: 1.5px solid var(--sip-border);
  border-radius: var(--sip-radius-sm);
  padding: 12px 16px;
  box-shadow: var(--sip-shadow);
}
.sip-pr-icon {
  width: 30px;
  height: 30px;
  background: var(--sip-yes-bg);
  border: 1.5px solid var(--sip-yes-border);
  color: var(--sip-yes);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sip-pr-info { display: flex; flex-direction: column; flex: 1; }
.sip-pr-label  { font-size: 10px; color: var(--sip-text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.sip-pr-choice { font-size: 14px; font-weight: 700; color: var(--sip-text); margin-top: 2px; }
.sip-pr-stake  { display: flex; flex-direction: column; align-items: center; }
.sip-pr-stake-val  { font-size: 18px; font-weight: 800; color: var(--sip-gold); font-family: var(--sip-mono); line-height: 1; letter-spacing: -0.5px; }
.sip-pr-stake-unit { font-size: 10px; color: var(--sip-text-3); margin-top: 1px; font-weight: 500; }
.sip-pr-result {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--sip-radius-sm);
}
.sip-pr-result--win  { background: var(--sip-yes-bg); color: var(--sip-yes); border: 1px solid var(--sip-yes-border); }
.sip-pr-result--loss { background: var(--sip-surface-3); color: var(--sip-text-3); border: 1px solid var(--sip-border); }

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════ */
.sip-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }

.sip-sidebar-card {
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  overflow: hidden;
  box-shadow: var(--sip-shadow);
}
.sip-sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sip-border);
}
.sip-sidebar-icon  { font-size: 14px; }
.sip-sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--sip-text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Leaderboard */
.sip-leaderboard-list { list-style: none; padding: 8px 0; }
.sip-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  transition: background var(--sip-transition);
}
.sip-lb-row:hover { background: var(--sip-surface-2); }
.sip-lb-first { background: var(--sip-gold-bg); }
.sip-lb-rank  { font-size: 15px; width: 24px; flex-shrink: 0; text-align: center; }
.sip-lb-name  { font-size: 13px; color: var(--sip-text-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.sip-lb-score { font-size: 13px; font-weight: 700; color: var(--sip-text); font-family: var(--sip-mono); flex-shrink: 0; }

.sip-sidebar-empty { font-size: 13px; color: var(--sip-text-3); padding: 20px 16px; text-align: center; font-weight: 500; }

/* How it works */
.sip-how-list {
  list-style: none;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sip-how-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--sip-text-2);
  line-height: 1.55;
  font-weight: 500;
}
.sip-how-list li strong { color: var(--sip-text); }
.sip-how-num {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--sip-mono);
  color: white;
  background: var(--sip-text);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sip-sidebar-register-btn {
  display: block;
  margin: 0 16px 14px;
  background: var(--sip-text);
  color: white;
  text-align: center;
  padding: 11px;
  border-radius: var(--sip-radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--sip-transition);
  letter-spacing: 0.01em;
}
.sip-sidebar-register-btn:hover { background: #2a2e3a; color: white; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* ── Empty State ─────────────────────────────────────────────────── */
.sip-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
  background: var(--sip-surface);
  border: 1.5px dashed var(--sip-border-2);
  border-radius: var(--sip-radius);
}
.sip-empty-icon  { font-size: 30px; color: var(--sip-text-3); margin-bottom: 14px; opacity: 0.5; }
.sip-empty-title { font-size: 16px; font-weight: 700; color: var(--sip-text); margin-bottom: 6px; }
.sip-empty-sub   { font-size: 13px; color: var(--sip-text-3); font-weight: 500; }

/* ── Toast ───────────────────────────────────────────────────────── */
.sip-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--sip-text);
  color: white;
  padding: 13px 18px;
  border-radius: var(--sip-radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sip-font);
  z-index: 99999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--sip-shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sip-toast::before { content: '🪙'; font-size: 15px; }
.sip-toast-show { opacity: 1; transform: translateY(0); }

/* ── Inline card (in articles) ───────────────────────────────────── */
.sip-card--inline .sip-card-question { font-size: 16px !important; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sip-main-layout { grid-template-columns: 1fr; }
  .sip-sidebar { position: static; order: -1; flex-direction: row; overflow-x: auto; }
  .sip-sidebar-card { min-width: 240px; }
}
@media (max-width: 600px) {
  .sip-page { padding: 20px 14px; border-radius: 0; }
  .sip-page-header { flex-direction: column; gap: 16px; }
  .sip-header-balance-widget { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .sip-stats-bar { flex-direction: row; overflow-x: auto; gap: 8px; flex-wrap: nowrap; }
  .sip-stat { min-width: 100px; padding: 14px 16px; }
  .sip-bet-amount-row { flex-direction: column; align-items: stretch; }
  .sip-amount-presets { justify-content: space-between; }
  .sip-auth-btns { flex-direction: column; }
  .sip-sidebar { flex-direction: column; }
  .sip-sidebar-card { min-width: unset; }
}

/* ════════════════════════════════════════════════════════════════════
   CATEGORY FILTERS
   ════════════════════════════════════════════════════════════════════ */
.sip-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.sip-cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  border: none;
  background: none;
  color: var(--sip-text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--sip-transition);
  font-family: var(--sip-font);
  box-shadow: none;
}
.sip-cat-btn:hover {
  color: var(--sip-text);
  text-decoration: none;
}
.sip-cat-btn--active {
  color: var(--sip-text);
  font-weight: 700;
  border-bottom: 2px solid var(--sip-text);
}

/* ════════════════════════════════════════════════════════════════════
   COMPACT MINI GRID
   ════════════════════════════════════════════════════════════════════ */
.sip-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.sip-mini-card {
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--sip-text);
  box-shadow: var(--sip-shadow);
  transition: border-color var(--sip-transition), transform var(--sip-transition), box-shadow var(--sip-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* Accent top line */
.sip-mini-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f1117 0%, #64748b 55%, transparent 90%);
  opacity: 0;
  transition: opacity var(--sip-transition);
}
.sip-mini-card:hover::before { opacity: 1; }
.sip-mini-card:hover {
  border-color: var(--sip-border-2);
  transform: translateY(-3px);
  box-shadow: var(--sip-shadow-lg);
  text-decoration: none;
  color: var(--sip-text);
}

.sip-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sip-mini-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sip-text-3);
}

.sip-mini-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--sip-text);
  letter-spacing: -0.2px;
  flex-grow: 1;
}

/* ── Mini card title + thumbnail row ────────────────────────────── */
.sip-mini-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sip-mini-title-row .sip-mini-title {
  flex: 1;
}
.sip-mini-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--sip-border);
  box-shadow: var(--sip-shadow);
}

/* ── Probability Split Bar (binary markets) ──────────────────────── */
.sip-mini-probbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sip-mini-prob-yes,
.sip-mini-prob-no {
  font-size: 12px;
  font-family: var(--sip-mono);
  white-space: nowrap;
  color: var(--sip-text-3);
  font-weight: 500;
}
.sip-mini-prob-yes strong { color: var(--sip-yes); font-size: 14px; font-weight: 800; }
.sip-mini-prob-no  strong { color: var(--sip-no);  font-size: 14px; font-weight: 800; }
.sip-mini-probbar-track {
  flex: 1;
  height: 7px;
  background: var(--sip-no-bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--sip-no-border);
}
.sip-mini-probbar-fill {
  height: 100%;
  width: var(--pct, 50%);
  background: var(--sip-yes);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: sip-bar-grow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Multi-option mini cards */
.sip-mini-options {
  display: flex;
  gap: 8px;
}
.sip-mini-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--sip-radius-sm);
  border: 1px solid transparent;
}
.sip-mini-opt--yes  { background: var(--sip-yes-bg);  border-color: var(--sip-yes-border); }
.sip-mini-opt--no   { background: var(--sip-no-bg);   border-color: var(--sip-no-border); }
.sip-mini-opt--alt1 { background: var(--sip-alt1-bg); border-color: #c0cfff; }
.sip-mini-opt--alt2 { background: var(--sip-alt2-bg); border-color: #d4b8f8; }
.sip-mini-opt--alt3 { background: var(--sip-alt3-bg); border-color: #f0cc80; }
.sip-mini-opt--alt4 { background: var(--sip-alt4-bg); border-color: #90d8ea; }
.sip-mini-opt-label { font-size: 11px; color: var(--sip-text-2); font-weight: 600; }
.sip-mini-opt-pct   { font-size: 16px; font-weight: 800; font-family: var(--sip-mono); letter-spacing: -0.5px; }
.sip-mini-opt--yes  .sip-mini-opt-pct { color: var(--sip-yes); }
.sip-mini-opt--no   .sip-mini-opt-pct { color: var(--sip-no); }
.sip-mini-opt--alt1 .sip-mini-opt-pct { color: var(--sip-alt1); }
.sip-mini-opt--alt2 .sip-mini-opt-pct { color: var(--sip-alt2); }
.sip-mini-opt--alt3 .sip-mini-opt-pct { color: var(--sip-alt3); }
.sip-mini-opt--alt4 .sip-mini-opt-pct { color: var(--sip-alt4); }

.sip-mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sip-text-3);
  border-top: 1px solid var(--sip-border);
  padding-top: 12px;
  margin-top: auto;
  font-weight: 500;
}
.sip-mini-arrow {
  color: var(--sip-text);
  font-weight: 700;
  font-size: 12px;
  transition: transform var(--sip-transition);
}
.sip-mini-card:hover .sip-mini-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════════
   DETAIL VIEW
   ════════════════════════════════════════════════════════════════════ */
.sip-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.sip-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sip-text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border: 1.5px solid var(--sip-border-2);
  border-radius: 100px;
  background: var(--sip-surface);
  transition: all var(--sip-transition);
  box-shadow: var(--sip-shadow);
}
.sip-back-btn:hover {
  color: var(--sip-text);
  border-color: var(--sip-text);
  text-decoration: none;
}
.sip-detail-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sip-text-3);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .sip-mini-grid { grid-template-columns: 1fr; }
  .sip-cat-filters { gap: 6px; }
  .sip-mini-probbar { gap: 7px; }
  .sip-mini-prob-yes, .sip-mini-prob-no { font-size: 11px; }
  .sip-mini-prob-yes strong, .sip-mini-prob-no strong { font-size: 13px; }
}

/* ════════════════════════════════════════════════════════════════════
   DETAIL CARD  (.sip-dc)
   New-style full detail view: pills → chart → context → bet panel
   ════════════════════════════════════════════════════════════════════ */
.sip-dc {
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  padding: 28px;
  box-shadow: var(--sip-shadow-md);
  position: relative;
  overflow: hidden;
}
.sip-dc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f1117 0%, #64748b 55%, transparent 90%);
}

/* Question title */
.sip-dc-question {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--sip-text) !important;
  line-height: 1.35 !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: -0.5px !important;
}

/* ── Option pills ─────────────────────────────────────────────────── */
.sip-dc-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sip-dc-pill {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: default;
  transition: transform var(--sip-transition), box-shadow var(--sip-transition);
}
.sip-dc-pill--yes  { background: #d6f4ff; border-color: #97dff5; color: #0e6f92; }
.sip-dc-pill--no   { background: #fdf3d0; border-color: #e0cb72; color: #7a6218; }
.sip-dc-pill--alt1 { background: var(--sip-alt1-bg); border-color: #c0cfff; color: var(--sip-alt1); }
.sip-dc-pill--alt2 { background: var(--sip-alt2-bg); border-color: #d4b8f8; color: var(--sip-alt2); }
.sip-dc-pill--alt3 { background: var(--sip-alt3-bg); border-color: #f0cc80; color: var(--sip-alt3); }
.sip-dc-pill--alt4 { background: var(--sip-alt4-bg); border-color: #90d8ea; color: var(--sip-alt4); }
.sip-dc-pill--winner { box-shadow: 0 0 0 3px var(--sip-yes) !important; border-color: var(--sip-yes) !important; }
.sip-dc-pill--mine   { box-shadow: 0 0 0 3px var(--sip-gold) !important; border-color: var(--sip-gold) !important; }
.sip-dc-pill-check { font-size: 16px; }
.sip-dc-pill-you {
  background: var(--sip-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

/* ── Chart + Legend ──────────────────────────────────────────────── */
.sip-dc-chart-wrap {
  display: flex;
  gap: 20px;
  align-items: stretch;
  background: var(--sip-surface-2);
  border: 1px solid var(--sip-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.sip-dc-legend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 110px;
  flex-shrink: 0;
}
.sip-dc-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sip-dc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sip-dc-legend-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sip-dc-legend-name {
  font-size: 12px;
  color: var(--sip-text-2);
  font-weight: 500;
}
.sip-dc-legend-pct {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--sip-mono);
  color: var(--sip-text);
  line-height: 1;
  letter-spacing: -0.5px;
}
.sip-dc-legend-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  border-top: 1px solid var(--sip-border);
  padding-top: 10px;
}
.sip-dc-legend-meta span {
  font-size: 11px;
  color: var(--sip-text-3);
  font-weight: 500;
}
.sip-dc-chart-area {
  flex: 1;
  position: relative;
  min-height: 160px;
}
.sip-dc-chart-area canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Context quote ───────────────────────────────────────────────── */
.sip-dc-context {
  display: flex;
  gap: 14px;
  background: var(--sip-surface-2);
  border: 1px solid var(--sip-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.sip-dc-context-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--sip-border);
  box-shadow: var(--sip-shadow);
}
.sip-dc-context-body { flex: 1; }
.sip-dc-context-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sip-text-2);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sip-dc-context-attr {
  font-size: 13px;
  color: var(--sip-text-3);
  line-height: 1.5;
}
.sip-dc-context-attr strong { color: var(--sip-text-2); font-style: normal; }
.sip-dc-context-attr em { font-style: italic; }

/* ── Detail card bet panel overrides ─────────────────────────────── */
/* More space between chart/context and the bet section */
.sip-dc .sip-bet-panel {
  margin-top: 24px;
  border-radius: var(--sip-radius-sm);
  border: 1px solid var(--sip-border);
}

/* Pill-style option selector buttons */
.sip-dc .sip-bet-option-group {
  gap: 10px;
  margin-bottom: 14px;
}
.sip-dc .sip-bet-option-label {
  flex: 1;
  justify-content: center;
  border-radius: 100px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-width: 2px;
}
.sip-dc .sip-bet-option-label--active,
.sip-dc .sip-bet-option-label:has(input:checked) {
  background: var(--sip-text);
  border-color: var(--sip-text);
  color: white;
  box-shadow: 0 2px 10px rgba(15,17,23,0.2);
}

/* Closed/resolved notice */
.sip-dc-closed-notice {
  border-top: 1px solid var(--sip-border);
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--sip-text-3);
  font-weight: 500;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sip-dc { padding: 20px 16px; }
  .sip-dc-question { font-size: 18px !important; }
  .sip-dc-pills { gap: 8px; }
  .sip-dc-pill  { font-size: 17px; padding: 13px 18px; }
  .sip-dc-chart-wrap { flex-direction: column; gap: 16px; padding: 16px; }
  .sip-dc-legend { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .sip-dc-legend-meta { flex-direction: row; flex-wrap: wrap; gap: 6px; border-top: none; padding-top: 0; }
  .sip-dc-chart-area { min-height: 140px; }
}

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD — Hero · Si Funksionon · Çfarë Fiton · Modals
   ══════════════════════════════════════════════════════════════════════ */

/* ── Dashboard outer wrapper ─────────────────────────────────────── */
.sip-dashboard {
  width: 100%;
  padding-bottom: 60px;
}

/* Smooth scroll offset */
#sip-markets {
  scroll-margin-top: 80px;
}

/* ── Hero Section ────────────────────────────────────────────────── */
.sip-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sip-accent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
}

.sip-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sip-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
  max-width: 680px;
}

.sip-hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.sip-hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0 0 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* Hero button row */
.sip-hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Base reset shared by both hero buttons */
.sip-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 100px;
  font-family: var(--sip-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #ffffff;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.sip-hero-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Primary — white bg, black text: "Shiko Tregjet" */
.sip-hero-btn--primary {
  background: #ffffff;
  color: #111111 !important;
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.sip-hero-btn--primary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #111111 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

/* Outline — black bg, white text: "Regjistrohu" */
.sip-hero-btn--outline {
  background: #111111;
  color: #ffffff !important;
  border-color: #111111;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.sip-hero-btn--outline:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

/* ── Shared section title ─────────────────────────────────────────── */
.sip-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sip-text);
  margin: 0 0 16px;
  letter-spacing: -0.2px;
}

/* ── Info row: Si Funksionon + Çfarë Fiton side by side ─────────── */
.sip-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
  align-items: stretch;  /* both columns same height */
}

/* ── Si Funksionon? ───────────────────────────────────────────────── */
.sip-how-section {
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.sip-how-steps {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* The whole card is now a <button> */
.sip-how-step {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  outline: none;
}
.sip-how-step:focus { outline: none; }
.sip-how-step:focus-visible {
  outline: 2px solid var(--sip-accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.sip-how-step:hover .sip-step-title {
  color: var(--sip-accent);
}
.sip-how-step:hover .sip-step-num {
  background: #374151;
  transform: scale(1.07);
}

/* Left column: number circle + vertical connector line */
.sip-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  min-width: 44px;
  flex-shrink: 0;
}

.sip-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f1117;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.sip-step-connector {
  width: 2px;
  flex: 1;
  min-height: 28px;
  background: var(--sip-border-2);
  margin: 4px 0;
}

/* Right column: title + hint text */
.sip-step-body {
  flex: 1;
  padding: 8px 0 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sip-how-step:last-child .sip-step-body {
  padding-bottom: 0;
}

.sip-step-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

.sip-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sip-text);
  line-height: 1.35;
  transition: color 0.15s;
}

.sip-step-hint {
  font-size: 12px;
  color: var(--sip-text-3);
  font-weight: 400;
}
.sip-how-step:hover .sip-step-hint {
  color: var(--sip-accent);
}

/* ── Çfarë Fiton? ─────────────────────────────────────────────────── */
.sip-what-section {
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.sip-what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
}

.sip-what-card {
  background: var(--sip-surface-2);
  border: 1px solid var(--sip-border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* button reset */
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sip-what-card:not([disabled]):hover {
  border-color: var(--sip-border-2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.sip-what-card[disabled] {
  cursor: default;
}

.sip-what-icon {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1;
}

.sip-what-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--sip-text);
  margin: 0 0 4px;
}

.sip-what-card p {
  font-size: 12px;
  color: var(--sip-text-2);
  line-height: 1.5;
  margin: 0;
}

.sip-what-hint {
  font-size: 11px;
  color: var(--sip-text-3);
  margin-top: 6px;
  display: block;
}
.sip-what-card:not([disabled]):hover .sip-what-hint {
  color: var(--sip-text);
}

/* What-modal icon (large emoji, no circle) */
.sip-modal-what-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* ── Step Modals ──────────────────────────────────────────────────── */
.sip-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: sipFadeIn 0.2s ease;
}
.sip-modal-overlay.sip-modal-open {
  display: flex;
}

@keyframes sipFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sip-modal {
  background: var(--sip-surface);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: sipSlideUp 0.22s ease;
}

@keyframes sipSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sip-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--sip-surface-2);
  border: 1px solid var(--sip-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--sip-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.sip-modal-close:hover {
  background: var(--sip-accent);
  color: #fff;
  border-color: var(--sip-accent);
}

.sip-modal-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f1117;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sip-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sip-text);
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

.sip-modal-body {
  font-size: 15px;
  color: var(--sip-text-2);
  line-height: 1.7;
}
.sip-modal-body p { margin: 0 0 10px; }
.sip-modal-body strong { color: var(--sip-text); }
.sip-modal-body ul { margin: 8px 0 8px 20px; padding: 0; }
.sip-modal-body li { margin-bottom: 6px; }

/* ── Dashboard responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .sip-info-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sip-info-row { gap: 14px; margin-bottom: 24px; }
  .sip-how-section, .sip-what-section { padding: 20px 16px; }
  .sip-section-title { font-size: 16px; }
  .sip-modal { padding: 28px 20px; }
  .sip-modal-title { font-size: 19px; }
}

/* ── Leaderboard sidebar ──────────────────────────────────────────── */

/*
 * TOP SECTION: 3-col CSS Grid
 *   col 1 → first 2 poll cards stacked (rows 1–2)
 *   col 2 → leaderboard spanning rows 1–2
 */
.sip-markets-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

/* Poll cards go in col 1, auto-stacked */
.sip-markets-top .sip-mini-card {
  grid-column: 1;
  min-width: 0;
}

/* Below section reuses sip-mini-grid (full-width 2-col) */
.sip-mini-grid--below {
  margin-top: 0; /* gap already handled by sip-markets-top margin-bottom */
}

/* Sidebar panel */
.sip-leaderboard-sidebar {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--sip-surface);
  border: 1px solid var(--sip-border);
  border-radius: var(--sip-radius);
  padding: 20px;
  box-shadow: var(--sip-shadow);
  align-self: start;
}

.sip-lb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sip-lb-trophy {
  font-size: 18px;
  line-height: 1;
}

.sip-lb-title {
  font-family: var(--sip-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--sip-text);
  margin: 0;
  letter-spacing: -0.1px;
  text-transform: uppercase;
}

.sip-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sip-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--sip-radius-sm);
  transition: background var(--sip-transition);
}

.sip-lb-row:hover {
  background: var(--sip-surface-2);
}

/* Highlight the current user's row — clean black border, no background */
.sip-lb-row--me {
  border: 1px solid var(--sip-text);
  border-radius: var(--sip-radius-sm);
}

/* Divider between top-5 and the user's out-of-top-5 row */
.sip-lb-divider {
  height: 1px;
  background: var(--sip-border);
  margin: 6px 0;
  list-style: none;
}

.sip-lb-rank {
  font-size: 16px;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
  /* numeric ranks (4,5) */
  font-family: var(--sip-mono);
  font-weight: 600;
  color: var(--sip-text-3);
}

.sip-lb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sip-lb-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sip-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sip-lb-meta {
  font-size: 11px;
  color: var(--sip-text-3);
  font-family: var(--sip-mono);
}

.sip-lb-balance {
  font-family: var(--sip-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sip-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.sip-lb-footer {
  margin: 12px 0 0;
  text-align: right;
  font-size: 10px;
  font-family: var(--sip-mono);
  color: var(--sip-text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Mobile fixes ─────────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* 1. Page wrapper: reduce side padding, add generous bottom space */
  .sip-page {
    padding: 20px 16px 64px;
    border-radius: 12px;
  }

  /* 2. Stats bar: 2-column grid, balance card spans full width */
  .sip-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
  }

  /* 3. Si Funksionon steps: 2 columns, last step full-width if odd */
  .sip-how-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  /* Hide the vertical connector line — doesn't make sense in a grid */
  .sip-step-connector { display: none; }
  .sip-how-step {
    border: 1px solid var(--sip-border);
    border-radius: 12px;
    padding: 14px 12px;
    background: var(--sip-surface-2);
  }
  .sip-step-body { padding: 8px 0 0 10px; }
  /* Last step spans both columns if it's the only one on its row */
  .sip-how-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Leaderboard: collapse to full-width strip, polls stack below */
  .sip-markets-top {
    grid-template-columns: 1fr;
  }

  .sip-markets-top .sip-mini-card {
    grid-column: 1;
  }

  .sip-leaderboard-sidebar {
    grid-column: 1;
    grid-row: 1; /* leaderboard appears first (DOM order) */
    padding: 16px;
    overflow-x: auto;
  }

  /* Horizontal strip of 5 cards on mobile instead of vertical list */
  .sip-lb-list {
    flex-direction: row;
    gap: 8px;
  }

  .sip-lb-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 0 0;
    min-width: 52px;
    gap: 4px;
    padding: 10px 6px;
  }

  .sip-lb-info {
    align-items: center;
  }

  .sip-lb-name {
    font-size: 11px;
    max-width: 64px;
  }

  .sip-lb-balance {
    font-size: 12px;
  }

  .sip-lb-footer {
    text-align: center;
  }
}
