/* Global Pool Combinator (해외 조합기) - Master Stylesheet */
:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #243447;
  --border-color: #334155;
  --border-active: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef08a;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  overflow-y: scroll;
  overflow-anchor: none;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 60px;
  line-height: 1.5;
  overflow-anchor: none;
}

/* Header */
header {
  background: linear-gradient(180deg, #111827 0%, rgba(17, 24, 39, 0.95) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-gold));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.patent-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  padding-bottom: 2px;
}

@media (max-width: 820px) {
  .header-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
    padding-bottom: 4px;
  }
  .header-controls::-webkit-scrollbar {
    height: 4px;
  }
  .header-controls::-webkit-scrollbar-track {
    background: #0f172a;
  }
  .header-controls::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
  }
}

.top-scroll-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-select-scroll {
  background: #0f172a;
  color: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: all 0.18s;
}

.top-select-scroll:hover,
.top-select-scroll:focus {
  border-color: var(--accent-cyan);
  background: #17253b;
}

.country-select-highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.2));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.country-select-highlight option {
  background: #0f172a;
  color: #f8fafc;
}

.btn-toggle-group {
  display: flex;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.toggle-option {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.toggle-option.active {
  background: var(--accent-blue);
  color: #fff;
}

/* Country Pool Bar */
.country-bar {
  max-width: 1400px;
  margin: 14px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
}

.country-btn:hover {
  border-color: var(--accent-cyan);
  background: #17253b;
  transform: translateY(-1px);
}

.country-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(16, 185, 129, 0.22));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.country-flag {
  font-size: 1.55rem;
  line-height: 1;
}

.country-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  width: 100%;
}

.country-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.country-meta strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.country-round-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.75);
  color: #fde047;
  font-size: 0.69rem;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.country-btn.active .country-round-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fef08a;
  color: #0f172a;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.country-meta small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.board-round-badge {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: 1px solid #7dd3fc;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* Round Selector & Auto-Update Bar */
