* { box-sizing: border-box; }

:root {
  --header-gradient: linear-gradient(160deg, #00a0e8 0%, #0055c8 50%, #182e90 100%);
  --promo-gradient: linear-gradient(90deg, #0077c1, #20409a);
  --yellow-gradient: linear-gradient(180deg, #fff120 0%, #ffcb08 100%);
  --green-gradient: linear-gradient(180deg, #b1f804 0%, #7bbe3d 100%);
  --noti-yellow: #fff120;
  --footer-dark: #0f172a;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(170deg, #f2f5fb 0%, #eaeff8 45%, #f5f7fc 100%);
    color: #1a1d24;
    margin: 0;
    min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
    height: 68px;
    background: var(--header-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .logo-img {
    height: 34px;
}

.header-auth {
    display: flex;
    gap: 8px;
}

.header-auth a {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

.btn-login-nav {
    background: var(--green-gradient);
    color: #000;
}

.btn-register-nav {
    background: var(--yellow-gradient);
    color: #000;
}

/* ===== Noti bar ===== */
.noti-bar {
    background: var(--noti-yellow);
    color: #1a1d24;
    text-align: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Promo bar ===== */
.promo-bar {
    background: var(--promo-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.promo-bar .claim-now-btn {
    background: var(--yellow-gradient);
    color: #1a1d24;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

/* ===== Page content wrapper ===== */
.page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 68px - 34px - 46px - 60px);
    padding: 40px 20px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    text-align: center;
    border: 1px solid #eef1f7;
}

h1 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #1a1d24;
}

p.subtitle {
    color: #7c8291;
    font-size: 13px;
    margin-bottom: 22px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e4ec;
    background: #f8f9fc;
    color: #1a1d24;
    font-size: 14px;
    font-family: inherit;
}

button {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    font-family: inherit;
}

.btn-primary {
    background: var(--yellow-gradient);
    color: #1a1d24;
}

.btn-secondary {
    background: transparent;
    color: #7c8291;
    border: 1px solid #e0e4ec;
}

.link-row {
    margin-top: 14px;
    font-size: 13px;
    color: #7c8291;
}

.link-row a {
    color: #0077c1;
    text-decoration: none;
    font-weight: 600;
}

.spin-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.msg-success {
    color: #16a34a;
    font-weight: 700;
    margin-top: 16px;
}

.msg-warning {
    color: #d97706;
    font-weight: 700;
    margin-top: 16px;
}

.welcome-user {
    color: #0077c1;
    font-weight: 700;
}

/* ===== Bottom nav ===== */
.bottom-nav {
    background: var(--header-gradient);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    position: sticky;
    bottom: 0;
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    text-align: center;
    opacity: 0.85;
}

.bottom-nav a.active {
    opacity: 1;
    font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-dark);
    color: #9ca3af;
    text-align: center;
    padding: 18px;
    font-size: 12px;
}

/* ===== Auth pages (register/login) - dark themed like real site ===== */
.auth-page-bg {
    min-height: 100vh;
    background: linear-gradient(160deg, #0d1b3d 0%, #14235a 50%, #0d1b3d 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-topbar {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(90deg, #0077c1, #20409a);
    border-radius: 40px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.auth-topbar .back-arrow {
    position: absolute;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-topbar img {
    height: 28px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.auth-card h2 {
    font-size: 16px;
    text-align: center;
    margin: 0 0 24px;
    color: #1a1d24;
}

.auth-card h2 .highlight {
    color: #e63946;
}

.auth-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #14235a;
    margin-bottom: 6px;
    display: block;
}

.auth-field-label .req {
    color: #e63946;
}

.auth-hint {
    font-size: 11px;
    color: #9aa0ac;
    margin: -8px 0 12px;
}

.auth-card input {
    background: #f8f9fc;
    border: 1px solid #e0e4ec;
}

.auth-submit-btn {
    background: linear-gradient(180deg, #fff120, #ffcb08);
    color: #1a1d24;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 8px;
}

.auth-divider {
    border: none;
    border-top: 1px solid #eef1f7;
    margin: 20px 0 14px;
}

.auth-switch-text {
    text-align: center;
    font-size: 13px;
    color: #7c8291;
    margin-bottom: 12px;
}

.auth-switch-btn {
    display: block;
    text-align: center;
    background: #0077c1;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.forget-pw {
    text-align: right;
    font-size: 11px;
    color: #9aa0ac;
    margin: -8px 0 14px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-box .modal-top {
    background: linear-gradient(90deg, #0d1b6a, #0077c1);
    height: 50px;
}

.modal-box .modal-body {
    padding: 0 24px 28px;
    margin-top: -30px;
}

.modal-check {
    width: 56px;
    height: 56px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    margin: 0 auto 14px;
    border: 4px solid #fff;
}

.modal-box h3 {
    font-size: 17px;
    margin: 0 0 10px;
    color: #1a1d24;
}

.modal-box p {
    font-size: 13px;
    color: #7c8291;
    margin: 0 0 18px;
    line-height: 1.5;
}

.modal-box p .accent {
    color: #e63946;
    font-weight: 700;
}

.modal-claim-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

/* ===== Freespin page ===== */
.freespin-hero {
    background: linear-gradient(135deg, #7a1a1a, #b8860b);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-weight: 800;
}

.freespin-banner-bar {
    background: #0d1b6a;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.freespin-banner-bar .deposit-btn {
    background: var(--green-gradient);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.day-tabs {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
}

.day-tab {
    flex: 1;
    min-width: 100px;
    background: #eef1f7;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #7c8291;
    cursor: pointer;
    border: none;
}

.day-tab.active {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    color: #fff;
    font-weight: 700;
}

.day-tab .day-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.schedule-title {
    text-align: center;
    color: #0077c1;
    font-weight: 700;
    font-size: 14px;
    margin: 10px 0 20px;
}

.spin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px 30px;
    max-width: 480px;
    margin: 0 auto;
}

.spin-card {
    background: linear-gradient(180deg, #ff9a3c, #e6641e);
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    color: #fff;
}

.spin-card .spin-amount {
    font-size: 18px;
    font-weight: 800;
}

.spin-card .spin-label {
    font-size: 11px;
    margin-bottom: 10px;
}

.spin-card button, .spin-card .spin-time {
    width: 100%;
    background: linear-gradient(180deg, #fff120, #ffcb08);
    color: #1a1d24;
    border: none;
    border-radius: 8px;
    padding: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.spin-card.locked .spin-time {
    background: rgba(255,255,255,0.3);
    color: #fff;
    cursor: default;
}

.terms-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-size: 12px;
    color: #7c8291;
    line-height: 1.7;
}

.terms-box h4 {
    color: #1a1d24;
    font-size: 14px;
}