:root {
    --bg: #0d120e;
    --panel: #141d16;
    --panel-2: #1b281d;
    --gold: #d4a63a;
    --gold-soft: rgba(212, 166, 58, 0.22);
    --text: #f4f4f0;
    --muted: #c8c8c0;
    --line: rgba(212, 166, 58, 0.35);
    --danger: #7c1c1c;
    --ok: #234d2c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top left, #1c2b1f, var(--bg) 45%);
    color: var(--text);
}

.site-shell {
    max-width: 1320px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: #070a08;
    border-left: 1px solid #111;
    border-right: 1px solid var(--line);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.brand-block {
    padding: 24px 18px 20px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.brand-logo {
    display: block;
    width: 168px;
    max-width: 92%;
    height: auto;
    margin: 0 auto 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.association-name {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 14px;
    max-width: 230px;
}

.module-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mission-stack {
    display: grid;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #aaa;
}

.side-nav {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.side-nav a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
    font-weight: 700;
}

.side-nav a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.main-content {
    padding: 24px;
}

.hero-panel {
    min-height: 245px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgba(10,15,11,0.9), rgba(10,15,11,0.6)),
        linear-gradient(135deg, #1b2a1d, #324b34);
    margin-bottom: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.32);
}

.eyebrow {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-panel h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    text-transform: uppercase;
    max-width: 780px;
}

.hero-panel p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
}

.panel h2, .panel h3 {
    color: var(--gold);
    margin-top: 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.app-card {
    position: relative;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 22px;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-left: 4px solid var(--gold);
    opacity: 0.9;
    pointer-events: none;
}

.app-number {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 14px;
}

.app-card h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 24px;
}

.app-card h3 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-card p {
    color: var(--muted);
    line-height: 1.5;
}

.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    background: var(--gold);
    color: #111;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.access-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.14);
}

.access-badge.allowed { background: var(--ok); color: #dcf6df; }
.access-badge.pending { background: #3f351b; color: #f7e4a6; }
.access-badge.public { background: #1c314c; color: #d9ecff; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

ul.clean-list {
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-row { margin-bottom: 14px; }

label {
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: #0b110c;
    color: #fff;
    padding: 11px 12px;
    font: inherit;
}

textarea { min-height: 120px; resize: vertical; }

.notice {
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
    background: #1f2f22;
    border: 1px solid var(--line);
}

.notice.error {
    background: #3b1515;
    border-color: #984646;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #101811;
    border-radius: 14px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold);
    background: #080c09;
}

.footer-join {
    background: linear-gradient(135deg, #1f331f, #101711);
    border: 1px solid var(--gold);
    border-radius: 22px;
    padding: 24px;
    margin-top: 26px;
    text-align: center;
}

.footer-join h2 { margin-top: 0; color: var(--gold); text-transform: uppercase; }

/* Registration page — compact program checkboxes */
.program-options input[type="checkbox"],
.program-grid input[type="checkbox"],
input[name="programs[]"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    accent-color: #d4a63a;
    cursor: pointer;
}

@media (max-width: 960px) {
    .site-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; min-height: auto; }
    .brand-logo { width: 130px; }
    .side-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-panel h1 { font-size: 34px; }
    .app-grid, .info-grid, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .main-content { padding: 14px; }
    .hero-panel { padding: 24px; min-height: 210px; }
    .hero-panel h1 { font-size: 28px; }
    .side-nav { grid-template-columns: 1fr; }
}
