:root {
  /* Primary Accents - Muted Sage/Teal */
  --primary: #7aa89f;
  --primary-dark: #5a8880;
  --accent-mint: #8cb8af;
  --accent-teal: #6b9d91;
  --accent-cyan: #7aa89f;
  
  /* Backgrounds - Deep Forest Green to Charcoal */
  --bg-dark: #0d1a14;
  --bg-charcoal: #151f1a;
  --bg-card: rgba(18, 32, 26, 0.55);
  --bg-card-solid: #12201a;
  --bg-input: rgba(12, 22, 18, 0.9);
  --bg-input-inset: #0a1410;
  --bg-sunken: #080e0b;
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #8b9eb5;
  --text-muted: #5a7a70;
  --text-label: #6b7f96;
  
  /* Borders - Muted Sage Green */
  --border: rgba(90, 140, 120, 0.25);
  --border-glow: rgba(122, 168, 159, 0.35);
  --glass-border: rgba(75, 110, 95, 0.22);
  --glass-border-light: rgba(100, 140, 120, 0.15);
  
  /* Glassmorphism */
  --glass-bg: rgba(18, 32, 26, 0.45);
  --glass-bg-elevated: rgba(22, 40, 32, 0.55);
  
  /* Glows */
  --glow-primary: rgba(122, 168, 159, 0.15);
  --glow-ambient: rgba(122, 168, 159, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    /* Central radial glow */
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(122, 168, 159, 0.06) 0%, transparent 60%),
    /* Subtle corner accents */
    radial-gradient(ellipse 100% 80% at 0% 100%, rgba(0, 180, 140, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 140, 110, 0.04) 0%, transparent 45%),
    /* Deep forest green to charcoal base */
    linear-gradient(170deg, #162820 0%, #0d1a14 35%, #0a1410 60%, #080e0b 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Header ── */
.top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(10, 18, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 50;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(122, 168, 159, 0.2));
}
.header-right { display: flex; align-items: center; gap: 0.75rem; }

/* ── Layout ── */
.main-content {
  flex: 1;
  margin-top: 72px;
  padding: 2.5rem 2rem;
  max-width: 1008px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow:
    0 0 40px rgba(122, 168, 159, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.stat-card:hover {
  background: rgba(22, 40, 32, 0.65);
  border-color: rgba(100, 140, 120, 0.3);
  transform: translateY(-2px);
  box-shadow:
    0 0 50px rgba(122, 168, 159, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.25);
}
.stat-value { font-size: 2.2rem; font-weight: 700; color: var(--accent-cyan); text-shadow: 0 0 30px rgba(122, 168, 159, 0.3); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.35rem; }

/* ── Mission Sub-tabs ── */
.mission-sub-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 auto 1.5rem auto;
  padding: 0.25rem;
  background: var(--bg-sunken);
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--glass-border-light);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mission-sub-tab {
  font-family: 'Scada', sans-serif;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.45rem 1.25rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.2s ease;
}
.mission-sub-tab:hover { color: rgba(255, 255, 255, 0.75); }
.mission-sub-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(122, 168, 159, 0.15) 0%, rgba(90, 136, 128, 0.08) 100%);
  border: 1px solid rgba(122, 168, 159, 0.25);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(122, 168, 159, 0.1);
}

.mission-sub-content { display: none; max-width: 720px; margin-left: auto; margin-right: auto; }
.mission-sub-content.active { display: block; animation: fadeIn 0.35s ease; }

/* ── Long-Term Asset Cards ── */
#longterm-assets-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lt-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.lt-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.lt-empty h3 {
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.lt-empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.lt-asset-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.lt-asset-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.lt-asset-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 170, 0, 0.35);
  flex-shrink: 0;
}
.lt-asset-info {
  flex: 1;
  min-width: 0;
}
.lt-asset-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-asset-handle {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.lt-asset-status {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(122, 168, 159, 0.12);
  color: var(--accent-cyan);
  white-space: nowrap;
}
.lt-asset-status.cooldown {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.lt-asset-status.ready {
  background: linear-gradient(135deg, rgba(255, 200, 55, 0.15), rgba(255, 170, 0, 0.1));
  color: #ffc837;
}

/* Long-term mission countdown timer */
.lt-countdown {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(122, 168, 159, 0.15);
  color: var(--accent-cyan);
}
.lt-countdown.urgent {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  animation: lt-pulse 2s ease-in-out infinite;
}
.lt-countdown.expired {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
@keyframes lt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Completed long-term missions */
.lt-asset-completed {
  opacity: 0.85;
  border: 1px solid rgba(46, 204, 113, 0.2);
}
.lt-status-badge.completed {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.lt-completed-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lt-completed-summary span {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Section headers */
.lt-section-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.lt-reply-section {
  margin-top: 0.75rem;
}
.lt-reply-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.lt-reply-input-row {
  display: flex;
  gap: 0.5rem;
}
.lt-reply-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 50px;
  background: var(--bg-sunken);
  border: 1px solid rgba(40, 60, 50, 0.4);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}
.lt-reply-input:focus {
  outline: none;
  border-color: rgba(122, 168, 159, 0.4);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(122, 168, 159, 0.08);
}
.lt-reply-input::placeholder {
  color: var(--text-muted);
}
.lt-reply-btn {
  padding: 10px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  color: #e0eadd;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  box-shadow:
    inset 0px 1px 1px rgba(255, 255, 255, 0.1),
    0px 4px 12px rgba(0, 0, 0, 0.4);
}
.lt-reply-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
  box-shadow:
    inset 0px 1px 1px rgba(255, 255, 255, 0.15),
    0px 0px 15px rgba(122, 168, 159, 0.1);
}
.lt-reply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.lt-reply-error {
  color: #ff6b6b;
  font-size: 0.78rem;
  margin-top: 0.4rem;
}

/* Submitted reply display */
.lt-submitted-reply {
  background: rgba(122, 168, 159, 0.06);
  border: 1px solid rgba(122, 168, 159, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}
.lt-submitted-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lt-submitted-label svg {
  color: var(--accent-cyan);
}
.lt-submitted-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* KOL response section */
.lt-kol-response-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lt-kol-response-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.lt-kol-response-awaiting {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.lt-kol-response-box {
  background: linear-gradient(135deg, rgba(255, 200, 55, 0.06), rgba(255, 170, 0, 0.03));
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.lt-kol-response-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #ffc837;
  margin-bottom: 0.4rem;
}
.lt-kol-response-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Cooldown timer */
.lt-cooldown-timer {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.lt-cooldown-time {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* Claims section */
.lt-claims-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lt-claims-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.lt-claims-row {
  display: flex;
  gap: 0.5rem;
}
.lt-claim-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 8px 12px;
  border-radius: 8px;
  /* target reply = teal */
  border: 1px solid rgba(122, 168, 159, 0.3);
  background: rgba(122, 168, 159, 0.07);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lt-claim-btn:hover:not(:disabled) {
  background: rgba(122, 168, 159, 0.14);
  border-color: rgba(122, 168, 159, 0.5);
}
.lt-claim-btn--shill {
  /* shill reply = gold */
  border-color: rgba(255, 200, 55, 0.3);
  background: rgba(255, 200, 55, 0.07);
  color: #ffc837;
}
.lt-claim-btn--shill:hover:not(:disabled) {
  background: rgba(255, 200, 55, 0.14);
  border-color: rgba(255, 200, 55, 0.5);
}
.lt-claim-btn--done {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}
.lt-claim-counter {
  background: rgba(0,0,0,0.2);
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}
.lt-claim-panel {
  margin-top: 0.6rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lt-claim-panel-hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
/* ── Team Section ── */
.team-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.team-add-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.team-search-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}

.team-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, rgba(26, 42, 38, 0.5) 0%, rgba(17, 29, 26, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 2px 8px rgba(0,0,0,0.3);
}

.team-search-input:focus {
  border-color: rgba(122, 168, 159, 0.35);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.07), 0 0 0 2px rgba(122,168,159,0.1);
}

.team-search-input::placeholder { color: var(--text-muted); }

.team-add-btn {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.4);
  color: #e0eadd;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}

.team-add-btn:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 0 15px rgba(122,168,159,0.1);
}

.team-add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.team-leave-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(80, 20, 20, 0.7) 0%, rgba(50, 10, 10, 0.7) 100%);
  border: 1px solid rgba(220, 60, 60, 0.25);
  color: rgba(255, 180, 180, 0.9);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 2px 8px rgba(0,0,0,0.3);
}

.team-leave-btn:hover {
  background: linear-gradient(180deg, rgba(110, 30, 30, 0.8) 0%, rgba(70, 15, 15, 0.8) 100%);
  border-color: rgba(220, 60, 60, 0.5);
  box-shadow: 0 0 12px rgba(220, 60, 60, 0.2);
}

.team-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--glass-bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.team-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.team-search-item:hover { background: rgba(122, 168, 159, 0.08); }

.team-search-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-search-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.team-search-name { font-weight: 500; color: var(--text-primary); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-search-username { font-size: 0.8rem; color: var(--text-muted); }
.team-search-add { color: var(--accent-cyan); font-weight: 600; font-size: 0.82rem; flex-shrink: 0; }
.team-search-empty { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

.team-section-title {
  font-family: 'Scada', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.1rem;
}

.team-members-section { margin-bottom: 2rem; }

.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.team-member-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(26, 42, 38, 0.45) 0%, rgba(17, 29, 26, 0.45) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.team-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(122,168,159,0.25);
  flex-shrink: 0;
}

.team-member-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.team-member-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-member-username { font-size: 0.8rem; color: var(--text-muted); }

.team-member-score {
  font-family: 'Scada', sans-serif;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.level-badge {
  display: inline-block;
  background: rgba(122, 168, 159, 0.1);
  border: 1px solid rgba(122, 168, 159, 0.28);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: 'Scada', sans-serif;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.team-activity-section { margin-top: 1.5rem; }

.team-submission-card {
  background: linear-gradient(180deg, rgba(26, 42, 38, 0.45) 0%, rgba(17, 29, 26, 0.45) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.team-submission-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.team-submission-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(122,168,159,0.2);
  flex-shrink: 0;
}

.team-submission-user { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; }
.team-submission-date { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); }

/* ── Header Profile Dropdown ── */
.profile-menu-wrapper {
  position: relative;
}

.profile-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s;
  border: none;
  background: none;
}

.profile-menu-trigger:hover {
  background: rgba(122, 168, 159, 0.08);
}

.profile-menu-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.header-wallet-addr {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Menlo', monospace;
  letter-spacing: 0.02em;
}

.profile-menu-wrapper.open .profile-menu-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--glass-bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
  display: none;
  animation: fadeIn 0.15s ease;
}

.profile-menu-wrapper.open .profile-dropdown {
  display: block;
}

.profile-dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-dropdown-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: block;
}

.profile-dropdown-pts {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.profile-dropdown-wallet {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Menlo', monospace;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.profile-dropdown-item:hover {
  background: rgba(122, 168, 159, 0.08);
  color: var(--text-primary);
}

.profile-dropdown-item.danger {
  color: rgba(255, 160, 160, 0.8);
}

.profile-dropdown-item.danger:hover {
  background: rgba(220, 60, 60, 0.1);
  color: rgba(255, 160, 160, 1);
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.25rem 0;
}

/* ── Referral Modal ── */
.referral-modal-content {
  max-width: 400px;
  text-align: center;
}

.referral-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.referral-link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.referral-link-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken);
  border: 1px solid var(--glass-border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.referral-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  color: #e0eadd;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.4);
}

.referral-copy-btn:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
}

.referral-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.referral-stat { display: flex; flex-direction: column; align-items: center; }
.referral-stat-value { font-family: 'Scada', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent-cyan); }
.referral-stat-label { font-size: 0.8rem; color: var(--text-muted); }

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
}