.round-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.round-select-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.round-select-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.round-select {
  background: #1e293b;
  color: #fff;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

.round-select:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.round-deadline-info {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auto-update-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.auto-update-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 1.6s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.last-sync-time {
  font-size: 0.73rem;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.btn-sync-now {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.btn-sync-now:hover {
  background: #243447;
  border-color: var(--accent-cyan);
  color: #fff;
}

/* Past Round Result Banner */
.past-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.83rem;
}

.past-result-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fef08a;
}

.past-result-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* Match Row Extended Info & Finished Result Badges */
.match-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.match-league-tag {
  color: #93c5fd;
  font-weight: 700;
}

.match-date-tag {
  color: var(--text-sub);
}

.match-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.match-status-pill.open {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.match-status-pill.finished {
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.match-status-pill.live {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.5);
}

.score-vs-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
}

.score-badge {
  background: #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fef08a;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 1px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.actual-result-cell {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  text-align: center;
  white-space: nowrap;
}

.pick-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  white-space: nowrap;
}

.pick-type-badge.double {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.pick-type-badge.triple {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde047;
}

.result-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.result-outcome-badge.res-1 {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid #60a5fa;
  color: #93c5fd;
}

.result-outcome-badge.res-X {
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid #fbbf24;
  color: #fde68a;
}

.result-outcome-badge.res-2 {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid #f87171;
  color: #fca5a5;
}

.hit-check-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-top: 2px;
}

.hit-check-tag.hit {
  color: #34d399;
}

.hit-check-tag.miss {
  color: #fb7185;
}

.pick-btn.actual-winner {
  outline: 2px solid #fde047;
  outline-offset: 1px;
  position: relative;
}

.pick-btn.actual-winner::after {
  content: '★';
  position: absolute;
  top: -7px;
  right: -5px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.58rem;
  font-weight: 900;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

.slips-grade-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(37, 99, 235, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.slip-card.prize-1st {
  border-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.slip-card.prize-2nd {
  border-color: #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.95));
}

.slip-mark-badge.actual-hit {
  box-shadow: 0 0 0 1.5px #fde047;
}

.slip-mark-badge.actual-miss {
  opacity: 0.42;
}

.slip-hit-badge {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.slip-hit-badge.win-1st {
  background: #f59e0b;
  color: #0f172a;
}

.slip-hit-badge.win-2nd {
  background: #10b981;
  color: #0f172a;
}

/* Layout */
.main-container {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* Section Box */
.section-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-actions {
  display: flex;
  gap: 8px;
}

.btn-tool {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-tool:hover {
  background: #334155;
  border-color: #64748b;
}

/* Match Picking Table */
.match-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.match-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.15s, border-color 0.15s;
}

.match-row:hover {
  background: var(--bg-card-hover);
  border-color: #475569;
}

.match-cell {
  padding: 10px 12px;
  vertical-align: middle;
}

.match-seq {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.pick-cell {
  width: 164px;
  min-width: 164px;
  max-width: 164px;
}

.match-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  width: 140px;
  transition: border-color 0.2s;
}

.team-input:focus {
  background: #0f172a;
  border-color: var(--border-active);
  outline: none;
}

.match-vs {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 800;
}

/* Pick Buttons (1 / X / 2) */
.pick-btn-group {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.pick-btn {
  width: 46px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: #0f172a;
  color: var(--text-muted);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transform: none !important;
}

.pick-btn::before {
  content: attr(data-mark-label);
  display: inline-block;
  line-height: 1;
  pointer-events: none;
}

.pick-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.pick-btn.selected {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}

.pick-btn.selected.draw {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.45);
}

.pick-btn.selected.away {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
}

/* Sidebar Dashboard */
.stat-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.stat-value.highlight {
  color: var(--accent-gold);
}

.stat-value.emerald {
  color: var(--accent-emerald);
}

/* Primary Execution Button */
.btn-execute {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
  margin-bottom: 20px;
}

.btn-execute:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Filter Box */
.filter-box {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-input {
  width: 50px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 700;
}

/* Slips Output Container */
.slips-container {
  margin-top: 24px;
}

.slips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.slip-card {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slip-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.slip-marks {
  display: flex;
  gap: 3px;
  font-family: monospace;
}

.slip-mark-badge {
  width: 17px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 3px;
  background: #334155;
  color: #fff;
}

.slip-mark-badge.mark-1 { background: #2563eb; }
.slip-mark-badge.mark-X { background: #d97706; }
.slip-mark-badge.mark-2 { background: #dc2626; }

/* Distribution Matrix */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: center;
}

.matrix-table th, .matrix-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-table th {
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

/* Patent Legal Footer */
.patent-footer {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.patent-footer-inner {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patent-footer-inner strong {
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  margin-left: 6px;
}

.patent-footer-inner p {
  line-height: 1.5;
  color: var(--text-sub);
}

/* ==================== Google Login & VIP Card Payment UI ==================== */
.header-auth-box {
  display: flex;
  align-items: center;
}

.btn-google-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.18s;
}

.btn-google-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  background: #f8fafc;
}

.user-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-profile-meta strong {
  font-size: 0.75rem;
  color: #f8fafc;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pass-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: #94a3b8;
}

.user-pass-badge.vip {
  color: #fde047;
}

.btn-upgrade-mini {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-logout-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
}

.btn-logout-mini:hover {
  color: var(--accent-rose);
}

/* Auth & Payment Modal */
.auth-pay-modal {
  position: relative;
  max-width: 680px;
  background: linear-gradient(180deg, #111827 0%, #0a0f1d 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #1e293b;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--accent-rose);
}

.modal-brand-head {
  text-align: center;
  margin-bottom: 18px;
}

.modal-brand-head h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 8px;
  color: #fff;
}

.modal-brand-head p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-step-box {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.step-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.step-num-badge {
  background: #2563eb;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
}

.step-num-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
}

.step-done-tag {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.google-email-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.google-email-input {
  flex: 1;
  min-width: 200px;
  background: #0f172a;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.google-email-input:focus {
  border-color: var(--accent-cyan);
}

.btn-google-signin-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-google-signin-main:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.logged-in-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* Plan Cards */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .plan-cards-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  background: #0f172a;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.plan-card:hover {
  border-color: #64748b;
}

.plan-card.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(16, 185, 129, 0.18));
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.28);
}

.plan-recommend-ribbon {
  position: absolute;
  top: -9px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: 999px;
}

.plan-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-gold-light);
  margin-bottom: 4px;
}

.plan-price small {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
}

.plan-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Credit Card Form */
.card-checkout-form {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}

.card-brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-icons-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  color: #cbd5e1;
}

.kr-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.card-input-group label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-num-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.card-input-icon {
  position: absolute;
  left: 11px;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.card-num-wrap .card-input {
  padding-left: 34px;
}

.card-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 9px 10px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
}

.card-input:focus {
  border-color: var(--accent-cyan);
}

.card-input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
}

@media (max-width: 520px) {
  .card-input-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-pay-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: 1px solid #fde047;
  border-radius: 9px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.18s;
}

.btn-pay-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
}

.security-ssl-note {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

/* Paywall Lock Banner inside Slips Section */
.paywall-lock-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.paywall-lock-card h4 {
  font-size: 1.12rem;
  font-weight: 900;
  color: #fde047;
  margin-bottom: 8px;
}

.paywall-lock-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.btn-unlock-slips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  border: 1px solid #7dd3fc;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.slip-marks.blurred-marks {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Sport Mode Selector & Rule Banner */
.sport-toggle-group {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.sport-toggle-group .toggle-option.active[data-sport="soccer"] {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.sport-toggle-group .toggle-option.active[data-sport="basketball"] {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.sport-rule-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.77rem;
}

.rule-pill {
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-pill.rule-1 b { color: #60a5fa; }
.rule-pill.rule-x b { color: #fbbf24; }
.rule-pill.rule-2 b { color: #fb7185; }

.rule-pill b[data-mark-label]::before,
.slip-mark-badge[data-mark-label]::before {
  content: attr(data-mark-label);
}

.rule-sync-tag {
  margin-left: auto;
  font-size: 0.73rem;
  font-weight: 700;
  color: #38bdf8;
}

/* PG Popup Guide Bar inside Auth Modal */
.pg-popup-guide-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

/* Official Isolated PG Card Checkout Popup Window (White Security Theme) */
.pg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pg-checkout-window {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(37, 99, 235, 0.25);
  animation: pgPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pgPopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pg-win-topbar {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
}

.pg-win-topbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pg-win-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-pci-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}

.pg-win-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.pg-win-close:hover {
  background: rgba(239, 68, 68, 0.85);
}

.pg-order-summary {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
}

.pg-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 5px;
  color: #475569;
}

.pg-order-val {
  color: #0f172a;
  font-weight: 700;
}

.pg-order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.pg-total-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #2563eb;
}

.pg-win-body {
  padding: 16px 18px;
  background: #ffffff;
}

.pg-section-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}

.pg-issuer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pg-issuer-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  transition: all 0.14s;
}

.pg-issuer-btn:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #eff6ff;
}

.pg-issuer-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.pg-e2e-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 999px;
}

.pg-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.pg-field-group label {
  font-size: 0.73rem;
  font-weight: 800;
  color: #475569;
}

.pg-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pg-input-icon-wrap i {
  position: absolute;
  left: 11px;
  color: #2563eb;
  font-size: 0.95rem;
}

.pg-input-icon-wrap .pg-white-input {
  padding-left: 34px;
}

.pg-white-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.pg-white-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pg-field-row-3 {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.1fr;
  gap: 8px;
}

.pg-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #f1f5f9;
  border-radius: 7px;
  padding: 8px 10px;
  margin: 8px 0 12px;
  font-size: 0.72rem;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.pg-agree-row input {
  margin-top: 2px;
  accent-color: #2563eb;
}

.pg-btn-approve {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 9px;
  padding: 13px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.15s;
}

.pg-btn-approve:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.pg-processing-view {
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
}

.pg-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: pgSpin 0.8s linear infinite;
}

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

.pg-processing-view h4 {
  font-size: 0.98rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.pg-processing-view p {
  font-size: 0.78rem;
  color: #64748b;
}

.pg-win-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
}

/* ==================== Dual Front-End (PC vs Mobile) & PWA App Install UI ==================== */
.dual-app-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dual-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #7dd3fc;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.btn-dual-view:hover {
  background: #17253b;
  border-color: var(--accent-cyan);
  color: #fff;
}

.btn-install-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1.5px solid #34d399;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: all 0.18s;
}

.btn-install-app:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-lock-finished {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: 1px solid #fef08a;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: all 0.15s;
}

.btn-lock-finished:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Highlight finished matches clearly across all 8 countries */
.match-row.is-finished {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 41, 59, 0.95) 45%);
  border-color: rgba(245, 158, 11, 0.45);
}

