:root {
    --ink: #070707;
    --ink-soft: #101010;
    --surface: #171717;
    --surface-2: #202020;
    --paper: #f4f1ec;
    --white: #ffffff;
    --muted: #aaa6a1;
    --line: rgba(255, 255, 255, 0.13);
    --accent: #df3b2f;
    --accent-bright: #ff5143;
    --gold: #d6b56f;
    --success: #2fb36d;
    --warning: #edb44a;
    --danger: #df3b2f;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--ink);
    color: var(--white);
    font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--white);
    color: var(--ink);
    border-radius: 8px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, .93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .45;
}

.header-inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 84px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--white);
    text-decoration: none;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.35rem;
    letter-spacing: .22em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: .58rem;
    letter-spacing: .15em;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.desktop-nav a,
.header-link {
    position: relative;
    color: #dad7d2;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    letter-spacing: .05em;
    transition: color .2s ease;
}

.desktop-nav a:hover,
.header-link:hover {
    color: var(--white);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    transition: right .2s ease;
}

.desktop-nav a:hover::after {
    right: 0;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-link {
    padding: 10px 13px;
}

.header-link-muted {
    color: var(--muted);
}

.header-link-strong {
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    color: var(--white);
}

.header-link-strong:hover {
    background: var(--white);
    color: var(--ink);
}

.mobile-menu {
    display: none;
    margin-left: auto;
}

.mobile-menu summary {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-content: center;
    gap: 4px;
    cursor: pointer;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    width: 18px;
    height: 1.5px;
    background: var(--white);
}

.mobile-menu-panel {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    padding: 12px;
    background: #111;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mobile-menu-panel a {
    display: block;
    padding: 13px 15px;
    border-radius: 10px;
    color: #e5e2dd;
    text-decoration: none;
}

.mobile-menu-panel a:hover {
    background: var(--surface-2);
}

.flash-stack {
    position: fixed;
    z-index: 120;
    top: 98px;
    right: 20px;
    width: min(420px, calc(100% - 40px));
}

.flash-message {
    margin-bottom: 10px;
    padding: 14px 18px;
    background: #1a2e22;
    border: 1px solid rgba(47, 179, 109, .45);
    border-radius: var(--radius-sm);
    color: #d8ffe7;
    box-shadow: var(--shadow);
}

.flash-message.error {
    background: #351714;
    border-color: rgba(223, 59, 47, .55);
    color: #ffd9d5;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--gold);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--accent);
}

.hero {
    position: relative;
    min-height: min(770px, calc(100vh - 84px));
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #111 url("images/hero-racing.13dc7eae24fe.webp") center 45% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .91) 0%, rgba(0, 0, 0, .52) 48%, rgba(0, 0, 0, .18) 78%),
        linear-gradient(0deg, #070707 0%, transparent 42%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 5px;
    left: 0;
    top: 0;
    background: var(--accent);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 90px 0 110px;
}

.hero-kicker {
    color: #dedad4;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .25em;
}

.hero h1 {
    max-width: 820px;
    margin: 20px 0 12px;
    font-size: clamp(3.3rem, 7.4vw, 7.2rem);
    line-height: .94;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .8);
}

.hero-copy {
    max-width: 590px;
    margin: 24px 0 0;
    color: #d1cdc7;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .035em;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: var(--white);
}

.button-primary:hover {
    background: var(--accent-bright);
}

.button-light {
    background: var(--white);
    color: var(--ink);
}

.button-outline {
    border-color: rgba(255, 255, 255, .38);
    color: var(--white);
    background: rgba(0, 0, 0, .18);
}

.button-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.button-dark {
    border-color: #151515;
    background: #151515;
    color: var(--white);
}

.button-dark:hover {
    background: #2b2b2b;
}

.button-danger {
    border-color: rgba(223, 59, 47, .65);
    color: #ff8d83;
    background: transparent;
}

.button-full {
    width: 100%;
}

.trust-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #0d0d0d;
}

.trust-strip-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    padding: 26px 28px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    font-size: 1rem;
}

.trust-item span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .82rem;
}

.section {
    padding: 110px 0;
}

.section-compact {
    padding: 72px 0;
}

.section-dark {
    background: var(--ink-soft);
}

.section-paper {
    background: var(--paper);
    color: #111;
}

.content-wrap {
    width: min(calc(100% - 40px), var(--content));
    margin: auto;
}