.modal-close-btn:hover { color: var(--text-primary); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 2rem auto;
  padding: 0.35rem;
  background: var(--bg-sunken);
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--glass-border-light);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* App Header Image */
.app-header-image {
  display: block;
  margin: 0 auto 2rem auto;
  height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(122, 168, 159, 0.15));
}
.tab {
  font-family: 'Scada', sans-serif;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.2s ease;
}
.tab:hover { color: rgba(255, 255, 255, 0.75); }
/* Active tab - recessed/pressed look */
.tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(122, 168, 159, 0.15) 0%, rgba(90, 136, 128, 0.08) 100%);
  border: 1px solid rgba(122, 168, 159, 0.25);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(122, 168, 159, 0.1);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Buttons ── */
.btn {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.1),
    0px 4px 12px rgba(0, 0, 0, 0.4);
  color: #e0eadd;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.btn:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.15),
    0px 0px 15px rgba(122, 168, 159, 0.1);
}
.btn:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none; 
}
.btn-secondary {
  background: linear-gradient(180deg, rgba(26, 42, 38, 0.5) 0%, rgba(17, 29, 26, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: rgba(224, 234, 221, 0.75);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.05),
    0px 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-secondary:hover { 
  background: linear-gradient(180deg, rgba(30, 49, 44, 0.6) 0%, rgba(21, 36, 32, 0.6) 100%);
  border-color: rgba(122, 168, 159, 0.15);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.1),
    0px 0px 12px rgba(122, 168, 159, 0.08);
}
.btn-danger {
  background: linear-gradient(180deg, rgba(80, 20, 20, 0.7) 0%, rgba(50, 10, 10, 0.7) 100%);
  border: 1px solid rgba(220, 60, 60, 0.25);
  color: rgba(255, 180, 180, 0.9);
  box-shadow: inset 0px 1px 1px rgba(255,255,255,0.05), 0px 2px 8px rgba(0,0,0,0.3);
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(110, 30, 30, 0.8) 0%, rgba(70, 15, 15, 0.8) 100%);
  border-color: rgba(220, 60, 60, 0.5);
  box-shadow: 0 0 12px rgba(220, 60, 60, 0.2);
}
.btn-write-perm {
  background: linear-gradient(180deg, rgba(60, 40, 10, 0.7) 0%, rgba(40, 25, 5, 0.7) 100%);
  border: 1px solid rgba(220, 160, 40, 0.3);
  color: rgba(255, 200, 80, 0.9);
  box-shadow: inset 0px 1px 1px rgba(255,255,255,0.05), 0px 2px 8px rgba(0,0,0,0.3);
}
.btn-write-perm:hover {
  border-color: rgba(220, 160, 40, 0.6);
  box-shadow: 0 0 12px rgba(220, 160, 40, 0.15);
}
.country-bar-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.country-block-btn {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(220, 60, 60, 0.3);
  background: rgba(80, 20, 20, 0.5);
  color: rgba(255, 160, 160, 0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.country-block-btn:hover { background: rgba(110, 30, 30, 0.7); border-color: rgba(220, 60, 60, 0.6); }
.country-block-btn.unblock {
  border-color: rgba(60, 180, 60, 0.3);
  background: rgba(10, 50, 10, 0.5);
  color: rgba(120, 220, 120, 0.85);
}
.country-block-btn.unblock:hover { background: rgba(15, 70, 15, 0.7); border-color: rgba(60, 180, 60, 0.6); }

/* ── Auth / wallet info ── */
.wallet-info { display: flex; align-items: center; gap: 0.6rem; }
.wallet-address {
  font-family: 'Scada', sans-serif;
  background: rgba(14, 26, 22, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.submission-count { font-size: 0.85rem; color: var(--accent-cyan); font-weight: 600; }

/* ── Tweet cards ── */
.tweet-list { display: flex; flex-direction: column; gap: 1.25rem; }
.tweet-card {
  position: relative;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  box-shadow:
    0 0 40px rgba(122, 168, 159, 0.03),
    0 6px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
/* Absolute pts badge (My Submissions) */
.sub-pts-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(122, 168, 159, 0.1);
  border: 1px solid rgba(122, 168, 159, 0.3);
  border-radius: 0 13px 0 12px;
  padding: 0.5rem 1.15rem;
  letter-spacing: 0.01em;
  pointer-events: none;
}
@media (max-width: 640px) {
  .sub-pts-badge { font-size: 0.88rem; padding: 0.35rem 0.8rem; }
}
.tweet-card:hover { 
  border-color: rgba(122, 168, 159, 0.3); 
  box-shadow: 
    0 0 50px rgba(122, 168, 159, 0.06),
    0 10px 36px rgba(0, 0, 0, 0.25);
}
.tweet-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.tweet-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--border); object-fit: cover; border: 2px solid var(--glass-border); }
.tweet-author { font-weight: 600; color: var(--text-primary); }
.tweet-username { font-size: 0.85rem; color: var(--accent-cyan); font-weight: 500; }
.tweet-text { margin-bottom: 1rem; white-space: pre-wrap; word-break: break-word; color: var(--text-label); line-height: 1.6; }
.tweet-time { font-size: 0.75rem; color: var(--text-muted); }

/* ── My Submissions – narrow list ── */
#my-submissions-list { max-width: 720px; margin: 0 auto; }

/* KOL tweet text – 3-line clamp with expand */
.sub-tweet-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-label);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.3rem;
}
.sub-tweet-text.expanded { display: block; overflow: visible; }
.sub-expand-btn {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.7rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.sub-expand-btn:hover { opacity: 1; }
.tweet-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }

