/* VC Sports Portal — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #F6B304;
    --gold-dark: #d4980a;
    --gold-dim: rgba(246,179,4,.12);
    --bg: #000;
    --bg2: #0a0a0a;
    --surface: rgba(255,255,255,.03);
    --border: rgba(255,255,255,.07);
    --text: #fff;
    --muted: rgba(255,255,255,.45);
    --danger: #ff5c5c;
    --success: #4caf7d;
    --font: 'Montserrat', sans-serif;
    --font-head: 'Anton', sans-serif;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Portal Header ───────────────────────────────────────────────────────────*/
.portal-header {
    position: sticky; top: 0; z-index: 100;
    height: 64px;
    background: rgba(0,0,0,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(246,179,4,.15);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
}
.portal-header .logo img { height: 36px; width: auto; display: block; }
.portal-header .nav-links { display: flex; align-items: center; gap: 20px; }
.portal-header .nav-links a {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--muted);
    text-decoration: none; transition: color .2s;
}
.portal-header .nav-links a:hover { color: var(--gold); }
.portal-header .nav-links a.active { color: var(--gold); }
.btn-logout {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.15);
    color: var(--muted);
    font-family: var(--font);
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px; border-radius: 8px; cursor: pointer;
    transition: border-color .2s, color .2s;
    text-decoration: none; display: inline-block;
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ── Main Wrapper ────────────────────────────────────────────────────────────*/
.portal-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 5% 80px;
}
.portal-main.wide { max-width: 1100px; }
.portal-main.narrow { max-width: 520px; }

/* ── Cards ───────────────────────────────────────────────────────────────────*/
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    background: linear-gradient(90deg, rgba(246,179,4,.08), rgba(246,179,4,.02));
    border-bottom: 1px solid rgba(246,179,4,.1);
    padding: 16px 24px;
    display: flex; align-items: center; gap: 12px;
}
.card-header .step-badge {
    width: 32px; height: 32px;
    background: var(--gold); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 14px; color: #000; flex-shrink: 0;
}
.card-header h3 {
    font-family: var(--font-head); font-size: 14px;
    letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
}
.card-body { padding: 24px; }

/* ── Page Headings ───────────────────────────────────────────────────────────*/
.page-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 2px; text-transform: uppercase;
    color: #fff; margin-bottom: 8px; line-height: .95;
}
.page-title span { color: var(--gold); }
.page-sub { font-size: 14px; color: var(--muted); margin-bottom: 36px; line-height: 1.7; }

/* ── Auth Pages ──────────────────────────────────────────────────────────────*/
.auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    padding: 32px 16px;
}
.auth-box {
    width: 100%; max-width: 460px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(246,179,4,.12);
    border-radius: 20px;
    padding: 40px 36px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 44px; }
.auth-title {
    font-family: var(--font-head); font-size: 26px;
    letter-spacing: 2px; text-transform: uppercase;
    color: #fff; text-align: center; margin-bottom: 6px;
}
.auth-title span { color: var(--gold); }
.auth-sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 28px; line-height: 1.7; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 12px; color: var(--muted); }
.auth-footer a { color: var(--gold); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Form Fields ─────────────────────────────────────────────────────────────*/
.fg { margin-bottom: 16px; }
.fg label {
    display: block; font-size: 8.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.8px;
    color: rgba(255,255,255,.36); margin-bottom: 7px;
}
.fg label .rq { color: var(--gold); }
.fg input, .fg select, .fg textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.09);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font); font-size: 13px;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    appearance: none; -webkit-appearance: none; line-height: 1.4;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,.2); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
    border-color: var(--gold);
    background: rgba(246,179,4,.04);
    box-shadow: 0 0 0 3px rgba(246,179,4,.11);
}
.fg input[type="date"] { color-scheme: dark; }
.fg select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px; cursor: pointer;
}
.fg select option { background: #111; color: #fff; }
.fg textarea { resize: vertical; min-height: 80px; line-height: 1.65; }
.fg input.bad, .fg select.bad {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(255,92,92,.11) !important;
}
.fg .field-error {
    font-size: 11px; color: var(--danger);
    margin-top: 5px; display: none;
}
.fg .field-error.show { display: block; }

.fr  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fr3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.rdiv { height: 1px; background: rgba(255,255,255,.05); margin: 20px 0; }
.rlbl {
    font-size: 9px; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px; display: block;
}

/* ── Radio / Checkbox chips ──────────────────────────────────────────────────*/
.cg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ci {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 9px 15px; border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.09);
    transition: border-color .2s, background .2s;
    user-select: none; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.6);
}
.ci:hover { border-color: rgba(246,179,4,.35); background: rgba(246,179,4,.05); }
.ci input { display: none; }
.cb {
    width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.28); background: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; font-size: 10px; color: #000; font-weight: 900; line-height: 1;
}
.ci.rad .cb { border-radius: 50%; }
.ci.sel { border-color: rgba(246,179,4,.5); background: rgba(246,179,4,.08); }
.ci.sel .cb { background: var(--gold); border-color: var(--gold); }
.ci.sel span { color: var(--gold); }

