/* ============================================================
   TAG Awards — Design System
   Sonicon HR Culture Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Nunito:wght@700;800;900&display=swap');

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

/* ---- Poster-inspired palette: sky blue bg, orange accents, deep teal ---- */
:root {
  --navy:        #0B3D5E;   /* deep teal-navy (poster dark tones) */
  --navy-light:  #1B7FA3;   /* medium teal (poster mid tones) */
  --navy-card:   #0D4E72;
  --orange:      #F07B1A;   /* poster orange (main accent) */
  --orange-light:#FFA040;
  --orange-dim:  rgba(240,123,26,0.15);
  --gold:        #F07B1A;   /* alias for orange */
  --gold-light:  #FFA040;
  --gold-dim:    rgba(240,123,26,0.15);
  --sky:         #C8E8F5;   /* poster sky blue */
  --sky-dark:    #A0D4EE;
  --white:       #ffffff;
  --bg:          #E3F2FA;   /* light sky blue page background */
  --card:        #ffffff;
  --text:        #0B2E45;
  --text-muted:  #5A7A93;
  --border:      #C5DFF0;
  --success:     #10b981;
  --danger:      #ef4444;
  --info:        #1B7FA3;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(11,61,94,0.10);
  --shadow-lg:   0 8px 40px rgba(11,61,94,0.18);
  --sidebar-w:   260px;
  --transition:  0.2s ease;
}