.content-narrow {
    width: min(calc(100% - 40px), 780px);
    margin: auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.section-heading h2,
.page-heading h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.section-heading p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
}

.section-paper .section-heading p {
    color: #67625c;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.service-card {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
    background: #181818;
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06);
    transition: transform .45s ease, filter .45s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .12) 78%);
}

.service-card:hover img {
    transform: scale(1.045);
    filter: grayscale(.2) contrast(1.04);
}

.service-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 25px;
}

.service-card-index {
    color: var(--accent-bright);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.service-card h3 {
    margin: 10px 0 5px;
    font-size: 1.35rem;
}

.service-card p {
    margin: 0;
    color: #c2beb9;
    font-size: .9rem;
}

.events-list {
    display: grid;
    gap: 18px;
}

.event-card {
    display: grid;
    grid-template-columns: minmax(250px, .68fr) 1.35fr;
    min-height: 330px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #ddd7cf;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 50px rgba(23, 18, 12, .08);
}

.event-card-visual {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    background: #222;
}

.event-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.35);
    transition: transform .4s ease, filter .4s ease;
}

.event-card:hover .event-card-visual img {
    transform: scale(1.035);
    filter: grayscale(0);
}

.event-date-box {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, .82);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    color: var(--white);
    font-weight: 800;
}

.event-card-body {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 5vw, 50px);
}

.event-card-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.event-card h3 {
    margin: 0;
    color: #111;
    font-size: clamp(1.65rem, 3.3vw, 2.55rem);
    letter-spacing: -.035em;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 16px;
    color: #68625c;
}

.event-price {
    color: #111;
    font-size: 1.35rem;
    font-weight: 900;
    white-space: nowrap;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 28px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ece8e2;
    color: #3d3935;
    font-size: .78rem;
    font-weight: 850;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-open,
.status-success {
    background: #dff5e8;
    color: #147846;
}

.status-full,
.status-danger {
    background: #f9dfdc;
    color: #b12a21;
}

.status-warning {
    background: #fff0cf;
    color: #8c5d00;
}

.empty-state {
    padding: 55px 28px;
    border: 1px dashed #bdb6ad;
    border-radius: var(--radius);
    color: #625d57;
    text-align: center;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 62px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .5)),
        url("images/course-performance.5b1a16ba9838.webp") center 42% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    left: max(20px, calc((100% - var(--content)) / 2));
    bottom: 0;
    width: 170px;
    height: 4px;
    background: var(--accent);
}

.page-heading {
    position: relative;
    z-index: 1;
}

.page-heading p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #c6c1bb;
}

.breadcrumb {
    display: inline-flex;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
}

.breadcrumb:hover {
    color: var(--white);
}

.panel,
.form-card,
.order-card,
.ticket-card,
.staff-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel,
.form-card,
.staff-card {
    padding: clamp(24px, 5vw, 42px);
}

.panel-paper {
    background: var(--white);
    border-color: #e1dbd4;
    color: #161616;
}

.panel h2,
.form-card h2,
.staff-card h1 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -.025em;
}

.panel-intro {
    margin: 0 0 26px;
    color: var(--muted);
}

.form-card label,
.form-field label {
    display: block;
    margin: 18px 0 7px;
    color: #e5e1dc;
    font-size: .88rem;
    font-weight: 750;
}

.form-card input,
.form-card select,
.form-card textarea,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #454545;
    border-radius: 10px;
    outline: none;
    background: #0f0f0f;
    color: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.panel-paper input,
.panel-paper select,
.panel-paper textarea {
    border-color: #d8d2cb;
    background: #faf8f5;
    color: #111;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(223, 59, 47, .18);
}

.form-card textarea,
.form-field textarea {
    resize: vertical;
}

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

.form-grid .span-2 {
    grid-column: 1 / -1;
}

.form-help,
.helptext {
    display: block;
    margin: 7px 0 0;
    color: #8f8b86;
    font-size: .78rem;
}

.equipment-fieldset {
    margin: 18px 0 0;
    padding: 0;
    border: 0;
}

.equipment-fieldset legend {
    margin: 0 0 9px;
    color: #e5e1dc;
    font-size: .88rem;
    font-weight: 750;
}

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