.match-row.is-live {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.1) 0%, rgba(30, 41, 59, 0.95) 45%);
  border-color: rgba(244, 63, 94, 0.5);
}

/* Sticky right dashboard on PC mode */
@media (min-width: 1025px) {
  body[data-view-mode="pc"] aside {
    position: sticky;
    top: 84px;
    align-self: start;
  }
}

/* Mobile Sticky Bottom Bar (Hidden on PC Mode, Shown on Mobile Mode) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1.5px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.6);
}

.mobile-sticky-stats {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mobile-sticky-line1 {
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-sticky-line2 {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-mobile-execute {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* ==================== MOBILE FRONT-END ARCHITECTURE ==================== */
/* Applies automatically on mobile screens (<=820px) OR when user switches to Mobile UI on PC */
body[data-view-mode="mobile"] {
  padding-bottom: 88px;
}

@media (min-width: 821px) {
  body[data-view-mode="mobile"] .main-container {
    max-width: 500px;
    grid-template-columns: 1fr;
    margin: 16px auto;
  }
  body[data-view-mode="mobile"] .mobile-sticky-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 14px 14px 0 0;
    border-left: 1px solid rgba(56, 189, 248, 0.45);
    border-right: 1px solid rgba(56, 189, 248, 0.45);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 88px;
    overflow-x: hidden;
  }
  .mobile-sticky-bar {
    display: flex;
  }
  header {
    padding: 10px 12px;
  }
  .header-container {
    gap: 10px;
  }
  .brand-icon {
    font-size: 1.4rem;
  }
  .brand-title {
    font-size: 1.05rem;
    flex-wrap: wrap;
    gap: 5px;
  }
  .brand-sub {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .main-container {
    margin: 12px auto;
    padding: 0 10px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-box {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 0.96rem;
  }
}

/* Mobile Card Transformation for Match Rows (Active in Mobile View Mode or <=820px) */
body[data-view-mode="mobile"] .match-table,
body[data-view-mode="mobile"] .match-table tbody {
  display: block;
  width: 100%;
}

body[data-view-mode="mobile"] .match-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  gap: 8px;
}

