/* landing.css */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0B0B0E;
  color: #ffffff;
}

.header {
  background-color: #1f1f22;
  border-bottom: 1px solid #2d2d35;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.header-pcso-logo {
  height: 40px;
  width: auto;
}

.history-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background-color: #18181b;
  transition: all 0.2s;
  font-size: 14px;
}

.history-link:hover {
  background-color: #27272a;
}

.main-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  margin-bottom: 80px;
}

.loading {
  text-align: center;
  font-size: 1.2rem;
  color: #a1a1aa;
  margin-top: 100px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.lotto-card {
  background-color: #161618;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

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

.game-title {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.game-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: transparent;
}

.badge-jackpot {
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-super {
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-draw {
  color: #71717a;
  border: 1px solid rgba(113, 113, 122, 0.3);
}

.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #71717a;
  margin-bottom: 20px;
}

.card-date svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.card-balls {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.num-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.5);
}

.num-ball:nth-child(1) { background-color: #f59e0b; }
.num-ball:nth-child(2) { background-color: #ef4444; }
.num-ball:nth-child(3) { background-color: #8b5cf6; }
.num-ball:nth-child(4) { background-color: #3b82f6; }
.num-ball:nth-child(5) { background-color: #10b981; }
.num-ball:nth-child(6) { background-color: #f97316; }

.card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #27272a;
  padding-top: 16px;
  margin-top: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col.right {
  text-align: right;
}

.footer-label {
  font-size: 11px;
  color: #71717a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-value {
  font-size: 18px;
  font-weight: 800;
}

.footer-value.prize {
  color: #facc15;
}

.footer-value.winners {
  color: #10b981;
}

/* Detail View */
.detail-view {
  animation: fadeIn 0.3s ease-out;
}

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

.back-btn {
  background-color: #18181b;
  border: 1px solid #27272a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  transition: all 0.2s;
}

.back-btn:hover {
  background-color: #27272a;
}

.back-btn svg {
  fill: currentColor;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 900px) {
  .detail-content {
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
  }
}

.detail-left {
  flex: 1;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-title {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
}

.detail-jackpot {
  font-size: 56px;
  font-weight: 900;
  color: #facc15;
  margin-bottom: 4px;
  line-height: 1.1;
  word-break: break-all;
}

.detail-jackpot-label {
  font-size: 16px;
  color: #e4e4e7;
  margin-bottom: 32px;
}

.latest-numbers-card {
  background-color: #051d40;
  border: 1px solid #1e3a8a;
  border-radius: 16px;
  padding: 24px;
}

.latest-numbers-header {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 16px;
}

.latest-numbers-header span {
  font-weight: 700;
}

.detail-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-balls .num-ball {
  width: 48px;
  height: 48px;
  font-size: 20px;
  background-color: #dc2626;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.5);
}

.detail-right {
  flex: 1;
  width: 100%;
}

.next-draw-card {
  background-color: #051d40;
  border: 1px solid #1e3a8a;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.next-draw-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.next-draw-date {
  font-size: 24px;
  font-weight: 800;
  color: #facc15;
  margin-bottom: 32px;
}

.countdown-container {
  display: flex;
  gap: 16px;
}

.countdown-box {
  background-color: #1e3a8a;
  border: 1px solid #3b82f6;
  border-radius: 12px;
  width: 72px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.countdown-value {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
}

.countdown-label {
  font-size: 12px;
  color: #bfdbfe;
  margin-top: 4px;
  font-weight: 600;
}

/* Digit Cards (2D, 3D, 4D) */
.digit-card {
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  /* subtle watermark pattern */
  background-image: radial-gradient(circle at center, rgba(30, 58, 138, 0.03) 0%, rgba(30, 58, 138, 0) 70%);
}

.digit-header {
  background-color: #0390fc;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.digit-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.digit-logo .logo-num {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}
.digit-logo .logo-text {
  font-size: 10px;
  font-weight: 800;
  color: #dc2626;
}
.logo-4d .logo-num { color: #f59e0b; }
.logo-3d .logo-num { color: #1d4ed8; }
.logo-2d .logo-num { color: #dc2626; }

.digit-winners-box {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-radius: 6px;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.2);
}

.digit-winners-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.digit-winners-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

.digit-body {
  padding: 16px;
  color: #051d40;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 4D specific */
.digit-date-large {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #1e293b;
  margin-bottom: 4px;
}

.digit-jackpot {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.center-balls {
  justify-content: center;
}

/* 3D / 2D specific */
.digit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

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

.digit-balls {
  display: flex;
  gap: 6px;
}

.digit-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.digit-date-small {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.digit-time-badge {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
}

/* ── FAQ Section ── */
.faq-section {
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid #27272a;
}

.faq-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #161618;
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-color: rgba(245, 158, 11, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  list-style: none;
  gap: 12px;
  user-select: none;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question:hover { color: #f59e0b; }

.faq-item[open] .faq-question { color: #f59e0b; }

.faq-chevron {
  flex-shrink: 0;
  color: #71717a;
  transition: transform 0.25s ease, color 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #f59e0b;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  color: #d4d4d8;
  line-height: 1.8;
  border-top: 1px solid #27272a;
  padding-top: 16px;
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 18px; }
.faq-answer li { margin-bottom: 8px; }
.faq-answer strong { color: #ffffff; font-weight: 600; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--gold);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Footer Nav ── */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-sep {
  color: var(--text-muted);
}

/* ── Feedback Modal ── */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.feedback-modal-content {
  background-color: #161618;
  border: 1px solid #27272a;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease-out;
}

.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.feedback-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.feedback-close {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.feedback-close:hover {
  color: #fff;
}

.feedback-form-group {
  margin-bottom: 16px;
}

.feedback-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 500;
}

.feedback-form-group input,
.feedback-form-group textarea {
  width: 100%;
  background-color: #0b0b0e;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
  outline: none;
  border-color: #f59e0b;
}

.feedback-submit-btn {
  background-color: #f59e0b;
  color: #0b0b0e;
  border: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.feedback-submit-btn:hover {
  background-color: #d97706;
}

.feedback-submit-btn:disabled {
  background-color: #52525b;
  cursor: not-allowed;
}