.equipment-choice {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 13px 14px;
    border: 1px solid #454545;
    border-radius: 10px;
    background: #0f0f0f;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.equipment-choice:hover,
.equipment-choice:has(input:checked) {
    border-color: var(--accent-bright);
    background: rgba(223, 59, 47, .1);
    box-shadow: 0 0 0 2px rgba(223, 59, 47, .12);
}

.form-card .equipment-choice input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.equipment-choice-copy {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.equipment-choice-copy strong {
    color: var(--white);
    font-size: .88rem;
}

.equipment-choice-copy small {
    color: var(--gold);
    white-space: nowrap;
}

.errorlist,
.form-errors {
    margin: 8px 0;
    padding: 11px 14px 11px 31px;
    border: 1px solid rgba(223, 59, 47, .45);
    border-radius: 10px;
    background: rgba(223, 59, 47, .12);
    color: #ffb5ad;
    font-size: .86rem;
}

.section-divider {
    margin: 30px 0 10px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--gold);
    font-size: .77rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.notice-box,
.state-box {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    color: #d8d4cf;
}

.notice-success,
.state-success {
    border-color: rgba(47, 179, 109, .4);
    background: rgba(47, 179, 109, .11);
    color: #c8f7da;
}

.notice-warning,
.state-warning {
    border-color: rgba(237, 180, 74, .38);
    background: rgba(237, 180, 74, .1);
    color: #ffe4aa;
}

.notice-danger,
.state-danger {
    border-color: rgba(223, 59, 47, .42);
    background: rgba(223, 59, 47, .1);
    color: #ffc5bf;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 24px;
    align-items: start;
}

.event-summary {
    overflow: hidden;
    padding: 0;
}

.event-summary-image {
    height: 320px;
    overflow: hidden;
    background: #171717;
}

.event-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-gallery {
    background: #0c0c0c;
    color: var(--white);
}

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

.media-gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #151515;
    box-shadow: var(--shadow);
}

.media-gallery-card:first-child:nth-last-child(n + 3) {
    grid-column: 1 / -1;
}

.media-gallery-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #050505;
}

.media-gallery-card:first-child:nth-last-child(n + 3) .media-gallery-visual {
    aspect-ratio: 21 / 9;
}

.media-gallery-visual > a {
    display: block;
    width: 100%;
    height: 100%;
}

.media-gallery-visual > a:focus-visible {
    outline: 3px solid var(--accent-bright);
    outline-offset: -4px;
}

.media-gallery-visual img,
.media-gallery-visual video,
.media-gallery-visual iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.media-gallery-visual img {
    transition: transform .4s ease, filter .4s ease;
}

.media-gallery-card:hover .media-gallery-visual img {
    transform: scale(1.035);
    filter: contrast(1.04);
}

.media-gallery-copy {
    padding: 20px 22px 23px;
}

.media-gallery-meta {
    color: var(--accent-bright);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.media-gallery-copy h3 {
    margin: 8px 0 0;
    font-size: 1.2rem;
}

.media-gallery-copy p {
    margin: 8px 0 0;
    color: #aaa6a1;
    font-size: .88rem;
}

.member-gallery-lock {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: clamp(25px, 5vw, 45px);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 20%, rgba(223, 59, 47, .22), transparent 35%),
        #151515;
}

.member-gallery-lock-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 950;
}

.member-gallery-lock h3 {
    margin: 7px 0 5px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.member-gallery-lock p {
    margin: 0;
    color: #aaa6a1;
}

.content-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.content-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd7cf;
    border-radius: var(--radius);
    background: var(--white);
    color: #151515;
    box-shadow: 0 14px 42px rgba(23, 18, 12, .08);
}

.section-dark .content-card {
    border-color: var(--line);
    background: #151515;
    color: var(--white);
}

.content-card-visual {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(223, 59, 47, .85), rgba(20, 20, 20, .92)),
        #171717;
    color: var(--white);
    text-decoration: none;
}

.content-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.content-card:hover .content-card-visual img {
    transform: scale(1.04);
}

.content-card-placeholder {
    display: flex;
    height: 100%;
    align-items: end;
    padding: 20px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.content-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.content-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px;
    color: #77716a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.section-dark .content-card-meta {
    color: #8f8b86;
}

