:root {
  --green: #164a41;
  --green-dark: #0b2e28;
  --green-soft: #e7eeea;
  --gold: #9a701c;
  --cream: #f7f3e8;
  --ink: #13221f;
  --muted: #566661;
  --line: #d4ddd8;
  --danger: #a22525;
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: radial-gradient(circle at 10% 10%, #edf4ef 0, transparent 34rem), var(--cream); }
a { color: inherit; }
.eyebrow { margin: 0; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px,.9fr) minmax(360px,1.1fr); align-items: center; gap: clamp(40px,8vw,120px); width: min(1180px,100%); margin: auto; padding: clamp(24px,5vw,72px); }
.login-brand img { width: 76px; height: auto; mix-blend-mode: multiply; }
.login-brand h1, .hub-intro h1, .sub-header h1, .admin-panel h2 { font-family: Georgia, serif; letter-spacing: -.035em; }
.login-brand h1 { margin: 18px 0; font-size: clamp(2.6rem,6vw,5.4rem); line-height: .95; }
.login-brand h1 em { color: var(--green); font-weight: inherit; }
.login-brand > p:last-child { max-width: 45ch; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.login-card, .admin-panel { border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 28px 80px rgba(20,49,42,.1); }
.login-card { display: grid; gap: 28px; padding: clamp(28px,5vw,56px); }
.login-card h2 { margin: 6px 0 10px; font: 2.1rem Georgia, serif; }
.login-card p, .panel-copy { color: var(--muted); line-height: 1.5; }
.login-form, .admin-panel, .user-entry form { display: grid; gap: 12px; }
label { font-weight: 750; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 52px; margin-top: 7px; border: 1px solid #9faca7; border-radius: 12px; padding: 0 15px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(154,112,28,.28); border-color: var(--gold); }
.check-row, .simple-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 5px 0 8px; font-weight: 500; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }
.login-form button, .primary-action { min-height: 52px; border: 0; border-radius: 12px; padding: 0 20px; background: var(--green); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.login-form button:hover, .primary-action:hover { background: var(--green-dark); }
.login-form button:active, .primary-action:active { transform: scale(.985); }
.form-alert, .flash { padding: 14px 16px; border-left: 4px solid var(--danger); border-radius: 8px; background: #fff0f0; color: #761b1b; font-weight: 700; }
.flash.success { border-color: var(--green); background: #eaf5ef; color: #0a4935; }
.login-note { margin: 0; font-size: .88rem; }
.hub-shell, .admin-shell { width: min(1260px,100%); margin: auto; padding: clamp(20px,4vw,56px); }
.hub-header, .sub-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.hub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hub-brand img { height: 48px; width: auto; mix-blend-mode: multiply; }
.hub-brand span { display: grid; }
.hub-brand strong { font: 1.2rem Georgia, serif; }
.hub-brand small { color: var(--muted); }
.hub-user { display: flex; align-items: center; gap: 16px; }
.hub-user a, .back-link { font-weight: 750; }
.hub-intro { padding: clamp(48px,8vw,88px) 0 36px; }
.hub-intro h1 { margin: 8px 0 12px; font-size: clamp(2.3rem,5vw,4.8rem); line-height: 1; }
.hub-intro p:last-child { color: var(--muted); font-size: 1.06rem; }
.hub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.hub-card { display: grid; gap: 8px; min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-decoration: none; box-shadow: 0 12px 32px rgba(22,74,65,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hub-card:hover { transform: translateY(-3px); border-color: #9eb5aa; box-shadow: 0 18px 42px rgba(22,74,65,.12); }
.hub-card:focus-visible { outline: 3px solid rgba(154,112,28,.35); outline-offset: 3px; }
.hub-card span { color: var(--gold); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hub-card strong { margin-top: auto; font: 1.5rem Georgia, serif; }
.hub-card small { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.hub-card-primary { background: var(--green); color: #fff; border-color: var(--green); }
.hub-card-primary span, .hub-card-primary small { color: #e8d9ae; }
.sub-header { margin-bottom: 32px; }
.sub-header h1 { margin: 6px 0 0; font-size: clamp(2rem,4vw,3.4rem); }
.settings-layout, .user-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.85fr); align-items: start; gap: 22px; }
.admin-panel { padding: clamp(24px,3vw,38px); }
.admin-panel h2 { margin: 7px 0; font-size: 2rem; }
.flag-list { display: grid; gap: 8px; margin-top: 12px; }
.flag-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 62px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.flag-row span { display: grid; gap: 3px; }
.flag-row small, .configured, .role-list small, .user-entry small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.flag-row input { position: absolute; opacity: 0; }
.flag-row i { flex: 0 0 auto; width: 46px; height: 26px; padding: 3px; border-radius: 20px; background: #aeb9b4; transition: background .18s; }
.flag-row i::after { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
.flag-row input:checked + i { background: var(--green); }
.flag-row input:checked + i::after { transform: translateX(20px); }
.flag-row input:focus-visible + i { outline: 3px solid rgba(154,112,28,.35); outline-offset: 3px; }
.configured { float: right; color: var(--green); font-weight: 800; }
.security-note { margin: 8px 0; padding: 16px; border-radius: 12px; background: var(--green-soft); }
.security-note p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.role-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 330px; overflow: auto; }
.role-list label { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.role-list span { display: grid; gap: 2px; }
fieldset { margin: 6px 0; border: 0; padding: 0; }
legend { margin-bottom: 8px; font-weight: 800; }
.user-entry { border-top: 1px solid var(--line); }
.user-entry summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; cursor: pointer; }
.user-entry summary span { display: grid; }
.user-entry summary b { border-radius: 999px; padding: 5px 9px; font-size: .72rem; text-transform: uppercase; }
.user-entry summary b.active { background: #dff0e5; color: #0a5b3d; }
.user-entry summary b.inactive { background: #f7dfdf; color: #842424; }
.user-entry form { padding: 0 0 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.metric-grid article { display: grid; gap: 10px; min-height: 130px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric-grid span { color: var(--muted); font-weight: 750; }
.metric-grid strong { margin-top: auto; font: 2rem Georgia, serif; }
.area-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.admin-panel.compact { gap: 6px; padding: 24px; }
.admin-panel.compact p { margin: 6px 0; color: var(--muted); }
.progress { height: 10px; overflow: hidden; border-radius: 8px; background: #e0e7e3; }
.progress i { display: block; height: 100%; background: var(--green); }
.responsive-table { overflow: auto; }
.ticket-orders table { width: 100%; border-collapse: collapse; min-width: 860px; }
.ticket-orders th, .ticket-orders td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ticket-orders th { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.ticket-orders td > strong, .ticket-orders td > small { display: block; }
.ticket-orders td > small { margin-top: 4px; color: var(--muted); }
.status { display: inline-block; border-radius: 999px; padding: 6px 9px; background: #f0e8d2; color: #735315; font-size: .78rem; font-weight: 800; }
.status.paid { background: #dff0e5; color: #0a5b3d; }
.status.refunded { background: #f2dddd; color: #832525; }
.table-action { min-height: 40px; border: 1px solid var(--green); border-radius: 9px; padding: 0 12px; background: #fff; color: var(--green); font-family: inherit; font-size: .85rem; font-weight: 750; cursor: pointer; }
@media (max-width: 900px) { .settings-layout, .user-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .login-shell { grid-template-columns: 1fr; gap: 30px; } .login-brand h1 { font-size: clamp(2.8rem,12vw,4.6rem); } .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .area-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .login-shell { padding: 24px; } .login-brand > p:last-child { display: none; } .login-card { padding: 26px 22px; border-radius: 20px; } .hub-header { align-items: flex-start; } .sub-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 16px; } .sub-header > .back-link { grid-column: 1; grid-row: 1; } .sub-header > div { grid-column: 1 / -1; grid-row: 2; min-width: 0; } .sub-header > a:last-child { grid-column: 2; grid-row: 1; justify-self: end; } .sub-header h1 { overflow-wrap: anywhere; } .hub-user { display: grid; justify-items: end; gap: 4px; } .hub-grid { grid-template-columns: 1fr; } .hub-card { min-height: 160px; } .role-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .login-form button, .hub-card, .primary-action, .flag-row i, .flag-row i::after { transition: none; } }