body[data-view-mode="mobile"] .match-cell {
  padding: 0;
  display: block;
}

body[data-view-mode="mobile"] .match-seq {
  width: auto;
  min-width: auto;
  max-width: none;
  font-size: 0.85rem;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
  padding: 2px 8px;
  border-radius: 6px;
  order: 1;
}

body[data-view-mode="mobile"] .actual-result-cell {
  width: auto;
  min-width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: 2;
  margin-left: auto;
}

body[data-view-mode="mobile"] .hit-check-tag {
  display: inline-block;
  margin-top: 0;
}

body[data-view-mode="mobile"] .match-row > td:nth-child(2) {
  width: 100%;
  order: 3;
}

body[data-view-mode="mobile"] .match-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

body[data-view-mode="mobile"] .team-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  font-size: 0.88rem;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-view-mode="mobile"] .match-row > td:nth-child(3) {
  width: 100% !important;
  order: 4;
  margin-top: 2px;
}

body[data-view-mode="mobile"] .pick-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

body[data-view-mode="mobile"] .pick-btn {
  width: 100%;
  height: 40px;
  font-size: 0.95rem;
}

body[data-view-mode="mobile"] .slips-grid {
  grid-template-columns: 1fr;
}

body[data-view-mode="mobile"] .slip-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body[data-view-mode="mobile"] .slip-marks {
  width: 100%;
  justify-content: space-between;
}

/* 1-Click Share Button & Toast & SEO Crawl Summary */
.btn-share-app {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(16, 185, 129, 0.22));
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.btn-share-app:hover {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.38), rgba(16, 185, 129, 0.35));
  color: #fff;
  transform: translateY(-1px);
}

.btn-tool.btn-tool-share {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-weight: 700;
}

.btn-tool.btn-tool-share:hover {
  background: rgba(16, 185, 129, 0.32);
  color: #fff;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 16px);
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid var(--accent-emerald);
  color: #ecfdf5;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: 92vw;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.share-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.seo-crawl-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.seo-crawl-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.seo-crawl-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
}

.seo-crawl-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}