html { font-size: 15px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  /* Subtle cloud/sky texture from the poster */
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(26,127,163,0.08) 0%, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.app-layout.ready {
  opacity: 1;
}

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0B3D5E 0%, #07263C 100%);
  border-right: 1px solid rgba(200,232,245,0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo a {
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.logo-tag {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(240,123,26,0.3);
}

.logo-awards {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  margin-left: 4px;
  opacity: 0.9;
}

.logo-company {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 16px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.nav-item.active {
  background: rgba(240,123,26,0.18);
  color: var(--orange-light);
  border-left: 3px solid var(--orange);
}

.nav-icon { font-size: 17px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
  margin-bottom: 8px;
}

.sidebar-user:hover { background: rgba(255,255,255,0.06); }

.nav-avatar-img, .nav-avatar-initials {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-avatar-initials {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.logout-btn {
  width: 100%;
  padding: 9px 14px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.logout-btn:hover { background: rgba(239,68,68,0.22); color: #fff; }

.lang-toggle {
  width: 100%;
  padding: 7px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  margin-bottom: 8px;
}

.lang-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Mobile sidebar */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

.sidebar-overlay.visible { display: block; }

/* Main content area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  padding: 40px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--navy);
}

.login-branding {
  flex: 1;
  background: linear-gradient(160deg, #0B3D5E 0%, #1B7FA3 55%, #1B9FCC 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

/* Sun orb from the poster */
.login-branding::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,123,26,0.22) 0%, rgba(240,123,26,0.06) 55%, transparent 75%);
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
}

.login-brand-logo { text-align: center; position: relative; z-index: 1; }

.login-brand-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 88px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 6px;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(240,123,26,0.4);
}

.login-brand-awards {
  font-family: 'Nunito', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}

.login-brand-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  letter-spacing: 1px;
}

.login-values {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.login-value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.login-value-icon { font-size: 22px; }
.login-value-char {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.login-value-char-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.login-value-name { font-size: 14px; font-weight: 600; color: var(--white); }
.login-value-desc { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.login-company {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.login-form-panel {
  width: 420px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
}

.login-form-panel h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.login-form-panel p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   HERO BANNER
   ============================================================ */

/* Poster-inspired hero: sky-to-teal gradient with orange sun glow */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 65%, #1B9FCC 100%);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(11,61,94,0.22);
}

/* Sunrise / sun orb echo from the poster */
.hero::before {
  content: '';
  position: absolute;
  right: 60px; top: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,123,26,0.28) 0%, rgba(240,123,26,0.06) 55%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: 'TAG';
  position: absolute;
  right: 28px; bottom: -12px;
  font-family: 'Nunito', sans-serif;
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: 6px;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: 0.4px;
}

.hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  position: relative;
}

.hero-chips {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  position: relative;
}

.hero-chip {
  background: rgba(240,123,26,0.2);
  border: 1px solid rgba(240,123,26,0.45);
  color: var(--orange-light);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.required { color: var(--danger); margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="password"],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7c93' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

.char-counter { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* ---- Voice Recording ---- */
.voice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.mic-btn:hover { border-color: var(--orange); color: var(--orange); }

.mic-btn.recording {
  border-color: var(--danger);
  background: #fef2f2;
  color: var(--danger);
  animation: pulse-border 1.2s ease-in-out infinite;
}

.mic-status {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.mic-status.active { color: var(--danger); font-weight: 600; }

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 0 5px rgba(239,68,68,0.18); }
}

/* ---- Notification badge (unread count on sidebar bell icon) ---- */
.notif-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ---- Extra badge variant ---- */
.badge-grey { background: #e2e8f0; color: #475569; }

/* ---- Native audio player accent colour ---- */
audio { accent-color: var(--orange); width: 100%; }

/* ---- Sidebar nav scrolls if content exceeds height ---- */
.sidebar-nav {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* ---- Nomination picker (declare winners) ---- */
.nom-pick-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 10px;
}

.nom-pick-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.nom-pick-card.selected { border-color: var(--orange); background: #FEF8F0; box-shadow: 0 0 0 3px rgba(240,123,26,0.12); }

.nom-pick-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 12px; }
.nom-pick-person { font-weight: 700; font-size: 14px; }
.nom-pick-date { font-size: 12px; color: var(--text-muted); }
.nom-pick-story { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-style: italic; border-left: 3px solid var(--orange); padding-left: 10px; }

/* ---- Value Selector ---- */
.value-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.value-option { position: relative; }
.value-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.value-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  gap: 10px;
  line-height: 1.4;
}

.value-option label .v-icon { font-size: 28px; }

/* Character image icons */
.value-option label .v-char {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 0;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}
.value-option label:hover .v-char,
.value-option input[type="radio"]:checked + label .v-char {
  transform: scale(1.1) translateY(-4px);
}
.value-option label .v-char-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: -4px;
}

.value-option input[type="radio"]:checked + label {
  border-color: var(--orange);
  background: linear-gradient(135deg, #FEF3E6, #FFF8F0);
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(240,123,26,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.value-option label:hover { border-color: var(--orange); color: var(--navy); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--navy-light); box-shadow: 0 4px 16px rgba(11,61,94,0.28); }

.btn-gold { background: var(--orange); color: var(--white); font-weight: 700; }
.btn-gold:hover:not(:disabled) { background: var(--orange-light); box-shadow: 0 4px 16px rgba(240,123,26,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); }

.btn-danger-soft { background: #fef2f2; color: var(--danger); border: 1.5px solid #fecaca; }
.btn-danger-soft:hover:not(:disabled) { background: #fee2e2; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ============================================================
   TABLES
   ============================================================ */

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead tr { background: var(--navy); }
thead th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 12px; color: rgba(255,255,255,0.85); white-space: nowrap; letter-spacing: 0.3px; }

tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
td { padding: 12px 16px; color: var(--text); vertical-align: middle; }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-together      { background: #dbeafe; color: #1e40af; }
.badge-accountability { background: #fef3c7; color: #92400e; }
.badge-growth        { background: #d1fae5; color: #065f46; }
.badge-danger        { background: #fee2e2; color: #991b1b; }

/* ============================================================
   STATS / ANALYTICS CARDS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   NOMINATION CARDS (dashboard)
   ============================================================ */

.nom-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition);
  margin-bottom: 12px;
}

.nom-card:hover { box-shadow: var(--shadow); }

.nom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.nom-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.nom-person-name { font-weight: 600; font-size: 14px; }
.nom-person-date { font-size: 12px; color: var(--text-muted); }

.nom-story {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   WINNER CARDS
   ============================================================ */

.winners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.winner-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.winner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.winner-card-top {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 70%, #1B9FCC 100%);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.winner-card-top::before {
  content: '';
  position: absolute;
  right: -20px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,123,26,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.winner-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-card);
  color: var(--gold);
  font-size: 24px;
  font-weight: 700;
}

.winner-name { font-size: 16px; font-weight: 700; color: var(--white); }
.winner-role { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }

.winner-card-bottom {
  padding: 18px 20px;
}

.winner-month {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.winner-story {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-photo-card {
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  color: var(--gold);
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 4px solid var(--border);
}

.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.profile-photo-upload { display: none; }

.profile-upload-btn {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 32px; height: 32px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background var(--transition);
}

.profile-upload-btn:hover { background: var(--gold-light); }

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */

.success-screen {
  text-align: center;
  padding: 48px 24px;
  display: none;
}

.success-screen .s-icon { font-size: 64px; margin-bottom: 16px; }
.success-screen h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.success-screen p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ============================================================
   MISC
   ============================================================ */

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}

.empty-state .e-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

.section-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-btn:hover { color: var(--text); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  padding: 32px;
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .winners-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .main-content { margin-left: 0; padding: 24px 16px; padding-top: 68px; }
  .login-branding { display: none; }
  .login-form-panel { width: 100%; padding: 40px 28px; }
  .value-selector { grid-template-columns: 1fr; }
  .winners-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 28px 20px; }
  .card { padding: 20px 16px; }
}

/* ============================================================
   DESIGN ENHANCEMENTS v2 — Modern, polished, mobile-first
   ============================================================ */

/* Better card — subtle lift on hover */
.card {
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: 0 8px 36px rgba(11,61,94,0.13);
}

/* Stat cards — colored accent top bar per position */
.stat-card {
  border-top: 3px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card:nth-child(1) { border-top-color: var(--orange); }
.stat-card:nth-child(2) { border-top-color: var(--navy-light); }
.stat-card:nth-child(3) { border-top-color: var(--success); }
.stat-card:nth-child(4) { border-top-color: #8b5cf6; }
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(11,61,94,0.13);
}

/* Gradient primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--navy-light) 0%, #1B9FCC 100%);
  box-shadow: 0 4px 20px rgba(11,61,94,0.32);
}

/* Gradient gold button */
.btn-gold {
  background: linear-gradient(135deg, #E86E10 0%, var(--orange) 50%, var(--orange-light) 100%);
}
.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  box-shadow: 0 4px 20px rgba(240,123,26,0.42);
}

/* Nav item — smoother hover */
.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transform: translateX(3px);
  transition: all 0.18s ease;
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(240,123,26,0.18) 0%, rgba(240,123,26,0.04) 100%);
  color: var(--orange-light);
  border-left: 3px solid var(--orange);
  padding-left: 11px;
}

/* Nom card — left accent on hover */
.nom-card {
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.nom-card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 4px 20px rgba(11,61,94,0.1);
  transform: translateX(2px);
}

/* Winner card — smoother lift */
.winner-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(11,61,94,0.2);
}

/* Input focus — orange accent */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,123,26,0.12);
}

/* Better table header */
thead tr {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
}

/* Tap highlight off */
* { -webkit-tap-highlight-color: transparent; }

/* ============================================================
   MOBILE TOP BAR
   ============================================================ */

.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: linear-gradient(90deg, #0B3D5E 0%, #0D4E72 100%);
  z-index: 250;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 16px rgba(11,61,94,0.3);
}

.mobile-menu-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.15); }

.mobile-top-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-top-bar-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.mobile-top-bar-title {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.mobile-top-bar-title span { color: var(--orange); }

.mobile-top-bar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  overflow: hidden;
}
.mobile-top-bar-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================ */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 250;
  box-shadow: 0 -4px 24px rgba(11,61,94,0.09);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: var(--text-muted);
  gap: 3px;
  padding: 8px 4px 6px;
  transition: all 0.18s ease;
  position: relative;
}

.mbn-icon { font-size: 22px; line-height: 1; transition: transform 0.18s ease; }
.mbn-label { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }

.mbn-item.active { color: var(--orange); }
.mbn-item.active .mbn-icon { transform: scale(1.12); }

.mbn-item::after {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2.5px;
  background: var(--orange);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.mbn-item.active::after { transform: scaleX(1); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .mobile-top-bar { display: flex; }
  .mobile-bottom-nav { display: flex; }

  /* Hide old floating hamburger */
  .sidebar-toggle { display: none !important; }

  /* Push content below top bar + above bottom nav */
  .main-content {
    padding-top: 74px !important;
    padding-bottom: 80px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero on mobile */
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 21px; }
  .hero p { font-size: 13px; }
  .hero::after { font-size: 80px; }

  /* Cards tighter */
  .card { padding: 20px 16px; }

  /* Stats 2-column */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-value { font-size: 26px; }
  .stat-card { padding: 18px; }

  /* Winners single column */
  .winners-grid { grid-template-columns: 1fr; }

  /* Value selector single column on mobile */
  .value-selector { grid-template-columns: 1fr; gap: 10px; }
  .value-option label { flex-direction: row; text-align: left; padding: 12px 14px; gap: 14px; font-size: 13px; }
  .value-option label .v-icon { font-size: 24px; }
  .value-option label .v-char { width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; }
  .value-option label .v-char-name { margin-top: 0; }

  /* Profile layout */
  .profile-layout { grid-template-columns: 1fr; }

  /* Modal full height on mobile */
  .modal { max-height: 90vh; overflow-y: auto; padding: 24px 20px; }

  /* Tables scroll */
  .table-wrap { font-size: 12px; }

  /* Nomination card */
  .nom-card { padding: 16px; }

  /* Page header */
  .page-header h1 { font-size: 20px; }

  /* Buttons full width on mobile forms */
  form .btn-full { font-size: 15px; padding: 13px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-chips { gap: 6px; }
  .hero-chip { font-size: 11px; padding: 4px 10px; }
}