/* ── Leaderboard ── */
/* Card wraps header + table as one unit */
.lb-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(122,168,159,0.03), 0 6px 24px rgba(0,0,0,0.2);
}
.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(12,22,18,0.5);
}
.lb-period-toggle { display:flex; gap:0; }
.lb-period-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.28rem 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lb-period-btn:hover { color:var(--text-primary); }
.lb-period-btn.active {
  background: rgba(122,168,159,0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}
.lb-reset-countdown { font-size:0.72rem; color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 1.1rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid rgba(75, 110, 95, 0.12);
}
.leaderboard-table th {
  background: rgba(12, 22, 18, 0.6);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.leaderboard-table tr:hover { background: rgba(122, 168, 159, 0.04); }
.rank { font-weight: 700; color: var(--accent-cyan); }
.rank-1 { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.rank-2 { color: #e8e8e8; text-shadow: 0 0 8px rgba(192, 192, 192, 0.35); }
.rank-3 { color: #e5a870; text-shadow: 0 0 8px rgba(205, 127, 50, 0.35); }
.lb-user { display: flex; align-items: center; gap: 0.6rem; }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--border); flex-shrink: 0; border: 1px solid var(--glass-border); }
.lb-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.lb-handle { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 480px) {
  .leaderboard-table th,
  .leaderboard-table td { padding: 0.65rem 0.5rem; }
  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) { display: none; } /* hide Level col */
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) { white-space: nowrap; text-align: right; }
  .lb-avatar { width: 26px; height: 26px; }
  .lb-user { gap: 0.35rem; }
  .lb-name { font-size: 0.82rem; max-width: 110px; }
  .lb-handle { display: none; }
  .rank { font-size: 0.82rem; }
}
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-cyan); flex-shrink: 0; }
.user-avatar-svg { display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--bg-card); }
.user-avatar-svg svg { width:100%; height:100%; }
.profile-avatar-placeholder { display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--bg-card); }
.profile-avatar-placeholder svg { width:100%; height:100%; }

/* ── Reply block (my submissions) ── */
.reply-block {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(122, 168, 159, 0.04);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.reply-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--border); flex-shrink: 0; margin-top: 2px; }
.reply-label { font-size: 0.75rem; color: var(--accent-cyan); font-weight: 600; margin-bottom: 0.25rem; }
.reply-link { font-size: 0.85rem; color: var(--text-label); text-decoration: none; word-break: break-all; }
.reply-link:hover { color: var(--accent-cyan); }
.reply-body { flex: 1; min-width: 0; }
.reply-row-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
.reply-text-body { font-size: 0.85rem; color: var(--text-label); white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.reply-score {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(122,168,159,0.07);
  border: 1px solid rgba(122,168,159,0.2);
  border-radius: 50px;
  padding: 2px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Small KOL bonus trigger button (bottom-right of card) */
.kol-bonus-trigger-btn {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed rgba(122,168,159,0.22);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.28rem 0.7rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.kol-bonus-trigger-btn:hover {
  background: rgba(122,168,159,0.07);
  border-color: rgba(122,168,159,0.38);
  color: var(--accent-cyan);
}

/* ── LLM / score badges ── */
.llm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(122, 168, 159, 0.06);
  border: 1px solid rgba(122, 168, 159, 0.2);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 0.7rem;
}
.llm-badge.low  { background: rgba(239,68,68,0.06);  border-color: rgba(239,68,68,0.2);  color: #ef4444; }
.llm-badge.mid  { background: rgba(250,204,21,0.06); border-color: rgba(250,204,21,0.2); color: #f59e0b; }
.llm-badge.high { background: rgba(122, 168, 159,0.08);  border-color: rgba(122, 168, 159,0.22); color: var(--accent-cyan); }
.llm-feedback { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; font-style: italic; }
.op-bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 0.5rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 32, 26, 0.95);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 9999;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: rgba(122, 168, 159, 0.35); box-shadow: 0 8px 40px rgba(122, 168, 159, 0.15); }
.toast.error { border-color: #f87171; box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.section-title { font-family: 'Scada', sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1.25rem; }

/* ── Landing screen ── */
#landing-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  text-align: center;
  padding: 3rem 2rem 2rem 2rem;
  position: relative;
  /* Extra centered glow for landing */
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(122, 168, 159, 0.08) 0%, transparent 70%);
}

.landing-card {
  max-width: 480px;
  padding: 1rem 2.5rem 3rem 2.5rem;
  /* No frame - transparent */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 16px;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.landing-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(122, 168, 159, 0.15));
  margin-top: 30px;
}

.landing-title {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(2.07rem, 6.21vw, 2.76rem);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  white-space: nowrap;
}

.landing-title .agency-name {
  font-size: 120%;
}

/* Recessed Glass Button */
.button-recessed-glass {
  /* Shape & Size */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;

  /* Background: Subtle Vertical Gradient */
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  
  /* The "Beveled Edge" Look */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.1),
    0px 4px 12px rgba(0, 0, 0, 0.4);

  /* Typography */
  color: #e0eadd;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: none;
}

.button-recessed-glass:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.15),
    0px 0px 15px rgba(122, 168, 159, 0.1);
}

.button-recessed-glass:active {
  transform: translateY(1px);
  background: #0d1614;
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.5); 
}

/* Secondary sign-in link on landing page */
.landing-signin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 9px;
  text-decoration: none;
  color: rgba(200, 220, 215, 0.65);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
}
.landing-signin-link:hover {
  color: rgba(200, 220, 215, 0.9);
  background: rgba(255,255,255,0.07);
}

/* Header sign-in button shown to guests */
.header-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9px;
  text-decoration: none;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.35);
  color: #e0eadd;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-signin-btn:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
}