/* ── Signature ───────────────────────────────────────────────────────────────*/
.sigw {
    border: 1.5px solid rgba(255,255,255,.09); border-radius: 10px;
    overflow: hidden; background: rgba(255,255,255,.025); position: relative;
}
.sigw canvas { width: 100%; height: 200px; display: block; cursor: crosshair; touch-action: none; }
.sigbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.35);
}
.siglbl { font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.28); }
.sigclr {
    background: transparent; border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.55); font-family: var(--font);
    font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: all .2s;
}
.sigclr:hover { border-color: var(--gold); color: var(--gold); }
.sighint {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.14);
    pointer-events: none; text-align: center; line-height: 1.8;
}
.sigw.bad { border-color: var(--danger) !important; }

/* ── Photo Upload ────────────────────────────────────────────────────────────*/
.photo-upload-wrap { position: relative; }
.photo-drop {
    border: 2px dashed rgba(255,255,255,.12);
    border-radius: 12px; padding: 28px;
    text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.photo-drop:hover, .photo-drop.dragover {
    border-color: var(--gold);
    background: rgba(246,179,4,.04);
}
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.photo-drop-icon { font-size: 32px; margin-bottom: 10px; opacity: .4; }
.photo-drop p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.photo-drop strong { color: var(--gold); }
.photo-preview-box { display: none; text-align: center; }
.photo-preview-box img {
    width: 120px; height: 150px; object-fit: cover;
    border-radius: 8px; border: 2px solid var(--gold);
    margin-bottom: 10px;
}
.photo-change-btn {
    background: transparent; border: 1px solid rgba(255,255,255,.2);
    color: var(--muted); font-family: var(--font); font-size: 10px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: all .2s;
}
.photo-change-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Accept ──────────────────────────────────────────────────────────────────*/
.ci-full {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 14px 18px; border-radius: 10px; width: 100%;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.09);
    transition: border-color .2s, background .2s;
    user-select: none; margin-top: 18px;
}
.ci-full input { display: none; }
.ci-full .cb { flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; margin-top: 1px; font-size: 11px; }
.ci-full span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); line-height: 1.65; }
.ci-full.sel { border-color: rgba(246,179,4,.4); background: rgba(246,179,4,.05); }
.ci-full.sel .cb { background: var(--gold); border-color: var(--gold); color: #000; }
.ci-full.sel span { color: rgba(255,255,255,.78); }
.ci-full span a { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────────────────────*/
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--gold); color: #000;
    border: none; font-family: var(--font); font-weight: 900;
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 14px 28px; border-radius: 10px; cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(246,179,4,.28); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary.full { width: 100%; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.55); font-family: var(--font); font-weight: 700;
    font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
    padding: 13px 24px; border-radius: 10px; cursor: pointer;
    transition: all .2s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255,92,92,.3);
    color: var(--danger); font-family: var(--font); font-weight: 700;
    font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
    padding: 11px 20px; border-radius: 10px; cursor: pointer;
    transition: all .2s; text-decoration: none;
}
.btn-danger:hover { background: rgba(255,92,92,.08); border-color: var(--danger); }

/* ── Nav ─────────────────────────────────────────────────────────────────────*/
.rnav {
    display: flex; gap: 12px; justify-content: space-between;
    margin-top: 26px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.05);
}

/* ── Alerts ──────────────────────────────────────────────────────────────────*/
.alert {
    padding: 14px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px; line-height: 1.5;
}
.alert-success { background: rgba(76,175,125,.1); border: 1px solid rgba(76,175,125,.25); color: #4caf7d; }
.alert-error   { background: rgba(255,92,92,.09); border: 1px solid rgba(255,92,92,.22); color: #ff7070; }
.alert-warn    { background: rgba(246,179,4,.09); border: 1px solid rgba(246,179,4,.22); color: var(--gold); }

/* ── Dashboard Grid ──────────────────────────────────────────────────────────*/
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 32px; }
.dash-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 24px;
    transition: border-color .2s, background .2s;
    text-decoration: none; display: block;
}
.dash-tile:hover { border-color: rgba(246,179,4,.3); background: rgba(246,179,4,.03); }
.dash-tile-icon { font-size: 28px; margin-bottom: 14px; }
.dash-tile-title {
    font-family: var(--font-head); font-size: 14px;
    letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
    margin-bottom: 6px;
}
.dash-tile-desc { font-size: 12px; color: var(--muted); line-height: 1.65; }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 100px;
}
.status-active  { background: rgba(76,175,125,.12); border: 1px solid rgba(76,175,125,.28); color: #4caf7d; }
.status-none    { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--muted); }

