/* Cook International Casino — account, store, purchase, VIP, and contact pages */
.app-page {
  margin-top: 2rem;
}

.app-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 199, 98, .14), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(99, 102, 241, .18), transparent 48%),
    rgba(7, 16, 31, .94);
  box-shadow: var(--shadow);
}

.app-card h1,
.app-card h2,
.app-card h3 {
  color: #f8fafc;
}

.app-card p,
.app-card li {
  color: var(--muted);
  line-height: 1.7;
}

.app-disclosure {
  margin: 1rem 0;
  padding: .95rem 1rem;
  border: 1px solid rgba(232, 199, 98, .48);
  border-radius: 1rem;
  background: rgba(232, 199, 98, .08);
  color: #f8fafc;
  line-height: 1.65;
}

.app-disclosure strong {
  color: var(--gold);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-panel {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(2, 6, 23, .64);
}

.app-panel h2,
.app-panel h3 {
  margin-bottom: .6rem;
  color: var(--gold);
}

.app-panel p:last-child {
  margin-bottom: 0;
}

.app-form {
  display: grid;
  gap: .9rem;
}

.app-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.app-field {
  display: grid;
  gap: .38rem;
}

.app-field label {
  color: #f8fafc;
  font-weight: 750;
  font-size: .9rem;
}

.app-field input,
.app-field select,
.app-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: .72rem .8rem;
  background: rgba(2, 6, 23, .9);
  color: #fff;
}

.app-field textarea {
  min-height: 150px;
  resize: vertical;
}

.app-field input:focus,
.app-field select:focus,
.app-field textarea:focus {
  outline: 2px solid rgba(232, 199, 98, .72);
  outline-offset: 2px;
}

.app-help {
  margin: 0;
  color: #94a3b8 !important;
  font-size: .82rem;
}

.app-message {
  display: none;
  margin: .75rem 0 0;
  padding: .8rem .9rem;
  border-radius: .8rem;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, .7);
  color: #e2e8f0;
}

.app-message.is-visible {
  display: block;
}

.app-message.is-error {
  border-color: rgba(248, 113, 113, .62);
  color: #fecaca;
}

.app-message.is-success {
  border-color: rgba(74, 222, 128, .55);
  color: #bbf7d0;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.app-actions .btn[disabled],
.app-actions .btn[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.account-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem .9rem;
  background: rgba(2, 6, 23, .75);
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 800;
}

.account-tab.is-active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.account-view[hidden] {
  display: none !important;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.account-stat {
  padding: .9rem;
  border-radius: .9rem;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, .72);
}

.account-stat span {
  display: block;
  color: #94a3b8;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.account-stat strong {
  display: block;
  margin-top: .25rem;
  color: var(--gold);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-balance {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  border: 1px solid rgba(232, 199, 98, .5);
  border-radius: 999px;
  padding: .65rem .9rem;
  background: rgba(2, 6, 23, .76);
  color: #fef3c7;
}

.store-balance strong {
  font-size: 1.1rem;
  color: #fff;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 1.15rem;
  border: 1px solid rgba(232, 199, 98, .38);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(250, 204, 21, .22), transparent 42%),
    linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96));
}

.package-card h2 {
  margin-bottom: .35rem;
  color: var(--gold);
  font-size: 1.35rem;
}

.package-price {
  margin-bottom: .55rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.package-card p {
  flex: 1;
}

.package-card .btn {
  width: 100%;
}

.purchase-status {
  max-width: 820px;
  margin-inline: auto;
}

.purchase-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  color: #052e16;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(74, 222, 128, .42);
}

.purchase-summary {
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

.purchase-row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 1.3fr;
  gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, .62);
}

.purchase-row:last-child {
  border-bottom: 0;
}

.purchase-row span:first-child {
  color: #94a3b8;
}

.purchase-row strong {
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.vip-page .app-card {
  background-color: #020617;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(248, 250, 252, .06), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, .18), transparent 55%),
    repeating-linear-gradient(135deg, rgba(15, 23, 42, .86) 0, rgba(15, 23, 42, .86) 12px, rgba(3, 7, 18, .98) 12px, rgba(3, 7, 18, .98) 24px);
}

.vip-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.vip-status {
  min-width: 260px;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(2, 6, 23, .72);
}

.vip-status strong {
  color: var(--gold);
}

.vip-toolbar {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.1rem 0;
}

.vip-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vip-game-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: #0f172a;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .45);
  text-decoration: none;
}

.vip-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, .92), rgba(2, 6, 23, .08) 65%);
}

.vip-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 199, 98, .6);
}

.vip-game-copy {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: .85rem;
}

.vip-game-copy strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.vip-game-copy span {
  color: var(--gold);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
  gap: 1.2rem;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: .8rem;
}

.contact-method {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(2, 6, 23, .66);
}

.contact-method strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--gold);
}

.contact-method a {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .account-layout,
  .contact-layout,
  .app-grid,
  .app-grid-3 {
    grid-template-columns: 1fr;
  }

  .package-grid,
  .vip-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .app-form-row,
  .account-summary,
  .package-grid,
  .vip-game-grid {
    grid-template-columns: 1fr;
  }

  .purchase-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .app-actions {
    flex-direction: column;
  }

  .app-actions .btn {
    width: 100%;
  }
}

.vip-game-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
