:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #64748b;
  --text: #e5e7eb;
  --white: #ffffff;
  --line: #1f2937;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --soft: #f8fafc;
  --soft-text: #0f172a;
  --success: #166534;
  --error: #991b1b;
  --warning: #92400e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f8fafc; color: #0f172a; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: linear-gradient(135deg, #111827 0%, #7f1d1d 100%); color: var(--white); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #dc2626; color: #fff; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav a { color: #fff; opacity: .95; }
.page-shell { padding: 28px 0 48px; }
.hero { background: linear-gradient(135deg, #111827 0%, #7f1d1d 100%); color: #fff; border-radius: 24px; padding: 48px; box-shadow: 0 20px 45px rgba(15,23,42,.15); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.04; margin: 0 0 14px; }
.hero p { font-size: 1.08rem; max-width: 700px; color: #e5e7eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.section { padding: 26px 0; }
.section h2 { font-size: 2rem; margin: 0 0 10px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 20px; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.card h3 { margin-top: 0; }
.kpi { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 16px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.2); }
.btn-light { background: #fff; color: #111827; }
.btn-outline { background: #fff; border-color: #d1d5db; }
.form-card { max-width: 740px; margin: 0 auto; }
label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 12px; padding: 12px 14px; font-size: 1rem; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-row { margin-bottom: 16px; }
.help { color: #64748b; font-size: .92rem; margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: .82rem; font-weight: 700; }
.muted { color: #64748b; }
.footer { background: #111827; color: #cbd5e1; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.slug-box, .copy-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 14px; word-break: break-all; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.checkbox-list { display: grid; gap: 10px; }
.checkbox-item { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-item input { width: auto; margin-top: 3px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px; }
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-muted { background: #e5e7eb; color: #334155; }
.btn-sm { padding: 8px 12px; font-size: .92rem; }
.btn-danger { border-color: #fecaca; color: #991b1b; }
.compact-actions form { margin: 0; }
.header-split { justify-content: space-between; align-items: center; }
@media (max-width: 860px) {
  .compact-actions { flex-direction: column; align-items: stretch; }
  .compact-actions .btn, .compact-actions form, .compact-actions form .btn { width: 100%; }
  .header-split { align-items: stretch; }
}


.campaigns-mobile-list { display: none; margin-top: 18px; }
.campaign-mobile-card { display: grid; gap: 12px; }
.campaign-mobile-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.campaign-mobile-title { display: grid; gap: 6px; min-width: 0; }
.campaign-mobile-meta { display: grid; gap: 10px; }
.campaign-mobile-actions { margin-top: 2px; }
.campaign-mobile-actions .btn,
.campaign-mobile-actions form,
.campaign-mobile-actions form .btn { width: 100%; }
@media (max-width: 760px) {
  .campaigns-mobile-list { display: grid; gap: 14px; }
  .campaigns-table-wrap { display: none; }
  .campaign-mobile-head { flex-direction: column; }
}


.products-layout { align-items: start; }
.product-list { display: grid; gap: 14px; }
.product-row-card { display: grid; grid-template-columns: 92px 1fr; gap: 14px; border: 1px solid #e5e7eb; border-radius: 18px; padding: 14px; background: #fff; }
.product-row-media img, .product-check-card img { width: 100%; height: 84px; object-fit: cover; border-radius: 14px; border: 1px solid #e5e7eb; background: #f8fafc; }
.product-thumb-placeholder { width: 100%; min-height: 84px; display: flex; align-items: center; justify-content: center; border: 1px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; color: #64748b; font-size: .9rem; text-align: center; padding: 12px; }
.product-row-copy { min-width: 0; }
.product-edit-box { margin-top: 10px; }
.product-edit-box summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.product-inline-form { margin-top: 12px; }
.product-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.product-check-card { display: grid; grid-template-columns: 22px 88px 1fr; gap: 12px; align-items: center; border: 1px solid #e5e7eb; border-radius: 18px; padding: 12px; background: #fff; cursor: pointer; }
.product-check-card input { width: 18px; height: 18px; }
.product-check-copy { display: grid; gap: 5px; }
.product-check-copy small { color: #64748b; }
@media (max-width: 860px) {
  .product-row-card, .product-check-card { grid-template-columns: 1fr; }
  .product-check-card input { width: 20px; height: 20px; }
  .product-check-grid { grid-template-columns: 1fr; }
}


.account-subnav { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 18px; }
.account-subnav-link { display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:999px; border:1px solid #d1d5db; background:#fff; color:#0f172a; font-weight:700; }
.account-subnav-link.is-active { background:#111827; border-color:#111827; color:#fff; }
.users-layout { align-items:start; }
.user-list { display:grid; gap:14px; }
.user-row-card { border:1px solid #e5e7eb; border-radius:18px; padding:14px; background:#fff; }
.stats-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; margin: 0 0 16px; }
.stat-card .kpi { margin-top: 6px; }
.filter-bar { display:grid; grid-template-columns: minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto auto; gap:12px; margin: 0 0 16px; align-items:end; }
.filter-bar input { width:100%; }
.email-copy-box { width:100%; min-height:120px; resize:vertical; }
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stats-grid, .filter-bar { grid-template-columns: 1fr; }
  .email-copy-box { min-height: 140px; }
}

.business-card-shell { max-width: 980px; }

.business-card-source-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.business-card-source-actions .btn { flex:1 1 220px; }
.business-card-source-actions .btn.is-active { box-shadow: inset 0 0 0 2px rgba(15,23,42,.12); }
.business-card-source-input { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; }
.business-card-selected-file { margin-top:8px; font-weight:600; color:#475569; }
.business-card-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.business-card-grid-simple { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
.business-card-panel h3 { margin-bottom: 10px; }
.business-card-preview-wrap, .business-card-crop-wrap { margin-top: 14px; }
.business-card-camera-stage { position: relative; border-radius: 20px; overflow: hidden; background: #0f172a; border: 1px solid #cbd5e1; min-height: 240px; touch-action: none; }
.business-card-camera-stage img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #020617; user-select: none; -webkit-user-drag: none; }
.business-card-guide { position: absolute; inset: 0; }
.business-card-guide::before { content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.38); pointer-events: none; }
.business-card-guide-frame { position: absolute; border: 3px solid rgba(255,255,255,.96); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(15,23,42,.28); max-width: none; max-height: none; cursor: move; touch-action: none; }
.business-card-guide-frame::before, .business-card-guide-frame::after { content: ''; position: absolute; width: 24px; height: 24px; border-color: #fff; border-style: solid; pointer-events: none; }
.business-card-guide-frame::before { left: -3px; top: -3px; border-width: 4px 0 0 4px; border-top-left-radius: 16px; }
.business-card-guide-frame::after { right: -3px; bottom: -3px; border-width: 0 4px 4px 0; border-bottom-right-radius: 16px; }
.business-card-guide-frame.is-adjusting { box-shadow: 0 0 0 9999px rgba(15,23,42,.4); }
.business-card-handle { position: absolute; width: 22px; height: 22px; border-radius: 999px; background: #fff; border: 2px solid #0f172a; box-shadow: 0 4px 14px rgba(15,23,42,.25); }
.business-card-handle.handle-nw { left: -12px; top: -12px; cursor: nwse-resize; }
.business-card-handle.handle-ne { right: -12px; top: -12px; cursor: nesw-resize; }
.business-card-handle.handle-sw { left: -12px; bottom: -12px; cursor: nesw-resize; }
.business-card-handle.handle-se { right: -12px; bottom: -12px; cursor: nwse-resize; }
.business-card-crop-label { font-size: .9rem; font-weight: 700; color: #334155; margin-bottom: 8px; }
.business-card-crop-wrap img { display: block; width: 100%; max-width: 100%; border: 1px solid #d1d5db; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.business-card-tools { margin-top: 12px; }
.ocr-status { margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 700; background: #e2e8f0; color: #334155; }
.ocr-status.is-info { background: #e0f2fe; color: #075985; }
.ocr-status.is-success { background: #dcfce7; color: #166534; }
.ocr-status.is-warning { background: #fef3c7; color: #92400e; }
@media (max-width: 860px) {
  .business-card-grid, .business-card-grid-simple { grid-template-columns: 1fr; }
  .business-card-shell { max-width: none; }
  .business-card-camera-stage { min-height: 200px; }
  .business-card-camera-stage img { max-height: 340px; }
  .business-card-tools .btn { flex: 1 1 140px; }
  .business-card-source-actions .btn { width: 100%; }
  .business-card-handle { width: 24px; height: 24px; }
}


.entries-shell { max-width: 100%; }
.entries-page-header { gap: 12px; }
.entries-toolbar .btn { min-height: 44px; }
.entries-support-grid { align-items: stretch; }
.entries-mobile-list { display: none; margin-top: 20px; }
.entry-mobile-card { display: grid; gap: 12px; }
.entry-mobile-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.entry-mobile-title { display: grid; gap: 8px; }
.entry-mobile-meta { display: grid; gap: 8px; }
.entry-mobile-actions { margin-top: 4px; }
.entry-mobile-actions .btn,
.entry-mobile-actions form,
.entry-mobile-actions form .btn { width: 100%; }
.entry-mobile-image { margin-top: 4px; }
.entry-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.entry-detail-list { display: grid; gap: 10px; }
.entry-card-preview-link { display: block; }
.entry-card-preview-image { display: block; width: 100%; max-width: 100%; border-radius: 18px; border: 1px solid #d1d5db; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.entry-edit-card-block { margin-top: 4px; }
.entry-edit-card-preview { max-width: 420px; }
.entry-table-actions { min-width: 220px; }
@media (max-width: 860px) {
  .entry-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .entries-toolbar .btn, .entries-toolbar form, .entries-toolbar form .btn { width: 100%; }
  .entries-mobile-list { display: grid; gap: 14px; }
  .entries-table-wrap { display: none; }
  .entries-filter-bar { grid-template-columns: 1fr; }
  .entries-page-header { align-items: stretch; }
  .entry-mobile-head { flex-direction: column; }
}


.mobile-active-campaigns { display: none; margin-bottom: 16px; }
.mobile-active-campaigns-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mobile-active-campaigns-list { display: grid; gap: 10px; }
.mobile-active-campaign-item { display: grid; gap: 10px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.mobile-active-campaign-copy { display: grid; gap: 4px; min-width: 0; }
.mobile-active-campaign-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.mobile-active-campaign-links .btn { width: 100%; }
@media (max-width: 760px) {
  .mobile-active-campaigns { display: block; }
}


.booth-mode-active .topbar,
.booth-mode-active .footer { display: none; }
.booth-mode-active .page-shell { padding: 0; }
.booth-mode-page { min-height: 100vh; background: linear-gradient(180deg, #111827 0%, #0f172a 32%, #f8fafc 32.1%, #f8fafc 100%); }
.booth-mode-shell { width: min(1320px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 34px; }
.booth-mode-hero { color: #fff; padding: 20px 0 12px; }
.booth-mode-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.booth-mode-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; color: #fecaca; font-weight: 800; margin-bottom: 8px; }
.booth-mode-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.02; }
.booth-mode-hero p { margin: 10px 0 0; font-size: 1.02rem; color: #e2e8f0; }
.booth-mode-top-actions .btn { min-height: 48px; }
.booth-mode-top-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.booth-mode-top-actions .btn-light { background: #fff; color: #111827; }
.booth-mode-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.booth-action-card { display: grid; gap: 8px; border-radius: 24px; padding: 22px; background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 44px rgba(2,6,23,.2); }
.booth-action-card strong { font-size: 1.18rem; }
.booth-action-card span { color: #e2e8f0; line-height: 1.45; }
.booth-action-primary { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.booth-action-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fecaca; }
.booth-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 16px 0 18px; }
.booth-kpi-card { border-radius: 24px; }
.booth-kpi-card .muted { font-weight: 700; }
.booth-kpi-card .kpi { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.booth-main-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(360px, .9fr); gap: 16px; align-items: start; }
.booth-winner-card, .booth-recent-card, .booth-campaign-card { border-radius: 28px; box-shadow: 0 18px 42px rgba(15,23,42,.08); }
.booth-winner-number { display: inline-flex; align-items: center; justify-content: center; min-height: 68px; padding: 16px 22px; border-radius: 18px; background: #111827; color: #fff; font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 900; margin-bottom: 14px; }
.booth-winner-name { font-size: clamp(1.5rem, 4vw, 2.35rem); line-height: 1.1; font-weight: 800; }
.booth-winner-meta, .booth-winner-contact { color: #475569; margin-top: 8px; font-size: 1rem; }
.booth-winner-image-wrap { margin-top: 18px; }
.booth-winner-image { display: block; width: 100%; max-width: 100%; border-radius: 22px; border: 1px solid #e5e7eb; background: #fff; }
.booth-empty-state { display: grid; gap: 10px; min-height: 260px; align-content: center; justify-items: start; }
.booth-empty-state h3 { margin: 0; font-size: 1.6rem; }
.booth-empty-state p { margin: 0; color: #64748b; max-width: 540px; }
.booth-recent-list { display: grid; gap: 10px; }
.booth-recent-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.booth-recent-item:last-child { border-bottom: 0; padding-bottom: 0; }
.booth-recent-number { min-width: 64px; text-align: center; padding: 10px 12px; border-radius: 16px; background: #fee2e2; color: #991b1b; font-weight: 900; }
.booth-recent-copy { min-width: 0; display: grid; gap: 4px; }
.booth-recent-time { color: #64748b; font-weight: 700; white-space: nowrap; }
.booth-mode-chooser .booth-mode-shell { padding-top: 26px; }
.booth-campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.booth-campaign-card { display: grid; gap: 14px; }
.booth-campaign-copy { display: grid; gap: 8px; }
.booth-campaign-copy h3 { margin: 0; font-size: 1.4rem; }
@media (max-width: 980px) {
  .booth-action-grid, .booth-kpi-grid, .booth-main-grid, .booth-campaign-grid { grid-template-columns: 1fr 1fr; }
  .booth-main-grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .booth-mode-shell { width: min(100%, calc(100% - 18px)); }
  .booth-mode-top-actions, .booth-mode-top-actions .btn { width: 100%; }
  .booth-mode-top-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .booth-action-grid, .booth-kpi-grid, .booth-main-grid, .booth-campaign-grid { grid-template-columns: 1fr; }
  .booth-action-card, .booth-winner-card, .booth-recent-card, .booth-campaign-card { border-radius: 22px; }
  .booth-recent-item { grid-template-columns: auto 1fr; }
  .booth-recent-time { grid-column: 2; }
}


/* Booth Mode stable layout */
.booth-simple-shell { display:grid; gap:16px; }
.booth-simple-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px; }
.booth-simple-card, .booth-simple-action, .booth-simple-winner, .booth-simple-recent { border-radius: 20px; }
.booth-simple-actions { flex-wrap: wrap; }
.booth-simple-action { text-decoration:none; color:inherit; display:grid; gap:8px; min-height: 150px; }
.booth-simple-action strong { font-size:1.08rem; }
.booth-simple-action span { color:#64748b; line-height:1.45; }
.booth-simple-eyebrow { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:#991b1b; }
.booth-simple-main { display:grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.95fr); gap:16px; align-items:start; }
.booth-simple-number { display:inline-flex; align-items:center; justify-content:center; min-height:64px; padding:14px 20px; border-radius:16px; background:#111827; color:#fff; font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight:900; margin-bottom:14px; }
.booth-simple-name { font-size: clamp(1.4rem, 3.8vw, 2.1rem); line-height:1.1; font-weight:800; }
.booth-simple-list { display:grid; gap:10px; }
.booth-simple-item { display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #e5e7eb; }
.booth-simple-item:last-child { border-bottom:0; padding-bottom:0; }
.booth-simple-item-number { min-width:62px; text-align:center; padding:10px 12px; border-radius:14px; background:#fee2e2; color:#991b1b; font-weight:900; }
.booth-simple-item-copy { min-width:0; display:grid; gap:4px; }
.booth-simple-item-time { color:#64748b; font-weight:700; white-space:nowrap; }
@media (max-width: 980px) {
  .booth-simple-grid { grid-template-columns: 1fr 1fr; }
  .booth-simple-main { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .booth-simple-grid { grid-template-columns: 1fr; }
  .booth-simple-actions, .booth-simple-actions .btn { width:100%; }
  .booth-simple-item { grid-template-columns:auto 1fr; }
  .booth-simple-item-time { grid-column:2; }
}

.live-draw-page { min-height: 100vh; background: radial-gradient(circle at top, #7f1d1d 0%, #111827 26%, #f8fafc 26.2%, #f8fafc 100%); }
.live-draw-shell { width: min(1320px, calc(100% - 24px)); margin: 0 auto; padding: 20px 0 34px; }
.live-draw-hero { background: linear-gradient(135deg, #111827 0%, #991b1b 100%); color: #fff; border: 0; box-shadow: 0 22px 48px rgba(15,23,42,.22); }
.live-draw-topbar { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.live-draw-eyebrow { display:inline-flex; font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:#fecaca; margin-bottom:8px; }
.live-draw-hero h1 { margin:0; font-size: clamp(2rem, 5vw, 3.4rem); line-height:1.02; }
.live-draw-hero p { margin:10px 0 0; color:#e2e8f0; font-size:1.02rem; }
.live-draw-top-actions .btn { min-height:46px; }
.live-draw-grid { display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .88fr); gap:18px; margin-top:18px; align-items:start; }
.live-draw-stage-card, .live-draw-side-card, .live-draw-winner-card { border-radius:28px; box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.live-draw-stage { position:relative; min-height: 560px; display:grid; align-content:center; justify-items:center; gap:18px; overflow:hidden; border-radius:24px; background:linear-gradient(180deg, #111827 0%, #1e293b 100%); color:#fff; padding:34px 22px; }
.live-draw-stage::before { content:''; position:absolute; inset:-40% -10% auto; height:60%; background: radial-gradient(circle, rgba(248,113,113,.35) 0%, rgba(248,113,113,0) 68%); pointer-events:none; }
.live-draw-stage-label { position:relative; z-index:1; font-size:.9rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fecaca; }
.live-draw-number-wrap { position:relative; display:grid; place-items:center; min-height: 260px; width:min(100%, 620px); }
.live-draw-number-glow { position:absolute; width:260px; height:260px; border-radius:999px; background: radial-gradient(circle, rgba(248,113,113,.5) 0%, rgba(248,113,113,0) 68%); filter: blur(10px); }
.live-draw-number { position:relative; z-index:1; font-size: clamp(4rem, 14vw, 9rem); line-height:1; font-weight:900; letter-spacing:-.04em; text-shadow: 0 18px 45px rgba(0,0,0,.4); }
.live-draw-status { position:relative; z-index:1; font-size: 1.02rem; color:#e2e8f0; font-weight:700; }
.live-draw-stage.is-pulsing .live-draw-number { animation: liveDrawPulse .22s ease-in-out infinite alternate; }
.live-draw-stage.is-revealed .live-draw-number { color:#fff7ed; }
.live-draw-confetti { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.live-confetti-piece { position:absolute; top:-8%; width:12px; height:18px; border-radius:999px; background: linear-gradient(180deg, #fca5a5 0%, #fef3c7 55%, #93c5fd 100%); opacity:.95; animation: liveConfettiFall linear forwards; }
.live-draw-side { display:grid; gap:16px; }
.live-draw-side-label { font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:#991b1b; margin-bottom:10px; }
.live-draw-winner-card.is-hidden { opacity:0; transform: translateY(14px); }
.live-draw-winner-card.is-revealed { animation: liveDrawReveal .45s ease-out forwards; }
.live-draw-winner-number { display:inline-flex; align-items:center; justify-content:center; min-height:58px; padding:12px 18px; border-radius:16px; background:#111827; color:#fff; font-weight:900; font-size: clamp(1.2rem, 4vw, 1.8rem); margin-bottom:14px; }
.live-draw-winner-name { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height:1.08; font-weight:800; }
.live-draw-winner-meta, .live-draw-winner-contact { margin-top:8px; color:#475569; }
.live-draw-winner-image-wrap { margin-top:18px; }
.live-draw-winner-image { display:block; width:100%; max-width:100%; border-radius:20px; border:1px solid #e5e7eb; background:#fff; }
.live-draw-shortcuts { display:grid; gap:10px; }
.live-draw-shortcuts .btn { width:100%; }
.live-draw-recent-list { display:grid; gap:10px; }
.live-draw-recent-item { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #e5e7eb; }
.live-draw-recent-item:last-child { border-bottom:0; padding-bottom:0; }
.live-draw-recent-number { min-width:62px; text-align:center; padding:10px 12px; border-radius:14px; background:#fee2e2; color:#991b1b; font-weight:900; }
.live-draw-recent-copy { display:grid; gap:3px; min-width:0; }
.live-draw-recent-copy span { color:#64748b; }
.live-draw-empty { min-height:380px; display:grid; align-content:center; justify-items:center; text-align:center; gap:12px; }
.live-draw-empty h2 { margin:0; font-size:2rem; }
.live-draw-empty p { margin:0; color:#cbd5e1; max-width:480px; }
@keyframes liveDrawPulse { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes liveConfettiFall { 0% { transform: translate3d(0,0,0) rotate(0deg); opacity:1; } 100% { transform: translate3d(0,120vh,0) rotate(720deg); opacity:0; } }
@keyframes liveDrawReveal { from { opacity:0; transform: translateY(18px) scale(.98); } to { opacity:1; transform: translateY(0) scale(1); } }
@media (max-width: 980px) {
  .live-draw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .live-draw-shell { width:min(100%, calc(100% - 18px)); }
  .live-draw-top-actions, .live-draw-top-actions .btn { width:100%; }
  .live-draw-top-actions { display:grid; grid-template-columns:1fr; }
  .live-draw-stage { min-height: 440px; padding: 26px 16px; }
  .live-draw-number { font-size: clamp(3.3rem, 20vw, 6rem); }
  .live-draw-stage-card, .live-draw-side-card, .live-draw-winner-card { border-radius:22px; }
}


.support-grid{align-items:start}
.stack-list{display:flex;flex-direction:column;gap:12px}
.ticket-item{display:block;padding:14px 16px;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:#fff;color:inherit;text-decoration:none}
.ticket-item.is-active,.ticket-item:hover{border-color:rgba(37,99,235,.35);box-shadow:0 10px 25px rgba(15,23,42,.06)}
.ticket-thread{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.ticket-message{padding:14px 16px;border-radius:14px;border:1px solid rgba(15,23,42,.08);background:#f8fafc}
.ticket-message.from-admin{background:#eff6ff;border-color:rgba(37,99,235,.18)}
.ticket-message-meta{font-size:12px;color:#64748b;margin-bottom:8px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.plan-stack{display:flex;flex-direction:column;gap:12px}
.plan-mini-card{padding:14px 16px;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:#fff}
.compact-list{padding-left:18px;margin:10px 0 0}
.compact-list li{margin:6px 0}
.pricing-grid{align-items:stretch}
.pricing-card{position:relative}
.pricing-card-featured{border-color:rgba(37,99,235,.28);box-shadow:0 16px 35px rgba(37,99,235,.10)}
.pricing-price{font-size:32px;font-weight:800;line-height:1;margin-top:14px}
.pricing-price span{font-size:14px;font-weight:600;color:#64748b;margin-left:4px}
@media (max-width: 900px){.detail-grid{grid-template-columns:1fr}}


.usage-meter-stack{display:flex;flex-direction:column;gap:12px}
.usage-meter{padding:12px 14px;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:#fff}
.usage-meter-head{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px}
.usage-meter-bar{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin-top:10px}
.usage-meter-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa)}
.btn.disabled,.btn[disabled]{pointer-events:none;opacity:.65}

body.brand-eventxusa .topbar { background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); }
body.brand-eventxusa .brand-mark { background: #2563eb; }
.platform-hero { display:grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.85fr); gap: 18px; align-items: stretch; background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); color: #fff; border-color: transparent; }
.platform-hero-copy p { color: #dbeafe; max-width: 720px; }
.platform-hero-panel { border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.08); }
.eyebrow { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #bfdbfe; margin-bottom: 10px; }
.compact-checks { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.compact-checks li { position: relative; padding-left: 24px; }
.compact-checks li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 900; color: #bfdbfe; }
.dashboard-card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.module-card { display:grid; gap: 12px; min-height: 240px; }
.module-card-top { display:flex; justify-content:flex-end; }
.soft-badge { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:.8rem; font-weight:800; }
.soft-badge-muted { background:#e5e7eb; color:#334155; }
.module-card-live { border-color: rgba(37,99,235,.22); box-shadow: 0 16px 35px rgba(37,99,235,.08); }
.eventxusa-stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) {
  .dashboard-card-grid, .eventxusa-stats-grid, .platform-hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .dashboard-card-grid, .eventxusa-stats-grid, .platform-hero { grid-template-columns: 1fr; }
}


.dashboard-hero-eventxusa { display:grid; grid-template-columns:minmax(0, 1.5fr) minmax(300px, .95fr); gap:20px; }
.current-event-panel { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.current-event-panel h3 { margin: 0 0 8px; font-size: 1.35rem; }
.current-event-meta { display:grid; gap:6px; color:#475569; font-size:.95rem; }
.mini-stat-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin-top:14px; }
.mini-stat-grid div { border:1px solid #e5e7eb; border-radius:16px; padding:12px; background:#fff; display:grid; gap:4px; }
.mini-stat-grid strong { font-size:1.2rem; }
.mini-stat-grid span { color:#64748b; font-size:.9rem; }
.dashboard-context-grid { display:grid; grid-template-columns: minmax(280px, .95fr) minmax(0, 1.4fr); gap:18px; }
.dashboard-card-grid-tight { grid-template-columns:1fr; gap:12px; }
.mini-module-card { border:1px solid #e5e7eb; border-radius:18px; padding:16px; background:#fff; display:grid; gap:10px; }
.event-switcher-form { min-width:min(100%, 320px); }
.event-switcher-row { display:flex; gap:10px; align-items:center; }
.event-switcher-row select { min-width:0; }
.quick-action-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.quick-action-card { display:grid; gap:6px; border:1px solid #e5e7eb; border-radius:18px; padding:16px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.quick-action-card strong { font-size:1rem; }
.quick-action-card span { color:#64748b; line-height:1.45; }
.event-card-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.event-summary-card { display:grid; gap:14px; }
.event-summary-card-active { border-color:#1d4ed8; box-shadow:0 16px 36px rgba(37,99,235,.12); }
.event-summary-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.event-summary-head h3 { margin:0 0 6px; }
.event-summary-meta { display:grid; gap:5px; color:#64748b; font-size:.92rem; }
.event-summary-stats { display:flex; flex-wrap:wrap; gap:10px; color:#334155; font-size:.92rem; }
.soft-badge { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:.8rem; font-weight:700; }
.soft-badge-muted { background:#e5e7eb; color:#475569; }
@media (max-width: 980px) {
  .dashboard-hero-eventxusa, .dashboard-context-grid, .event-card-grid, .quick-action-grid { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .event-switcher-row { flex-direction:column; align-items:stretch; }
}


.dashboard-hero-eventxusa { display:grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,.9fr); gap:18px; align-items:stretch; }
.platform-hero-copy .eyebrow, .team-access-hero .eyebrow { font-size:.8rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#b91c1c; margin-bottom:8px; }
.platform-hero-panel { border-radius:18px; background:linear-gradient(180deg,#111827 0%,#1f2937 100%); color:#fff; padding:18px; }
.hero-panel-label { font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:#fecaca; font-weight:800; margin-bottom:8px; }
.current-event-meta, .event-summary-meta { display:flex; flex-wrap:wrap; gap:8px 12px; color:#64748b; font-size:.92rem; }
.platform-hero-panel .current-event-meta { color:#e5e7eb; }
.mini-stat-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:14px; }
.mini-stat-grid div { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:12px; display:grid; gap:4px; }
.mini-stat-grid strong { font-size:1.35rem; }
.cta-band { display:flex; justify-content:space-between; gap:18px; align-items:center; flex-wrap:wrap; }
.dashboard-context-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.dashboard-card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; }
.dashboard-card-grid-tight { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mini-module-card, .module-card { border:1px solid #e5e7eb; border-radius:18px; padding:16px; background:#fff; }
.quick-action-grid, .event-card-grid, .team-access-list, .permission-group-grid { display:grid; gap:14px; }
.quick-action-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.quick-action-card { display:grid; gap:6px; border:1px solid #e5e7eb; border-radius:18px; padding:16px; background:#fff; }
.event-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.event-summary-card { display:grid; gap:12px; }
.event-summary-card-active { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
.event-summary-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.event-summary-stats { display:flex; flex-wrap:wrap; gap:10px 14px; color:#475569; }
.soft-badge { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:.82rem; font-weight:700; }
.soft-badge-muted { background:#e5e7eb; color:#334155; }
.event-switcher-form { min-width:280px; }
.event-switcher-row { display:flex; gap:10px; align-items:center; }
.team-access-hero { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.team-preset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.team-foundation-list { margin:0; padding-left:18px; display:grid; gap:10px; color:#334155; }
.team-access-card { display:grid; gap:16px; }
.team-access-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.team-access-form { display:grid; gap:14px; }
.permission-group-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.permission-group-card { border:1px solid #e5e7eb; border-radius:18px; padding:14px; background:#f8fafc; display:grid; gap:10px; }
@media (max-width: 980px) { .dashboard-hero-eventxusa, .dashboard-context-grid, .dashboard-card-grid, .quick-action-grid, .event-card-grid, .permission-group-grid, .team-preset-grid { grid-template-columns: 1fr; } }

.platform-hero .btn-outline, .dashboard-hero-eventxusa .btn-outline { color:#0f172a; }
.platform-hero .btn-outline:hover, .dashboard-hero-eventxusa .btn-outline:hover { color:#0f172a; }


/* eventxusa brand logo */
.brand-has-logo {
  gap: 0;
}
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(250px, 42vw);
  object-fit: contain;
}
.site-admin .brand-logo {
  height: 40px;
}
@media (max-width: 860px) {
  .topbar-inner { align-items: center; }
  .brand-logo {
    height: 36px;
    max-width: min(220px, 58vw);
  }
}