/* Guest state panel shown in missions / wallet / team */
.mission-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0.75rem;
  color: var(--text-muted, #8a9e98);
}
.mission-guest h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  margin: 0;
}
.mission-guest p {
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0;
  color: var(--text-muted, #8a9e98);
}

/* ── Rate Limited State ── */
.mission-rate-limited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  text-align: center;
  gap: 1.75rem;
}
.rl-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  letter-spacing: -0.01em;
}
.rl-counters {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.rl-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.rl-count {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-cyan, #7aa89f);
  line-height: 1;
}
.rl-max {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted, #5a7a70);
}
.rl-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted, #5a7a70);
  text-transform: uppercase;
  margin-top: 0.1rem;
}
.rl-divider {
  width: 1px;
  height: 3rem;
  background: rgba(122, 168, 159, 0.15);
}
.rl-retry {
  font-size: 1rem;
  color: var(--text-muted, #5a7a70);
}
/* ── App Wrapper (fills full viewport so footer sticks to bottom) ── */
#app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── App Footer ── */
.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1rem 2.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Landing Footer ── */
.landing-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  padding: 0 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(122, 168, 159, 0.08);
  border-color: rgba(122, 168, 159, 0.2);
  color: var(--accent-cyan);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ── Legal Modals (Terms & Privacy) ── */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.legal-modal.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal-content {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  border: 1px solid rgba(75, 110, 95, 0.25);
  border-radius: 16px;
  padding: 2rem;
  overflow-y: auto;
  box-shadow:
    0 0 60px rgba(122, 168, 159, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.legal-modal.active .legal-modal-content {
  transform: translateY(0);
}

.legal-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.legal-title {
  font-family: 'Scada', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-label);
}

.legal-body h3 {
  font-family: 'Scada', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 0.75rem;
}

.legal-body ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body strong {
  color: var(--accent-cyan);
}

/* Scrollbar styling for modal */
.legal-modal-content::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.landing-logo {
  font-family: 'Scada', sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 700;
  /* Clean bold white font */
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  /* Very soft, large-radius ambient light behind text */
  text-shadow:
    0 0 60px rgba(122, 168, 159, 0.25),
    0 0 120px rgba(122, 168, 159, 0.12);
  filter: none;
  position: relative;
}

/* Ambient glow backdrop for logo */
.landing-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(122, 168, 159, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.landing-tagline {
  font-size: 1.05rem;
  /* Muted blue-grey for labels */
  color: var(--text-label);
  max-width: 400px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.8;
}

/* MOLTBUX keyword highlight - vibrant teal accent */
.landing-tagline strong {
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(122, 168, 159, 0.4);
}

/* Main CTA Button - Wide Pill Design */
.btn-twitter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  /* Solid, slightly desaturated green with subtle inner gradient */
  background: linear-gradient(180deg, #1fd9a8 0%, #18b892 50%, #15a582 100%);
  color: #0a1410;
  border: none;
  padding: 1.1rem 3rem;
  min-width: 280px;
  border-radius: 100px;
  font-family: 'Scada', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  /* Soft glow */
  box-shadow:
    0 4px 24px rgba(122, 168, 159, 0.25),
    0 0 50px rgba(122, 168, 159, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-twitter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
  border-radius: 100px 100px 0 0;
  pointer-events: none;
}

.btn-twitter:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #25e5b5 0%, #1fd9a8 50%, #18b892 100%);
  box-shadow:
    0 8px 32px rgba(122, 168, 159, 0.35),
    0 0 60px rgba(122, 168, 159, 0.15);
}

.btn-twitter:active {
  transform: translateY(0);
  box-shadow:
    0 2px 16px rgba(122, 168, 159, 0.2),
    0 0 40px rgba(122, 168, 159, 0.08);
}

/* Footer text on landing */
.landing-card p[style*="margin-top"] {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
}

/* ── Mission card ── */
.mission-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 
    0 0 50px rgba(122, 168, 159, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mission-skip-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid rgba(122, 168, 159, 0.2);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.mission-skip-btn:hover {
  color: var(--text-primary);
  border-color: rgba(122, 168, 159, 0.45);
}

/* Mission Header — big avatar + speech bubble */
.mission-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mission-header-img {
  width: 144px;
  height: 144px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

/* Speech bubble */
.mission-speech-bubble {
  position: relative;
  max-width: max-content;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 168, 159, 0.22);
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
  font-family: 'Scada', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
}

/* Tail pointing left */
.mission-speech-bubble::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid rgba(122, 168, 159, 0.22);
}

.mission-speech-bubble::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid rgba(255, 255, 255, 0.06);
}

.mission-speech-bubble em {
  font-style: normal;
  color: var(--accent-cyan);
}

/* Raid — red accent */
.mission-header-raid .mission-speech-bubble em {
  color: #f87171;
}
.mission-header-raid .mission-speech-bubble {
  border-color: rgba(248, 113, 113, 0.28);
}
.mission-header-raid .mission-speech-bubble::before {
  border-right-color: rgba(248, 113, 113, 0.28);
}
.mission-header-raid .mission-speech-bubble::after {
  border-right-color: rgba(255, 255, 255, 0.06);
}

/* Shill — gold accent */
.mission-header-shill .mission-speech-bubble em {
  color: #fbbf24;
}
.mission-header-shill .mission-speech-bubble {
  border-color: rgba(251, 191, 36, 0.28);
}
.mission-header-shill .mission-speech-bubble::before {
  border-right-color: rgba(251, 191, 36, 0.28);
}
.mission-header-shill .mission-speech-bubble::after {
  border-right-color: rgba(255, 255, 255, 0.06);
}

/* Asset mission — orange/gold gradient accent */
.mission-card-asset {
  border-color: rgba(255, 170, 0, 0.25);
  background: linear-gradient(135deg, rgba(255, 200, 55, 0.03), transparent 60%);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem !important;
}
.mission-asset-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ffc837, #ff8008);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px 4px 8px;
  border-radius: 50px;
}
.mission-header-asset .mission-speech-bubble em {
  background: linear-gradient(135deg, #ffc837, #ff8008);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mission-header-asset .mission-speech-bubble {
  border-color: rgba(255, 170, 0, 0.35);
}
.mission-header-asset .mission-speech-bubble::before {
  border-right-color: rgba(255, 170, 0, 0.35);
}
.mission-header-asset .mission-speech-bubble::after {
  border-right-color: rgba(255, 255, 255, 0.06);
}
.asset-tweet-card {
  border: 1px solid rgba(255, 170, 0, 0.25) !important;
  background: rgba(255, 200, 55, 0.03);
}
.asset-avatar {
  border: 2px solid rgba(255, 170, 0, 0.4);
}
.btn-asset {
  background: linear-gradient(135deg, #ffc837, #ff8008) !important;
  color: #1a1a1a !important;
  font-weight: 600;
}
.btn-asset:hover {
  filter: brightness(1.1);
}

/* == Rewards / Locks ======================================================= */

.rewards-container { display: flex; flex-direction: column; gap: 1.5rem; padding: 1rem 0; }
.rewards-section { background: var(--card-bg, #1a1a2e); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem; }
.rewards-section-title { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; color: var(--text, #fff); }
.rewards-loading { color: var(--text-muted, #888); font-size: 0.9rem; padding: 0.5rem 0; }
.rewards-error { color: var(--danger, #e94560); font-size: 0.9rem; }

/* Signup bonus status */
.signup-bonus-cta p, .bonus-verify-cta p, .bonus-share-cta p { color: var(--text-muted, #888); margin: 0 0 0.75rem; font-size: 0.9rem; }
.signup-bonus-result { display: flex; flex-direction: column; gap: 0.75rem; }
.bonus-score-display { display: flex; align-items: center; gap: 0.75rem; }
.bonus-score-value { font-size: 2.5rem; font-weight: 800; color: var(--primary, #e94560); line-height: 1; }
.bonus-tier-badge { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.05em; }
.bonus-reward-amount { font-size: 0.95rem; color: var(--text-muted, #888); }
.bonus-reward-amount strong { color: var(--text, #fff); }
.bonus-verified { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--success, #4caf50); }
.verified-badge { font-weight: 600; }

/* Locks summary — see full rules in Locks Tab section below */


@media (max-width: 480px) {
  .mission-speech-bubble {
    font-size: 0.95rem;
    white-space: normal;
    max-width: max-content;
  }
  .mission-header-img {
    width: 80px;
    height: 80px;
  }
}

/* Custom mission card (raid / shill) */
.mission-custom-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 168, 159, 0.18);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.mission-custom-title {
  font-family: 'Scada', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.mission-custom-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mission-points-badge {
  display: inline-block;
  background: rgba(122, 168, 159, 0.12);
  border: 1px solid rgba(122, 168, 159, 0.3);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.mission-keywords-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0.75rem 0 0.4rem;
}

.mission-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.mission-keyword-chip {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  font-family: 'Scada', sans-serif;
}

/* Raid mission — target tweet preview */
.mission-raid-target-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0.85rem 0 0.4rem;
}

.mission-raid-tweet-preview {
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}

.mission-raid-tweet-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.mission-raid-tweet-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Mission Layout with Character */
.mission-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-top: 1.5rem;
}

.mission-character {
  flex: 0 0 22%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mission-character-img {
  width: 100%;
  height: auto;
}

.mission-content {
  width: 100%;
  margin-top: 1.25rem;
}

.mission-speech-bubble {
  position: relative;
  background: var(--glass-bg-elevated);
  border: 1px solid rgba(122, 168, 159, 0.25);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  box-shadow: 
    0 0 30px rgba(122, 168, 159, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.mission-speech-bubble::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 18px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 14px 10px 0;
  border-color: transparent rgba(122, 168, 159, 0.35) transparent transparent;
}

.mission-speech-bubble::after {
  content: '';
  position: absolute;
  left: -11px;
  top: 19px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 12px 9px 0;
  border-color: transparent var(--glass-bg-elevated) transparent transparent;
}

.mission-type-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(122, 168, 159, 0.06);
  border: 1px solid rgba(122, 168, 159, 0.18);
  color: var(--accent-cyan); font-size: 0.72rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.mission-instructions {
  background: rgba(122, 168, 159, 0.02);
  border: 1px solid var(--glass-border-light);
  border-radius: 12px; padding: 1rem 1.25rem;
  margin: 1.25rem 0; font-size: 0.875rem;
  color: var(--text-label); line-height: 1.7;
}
.mission-instructions strong { color: var(--accent-cyan); }
.mission-section-label {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.6rem; margin-top: 1.5rem;
}
.mission-draft {
  width: 100%; 
  /* Sunken input - darker than card */
  background: var(--bg-sunken);
  border: 1px solid rgba(40, 60, 50, 0.4);
  border-radius: 12px;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 0.9rem; padding: 1rem 1.15rem;
  resize: vertical; min-height: 100px; line-height: 1.6;
  transition: all 0.25s ease;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35);
}
.mission-draft:focus { 
  outline: none; 
  border-color: rgba(122, 168, 159, 0.4); 
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(122, 168, 159, 0.08);
}
.mission-char-count { font-size: 0.7rem; color: var(--text-muted); text-align: right; margin-top: 6px; }
.mission-char-count.over { color: #f87171; }
.mission-verify-row { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.75rem; }
.mission-url-input {
  flex: 1; 
  /* Sunken input - darker than card */
  background: var(--bg-sunken);
  border: 1px solid rgba(40, 60, 50, 0.4);
  border-radius: 50px;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; padding: 0.7rem 1.1rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}
.mission-url-input:focus { 
  outline: none; 
  border-color: rgba(122, 168, 159, 0.4);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(122, 168, 159, 0.08);
}
.mission-verify-btn {
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  color: #e0eadd;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  letter-spacing: 0.5px;
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.1),
    0px 4px 12px rgba(0, 0, 0, 0.4);
}
.mission-verify-btn:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.15),
    0px 0px 15px rgba(122, 168, 159, 0.1);
}
.mission-error {
  display: none; margin-top: 0.6rem; font-size: 0.82rem; color: #f87171;
  padding: 0.55rem 0.9rem;
  background: rgba(248, 113, 113, 0.08); border-radius: 10px;
}
.mission-loading { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.mission-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(122, 168, 159, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%; animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mission-empty { text-align: center; padding: 5rem 2rem; }
.mission-empty-icon { font-size: 2.5rem; margin-bottom: 1.25rem; opacity: 0.7; }
.mission-empty h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.mission-empty p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.75rem; }

/* ── Rate Limited State ── */
.mission-rate-limited { text-align: center; padding: 5rem 2rem; }
.mission-rate-limited h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.mission-rate-limited p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.rate-limit-stats { margin: 0.75rem auto 0; display: inline-flex; flex-direction: column; gap: 0.2rem; }
.rate-limit-stats .stat-row { font-size: 0.8rem; color: var(--text-muted); }

/* ── Score screen ── */
.score-screen { text-align: center; padding: 1.75rem 0; max-width: 480px; margin: 0 auto; }
.score-screen .score-title { font-family: 'Scada', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.1rem; }
.score-header-img { width: 280px; height: 280px; object-fit: cover; border-radius: 14px; margin: 0 auto 1.25rem; display: block; }
.score-rating-row { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin-bottom: 1rem; flex-wrap: wrap; }
.score-star { font-size: 1.6rem; color: #fbbf24; line-height: 1; }
.score-rating-val { font-family: 'Scada', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.score-rating-denom { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.score-rating-sep { color: var(--text-muted); font-size: 1.1rem; }
.score-rating-pts { font-size: 1rem !important; padding: 4px 14px !important; }
.score-screen .llm-feedback { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.85rem; text-align: center; }
.score-total { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.score-bonus-note { font-size: 0.8rem; color: var(--primary); margin-top: 0.35rem; }
.score-icon {
  width: 64px; height: 64px; background: rgba(122, 168, 159,0.08);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1.25rem; color: var(--accent-cyan);
  box-shadow: 0 0 40px rgba(122, 168, 159, 0.15);
  border: 1px solid rgba(122, 168, 159, 0.15);
}
.score-icon svg { width: 30px; height: 30px; }
.score-title { font-family: 'Scada', sans-serif; font-size: 1.5rem; margin-bottom: 0.6rem; }
.score-points {
  font-family: 'Scada', sans-serif; font-size: 3.5rem;
  font-weight: 700; color: var(--accent-cyan); line-height: 1; margin-bottom: 1.25rem;
  text-shadow: 0 0 40px rgba(122, 168, 159, 0.35);
}
.score-points span { font-size: 1.2rem; }
.score-total { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .top-header { height: 52px; padding: 0 0.85rem; }
  .header-logo { height: 30px; }
  .header-right { gap: 0.4rem; }
  .wallet-info { gap: 0.35rem; }
  .wallet-address { font-size: 0.75rem; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .submission-count { font-size: 0.75rem; }
  .user-avatar { width: 28px; height: 28px; }
  .btn.btn-secondary { padding: 0.3rem 0.65rem; font-size: 0.75rem; }
  .main-content { margin-top: 52px; padding: 1.25rem 1rem; }
  .tabs { flex-wrap: nowrap; border-radius: 50px; width: 100%; justify-content: space-between; gap: 0.25rem; padding: 0.25rem; }
  .tab { padding: 0.45rem 0.6rem; font-size: 0.78rem; flex: 1; text-align: center; }
  .mission-card { padding: 1.25rem; border-radius: 18px; }
  .mission-card-asset { max-width: 100%; padding: 0.85rem !important; font-size: 0.9rem; }
  .stat-card { border-radius: 16px; padding: 1.1rem 1rem; }
  .mission-skip-btn { top: 0.75rem; right: 0.75rem; font-size: 0.72rem; padding: 3px 10px; }
  .mission-header { margin-top: 2rem; margin-bottom: 1.1rem; gap: 0.65rem; }
  .mission-header-img { width: 44px; height: 44px; }
  .mission-header-title { font-size: 0.97rem; }
  .mission-layout {
    flex-direction: row;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }
  
  .mission-character {
    flex: 0 0 80px;
  }
  
  .mission-speech-bubble::before,
  .mission-speech-bubble::after {
    /* keep visible — layout is always row */
  }

  /* ── Landing mobile ── */
  #landing-screen {
    padding: 2.5rem 1.25rem 2rem 1.25rem;
    justify-content: flex-start;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  .landing-card {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem 2rem 1rem;
    gap: 1.5rem;
  }

  .landing-title {
    white-space: normal;
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.25;
    word-break: break-word;
  }

  .landing-title .agency-name {
    display: block;
    font-size: 115%;
  }

  .landing-logo-img {
    max-width: 312px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .button-recessed-glass {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 15px;
  }

  .landing-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    max-width: 100%;
  }

  /* ── Team mobile ── */
  .team-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .team-add-group {
    width: 100%;
  }

  .team-search-wrapper {
    flex: 1;
  }

  .team-add-btn,
  .team-leave-btn {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .referral-link-box {
    flex-direction: column;
  }

  .referral-stats {
    gap: 1.5rem;
  }
}

/* ── Landing — very small screens (≤ 400px) ── */
@media (max-width: 400px) {
  #landing-screen {
    padding: 1.75rem 1rem 1.5rem 1rem;
  }

  .landing-title {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
  }

  .landing-logo-img {
    max-width: 234px;
    margin-top: 1rem;
  }

  .landing-card {
    gap: 1.25rem;
  }
}

/* ── KOL Bonus strip (My Submissions) ── */
.kol-bonus {
  margin-top: 1rem;
  border-top: 1px solid rgba(90, 140, 120, 0.13);
  padding-top: 0.85rem;
}

/* Available state — prompt to claim */
.kol-bonus-prompt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(122, 168, 159, 0.18);
  background: rgba(122, 168, 159, 0.04);
  transition: all 0.2s ease;
}
.kol-bonus-prompt:hover {
  background: rgba(122, 168, 159, 0.08);
  border-color: rgba(122, 168, 159, 0.3);
}
.kol-bonus-prompt-icon {
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}
.kol-bonus-prompt-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-label);
  line-height: 1.4;
}
.kol-bonus-prompt-text strong { color: var(--accent-cyan); }
.kol-bonus-pts {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(122, 168, 159, 0.08);
  border: 1px solid rgba(122, 168, 159, 0.2);
  border-radius: 50px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.kol-bonus-chevron {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.kol-bonus-chevron.open { transform: rotate(90deg); }

/* Expandable claim form */
.kol-bonus-form {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: rgba(8, 18, 14, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(122, 168, 159, 0.1);
}
.kol-bonus-hint {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  line-height: 1.5;
}
.kol-bonus-hint strong { color: var(--text-label); }
.kol-bonus-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.kol-bonus-input {
  flex: 1;
  background: var(--bg-sunken);
  border: 1px solid rgba(40, 60, 50, 0.5);
  border-radius: 50px;
  padding: 0.48rem 0.9rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.81rem;
  min-width: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}
.kol-bonus-input:focus {
  outline: none;
  border-color: rgba(122, 168, 159, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(122, 168, 159, 0.07);
}
.kol-bonus-btn {
  flex-shrink: 0;
  padding: 0.48rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(122, 168, 159, 0.1);
  border: 1px solid rgba(122, 168, 159, 0.3);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.kol-bonus-btn:hover:not(:disabled) {
  background: rgba(122, 168, 159, 0.18);
  border-color: rgba(122, 168, 159, 0.5);
  box-shadow: 0 0 14px rgba(122, 168, 159, 0.15);
}
.kol-bonus-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.kol-bonus-error {
  font-size: 0.77rem;
  color: #f87171;
  margin-top: 0.4rem;
  min-height: 1rem;
  padding-left: 0.1rem;
}

/* Awarded badge — step 1 or fully complete */
.kol-bonus-awarded {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: rgba(122, 168, 159, 0.05);
  border: 1px solid rgba(122, 168, 159, 0.14);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
}
.kol-bonus-awarded.complete { margin-bottom: 0; }
.kol-bonus-awarded-icon { font-size: 0.95rem; line-height: 1; }
.kol-bonus-awarded span { color: var(--text-label); }
.kol-bonus-awarded strong { color: var(--accent-cyan); }
.kol-bonus-awarded .sep {
  color: rgba(122, 168, 159, 0.3);
  margin: 0 0.25rem;
}

/* Legacy aliases kept for backward compat */
.bonus-claim-section { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid rgba(90,140,120,.15); }
.bonus-claimed { margin-top:.85rem; padding:.55rem .9rem; background:rgba(122,168,159,.05); border-radius:50px; font-size:.82rem; color:var(--accent-cyan); border:1px solid rgba(122,168,159,.12); }
.bonus-input { flex:1; background:var(--bg-sunken); border:1px solid rgba(40,60,50,.4); border-radius:50px; padding:.5rem .9rem; color:var(--text-primary); font-size:.82rem; min-width:0; box-shadow:inset 0 2px 4px rgba(0,0,0,.25); }
.bonus-input-row { display:flex; gap:.6rem; align-items:center; }
.bonus-error { font-size:.78rem; color:#f87171; margin-top:.4rem; min-height:1rem; }
.bonus-claim-hint { font-size:.8rem; color:var(--text-muted); margin-bottom:.6rem; line-height:1.55; }
.btn-sm { padding:.5rem 1.1rem; font-size:.82rem; border-radius:10px; }
.btn-outline { background:transparent; border:1px solid rgba(122,168,159,.3); color:var(--accent-cyan); box-shadow:none; }
.btn-outline:hover { background:rgba(122,168,159,.08); border-color:rgba(122,168,159,.5); box-shadow:0 0 12px rgba(122,168,159,.15); }

/* ── Glowing text accent ── */
.glow-text {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(122, 168, 159, 0.5), 0 0 25px rgba(122, 168, 159, 0.25);
}

/* ── Result Modal ── */
.result-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.result-modal-content {
  position: relative;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 60px rgba(122, 168, 159, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.result-modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 168, 159, 0.08);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  color: var(--accent-cyan);
  flex-shrink: 0;
  animation: iconPulse 0.6s ease-out;
}

@keyframes iconPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result-title {
  font-family: 'Scada', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 30px rgba(122, 168, 159, 0.3);
}

.result-header-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.result-rating {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.rating-score,
.rating-points {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
  background: rgba(122, 168, 159, 0.05);
  border: 1px solid rgba(122, 168, 159, 0.15);
  border-radius: 12px;
  text-align: center;
}

.rating-label,
.points-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rating-value {
  font-family: 'Scada', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(122, 168, 159, 0.5);
  animation: pointsCountUp 0.5s ease-out 0.2s backwards;
}

.rating-max {
  font-size: 1.5rem;
  opacity: 0.6;
}

.points-value {
  font-family: 'Scada', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(122, 168, 159, 0.5);
  animation: pointsCountUp 0.5s ease-out 0.2s backwards;
}

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

.result-review {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-light);
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.review-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
  font-style: italic;
  position: relative;
}

.review-text::before,
.review-text::after {
  font-size: 4rem;
  color: rgba(255, 255, 255, 1);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-text::before {
  content: '\201C';
  position: absolute;
  left: -1.5rem;
  top: -1.5rem;
}

.review-text::after {
  content: '\201D';
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
}

.button-result-continue {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background: linear-gradient(180deg, #1a2a26 0%, #111d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.1),
    0px 4px 12px rgba(0, 0, 0, 0.4);
  color: #e0eadd;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.button-result-continue:hover {
  background: linear-gradient(180deg, #1e312c 0%, #152420 100%);
  border-color: rgba(122, 168, 159, 0.2);
  box-shadow: 
    inset 0px 1px 1px rgba(255, 255, 255, 0.15),
    0px 0px 15px rgba(122, 168, 159, 0.1);
}

.button-result-continue:active {
  transform: translateY(1px);
  background: #0d1614;
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.button-result-skip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.button-result-skip:hover {
  color: var(--text-secondary);
}
.result-icon-error {
  background: rgba(255, 70, 85, 0.08);
  border-color: #ff4655;
  color: #ff4655;
}

.result-modal-error .result-title {
  color: #ff4655;
  text-shadow: 0 0 30px rgba(255, 70, 85, 0.3);
}

.error-message-box {
  background: rgba(255, 70, 85, 0.05);
  border-color: rgba(255, 70, 85, 0.15);
}

.error-message-box .review-text {
  color: #ffb3ba;
}

.error-message-box .review-text::before,
.error-message-box .review-text::after {
  color: rgba(255, 70, 85, 0.5);
}

/* Long Term Asset Modal */
.result-icon-asset {
  background: linear-gradient(135deg, rgba(255, 200, 55, 0.12), rgba(255, 170, 0, 0.08));
  border-color: #ffaa00;
  color: #ffc837;
}
.asset-modal-content .result-title {
  background: linear-gradient(135deg, #ffc837, #ff8008);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.asset-kol-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 200, 55, 0.06);
  border: 1px solid rgba(255, 200, 55, 0.15);
  border-radius: 14px;
  padding: 1.25rem 1.1rem 1rem;
  margin: 0.75rem 0;
}
.asset-kol-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 200, 55, 0.4);
}
.asset-kol-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}
.asset-kol-handle {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .result-modal {
    padding: 0.75rem;
    box-sizing: border-box;
    align-items: center;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
  }

  .result-modal-content {
    padding: 1.5rem 1rem 1.25rem;
    max-height: none;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
  }

  .welcome-modal-content {
    max-width: 100%;
    width: 100%;
    padding: 1.25rem 1rem 1.25rem;
  }

  .welcome-logout-row {
    top: 0.75rem;
    left: auto;
    right: 0.9rem;
  }

  .welcome-modal-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .welcome-modal-top .result-header-image {
    width: 72px;
    height: 72px;
    max-height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    border-radius: 10px;
  }

  .welcome-modal-top .result-header {
    margin-bottom: 0.35rem !important;
    justify-content: flex-start;
  }

  .welcome-modal-top .result-title {
    font-size: 1rem;
    text-align: left;
  }

  .welcome-modal-top .welcome-subtitle {
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .welcome-tweet-box {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    border-radius: 10px;
  }

  .btn-tweet-post {
    padding: 11px 20px;
    font-size: 14px;
    border-radius: 10px;
  }

  .welcome-actions {
    gap: 0.5rem;
  }

  .result-title {
    font-size: 1.25rem;
  }
  
  .result-rating {
    flex-direction: column;
  }
  
  .rating-value,
  .points-value {
    font-size: 1.75rem;
  }
}

/* ─── Welcome / Onboarding Modal ────────────────────────────────────────── */
.welcome-modal-content {
  max-width: 480px;
}

.welcome-modal-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1.25rem;
}

.welcome-modal-top .result-header-image {
  width: 100%;
  max-height: 175px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.welcome-modal-top-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-logout-row {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
}

.welcome-logout-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.welcome-logout-link:hover {
  opacity: 1;
  color: var(--text-label);
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-label);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  text-align: center;
}

.welcome-tweet-box {
  width: 100%;
  background: var(--bg-sunken, rgba(0,0,0,0.25));
  border: 1px solid rgba(122, 168, 159, 0.2);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 0.93rem;
  color: var(--text-primary);
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
  font-family: inherit;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.btn-tweet-post {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(122,168,159,0.18) 0%, rgba(122,168,159,0.08) 100%);
  border: 1px solid rgba(122, 168, 159, 0.35);
  color: var(--accent-cyan);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px rgba(122, 168, 159, 0.07);
}

.btn-tweet-post:hover {
  background: linear-gradient(160deg, rgba(122,168,159,0.26) 0%, rgba(122,168,159,0.14) 100%);
  border-color: rgba(122, 168, 159, 0.55);
  box-shadow: 0 0 28px rgba(122, 168, 159, 0.15);
  color: #fff;
}

.btn-tweet-post:active {
  transform: translateY(1px);
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.welcome-reward-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--accent-cyan);
  background: rgba(122, 168, 159, 0.08);
  border: 1px solid rgba(122, 168, 159, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.2rem;
}

.welcome-reward-badge strong {
  color: #fff;
  font-weight: 700;
}

.welcome-actions .btn-tweet-post {
  margin-bottom: 0;
}

.welcome-actions .button-result-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Welcome Modal Phases ────────────────────────────────────────────────── */

.welcome-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.welcome-title {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
}

.welcome-check-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.welcome-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(122, 168, 159, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}

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

.welcome-card-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.welcome-agent-card {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.welcome-offer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.welcome-mission-name {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

.welcome-bonus-text {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

.welcome-bonus-text strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.welcome-offer-question {
  font-size: 1rem;
  color: var(--text-bright);
  margin: 0.75rem 0 0.25rem;
}

.welcome-offer-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.welcome-offer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.welcome-offer-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.welcome-offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(122, 168, 159, 0.05);
  border: 1px solid rgba(122, 168, 159, 0.14);
  border-radius: 10px;
}

.welcome-offer-label {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.welcome-offer-value {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.welcome-mission-intro {
  font-size: 0.9rem;
  color: var(--text-label, #aab8b0);
  line-height: 1.55;
  text-align: center;
  margin: 0;
}

/* Post phase */
.welcome-post-header {
  font-size: 0.95rem;
  color: #e8ede8;
  line-height: 1.55;
  text-align: center;
  margin: 0 0 0.75rem;
}

.welcome-post-frame {
  width: 100%;
  border: 1px solid rgba(122, 168, 159, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(122, 168, 159, 0.04);
  margin-bottom: 0.75rem;
}

.welcome-post-card {
  width: 100%;
  display: block;
  border-radius: 0;
}

.welcome-post-caption {
  font-size: 0.88rem;
  color: #e8ede8;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  margin: 0;
  border-top: 1px solid rgba(122, 168, 159, 0.12);
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  resize: vertical;
  font-family: inherit;
  outline: none;
}
.welcome-post-caption:focus {
  background: rgba(122, 168, 159, 0.06);
  border-top-color: rgba(122, 168, 159, 0.35);
}

.welcome-share-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
}

.welcome-verify-error {
  width: 100%;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.7rem 0.9rem;
  margin: 0;
  text-align: left;
}

.welcome-btn-refuse {
  color: rgba(233, 69, 96, 0.7);
  text-decoration-color: rgba(233, 69, 96, 0.4);
}

.welcome-btn-refuse:hover {
  color: #e94560;
}

.welcome-share-text,
.welcome-manual-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

.welcome-share-buttons,
.welcome-manual-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.welcome-success-icon {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.welcome-success-icon svg {
  stroke: currentColor;
}

/* ─── Locks Tab ───────────────────────────────────────────────────────────── */

.locks-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.locks-header {
  background: rgba(23, 26, 32, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(122, 168, 159, 0.18);
  border-radius: 12px;
  padding: 1.25rem;
}

.locks-summary {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.lock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.lock-stat-value {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
}

.lock-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.locks-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lock-card {
  background: linear-gradient(180deg, rgba(26, 42, 38, 0.6) 0%, rgba(17, 29, 26, 0.6) 100%);
  border: 1px solid rgba(122, 168, 159, 0.18);
  border-radius: 14px;
  padding: 1rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 12px rgba(0,0,0,0.3);
  transition: border-color 0.2s ease;
}

.lock-card:hover {
  border-color: rgba(122, 168, 159, 0.32);
}

.lock-card.unlocked {
  border-color: rgba(122, 168, 159, 0.55);
  background: linear-gradient(180deg, rgba(26, 60, 45, 0.65) 0%, rgba(17, 40, 30, 0.65) 100%);
}

.lock-card.claimed {
  opacity: 0.45;
}

.lock-amount {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.lock-type {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  margin-bottom: 0.35rem;
}

.lock-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.lock-timer-ready {
  color: var(--accent-cyan);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.timer-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.timer-value {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 500;
}

.lock-status {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.lock-date {
  margin-left: 0.2rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.btn-claim {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(122, 168, 159, 0.35);
  background: linear-gradient(180deg, rgba(30, 55, 45, 0.9) 0%, rgba(18, 38, 30, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.3);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  width: auto;
  min-width: 7rem;
  margin-top: auto;
}

.btn-claim:hover:not(:disabled) {
  border-color: rgba(122, 168, 159, 0.6);
  background: linear-gradient(180deg, rgba(38, 70, 55, 0.95) 0%, rgba(24, 50, 38, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 14px rgba(122,168,159,0.12);
}

.btn-claim-disabled,
.btn-claim:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.locks-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 1rem;
}

.locks-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.locks-empty-text {
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 480px) {
  .locks-list { grid-template-columns: 1fr; }
  .lock-card { aspect-ratio: unset; min-height: 110px; }
}

/* ─── Wallet Styles ─────────────────────────────────────────────────────── */

.wallet-container {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-balance-card {
  background: linear-gradient(135deg, rgba(122, 168, 159, 0.08) 0%, rgba(30, 60, 50, 0.15) 100%);
  border: 1px solid rgba(122, 168, 159, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.balance-header {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.balance-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.balance-usdc {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.balance-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.wallet-section {
  background: rgba(20, 30, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
}

.wallet-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.wallet-not-linked p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Wallet sub-navigation */
.wallet-sub-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.wallet-sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wallet-sub-tab:hover {
  background: rgba(122, 168, 159, 0.06);
  color: var(--text-dim);
}

.wallet-sub-tab.active {
  background: rgba(122, 168, 159, 0.1);
  border-color: rgba(122, 168, 159, 0.25);
  color: var(--accent-cyan);
}

.wallet-sub-content {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-sub-content.active {
  display: flex;
}

/* Phantom connect button */
.wallet-connect-btn {
  width: 100%;
  justify-content: center;
}

.wallet-connect-btn--small {
  width: auto;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  margin-left: auto;
}

.wallet-address-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wallet-icon {
  font-size: 1.1rem;
}

.wallet-address,
.wallet-address-mono {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-bright);
  flex: 1;
}

.wallet-linked-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.wallet-linked-label .wallet-address-mono {
  color: var(--text-bright);
  flex: unset;
}

.wallet-unlink-btn {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.wallet-unlink-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}

.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.withdraw-input-group {
  display: flex;
  align-items: center;
  position: relative;
}

.withdraw-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem 0.75rem 2rem;
  font-size: 1rem;
  color: var(--text-bright);
  width: 100%;
  box-sizing: border-box;
}

.withdraw-input:focus {
  outline: none;
  border-color: rgba(122, 168, 159, 0.4);
}

.withdraw-dollar-sign {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0 0.25rem 0 0.75rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.withdraw-limits {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.withdraw-btn {
  width: 100%;
  margin-top: 2.5rem;
}

.withdraw-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.withdraw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.withdraw-error {
  color: #f87171;
  font-size: 0.8rem;
  min-height: 1.2rem;
}

.withdrawal-history {
  max-height: 300px;
  overflow-y: auto;
}

.withdrawal-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 1.5rem;
}

.withdrawal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.withdrawal-row:last-child {
  border-bottom: none;
}

.withdrawal-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.withdrawal-amount {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-bright);
}

.withdrawal-pts {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.withdrawal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.withdrawal-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.withdrawal-row.success .withdrawal-status {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.withdrawal-row.failed .withdrawal-status {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.withdrawal-row.pending .withdrawal-status {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.withdrawal-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.withdrawal-tx {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-decoration: none;
}

.withdrawal-tx:hover {
  text-decoration: underline;
}

.withdrawal-error-msg {
  width: 100%;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.25rem;
}

/* ─── Dashboard Styles ──────────────────────────────────────────────────── */

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-title {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: rgba(23, 26, 32, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(122, 168, 159, 0.18);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(122, 168, 159, 0.35);
  box-shadow: 0 4px 24px rgba(122, 168, 159, 0.08);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: 'Lexend Deca', sans-serif;
}

.dashboard-chart {
  background: rgba(23, 26, 32, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(122, 168, 159, 0.18);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.chart-title {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 1.5rem 0;
}

#country-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.country-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(15, 18, 22, 0.5);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.country-bar:hover {
  background: rgba(15, 18, 22, 0.8);
}

.country-flag {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
}

.country-name {
  flex: 0 0 140px;
  color: var(--text-bright);
  font-weight: 500;
  font-size: 0.95rem;
}

.country-bar-container {
  flex: 1;
  height: 24px;
  background: rgba(122, 168, 159, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.country-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(122, 168, 159, 0.6), rgba(122, 168, 159, 0.9));
  border-radius: 6px;
  transition: width 0.6s ease;
  position: relative;
  box-shadow: 0 0 12px rgba(122, 168, 159, 0.3);
}

.country-count {
  min-width: 60px;
  text-align: right;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(122, 168, 159, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

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

.dashboard-loading p {
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dashboard-title {
    font-size: 1.5rem;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .country-name {
    flex: 0 0 100px;
    font-size: 0.85rem;
  }
  
  .country-count {
    min-width: 50px;
    font-size: 0.85rem;
  }
}

/*  AI Assist Button (single image button)  */
.btn-ai-assist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(122,168,159,0.1);
  border: 1px solid rgba(122,168,159,0.25);
  border-radius: 10px;
  cursor: pointer;
  padding: 3px;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.btn-ai-assist:hover {
  background: rgba(122,168,159,0.22);
  transform: scale(1.05);
}
.btn-ai-assist:active { transform: scale(0.97); }

/*  Profile Tab  */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0.25rem;
}
.profile-section {
  padding: 0.25rem 0;
}
.profile-bonus-note {
  margin-top: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}


/* AI Assist Button */
.btn-ai-assist { display:inline-flex; align-items:center; justify-content:center; gap:0.35rem; width:auto; height:38px; background:rgba(122,168,159,0.1); border:1px solid rgba(122,168,159,0.25); border-radius:10px; cursor:pointer; padding:3px 12px 3px 8px; transition:background 0.15s,transform 0.1s; flex-shrink:0; font-size:0.78rem; font-weight:600; color:var(--text-primary); }
.btn-ai-assist:hover { background:rgba(122,168,159,0.22); transform:scale(1.05); }
.btn-ai-assist:active { transform:scale(0.97); }

/* Profile Tab */
.profile-container { max-width:600px; margin:0 auto; padding:0 0.25rem; }
.profile-section { padding:0.25rem 0; }
.profile-bonus-note { margin-top:0.75rem; font-size:0.83rem; color:var(--text-muted); text-align:center; line-height:1.5; }
.verify-row { display:flex; align-items:center; gap:0.75rem; margin-top:0.75rem; padding:0.75rem; background:var(--bg-card); border-radius:10px; border:1px solid var(--border-color); }
.verify-row-text { flex:1; font-size:0.85rem; color:var(--text-muted); }
@media (max-width:480px) {
  .verify-row { flex-direction:column; }
  .verify-row-text { text-align:center; }
  .verify-row .button-recessed-glass { width:100%; }
}

/* Profile Overlay */
.profile-overlay { max-width:600px; margin:0 auto; padding:0 0.25rem; }
.profile-back-btn { display:inline-flex; align-items:center; gap:6px; background:none; border:none; color:var(--text-muted); font-size:0.85rem; cursor:pointer; padding:4px 0; margin-bottom:1.25rem; transition:color 0.15s; }
.profile-back-btn:hover { color:var(--text-primary); }
.profile-avatar-header { display:flex; flex-direction:column; align-items:center; gap:0.6rem; margin-bottom:1.5rem; }
.profile-avatar-large { width:120px; height:120px; border-radius:50%; object-fit:cover; border:2px solid var(--accent-cyan); }
.profile-avatar-placeholder { background:var(--bg-card); }
.profile-display-name { font-size:1rem; font-weight:600; color:var(--text-primary); }
