/* ── AUTH ──────────────────────────────────────── */
.sk-auth-wrap {
  max-width: 420px;
  margin: 20px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  overflow: hidden;
}
.sk-auth-tabs {
  display: flex;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.sk-auth-tab {
  flex: 1; padding: 14px;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: #6b7280; cursor: pointer;
  transition: all 0.2s; margin-bottom: -1px;
}
.sk-auth-tab.active { color: #f59e0b; border-bottom-color: #f59e0b; }
.sk-auth-box { padding: 28px 28px 24px; }
.sk-auth-box h2 { font-size: 1.4rem; font-weight: 800; color: #1f2937; margin-bottom: 4px; }
.sk-auth-sub { color: #9ca3af; font-size: 0.88rem; margin-bottom: 20px; }
.sk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-pass-row { position: relative; }
.sk-pass-row input { padding-right: 44px; }
.sk-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.5;
}
.sk-eye:hover { opacity: 1; }
.sk-remember-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 0.83rem; color: #6b7280;
}
.sk-forgot { color: #f59e0b; text-decoration: none; }
.sk-forgot:hover { text-decoration: underline; }
.sk-pass-strength {
  height: 4px; border-radius: 2px; margin: -8px 0 12px;
  transition: background 0.3s, width 0.3s;
}

/* ── DASHBOARD ─────────────────────────────────── */
.sk-dashboard {
  max-width: 560px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

/* Header */
.sk-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 16px;
}
.sk-dash-welcome { display: flex; align-items: center; gap: 14px; }
.sk-dash-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sk-dash-welcome h2 { font-size: 1.2rem; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.sk-tier-pill {
  display: inline-block; background: #fef3c7;
  border: 1px solid #f59e0b; color: #92400e;
  font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 10px;
}
.sk-logout-btn {
  background: none; border: 1px solid #e5e7eb; color: #9ca3af;
  padding: 7px 14px; font-size: 0.78rem; cursor: pointer; border-radius: 6px;
  transition: all 0.2s;
}
.sk-logout-btn:hover { border-color: #ef4444; color: #ef4444; }

/* Points card */
.sk-dash-points-card {
  background: linear-gradient(135deg, #1f2937, #374151);
  border-radius: 14px; padding: 20px; margin-bottom: 20px;
  color: white;
}
.sk-dash-points-row {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px;
}
.sk-dash-big-num { display: flex; align-items: baseline; gap: 6px; }
.sk-dash-num { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.sk-dash-num-lbl { font-size: 0.85rem; opacity: 0.6; }
.sk-dash-next-info { text-align: right; }
.sk-dash-next-num { display: block; font-size: 1.4rem; font-weight: 800; color: #f59e0b; }
.sk-dash-next-lbl { font-size: 0.72rem; opacity: 0.6; }

/* Progress */
.sk-progress-bar-wrap { background: rgba(255,255,255,0.15); border-radius: 6px; height: 8px; margin-bottom: 14px; overflow: hidden; }
.sk-progress-bar { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); border-radius: 6px; transition: width 0.6s ease; }

/* Tier steps */
.sk-tier-steps { display: flex; justify-content: space-between; }
.sk-tier-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.sk-tier-step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.sk-tier-step.done .sk-tier-step-dot { background: #f59e0b; border-color: #f59e0b; }
.sk-tier-step.active .sk-tier-step-dot { background: white; border-color: white; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.sk-tier-step-lbl { font-size: 0.62rem; opacity: 0.55; text-align: center; }
.sk-tier-step.done .sk-tier-step-lbl,
.sk-tier-step.active .sk-tier-step-lbl { opacity: 1; }

/* ── DASHBOARD TABS ───────────────────────────── */
/* ── APP ICON TABS ─────────────────────────────── */
.sk-dash-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 4px;
  margin: 8px 0 4px;
  background: transparent;
}
.sk-dash-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s;
}
.sk-dash-tab:active { transform: scale(0.92); }
.sk-tab-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.18s;
  border: 2px solid transparent;
}
.sk-dash-tab.active .sk-tab-icon-wrap {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.sk-tab-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
}
.sk-dash-tab.active .sk-tab-lbl { color: #92400e; }
.sk-tab-badge {
  position: absolute;
  top: -4px; right: 6px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  z-index: 1;
}

/* Dashboard content areas */
.sk-dash-content { padding: 16px 0 80px; }

/* QR Card */
.sk-qr-card {
  background: linear-gradient(135deg, #0f0e0c, #1a1915);
  border-radius: 14px; overflow: hidden; color: white;
}
.sk-qr-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0.7;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sk-qr-tier { background: rgba(247,183,49,0.2); color: #f59e0b; padding: 3px 10px; border-radius: 10px; }
.sk-qr-card-body { padding: 24px; text-align: center; }
.sk-qr-big-img { border: 3px solid #f59e0b; padding: 8px; border-radius: 10px; background: white; }
.sk-qr-code-text { font-family: monospace; font-size: 0.8rem; opacity: 0.5; margin-top: 10px; letter-spacing: 1px; }
.sk-qr-hint { font-size: 0.78rem; opacity: 0.5; margin-top: 4px; }
.sk-qr-card-footer {
  display: flex; justify-content: space-between;
  padding: 12px 18px; background: rgba(255,255,255,0.04);
  font-size: 0.82rem; opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Link panel */
.sk-link-panel {
  background: #fef3c7; border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.sk-link-panel h3 { margin-bottom: 6px; font-size: 0.95rem; }
.sk-link-panel p  { font-size: 0.82rem; color: #6b7280; margin-bottom: 10px; }

/* Tickets */
.sk-tickets-section h3 { font-size: 0.95rem; margin-bottom: 10px; color: #1f2937; }

/* Settings */
.sk-settings-info { background: #f9fafb; border-radius: 10px; padding: 16px; margin-bottom: 4px; }
.sk-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-size: 0.88rem;
}
.sk-info-row:last-child { border-bottom: none; }
.sk-info-row span { color: #6b7280; }

/* Points reminder */
.sk-points-reminder {
  background: #fef3c7; border-left: 3px solid #f59e0b;
  padding: 10px 14px; border-radius: 6px; margin-bottom: 14px;
  font-size: 0.85rem; color: #92400e;
}

/* Empty state */
.sk-empty-msg { color: #9ca3af; font-size: 0.85rem; padding: 16px 0; }

/* ── EMBEDDED SCANNER ──────────────────────────── */
.sk-scanner-embed {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
}

.sk-scan-event-bar {
  padding: 10px 14px; background: #f9fafb; border-bottom: 1px solid #e5e7eb;
}
.sk-scan-event-sel {
  width: 100%; padding: 8px 10px; border: 1px solid #e5e7eb;
  border-radius: 6px; font-size: 0.82rem; background: white; outline: none;
  color: #1f2937;
}

.sk-scan-sync-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: #1f2937; gap: 8px;
}
.sk-scan-sync-info { font-size: 0.72rem; color: #9ca3af; }
.sk-scan-sync-info strong { color: #f59e0b; }
.sk-scan-btn-sm {
  padding: 4px 10px; font-size: 0.7rem; font-weight: 700;
  border: none; border-radius: 4px; cursor: pointer; transition: opacity 0.2s;
}
.sk-scan-btn-sm:disabled { opacity: 0.3; cursor: not-allowed; }
.sk-scan-dl { background: #1d4ed8; color: white; }
.sk-scan-up { background: #166534; color: white; }

/* scanner styles below */

/* ── CHECK-IN INFO ─────────────────────────────── */
.sk-checkin-info {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 14px;
}
.sk-checkin-info-icon { font-size: 1.8rem; flex-shrink: 0; }
.sk-checkin-info strong { display: block; color: #92400e; font-size: 0.9rem; margin-bottom: 3px; }
.sk-checkin-info p { font-size: 0.8rem; color: #b45309; margin: 0; line-height: 1.4; }

/* ── SCANNER ────────────────────────────────────── */
.sk-scan-camera-area {
  background: #1f2937;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  min-height: 260px;
}

.sk-scan-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #9ca3af;
  text-align: center;
}
.sk-scan-placeholder p { font-size: 0.85rem; margin-top: 6px; line-height: 1.5; }

/* Html5Qrcode container — ne sakrivaj ništa unutra! */
#sk-scan-qr-reader {
  width: 100%;
}
#sk-scan-qr-reader video {
  width: 100% !important;
  object-fit: cover !important;
}

/* Rezultat overlay */
.sk-scan-result-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.sk-scan-result-overlay.show { opacity: 1; pointer-events: auto; }
.sk-scan-result-card {
  background: #0f0e0c; border-radius: 14px; padding: 20px 24px;
  width: 100%; max-width: 280px; text-align: center;
  border: 3px solid transparent; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.sk-scan-result-card.ok   { border-color: #22c55e; background: #052e16; }
.sk-scan-result-card.err  { border-color: #ef4444; background: #2d0a0a; }
.sk-scan-result-card.warn { border-color: #f97316; background: #2d1500; }
.sk-scan-r-icon { font-size: 2.2rem; margin-bottom: 6px; }
.sk-scan-r-msg  { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.sk-scan-r-name { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.sk-scan-r-meta { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* Gumb za kameru */
.sk-scan-controls { margin-top: 12px; }
.sk-scan-main-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  display: block;
}
.sk-scan-main-btn:active { opacity: 0.85; transform: scale(0.98); }
.sk-scan-main-btn.stop   { background: #374151; }

/* ── TICKET QR CLICK ───────────────────────────── */
.sk-ticket-qr {
  cursor: pointer;
  transition: transform 0.15s;
  text-align: center;
  flex-shrink: 0;
}
.sk-ticket-qr:hover { transform: scale(1.05); }
.sk-ticket-qr img {
  border: 2px solid #f59e0b;
  padding: 4px;
  border-radius: 6px;
  display: block;
}
