:root {
    --bg: #fbfaf6;
    --panel: #ffffff;
    --panel2: #fffaf0;
    --line: #e7decc;
    --gold: #d99b16;
    --gold2: #9f6c0c;
    --green: #4fa73a;
    --text: #1e1b16;
    --muted: #6f695f;
    --danger: #f17070;
    --shadow: 0 18px 60px rgba(55, 42, 18, .10);
}
* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
main, section, aside, article, div, form { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(30,27,22,.05); }
.topline { display: flex; justify-content: center; gap: 22px; padding: 8px 16px; color: var(--muted); font-size: 13px; border-bottom: 1px solid rgba(30,27,22,.06); }
.live-badge { display: inline-flex; align-items: center; gap: 7px; color: #8fff64; font-weight: 900; letter-spacing: .1em; text-shadow: 0 0 14px rgba(105,184,74,.7); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #73ff4d; box-shadow: 0 0 0 0 rgba(115,255,77,.78), 0 0 14px rgba(115,255,77,.95); animation: livePulse 1.35s infinite; }
@keyframes livePulse {
    0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(115,255,77,.78), 0 0 12px rgba(115,255,77,.9); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(115,255,77,0), 0 0 18px rgba(115,255,77,.75); }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(115,255,77,0), 0 0 12px rgba(115,255,77,.9); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.nav { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.logo-brand { display: inline-flex; align-items: center; min-width: 0; }
.logo-brand img { display: block; width: 210px; height: auto; max-width: 52vw; }
.brand span { color: var(--gold2); }
.navlinks { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.navlinks a:hover { color: var(--text); }
.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; max-width: 100%; min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 1px solid #b87d0b; background: linear-gradient(135deg, #ffe58a, var(--gold), #b87908); color: #1e1b16; font-weight: 800; line-height: 1.15; text-align: center; white-space: normal; cursor: pointer; box-shadow: 0 12px 30px rgba(153,101,8,.18); transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(153,101,8,.24); }
.btn.small { min-height: 38px; padding: 9px 18px; }
.btn.mini { min-height: 32px; padding: 6px 12px; font-size: 12px; box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,.72); color: #9c720f; border-color: #ead7a3; box-shadow: none; }
.hero { min-height: 760px; display: grid; align-items: center; text-align: left; padding: 126px 24px 74px; background:
    linear-gradient(90deg, rgba(251,250,246,.98) 0%, rgba(251,250,246,.90) 32%, rgba(251,250,246,.35) 62%, rgba(251,250,246,.10) 100%),
    url("hero-gws-premium.png") center right / cover no-repeat;
    overflow: hidden;
}
.hero-content { max-width: 650px; width: min(650px, 100%); margin-left: max(24px, calc((100vw - 1200px) / 2)); animation: fadeUp .7s ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold2); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; margin: 0 0 14px; }
.eyebrow::before { content: "★"; font-size: 12px; }
h1, h2, h3 { max-width: 100%; overflow-wrap: anywhere; word-break: normal; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(54px, 9vw, 92px); }
h1 span, h2 span { color: var(--gold2); }
h2 { font-size: clamp(34px, 5vw, 56px); text-align: center; }
h3 { font-size: 26px; }
.lead, .section-lead { color: var(--muted); font-size: 20px; max-width: 760px; margin: 28px auto; }
.hero .lead { margin-left: 0; color: #554f45; }
.actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 34px 0; }
.hero .actions { justify-content: flex-start; }
.home-account-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 28px; padding: 16px; border: 1px solid #dfc27d; border-left: 5px solid var(--green); border-radius: 10px; background: rgba(255,255,255,.88); box-shadow: 0 18px 50px rgba(55,42,18,.14); backdrop-filter: blur(12px); }
.home-account-cta span { display: block; color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 900; }
.home-account-cta strong { display: block; margin-top: 3px; color: var(--text); font-size: 20px; }
.home-account-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stats, .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 760px; margin: 44px auto 0; }
.hero .stats { margin-left: 0; }
.hero .stats div { background: rgba(255,255,255,.78); border: 1px solid rgba(231,222,204,.9); border-radius: 8px; padding: 18px 14px; box-shadow: 0 10px 30px rgba(55,42,18,.08); backdrop-filter: blur(10px); animation: fadeUp .7s ease both; }
.hero .stats div:nth-child(2) { animation-delay: .08s; }
.hero .stats div:nth-child(3) { animation-delay: .16s; }
.stats strong, .metrics strong, .kpis strong { display: block; color: var(--gold2); font: 36px Georgia, serif; }
.stats span, .metrics span, .kpis span { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 12px; }
.section { width: 100%; max-width: 1200px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.cards { display: grid; gap: 24px; margin-top: 44px; }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.two-draws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .panel, .auth-card, .result { min-width: 0; max-width: 100%; background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow); }
.card { transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(55,42,18,.14); border-color: #dcc58d; }
.icon { width: 64px; height: 64px; border-radius: 8px; display: grid; place-items: center; margin: 0 auto 24px; color: var(--gold2); background: rgba(217,155,22,.13); font-size: 30px; }
.green { color: var(--green); }
.pill { display: inline-flex; padding: 5px 14px; border-radius: 999px; background: rgba(217,155,22,.13); color: var(--gold2); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 12px; }
.pill.green { background: rgba(105,184,74,.14); color: var(--green); }
.card p, .panel p, .result p { color: var(--muted); }
.compact { padding: 28px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) 230px; align-items: center; gap: 40px; text-align: left; }
.feature h2 { text-align: left; }
.lottery-art { min-height: 178px; border-radius: 8px; border: 1px solid var(--line); background: radial-gradient(circle, rgba(217,155,22,.26), transparent 62%), #fff8e5; display: grid; grid-template-columns: repeat(3, 48px); justify-content: center; align-content: center; gap: 12px; padding: 18px; box-shadow: var(--shadow); animation: floatSoft 5.5s ease-in-out infinite; }
.lottery-art span, .number-grid span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe58a, #d99b16 52%, #996408); color: #1e1b16; font-weight: 900; }
.metrics { max-width: 1200px; grid-template-columns: repeat(4, 1fr); padding: 0 24px 60px; }
.metrics div, .kpis div { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 28px; text-align: center; box-shadow: var(--shadow); }
.account-kpis { margin-top: 0; }
.account-kpis h3 { color: var(--gold2); font-size: 36px; }
.footer { width: 100%; border-top: 1px solid var(--line); padding: 42px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; max-width: 1200px; margin: 0 auto; color: var(--muted); }
.footer-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 14px; }
.footer a { display: block; color: var(--text); margin: 6px 0; }
.warning { color: var(--gold2); }
.auth-page, .portal, .admin, .legal { width: 100%; max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.dashboard-shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 24px 70px; display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; overflow: hidden; }
.dashboard-sidebar { position: sticky; top: 104px; min-height: calc(100vh - 132px); border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.dashboard-logo { width: 205px; max-width: 100%; height: auto; }
.dashboard-user { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: linear-gradient(180deg, #fffdf7, #fff7e8); }
.dashboard-user span, .dashboard-user small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-user strong { display: block; margin-top: 4px; color: var(--text); font-size: 17px; }
.dashboard-user small { margin-top: 6px; text-transform: none; letter-spacing: 0; }
.dashboard-nav { display: grid; gap: 8px; }
.dashboard-nav a { display: flex; align-items: center; min-height: 42px; padding: 0 13px; border-radius: 10px; color: #5c554c; font-weight: 800; border: 1px solid transparent; }
.dashboard-nav a:hover, .dashboard-nav a.active { background: #fff4d9; border-color: #ebd6a3; color: var(--gold2); }
.dashboard-side-actions { margin-top: auto; display: grid; gap: 10px; }
.dashboard-main { min-width: 0; max-width: 100%; display: grid; gap: 24px; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,229,.92)); box-shadow: var(--shadow); padding: 28px; }
.dashboard-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.dashboard-hero p { max-width: 760px; color: var(--muted); margin: 12px 0 0; }
.dashboard-welcome { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,248,229,.86)), radial-gradient(circle at 86% 18%, rgba(217,155,22,.22), transparent 34%); }
.dashboard-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-stat { padding: 22px; }
.dashboard-stat span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.dashboard-stat strong { display: block; margin: 8px 0; color: var(--gold2); font: 42px Georgia, serif; line-height: 1; }
.dashboard-stat p { margin: 0; color: var(--muted); font-size: 14px; }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-detail-card { display: grid; align-content: start; gap: 16px; min-height: 260px; }
.dashboard-detail-card h3 { font-size: 28px; }
.dashboard-detail-card p { margin: 0; color: var(--muted); }
.dashboard-actions-card { display: grid; gap: 16px; }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-quick-actions a { min-height: 112px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fffdf8, #fff6e4); padding: 16px; color: var(--text); font-weight: 900; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 26px rgba(55,42,18,.06); }
.dashboard-quick-actions a:hover { border-color: #dcc58d; transform: translateY(-2px); transition: transform .2s ease, border-color .2s ease; }
.dashboard-quick-actions span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.dashboard-shell .admin-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dashboard-shell .kpis { order: -1; }
.dashboard-shell .panel h2 { font-size: 28px; text-align: left; }
.dashboard-shell .section.slim { padding-top: 0; }
.dashboard-shell table { background: #fff; }
.dashboard-shell th { background: #fff8e8; position: sticky; top: 0; }
.login-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 34px; align-items: center; }
.login-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.login-benefits span, .check-list li, .download-list a { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); padding: 12px 14px; color: var(--muted); }
.auth-card { max-width: 480px; margin: 0 auto; }
.form { display: grid; gap: 16px; align-items: start; }
.form .btn { justify-self: start; }
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
input, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--text); padding: 0 14px; }
.hint { font-size: 13px; color: var(--muted); }
.flash { max-width: 900px; margin: 18px auto 0; border: 1px solid #b9daa8; border-left: 5px solid var(--green); border-radius: 8px; padding: 13px 18px; background: #f2ffec; color: #245f1a; font-weight: 800; box-shadow: 0 12px 34px rgba(55,42,18,.08); }
.flash.error { border-color: #f3c2b8; border-left-color: var(--danger); background: #fff1ef; color: #9f2f22; }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.portal-head h1 { font-size: clamp(38px, 5vw, 64px); }
.member-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(340px, .68fr); gap: 24px; align-items: start; }
.member-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.member-sidebar .panel { min-width: 0; }
.member-sidebar h2, .play-panel h2 { text-align: left; font-size: 32px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 8px; }
.download-list { display: grid; gap: 10px; margin-top: 18px; }
.download-list a { color: var(--text); }
.download-list a::after { content: " herunterladen"; color: var(--gold2); font-size: 12px; margin-left: 6px; }
.next-date { display: block; color: var(--gold2); margin-top: 10px; }
.draw-history { display: grid; gap: 16px; }
.draw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.draw-row { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fffdf8, #fff6df); box-shadow: 0 10px 28px rgba(55,42,18,.07); }
.draw-row strong, .draw-row span { display: block; }
.draw-row > div:first-child span { color: var(--muted); font-size: 13px; }
.mini-balls { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-balls span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe58a, #d99b16 55%, #9f6c0c); color: #1e1b16; font-size: 12px; font-weight: 900; }
.draw-note { justify-self: end; align-self: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--gold2); background: #fff8e8; font-weight: 800; font-size: 12px; }
.draw-note-action { justify-self: end; align-self: center; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.draw-note-action .draw-note { justify-self: auto; }
.auto-stop-inline { margin: 0; display: inline-flex; }
.play-draws { margin-top: -14px; }
.play-panel { min-width: 0; display: grid; gap: 24px; }
.game-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.game-title > span { border: 1px solid var(--line); border-radius: 8px; min-width: 78px; min-height: 56px; display: grid; place-items: center; color: var(--gold2); font-weight: 900; }
.number-grid { display: grid; grid-template-columns: repeat(7, minmax(34px, 1fr)); gap: 8px; max-width: 430px; margin: 22px auto 0; }
.number-grid label { cursor: pointer; }
.number-grid input { position: absolute; opacity: 0; pointer-events: none; }
.number-grid span { width: 100%; max-width: 40px; justify-self: center; font-size: 13px; box-shadow: inset 0 1px 6px rgba(255,255,255,.32); }
.number-grid input:checked + span { outline: 3px solid var(--green); transform: translateY(-2px); }
.number-grid input:disabled + span { opacity: .35; }
.ticket-bar { position: sticky; bottom: 16px; margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.96); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.free-ticket-note { display: inline-flex; width: fit-content; border: 1px solid #cce8bf; border-radius: 999px; padding: 7px 12px; background: #f2ffec; color: #347c27 !important; font-weight: 800; font-size: 13px; }
.subscription-warning { display: inline-flex; width: fit-content; border: 1px solid #f0c6a4; border-radius: 999px; padding: 7px 12px; background: #fff1e6; color: #9b4e10 !important; font-weight: 800; font-size: 13px; }
.auto-play-panel { display: grid; gap: 18px; }
.auto-play-form { border-top: 1px solid var(--line); padding-top: 18px; }
.auto-play-form.is-saving { opacity: .72; pointer-events: none; }
.auto-play-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.auto-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.auto-status-grid > div { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.74); padding: 14px; }
.auto-status-grid span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.auto-status-grid strong { display: block; margin-top: 4px; color: var(--text); font-size: 16px; }
.auto-state { display: inline-flex !important; width: fit-content; border-radius: 999px; padding: 4px 11px; }
.auto-state.is-on { background: #e9f9e2; color: #2f7b22; }
.auto-state.is-off { background: #f8f4ee; color: #70675c; }
.toggle-line { display: flex; grid-auto-flow: column; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); padding: 12px 14px; color: var(--text); }
.toggle-line input { width: auto; min-height: auto; }
.auto-number-grid { margin-left: 0; margin-right: 0; }
.local-message { border: 1px solid #b9daa8; border-left: 5px solid var(--green); border-radius: 8px; padding: 12px 14px; background: #f2ffec; color: #245f1a; font-weight: 800; }
.local-message.error { border-color: #f3c2b8; border-left-color: var(--danger); background: #fff1ef; color: #9f2f22; }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
.result { margin-bottom: 0; border-color: var(--line); }
.result.win { border-color: var(--green); box-shadow: 0 0 0 1px rgba(105,184,74,.2); }
.active-ticket { display: grid; gap: 20px; border-color: #dfc27d; background: linear-gradient(135deg, #ffffff 0%, #fffaf0 58%, #fff2cc 100%); }
.active-ticket .panel-title-row { margin-bottom: 0; }
.active-ticket .eyebrow { margin-bottom: 8px; }
.active-ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.active-ticket-grid div, .active-ticket-numbers { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.68); padding: 14px; }
.active-ticket-grid span, .active-ticket-numbers > span, .active-ticket-footer span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.active-ticket-grid strong { display: block; margin-top: 4px; color: var(--text); font-size: 16px; }
.active-ticket-grid small { display: block; margin-top: 4px; color: var(--green); font-size: 12px; font-weight: 800; }
.ticket-balls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.ticket-balls b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe58a, #d99b16 56%, #9f6c0c); color: #1e1b16; font-size: 13px; font-weight: 900; box-shadow: inset 0 1px 5px rgba(255,255,255,.34), 0 6px 16px rgba(153,101,8,.16); }
.active-ticket-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.active-ticket-footer strong { color: var(--gold2); }
.ticket-history-list { display: grid; gap: 16px; }
.ticket-history-card { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #fffdf8, #fff8eb); padding: 20px; box-shadow: 0 12px 36px rgba(55,42,18,.07); display: grid; gap: 18px; }
.ticket-history-card.winner { border-color: #b9daa8; background: linear-gradient(180deg, #ffffff, #f4ffef); }
.ticket-history-card.lost { background: linear-gradient(180deg, #ffffff, #fbf7f0); }
.ticket-history-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.ticket-history-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ticket-history-head span, .ticket-history-body span, .ticket-draw-details > span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.ticket-history-head h3 { margin-top: 4px; }
.ticket-history-head > strong { justify-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: #fff8e8; color: var(--gold2); }
.ticket-history-card.winner .ticket-history-head > strong { background: #f2ffec; border-color: #cce8bf; color: #347c27; }
.ticket-history-card.lost .ticket-history-head > strong { background: #f8f4ee; color: var(--muted); }
.ticket-history-body > div, .ticket-draw-details { min-height: 134px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); padding: 18px; display: flex; flex-direction: column; justify-content: flex-start; }
.ticket-history-body p, .ticket-draw-details p { margin: 8px 0 0; color: var(--muted); }
.ticket-history-body .ticket-balls, .ticket-draw-details .ticket-balls { margin-top: 12px; }
.draw-balls b { background: radial-gradient(circle at 35% 30%, #dff7d6, #76bb58 58%, #347c27); color: #12300d; }
.pending-draw { font-weight: 800; color: var(--gold2) !important; }
.slim { padding: 40px 0 0; text-align: left; }
.slim h2 { text-align: left; font-size: 34px; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; grid-column: 1 / -1; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-title-row h2 { margin: 0; }
.panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 18px; }
.ebook-library { display: grid; gap: 18px; }
.ebook-search { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto; gap: 12px; align-items: center; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-height: 760px; overflow: auto; padding-right: 6px; }
.book-card { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff, #fff8ea); padding: 18px; box-shadow: 0 10px 30px rgba(55,42,18,.06); }
.book-card h3 { font-size: 21px; line-height: 1.15; margin-top: 10px; }
.book-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.book-category { display: inline-flex; width: fit-content; border-radius: 999px; padding: 4px 10px; background: #fff1ce; color: var(--gold2); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.book-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.create-user-form { grid-column: span 2; }
.create-user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-import { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, auto); gap: 12px; align-items: end; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.export-filter { display: grid; grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(140px, .55fr)) repeat(4, minmax(110px, auto)); gap: 10px; align-items: end; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #ffffff, #fff8ea); }
.export-filter-head { display: grid; gap: 3px; color: var(--text); }
.export-filter-head span { color: var(--muted); font-size: 12px; }
.bulk-user-actions { display: grid; grid-template-columns: minmax(180px, 260px) minmax(120px, auto) minmax(150px, 1fr); gap: 10px; align-items: end; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.74); }
.check-cell { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 8px; color: var(--text); font-weight: 900; white-space: nowrap; }
.check-cell input, input[data-user-checkbox] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--gold2); }
.danger-action { margin-top: 8px; }
.linkbtn.danger { color: #b63a2d; font-weight: 800; }
.reset-form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 8px; align-items: center; }
.reset-form input { min-height: 36px; }
.contact-edit-form { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.2fr) auto; gap: 8px; align-items: center; min-width: 360px; }
.contact-edit-form input { min-height: 36px; }
.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--text); }
.inline { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--gold2); cursor: pointer; padding: 0; font: inherit; }
.legal .panel { max-width: 850px; margin: 0 auto; overflow: hidden; }
.legal-panel h1 { margin-bottom: 22px; font-size: clamp(34px, 6vw, 58px); line-height: 1.08; }
.legal-panel h2 { text-align: left; font-size: clamp(21px, 3.8vw, 26px); margin: 28px 0 10px; line-height: 1.18; }
.legal-panel p, .legal-panel li { color: var(--muted); }
.legal-panel ul { margin: 12px 0 0; padding-left: 22px; }
.consent-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 20; max-width: 1040px; margin: 0 auto; display: none; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 20px 70px rgba(55,42,18,.18); }
.consent-banner.show { display: grid; }
.consent-banner h3 { font-size: 24px; margin-bottom: 8px; }
.consent-banner p { color: var(--muted); margin: 0 0 12px; }
.consent-option { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 8px; margin-right: 16px; }
.consent-option input { width: auto; min-height: auto; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 850px) {
    .topline { flex-wrap: wrap; gap: 10px; }
    .menu-toggle { display: inline-flex; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
    .logo-brand img { width: 168px; }
    .navlinks { display: none; position: absolute; left: 16px; right: 16px; top: 100%; padding: 18px; background: #ffffff; border: 1px solid var(--line); border-radius: 8px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
    .navlinks.open { display: flex; }
    .hero { min-height: 680px; padding-top: 104px; background:
        linear-gradient(180deg, rgba(251,250,246,.98) 0%, rgba(251,250,246,.92) 46%, rgba(251,250,246,.70) 100%),
        url("hero-gws-premium.png") center right / cover no-repeat;
    }
    .hero-content { margin-left: 0; max-width: 100%; }
    .home-account-cta { grid-template-columns: 1fr; }
    .home-account-actions { justify-content: flex-start; }
    .stats, .metrics, .three, .four, .two-draws, .admin-grid, .footer, .feature, .login-hero, .member-layout, .login-benefits, .dashboard-shell { grid-template-columns: 1fr; }
    .member-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-shell { padding: 18px 14px 48px; }
    .dashboard-sidebar { position: static; min-height: auto; }
    .dashboard-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-main { gap: 18px; }
    .dashboard-hero { flex-direction: column; align-items: stretch; padding: 22px; }
    .dashboard-overview-grid, .dashboard-card-grid, .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-shell .admin-grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-card { max-width: none; }
    .lottery-art { grid-template-columns: repeat(3, 42px); min-height: 160px; }
    .number-grid { grid-template-columns: repeat(7, minmax(28px, 1fr)); gap: 6px; max-width: 350px; }
    .number-grid span { max-width: 34px; font-size: 12px; }
    .portal-head, .ticket-bar, .panel-title-row, .active-ticket-footer { align-items: stretch; flex-direction: column; }
    .draw-grid, .auto-status-grid { grid-template-columns: 1fr; }
    .active-ticket-grid { grid-template-columns: 1fr; }
    .ticket-history-head, .ticket-history-body { grid-template-columns: 1fr; }
    .ticket-history-head > strong { justify-self: start; }
    .create-user-form { grid-column: span 1; }
    .ebook-search, .admin-search, .inline-import, .export-filter, .bulk-user-actions, .reset-form, .contact-edit-form { grid-template-columns: 1fr; }
    .contact-edit-form { min-width: 260px; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
    .consent-banner { grid-template-columns: 1fr; align-items: stretch; }
    .consent-actions { justify-content: stretch; }
    .card, .panel, .auth-card { padding: 24px; }
}
@media (max-width: 430px) {
    .auth-page, .portal, .admin, .legal { padding: 42px 14px; }
    .hero { min-height: 720px; padding: 96px 14px 54px; background-position: 62% center; }
    h1 { font-size: 46px; }
    .hero .stats { grid-template-columns: 1fr; }
    .lottery-art { grid-template-columns: repeat(3, 36px); min-height: 140px; gap: 8px; }
    .number-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; max-width: 300px; }
    .number-grid span { max-width: 30px; font-size: 11px; }
    .ticket-bar { bottom: 8px; padding: 12px; }
    .member-sidebar { grid-template-columns: 1fr; }
    .btn { width: 100%; min-height: 46px; padding: 12px 18px; align-self: flex-start; }
    .dashboard-shell .form .btn { width: auto; justify-self: start; }
    .ticket-bar .btn, .actions .btn, .auth-card .btn, .consent-actions .btn { width: 100%; }
    .auto-play-actions .btn { width: 100%; }
    .dashboard-overview-grid, .dashboard-card-grid, .dashboard-quick-actions { grid-template-columns: 1fr; }
    .create-user-grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: 1fr; }
    .contact-edit-form { min-width: 220px; }
}
