/* =====================================================================
   My Swing Hub — member site
   Self-contained on purpose: no CDN fonts, no external anything. Every
   third-party request is a record held by someone else that this browser
   was on an adult site.
   ===================================================================== */

:root {
    --bg:        #0b0a0c;
    --surface:   #141216;
    --surface-2: #1c1920;
    --line:      #2a2530;
    --text:      #ece8ef;
    --muted:     #9a93a5;
    --gold:      #c9a227;
    --gold-soft: #e3c65c;
    --danger:    #d8544f;
    --ok:        #4f9d69;

    --radius: 10px;
    --sp-1: .35rem;  --sp-2: .7rem;   --sp-3: 1.1rem;
    --sp-4: 1.8rem;  --sp-5: 2.8rem;  --sp-6: 4.5rem;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
}

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 var(--sp-2); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 var(--sp-3); }
.muted { color: var(--muted); font-size: .92rem; }

.skip {
    position: absolute; left: -9999px;
    background: var(--gold); color: #000; padding: var(--sp-2) var(--sp-3);
}
.skip:focus { left: var(--sp-3); top: var(--sp-3); z-index: 100; }

/* ------------------------------------------------------------- header */

.site-head {
    border-bottom: 1px solid var(--line);
    background: rgba(11, 10, 12, .92);
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(8px);
}

.head-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; }

.brand {
    font-family: var(--font-display);
    font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); text-decoration: none; white-space: nowrap;
}
.brand-sm { font-family: var(--font-display); color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }

.nav { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.nav a { color: var(--text); font-size: .93rem; }
.nav a:hover { color: var(--gold-soft); text-decoration: none; }

.badge {
    display: inline-block; min-width: 1.25rem; padding: 0 .35rem; margin-left: .3rem;
    background: var(--gold); color: #000; border-radius: 999px;
    font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.25rem;
}

/* -------------------------------------------------------------- blocks */

.section { padding: var(--sp-5) 0; }
.page-head { padding: var(--sp-5) 0 var(--sp-3); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-3);
}
.card h3 { margin-bottom: var(--sp-1); }

.panel {
    max-width: 460px; margin-inline: auto;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--sp-4);
}

/* --------------------------------------------------------------- forms */

.field { margin-bottom: var(--sp-3); }
.field label { display: block; margin-bottom: var(--sp-1); font-size: .88rem; color: var(--muted); }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=search], select, textarea {
    width: 100%; padding: .65rem .75rem;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 8px;
    font: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
textarea { min-height: 7rem; resize: vertical; }

.field-hint  { display: block; margin-top: var(--sp-1); font-size: .82rem; color: var(--muted); }
.field-error { display: block; margin-top: var(--sp-1); font-size: .82rem; color: var(--danger); }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: var(--danger); }

.checkbox { display: flex; gap: var(--sp-2); align-items: flex-start; }
.checkbox input { width: auto; margin-top: .3rem; }
.checkbox span { font-size: .9rem; color: var(--text); }

/* ------------------------------------------------------------- buttons */

.btn {
    display: inline-block; padding: .6rem 1.15rem;
    border: 1px solid transparent; border-radius: 8px;
    font: inherit; font-weight: 600; text-align: center;
    cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #17130a; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .38rem .8rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* -------------------------------------------------------------- alerts */

.alert {
    padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3);
    border: 1px solid var(--line); border-left-width: 3px;
    border-radius: 6px; background: var(--surface-2); font-size: .93rem;
}
.alert-success { border-left-color: var(--ok); }
.alert-error   { border-left-color: var(--danger); }
.alert-info    { border-left-color: var(--gold); }

/* ---------------------------------------------------------- age gate */

.gate-body { display: grid; place-items: center; min-height: 100vh; padding: var(--sp-3); }
.gate-card {
    max-width: 460px; text-align: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--sp-4);
}
.gate-terms { text-align: left; margin: var(--sp-3) 0; font-size: .9rem; color: var(--muted); }
.gate-terms ul { padding-left: 1.1rem; margin: var(--sp-2) 0 0; }
.gate-actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }

/* ------------------------------------------------------ vetting states */