/* ── Ficha View ──────────────────────────────────────────────────────────────*/
.ficha-hero {
    display: flex; gap: 28px; align-items: flex-start;
    padding: 28px; background: var(--surface);
    border: 1px solid rgba(246,179,4,.15); border-radius: 16px; margin-bottom: 28px;
}
.ficha-photo {
    width: 110px; height: 140px; object-fit: cover;
    border-radius: 10px; border: 2px solid var(--gold); flex-shrink: 0;
}
.ficha-photo-placeholder {
    width: 110px; height: 140px; border-radius: 10px;
    border: 2px dashed rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 12px; flex-shrink: 0;
}
.ficha-name {
    font-family: var(--font-head); font-size: 28px;
    letter-spacing: 1.5px; text-transform: uppercase; line-height: 1;
    margin-bottom: 8px;
}
.ficha-meta { font-size: 12px; color: var(--muted); line-height: 1.9; }
.ficha-meta strong { color: rgba(255,255,255,.7); }

.ficha-section { margin-bottom: 8px; }
.ficha-section-label {
    font-size: 8.5px; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.ficha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ficha-field label {
    font-size: 8px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,.3);
    display: block; margin-bottom: 4px;
}
.ficha-field p { font-size: 13px; color: #fff; font-weight: 500; }
.ficha-signature { max-width: 300px; max-height: 100px; object-fit: contain; }

/* ── Modal ───────────────────────────────────────────────────────────────────*/
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.85); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #0d0d0d; border: 1px solid rgba(246,179,4,.2);
    border-radius: 16px; max-width: 560px; width: 100%;
    max-height: 80vh; overflow-y: auto;
    padding: 32px;
}
.modal-title {
    font-family: var(--font-head); font-size: 18px;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #fff; margin-bottom: 16px;
}
.modal-body { font-size: 13px; color: var(--muted); line-height: 1.75; }
.modal-close {
    background: var(--gold); color: #000; border: none;
    font-family: var(--font); font-weight: 900;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 12px 24px; border-radius: 8px; cursor: pointer;
    margin-top: 24px; display: block; width: 100%;
    transition: background .2s;
}
.modal-close:hover { background: var(--gold-dark); }

/* ── Progress ────────────────────────────────────────────────────────────────*/
.rpb { display: flex; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.rpb-g { display: flex; align-items: center; }
.rpb-s { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 0 2px; }
.rpb-c {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 14px;
    border: 2px solid rgba(255,255,255,.12); color: rgba(255,255,255,.28);
    background: transparent; transition: all .3s; margin-bottom: 6px;
}
.rpb-l {
    font-size: 7.5px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; color: rgba(255,255,255,.28);
    transition: color .3s; white-space: nowrap;
}
.rpb-ln { width: 36px; height: 1px; background: rgba(255,255,255,.08); margin-bottom: 20px; transition: background .3s; flex-shrink: 0; }
.rpb-s.active .rpb-c { background: var(--gold); border-color: var(--gold); color: #000; }
.rpb-s.active .rpb-l { color: var(--gold); }
.rpb-s.done .rpb-c   { background: rgba(246,179,4,.12); border-color: var(--gold); color: var(--gold); }
.rpb-s.done .rpb-l   { color: rgba(255,255,255,.55); }
.rpb-ln.done { background: rgba(246,179,4,.32); }

/* ── Responsive ──────────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
    .portal-header { padding: 0 4%; }
    .portal-main { padding: 28px 4% 60px; }
    .fr, .fr3 { grid-template-columns: 1fr !important; }
    .card-body { padding: 18px 16px 22px; }
    .rnav { flex-direction: column-reverse; }
    .btn-secondary { justify-content: center; }
    .rpb-ln { width: 20px; }
    .rpb-l { font-size: 7px; }
    .ficha-hero { flex-direction: column; align-items: center; text-align: center; }
    .portal-header .nav-links { gap: 12px; }
}
@media (max-width: 380px) {
    .rpb-ln { width: 10px; }
    .rpb-l  { display: none; }
}