.content-card h3 {
    margin: 13px 0 8px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.content-card h3 a,
.content-card-link {
    color: inherit;
    text-decoration: none;
}

.content-card p {
    margin: 0 0 20px;
    color: #68625c;
    font-size: .9rem;
}

.section-dark .content-card p {
    color: #aaa6a1;
}

.content-card-link {
    margin-top: auto;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 900;
}

.section-action {
    margin-top: 30px;
    text-align: right;
}

.content-grid-empty {
    grid-column: 1 / -1;
}

.event-description {
    margin: 22px 0;
    color: #c7c2bc;
}

.event-description p {
    margin: 0 0 12px;
}

.source-form-link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--gold);
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}

.article-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #ddd7cf;
}

.article-source span {
    color: #706a63;
    font-size: .86rem;
}

.section-member-deals {
    background:
        radial-gradient(circle at 90% 20%, rgba(223, 59, 47, .18), transparent 34%),
        #101010;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #ddd7cf;
    border-radius: var(--radius);
    background: var(--white);
    color: #151515;
    box-shadow: 0 14px 42px rgba(23, 18, 12, .1);
}

.product-visual {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, #151515, #33201e);
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-stock {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(20, 120, 70, .92);
    color: #fff;
    font-size: .73rem;
    font-weight: 850;
}

.product-sold-out {
    background: rgba(120, 35, 29, .92);
}

.product-body {
    padding: 24px;
}

.product-body h2,
.product-body h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.product-body p {
    min-height: 54px;
    margin: 0 0 20px;
    color: #68625c;
    font-size: .9rem;
}

.product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 15px;
    margin: 20px 0;
}

.product-price-row del {
    color: #938d86;
    font-size: .86rem;
}

.product-price-row strong {
    color: var(--accent);
    font-size: 1.18rem;
}

.member-deal-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 32px;
    padding: 30px;
    border-radius: var(--radius);
    background: #171717;
    color: #fff;
}

.member-deal-banner h2 {
    margin: 0;
}

.member-deal-banner p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #aaa6a1;
}

.button-disabled {
    border-color: #d2ccc4;
    background: #e8e3dc;
    color: #8d877f;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .member-deal-banner,
    .article-source {
        align-items: stretch;
        flex-direction: column;
    }
}

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

.social-connect-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: end;
    padding: 28px;
    border: 1px solid #d8d2cb;
    border-radius: var(--radius);
    color: #111;
    text-decoration: none;
    box-shadow: 0 14px 42px rgba(23, 18, 12, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.social-connect-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(23, 18, 12, .14);
}

.social-connect-card span {
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .14em;
}

.social-connect-card strong {
    margin-top: 12px;
    font-size: 1.45rem;
}

.social-connect-card small {
    margin-top: 6px;
    color: #5f5953;
}