.stage-list { list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.stage-list li {
    display: flex; gap: var(--sp-2); align-items: flex-start;
    padding: var(--sp-2) 0; border-bottom: 1px solid var(--line);
}
.stage-list li:last-child { border-bottom: 0; }
.stage-dot {
    flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin-top: .15rem;
    border-radius: 999px; border: 2px solid var(--line);
    display: grid; place-items: center; font-size: .7rem; font-weight: 700;
}
.stage-done .stage-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stage-now  .stage-dot { border-color: var(--gold); color: var(--gold); }
.stage-todo .stage-dot { color: var(--muted); }
.stage-body strong { display: block; }
.stage-body span { font-size: .87rem; color: var(--muted); }

/* --------------------------------------------------------------- tags */

.tag {
    display: inline-block; padding: .12rem .5rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.tag-elite   { background: rgba(201,162,39,.14); border-color: var(--gold); color: var(--gold-soft); }
.tag-pending { border-color: #6b5a2a; color: var(--gold-soft); }
.tag-ok      { border-color: var(--ok); color: #8fd0a4; }
.tag-bad     { border-color: var(--danger); color: #eb8b87; }

/* ------------------------------------------------------------ tickets */

.ticket {
    display: grid; gap: var(--sp-3); grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--sp-3);
}
.ticket-qr { background: #fff; padding: .5rem; border-radius: 8px; line-height: 0; }
.ticket-qr svg { display: block; width: 148px; height: 148px; }
.ticket-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; font-size: .95rem; }

/* ----------------------------------------------------------------- ads */

.ad-slot { position: relative; display: block; text-align: center; margin: var(--sp-3) 0; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.ad-label {
    position: absolute; top: .3rem; right: .3rem;
    padding: 0 .3rem; border-radius: 3px;
    background: rgba(0,0,0,.6); color: var(--muted);
    font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
}

/* -------------------------------------------------------------- footer */

.site-foot { border-top: 1px solid var(--line); margin-top: var(--sp-6); padding: var(--sp-4) 0 var(--sp-3); }
.foot-inner { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.foot-col { display: flex; flex-direction: column; gap: var(--sp-1); }
.foot-col a { color: var(--muted); font-size: .88rem; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-legal { margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- legal copy */

.legal-body h2 { margin-top: var(--sp-4); font-size: 1.15rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--text); }
.legal-body ul { padding-left: 1.2rem; margin: 0 0 var(--sp-3); }
.legal-body li { margin-bottom: var(--sp-1); }
.legal-body strong { color: var(--gold-soft); }

/* -------------------------------------------------------------- tables */

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: var(--sp-2); text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }

@media (max-width: 640px) {
    .head-inner { flex-direction: column; align-items: flex-start; }
    .nav { gap: var(--sp-2); }
    .ticket { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ------------------------------------------------------------------
   Member dashboard and profiles
   ------------------------------------------------------------------ */

/* The account row. Five numbers a member actually cares about, each a link to
   the thing it counts — so managing an account is one click from the door
   rather than a hunt through a menu. */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.stat {
    display: block;
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}

.stat:hover,
.stat:focus-visible {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.stat-n {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--gold-soft);
}

.stat-l {
    display: block;
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--muted);
}

/* A saved search, or any small repeatable thing. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: .85rem;
    text-decoration: none;
    color: inherit;
}

.chip:hover,
.chip:focus-visible { border-color: var(--gold); }

/* ---------------------------------------------------------- profiles

   The profile was a heading, a paragraph and a photograph in a column, which
   read as a database row rather than a person. On a platform where the whole
   proposition is that these are real, vetted people, a profile that looks
   perfunctory undermines the thing being sold. */

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: start;
    margin-bottom: var(--sp-4);
}

@media (max-width: 720px) {
    .profile-hero { grid-template-columns: 1fr; }
}

.profile-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stands in for a photograph without looking like a broken image. */
.profile-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 3.5rem;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.15;
    margin: 0;
}

.profile-headline {
    font-size: 1.05rem;
    color: var(--text);
    margin: var(--sp-2) 0 0;
    font-style: italic;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    font-size: .85rem;
    color: var(--muted);
}

.profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* Each fact in its own chip. Previously these ran together separated by dots,
   which reads as one long sentence — and nobody reads a profile as a sentence,
   they scan it for the two or three things they care about. */
.profile-fact {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .8rem;
    color: var(--muted);
    white-space: nowrap;
}

/* Elite, marked the same way the directory marks it. A member who pays for a
   visible tier should find it visible in both places, or the badge in the grid
   looks like a mistake once you open the page. */
.profile-hero-elite .profile-photo {
    border-color: rgba(201, 162, 39, .5);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, .18);
}

/* Albums, with a picture in them. A private album shown as a title on a plain
   card gives no reason to open it — and on this platform the photograph is the
   whole reason the member granted access in the first place. */
.album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
}

.album-card:hover,
.album-card:focus-visible {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.album-card-cover {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .82rem;
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-card-body {
    padding: var(--sp-2) var(--sp-3);
    font-size: .92rem;
}

.profile-about {
    margin-top: var(--sp-3);
    line-height: 1.65;
    white-space: pre-wrap;
}

/* Directory cards. Same reasoning: a list of names is not a directory of
   people, and the photograph is what makes someone look worth opening. */
.member-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
}

.member-card:hover,
.member-card:focus-visible {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.member-card-photo {
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 2.5rem;
}

.member-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-card-body { padding: var(--sp-3); }

.member-card-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.member-card-meta {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: var(--muted);
}

/* The language picker: a row of links that wraps, rather than a column, because
   six languages stacked vertically dominate a footer that has other jobs. */
.foot-lang div {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    margin-top: .3rem;
}

.foot-lang strong { color: var(--gold-soft); font-weight: 600; }

/* Elite, made visible without shouting.
 *
 * The directory ranks Elite first, and a paid position nobody can see is not
 * worth paying for. But this is a members' community, not a leaderboard: a gold
 * hairline and a faint wash is enough to read as "different" at a glance, and
 * stops well short of making everyone else look like a lesser exhibit. */
.member-card-elite {
    border-color: rgba(201, 162, 39, .45);
    background:
        linear-gradient(180deg, rgba(201, 162, 39, .07), transparent 42%),
        var(--surface);
}

.member-card-elite:hover,
.member-card-elite:focus-visible {
    border-color: var(--gold);
}

/* A heading with an action opposite it. Wraps rather than crushes the button
   on a narrow screen, which is where most of this site is read. */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin: var(--sp-5) 0 var(--sp-3);
}

.section-head h2 { margin: 0; }

/* Four across where there is room. Tighter minimum than grid-3 because these
   cards carry a name and a line, not a paragraph. */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Printing an invoice should produce an invoice, not a web page with a menu
   and a footer wrapped around it. */
@media print {
    .site-head, .site-foot, .btn, nav, .stat-row { display: none !important; }
    body { background: #fff; color: #000; }
    .card { border: 1px solid #999; }
}