/* ============================================
   AOHA CHALLENGE!! - Global Styles
   Solmare Nagasaki FC inspired design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Oswald:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #1B2B7B;
  --navy-light: #243695;
  --navy-mid: #2D42A8;
  --blue: #2B4BC5;
  --blue-light: #3A5FE0;
  --red: #D32F2F;
  --red-bright: #E53935;
  --gold: #E8B800;
  --gold-light: #F5CC00;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-500: #6C757D;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #212529;
  --success: #2E7D32;
  --warning: #F57F17;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --font-en: 'Oswald', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-jp); cursor: pointer; border: none; }
input, select, textarea { font-family: var(--font-jp); font-size: 16px; }

/* --- Utility --- */
.container { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red-bright); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 3px solid var(--gold);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.header__logo {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}
.header__sub {
  font-size: 0.65rem;
  color: var(--gray-400);
  letter-spacing: 1px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  padding: 48px 20px 40px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,179,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(211,47,47,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.hero__title span {
  display: block;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__player {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 12px 0 4px;
  position: relative;
  z-index: 1;
}
.hero__player rt {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--gray-400);
}
.hero__club {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.hero__event {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.hero__event strong {
  color: var(--white);
  font-weight: 700;
}

/* --- Section --- */
.section {
  padding: 40px 20px;
}
.section--light {
  background: var(--gray-50);
  color: var(--gray-800);
}
.section--dark {
  background: var(--navy-light);
}
.section--gradient {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.section__label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.section__title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.4;
}
.section--light .section__title { color: var(--navy); }

/* --- Story Card --- */
.story {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.story p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--gray-200);
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}
.info-table th {
  font-weight: 700;
  color: var(--navy);
  background: var(--gray-100);
  width: 35%;
  white-space: nowrap;
}
.info-table td {
  color: var(--gray-700);
}

/* --- Opponents --- */
.opponents {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.opponent {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.opponent__cat {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 32px;
}
.opponent__name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- CTA Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  transition: all var(--transition);
  text-align: center;
  width: 100%;
  max-width: 400px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(211,47,47,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(211,47,47,0.5);
  color: var(--white);
}
.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-400);
}
.btn--secondary:hover {
  border-color: var(--white);
  color: var(--white);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(255,179,0,0.3);
}
.btn--gold:hover {
  transform: translateY(-2px);
  color: var(--navy);
}
.btn--sm {
  font-size: 0.85rem;
  padding: 10px 20px;
}
.btn--outline-gold {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Plan Cards --- */
.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.plan-card:hover { border-color: var(--blue); }
.plan-card.selected {
  border-color: var(--blue);
  background: #EBF5FF;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.15);
}
.plan-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.plan-card__number {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.plan-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.plan-card__desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 8px;
}
.plan-card__price {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
}
.plan-card__price span {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* --- Quantity Selector --- */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.qty-selector button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-selector button:hover { background: var(--blue-light); }
.qty-selector__value {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  min-width: 24px;
  text-align: center;
}

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group label .required {
  font-size: 0.65rem;
  color: var(--white);
  background: var(--red);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.form-input.error {
  border-color: var(--red);
}
.form-error {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }
textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* --- Confirm Page --- */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
}
.confirm-table th,
.confirm-table td {
  padding: 12px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}
.confirm-table th {
  font-weight: 500;
  color: var(--gray-500);
  width: 35%;
}
.confirm-table td {
  font-weight: 500;
  color: var(--gray-800);
}
.confirm-total {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  text-align: center;
  padding: 20px;
  background: #FFF3E0;
  border-radius: var(--radius);
  margin: 16px 0;
}
.confirm-total span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 4px;
}

/* --- Complete Page --- */
.complete-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--success), #43A047);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46,125,50,0.3);
}
.complete-message {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}
.complete-message p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-200);
}
.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

/* --- Admin --- */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login__box {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.admin-login__title {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.admin-login .form-group label { color: var(--gray-300); }
.admin-login .form-input {
  background: var(--navy);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}
.admin-login .form-input:focus { border-color: var(--gold); }
.admin-login .login-error {
  color: var(--red-bright);
  font-size: 0.8rem;
  margin-top: 8px;
  display: none;
}

/* Dashboard */
.dashboard { display: none; }
.dashboard.active { display: block; }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
  background: transparent;
  text-align: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-card__value {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-card__label {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Progress gauge */
.progress-wrap {
  margin: 20px 0;
}
.progress-bar {
  width: 100%;
  height: 24px;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 12px;
  transition: width 1s ease;
  min-width: 0%;
}
.progress-bar__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--gray-400);
}
.progress-info strong {
  color: var(--gold);
}

/* Sponsorship list */
.sponsor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sponsor-item {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.sponsor-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
}
.sponsor-item__header:hover { background: rgba(255,255,255,0.03); }
.sponsor-item__name {
  font-size: 0.9rem;
  font-weight: 700;
}
.sponsor-item__plan {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.sponsor-item__amount {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
}
.sponsor-item__detail {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sponsor-item__detail.open { display: block; }
.sponsor-item__detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sponsor-item__detail-row dt {
  color: var(--gray-400);
}
.sponsor-item__detail-row dd {
  color: var(--gray-200);
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-badge--received {
  background: rgba(255,179,0,0.15);
  color: var(--gold);
}
.status-badge--paid {
  background: rgba(21,101,192,0.15);
  color: #42A5F5;
}
.status-badge--ordered {
  background: rgba(156,39,176,0.15);
  color: #CE93D8;
}
.status-badge--shipped {
  background: rgba(46,125,50,0.15);
  color: #66BB6A;
}
.status-select {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--navy);
  color: var(--white);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.7rem;
  color: var(--gray-500);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer a { color: var(--gray-400); }

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

/* --- Fade In Animation --- */
.fade-in {
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Fade In --- */
.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
  .container { padding: 0 32px; }
}