.social-line {
    background: linear-gradient(145deg, #dff9e7, #fff);
    border-top: 4px solid #06c755;
}

.button-line {
    background: #06c755;
    border-color: #06c755;
    color: #fff;
}

.button-line:hover {
    background: #05ad4a;
    border-color: #05ad4a;
    color: #fff;
}

.auth-divider {
    align-items: center;
    color: #777;
    display: flex;
    gap: 12px;
    margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
    background: rgba(0, 0, 0, .14);
    content: "";
    flex: 1;
    height: 1px;
}

.auth-provider-note {
    color: #666;
    font-size: .84rem;
    line-height: 1.6;
    margin: 12px 0 0;
    text-align: center;
}

.social-facebook {
    background: linear-gradient(145deg, #e4edff, #fff);
    border-top: 4px solid #1877f2;
}

.social-instagram {
    background: linear-gradient(145deg, #ffe7ef, #fff3df 65%, #fff);
    border-top: 4px solid #d62976;
}

.article-shell {
    max-width: 900px;
}

.article-cover {
    width: 100%;
    max-height: 540px;
    margin-bottom: 34px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.article-lead {
    margin: 0 0 30px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
    color: #3f3b36;
    font-size: clamp(1.1rem, 2.3vw, 1.38rem);
    font-weight: 700;
}

.article-body {
    color: #282522;
    font-size: 1.02rem;
    line-height: 1.9;
}

.article-body p {
    margin: 0 0 1.4em;
}

.article-video {
    aspect-ratio: 16 / 9;
    margin-top: 38px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #050505;
}

.article-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.event-summary-body {
    padding: clamp(24px, 5vw, 38px);
}

.event-summary h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.event-summary .event-price {
    margin-top: 24px;
    color: var(--white);
    font-size: 1.9rem;
}

.summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.summary-meta-item {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.summary-meta-item small,
.summary-meta-item strong {
    display: block;
}

.summary-meta-item small {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
}

.summary-meta-item strong {
    margin-top: 3px;
}

.sticky-panel {
    position: sticky;
    top: 108px;
}

.total-box {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #080808;
    border: 1px solid var(--line);
}

.total-label {
    color: var(--muted);
    font-size: .82rem;
}

.total-price,
.total {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
}

.auth-shell {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.auth-visual {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: end;
    padding: clamp(35px, 7vw, 90px);
    overflow: hidden;
    background: url("images/course-vip.981520db0e11.webp") center / cover no-repeat;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .12));
}

.auth-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.auth-visual h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5.5vw, 5.8rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.auth-visual p {
    margin: 18px 0 0;
    color: #d2cec8;
}

.auth-panel {
    display: grid;
    align-items: center;
    padding: clamp(30px, 6vw, 80px);
    background: var(--ink-soft);
}

.auth-card {
    width: min(100%, 470px);
    margin: auto;
}

.auth-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.045em;
}

.auth-card > p {
    margin: 9px 0 24px;
    color: var(--muted);
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
}

.auth-switch a,
.text-link {
    color: var(--white);
    font-weight: 800;
    text-underline-offset: 4px;
}

.account-chip {
    margin-bottom: 25px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
}

.account-chip strong {
    color: var(--white);
}

.order-list {
    display: grid;
    gap: 20px;
}

.order-card {
    padding: clamp(22px, 4vw, 36px);
}

.order-card.cancelled {
    opacity: .72;
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.order-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.order-number {
    margin-top: 7px;
    color: var(--muted);
    font-size: .82rem;
}

.order-price {
    font-size: 1.4rem;
    font-weight: 900;
    white-space: nowrap;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 19px;
    color: #c5c0ba;
}

.order-options,
.payment-detail {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #bbb6b0;
    font-size: .9rem;
}

.order-options span {
    display: inline-block;
    margin: 0 18px 6px 0;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.key-value-list {
    margin-top: 25px;
    border-top: 1px solid var(--line);
}

.key-value-row {
    display: grid;
    grid-template-columns: minmax(110px, .55fr) 1.45fr;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.key-value-row .key {
    color: var(--muted);
}

.key-value-row .value {
    text-align: right;
    overflow-wrap: anywhere;
}

.success-mark {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(47, 179, 109, .55);
    border-radius: 50%;
    background: rgba(47, 179, 109, .12);
    color: #7ee9aa;
    font-size: 2.3rem;
}

.two-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.status-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .035);
}

.status-card small,
.status-card strong {
    display: block;
}

.status-card small {
    color: var(--muted);
}

.status-card strong {
    margin-top: 4px;
}

.payment-provider {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #d9d2c9;
    border-radius: var(--radius-sm);
    background: #f4f0ea;
}

.payment-provider strong {
    display: block;
    font-size: 1.1rem;
}

.payment-provider p {
    margin: 6px 0 0;
    color: #68625b;
}

.bank-transfer-panel {
    margin-top: 28px;
    border-top: 4px solid #06c755;
}

.bank-transfer-panel .key-value-list {
    margin-top: 16px;
}

.bank-transfer-panel .button {
    margin-top: 18px;
}

.bank-account-number {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.ticket-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 55px);
    text-align: center;
}

.ticket-card::before,
.ticket-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: var(--ink);
}

.ticket-card::before {
    left: -17px;
}

.ticket-card::after {
    right: -17px;
}

.ticket-card h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.ticket-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 18px;
    margin: 18px 0 28px;
    color: var(--muted);
}

.qr-frame {
    width: min(100%, 330px);
    margin: 0 auto;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
}

.qr-frame img {
    width: 100%;
}

.staff-card {
    max-width: 660px;
    margin: auto;
}

.staff-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 10px;
    border: 1px solid rgba(223, 59, 47, .5);
    border-radius: 999px;
    color: #ff8e85;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.redirect-shell {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.redirect-card {
    width: min(100%, 540px);
    padding: clamp(30px, 7vw, 55px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.loader {
    width: 46px;
    height: 46px;
    margin: 25px auto;
    border: 3px solid rgba(255, 255, 255, .14);
    border-top-color: var(--accent-bright);
    border-radius: 50%;
    animation: spin .85s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #050505;
}

.footer-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: auto;
    padding: 55px 0 35px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .13em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.footer-links a {
    color: #d3cfca;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.visitor-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 26px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #aaa49d;
    font-size: .75rem;
    letter-spacing: .08em;
}

.visitor-counter strong {
    color: var(--accent-bright);
    font-size: 1rem;
    letter-spacing: .04em;
}

.footer-inner > p {
    margin: 38px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #706d69;
    font-size: .75rem;
}

@media (max-width: 1040px) {
    .desktop-nav {
        display: none;
    }

    .account-actions {
        margin-left: auto;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        width: min(calc(100% - 28px), var(--content));
        min-height: 72px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand-copy small {
        display: none;
    }

    .account-actions {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: 660px;
        background-position: 60% center;
    }

    .hero::before {
        background: linear-gradient(0deg, #070707 3%, rgba(0, 0, 0, .62) 70%, rgba(0, 0, 0, .32));
    }

    .hero-content {
        width: calc(100% - 32px);
        padding: 80px 0 70px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 5.1rem);
    }

    .trust-strip-inner {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 17px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 75px 0;
    }

    .section-compact {
        padding: 50px 0;
    }

    .content-wrap,
    .content-narrow {
        width: calc(100% - 30px);
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 16px;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .content-card-grid,
    .social-connect-grid {
        grid-template-columns: 1fr;
    }

    .member-gallery-lock {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .member-gallery-lock .button {
        width: 100%;
    }

    .media-gallery {
        grid-template-columns: 1fr;
    }

    .media-gallery-card:first-child:nth-last-child(n + 3) {
        grid-column: auto;
    }

    .media-gallery-card:first-child:nth-last-child(n + 3) .media-gallery-visual {
        aspect-ratio: 16 / 10;
    }

    .event-card-top,
    .event-card-footer,
    .order-card-header {
        display: block;
    }

    .event-price,
    .order-price {
        margin-top: 10px;
    }

    .event-card-footer .button {
        width: 100%;
        margin-top: 16px;
    }

    .page-hero {
        padding: 62px 0 46px;
    }

    .form-grid,
    .summary-meta,
    .equipment-choice-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }

    .auth-shell {
        display: block;
    }

    .auth-visual {
        min-height: 340px;
        padding: 30px 22px;
    }

    .auth-panel {
        padding: 45px 20px 65px;
    }

    .key-value-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .key-value-row .value {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .brand-copy strong {
        font-size: 1.05rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 330px;
    }

    .hero-actions .button,
    .button-row .button {
        width: 100%;
    }

    .two-status-grid {
        grid-template-columns: 1fr;
    }

    .total-box {
        display: block;
    }

    .total-price,
    .total {
        margin-top: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Member shop and checkout
   ========================================================= */

.product-buy-form {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.product-buy-form label,
.shop-quantity-form label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-buy-form input,
.product-buy-form select,
.shop-quantity-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 4px;
    background: #fff;
    padding: 9px 10px;
    font: inherit;
}

.product-buy-form .button {
    grid-column: 1 / -1;
}

.product-shipping-note {
    margin: -4px 0 16px;
    color: #315f3c;
    font-size: .88rem;
    font-weight: 800;
}

.shop-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.shop-cart-line {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 220px auto;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.shop-cart-image {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f1f1ef;
}

.shop-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-cart-copy h2 {
    margin: 0 0 7px;
    font-size: 1.05rem;
}

.shop-quantity-form {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 8px;
    align-items: center;
}

.shop-line-total {
    white-space: nowrap;
    font-size: 1.1rem;
}

.shop-summary {
    margin-left: auto;
    max-width: 560px;
}

.shop-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 28px;
    align-items: start;
}

.shop-checkout-summary {
    position: sticky;
    top: 110px;
}

.shop-checkout-grid .form-field input,
.shop-checkout-grid .form-field textarea {
    width: 100%;
}

@media (max-width: 900px) {
    .shop-cart-line {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .shop-quantity-form,
    .shop-line-total {
        grid-column: 2;
    }

    .shop-checkout-grid {
        grid-template-columns: 1fr;
    }

    .shop-checkout-summary {
        position: static;
    }
}

@media (max-width: 560px) {
    .product-buy-form,
    .shop-quantity-form {
        grid-template-columns: 1fr;
    }

    .shop-cart-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }
}
