/* Daba Fantasy – theme and layout (shared hosting, no build) */
:root {
  --primary: #dc3545;
  --primary-dark: #c82333;
  --gaming-purple: #dc3545;
  --gaming-pink: hsl(330, 80%, 60%);
  --gaming-orange: hsl(25, 95%, 55%);
  --gaming-gold: hsl(45, 95%, 55%);
  --gaming-dark: hsl(260, 30%, 8%);
  --foreground: hsl(260, 10%, 10%);
  --muted: hsl(260, 10%, 95%);
  --muted-fg: hsl(260, 5%, 45%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(260, 20%, 90%);
  --destructive: #dc3545;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--foreground); background: var(--gaming-dark); min-height: 100vh; }

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-14 { padding-top: 3.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: var(--radius); }
.rounded-2xl { border-radius: 1rem; }
.border { border: 1px solid var(--border); }
.border-0 { border: none; }
.border-4 { border-width: 4px; }
.border-card { border-color: var(--card); }
.bg-card { background-color: var(--card); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-6 { left: 1.5rem; }
.-top-12 { top: -3rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.sticky { position: sticky; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.overflow-hidden { overflow: hidden; }
.transition-all { transition: all 0.2s ease; }
.hover\:opacity-90:hover { opacity: 0.9; }

.bg-login { background: linear-gradient(to bottom right, var(--primary), var(--primary-dark), var(--gaming-orange)); }
.bg-dashboard { background: hsl(260, 22%, 11%); }
.bg-card-blur { background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: blur(8px); }
.bg-header { background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bg-gradient-card { background: linear-gradient(to bottom right, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--primary-dark) 20%, transparent)); }
.bg-gradient-hero { background: linear-gradient(to bottom right, var(--primary), var(--primary-dark), var(--gaming-orange)); }
.bg-muted { background: color-mix(in srgb, var(--muted) 50%, transparent); }
.bg-wallet { background: linear-gradient(to bottom right, var(--primary), var(--primary-dark)); }
.text-muted { color: var(--muted-fg); }
.text-gradient { background: linear-gradient(to right, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-white { color: #fff; }
.text-white-80 { color: rgba(255,255,255,0.8); }
.border-destructive { border-color: var(--destructive); }
.text-destructive { color: var(--destructive); }
.hover\:bg-destructive:hover { background: var(--destructive); color: #fff; }
.hover\:bg-purple-10:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
/* Logo on light backgrounds: wrap in dark area so white logo is visible */
.logo-wrap-header { display: inline-flex; align-items: center; padding: 0.35rem 0.75rem; border-radius: var(--radius); background: var(--gaming-dark); }
.logo-wrap-login { display: inline-flex; align-items: center; padding: 0.75rem 1.25rem; border-radius: var(--radius); background: var(--gaming-dark); }
.logo-header { height: 2rem; width: auto; display: block; }
.logo-login { height: 3.5rem; width: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-underline { text-decoration: none; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; height: 3rem; padding: 0 1rem; font-size: 1.125rem; font-weight: 600; color: #fff; background: var(--primary); border: none; border-radius: var(--radius); cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: transparent; border: none; border-radius: var(--radius); color: var(--foreground); cursor: pointer; text-decoration: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: transparent; border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent); color: var(--primary); border-radius: var(--radius); cursor: pointer; text-decoration: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.input { width: 100%; height: 3rem; padding: 0 0.75rem; font-size: 1rem; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.input::placeholder { color: var(--muted-fg); }
.card { border-radius: var(--radius); border: none; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.inline-flex { display: inline-flex; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-24 { height: 6rem; }
.h-48 { height: 12rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.hidden { display: none; }
@media (min-width: 640px) { .sm\:inline { display: inline; } }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.underline { text-decoration: underline; }
.err-box { background: #fef2f2; color: #b91c1c; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; }

/* Profile page layout */
.profile-card { background: color-mix(in srgb, var(--card) 98%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); }
.profile-card-banner { height: 5rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.profile-card-body { position: relative; padding: 3.25rem 1.5rem 1.5rem; }
.profile-avatar { position: absolute; left: 1.5rem; top: -2.25rem; width: 4.5rem; height: 4.5rem; border-radius: 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: 3px solid var(--card); box-shadow: 0 4px 20px rgb(0 0 0 / 0.15); display: flex; align-items: center; justify-content: center; }
.profile-name { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.25rem; color: var(--foreground); }
.profile-fields { display: flex; flex-direction: column; gap: 0; }
.profile-field { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.profile-field:last-child { border-bottom: none; }
.profile-field-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 0.5rem; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.profile-field-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.profile-field-label { font-size: 0.8125rem; color: var(--muted-fg); }
.profile-field-value { font-weight: 500; color: var(--foreground); word-break: break-word; }

.wallet-card { background: color-mix(in srgb, var(--card) 98%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); padding: 1.75rem; }
.wallet-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; margin: 0 0 1.5rem; color: var(--foreground); }
.wallet-title iconify-icon { color: var(--gaming-gold); }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.wallet-total { padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.wallet-available { padding: 1.5rem; border-radius: var(--radius); background: color-mix(in srgb, var(--muted) 60%, transparent); border: 1px solid var(--border); }
.wallet-label { display: block; font-size: 0.8125rem; color: rgba(255,255,255,0.85); margin-bottom: 0.35rem; }
.wallet-available .wallet-label { color: var(--muted-fg); }
.wallet-amount { font-weight: 700; color: #fff; font-size: 1.25rem; }
.wallet-amount-lg { font-size: 1.75rem; }
.wallet-available .wallet-amount { color: var(--foreground); }
@media (max-width: 480px) { .wallet-grid { grid-template-columns: 1fr; } }

/* Dashboard welcome text on dark background */
.dashboard-welcome { color: #f1f5f9; }
.dashboard-welcome-name { color: #fff; font-weight: 700; }
.dashboard-welcome-sub { color: rgba(255,255,255,0.75); margin: 0; }
