/* SKF Members Portal — premium consumer-app theme (dark navy / Sudan red / SKF gold)
   Rewritten 20 May 2026 to align live UI with SKF_Member_Portal_Board_Preview.html.
   Previous cream/gold federation-document theme replaced. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

/* ─── STRIP WP THEME CHROME so /members/ fills the viewport ────────────
   This stylesheet only loads on pages that include the [skf_members_app]
   shortcode (enqueue is gated by has_shortcode in class-skf-shortcode.php),
   so these aggressive overrides are scoped to the SPA page only. */
html, body {
    background: #0b1428 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}
body > header,
body > footer,
.site-header, header.site-header, #masthead,
.site-footer, footer.site-footer, #colophon,
.ehf-header, .ehf-footer,
.elementor-location-header, .elementor-location-footer,
aside.sidebar, .widget-area,
.breadcrumbs, .yoast-breadcrumbs,
.entry-header, .page-header { display: none !important; }
.site, #page, .site-content, .site-main,
main, #main, #content, #primary,
.entry-content, .post-content, .page-content,
article.page, article.post,
.elementor, .elementor-section, .elementor-container, .elementor-column,
.elementor-widget-wrap, .elementor-widget-shortcode, .elementor-element {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
}

:root {
    --navy-0: #0b1428;
    --navy-1: #1a1a2e;
    --navy-card: #11182d;
    --sudan-red: #c41e3a;
    --sudan-red-deep: #4a0a13;
    --gold: #d4a843;
    --gold-bright: #e6b94f;
    --gold-soft: rgba(212,168,67,.25);
    --gold-pale: rgba(212,168,67,.08);
    --ref-blue: #0f4c81;
    --whatsapp: #25d366;
    --white-92: rgba(255,255,255,.92);
    --white-65: rgba(255,255,255,.65);
    --white-45: rgba(255,255,255,.45);
    --white-25: rgba(255,255,255,.25);
    --white-12: rgba(255,255,255,.12);
    --white-06: rgba(255,255,255,.06);
    --white-04: rgba(255,255,255,.04);
    --success: #4ade80;
    --error:   #f87171;
    --warning: #fbbf24;
    --radius:    14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: .2s cubic-bezier(.4,0,.2,1);
}

#skf-app, #skf-app * { box-sizing: border-box; }
#skf-app {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #fff;
    line-height: 1.55;
    background:
        radial-gradient(ellipse at 18% 6%, rgba(196,30,58,.20) 0%, transparent 42%),
        radial-gradient(ellipse at 82% 94%, rgba(212,168,67,.16) 0%, transparent 45%),
        linear-gradient(180deg, var(--navy-0) 0%, var(--navy-1) 100%);
    min-height: 100vh;
    padding: 28px 16px 60px;
}
#skf-app[dir="rtl"] {
    font-family: 'Noto Kufi Arabic', 'DM Sans', sans-serif;
}

/* ─── HEADER ─── */
.skf-hdr {
    max-width: 480px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}
.skf-hdr img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 0 0 1px rgba(212,168,67,.2);
    flex-shrink: 0;
}
.skf-hdr-title { flex: 1; line-height: 1.2; min-width: 0; text-align: center; }
.skf-hdr-title-ar {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--white-92);
    direction: rtl;
    text-align: center;
}
.skf-hdr-title-en {
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--white-45);
    font-weight: 500;
    margin-top: 3px;
    text-align: center;
}
.skf-lang-toggle {
    background: var(--white-06);
    border: 1px solid var(--white-12);
    border-radius: 99px;
    color: #fff;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.skf-lang-toggle:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── CARD (canvas for content; no white background) ─── */
.skf-card {
    max-width: 480px;
    margin: 0 auto;
    background: transparent;
    border-radius: var(--radius);
    overflow: visible;
}
.skf-card-pad {
    padding: 8px 4px 28px;
}

/* ─── FEDERATION CREST (top of S1) ─── */
.skf-crest-block {
    text-align: center;
    padding: 12px 16px 16px;
}
.skf-crest-tile {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(212,168,67,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.skf-crest-tile img { width: 100%; height: 100%; object-fit: contain; }
.skf-crest-name-ar {
    color: var(--white-92);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Noto Kufi Arabic', sans-serif;
    direction: rtl;
}
.skf-crest-name-en {
    color: var(--white-45);
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─── BILINGUAL HEADINGS ─── */
.skf-headline {
    text-align: center;
    padding: 18px 8px 22px;
}
.skf-headline-ar {
    color: var(--white-65);
    font-size: 14px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    margin-bottom: 6px;
    direction: rtl;
}
.skf-headline-en {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.3px;
}
.skf-headline-sub {
    color: var(--white-45);
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.5;
}

/* Legacy h1/h2/sub kept for any back-compat callers — restyled for dark theme */
.skf-h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -.3px;
}
#skf-app[dir="rtl"] .skf-h1 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 700;
}
.skf-sub {
    font-size: 13px;
    color: var(--white-45);
    margin-bottom: 20px;
}
.skf-h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin: 12px 0 6px;
    letter-spacing: -.2px;
}
#skf-app[dir="rtl"] .skf-h2 {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ─── PROGRESS DOTS (7 slim pills) ─── */
.skf-steps {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px;
    padding: 0 8px;
}
.skf-step-dot {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--white-12);
    transition: var(--transition);
}
.skf-step-dot.is-done   { background: var(--gold); }
.skf-step-dot.is-active { background: var(--gold); box-shadow: 0 0 6px rgba(212,168,67,.5); }

/* ─── FIELDS ─── */
.skf-field { margin-bottom: 14px; }
.skf-field label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: rgba(212,168,67,.9);
    margin-bottom: 6px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
#skf-app[dir="rtl"] .skf-field label {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    font-size: 11px;
    color: var(--white-65);
}
.skf-field input,
.skf-field select,
.skf-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--white-04);
    border: 1.5px solid var(--white-12);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: var(--transition);
}
.skf-field select {
    /* Kill native chrome so the dark-theme text color survives on every
       browser, and draw our own gold chevron. Without this, Chrome on
       Windows paints the closed-state value with the browser-default
       black text on the field's transparent surface, which renders
       invisibly against the navy app background. */
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                      linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-inline-end: 32px;
    cursor: pointer;
}
[dir="rtl"] .skf-field select {
    background-position: 16px 19px, 11px 19px;
}
.skf-field select option {
    background: var(--navy-card);
    color: #fff;
}
.skf-field input::placeholder,
.skf-field textarea::placeholder { color: var(--white-25); }
.skf-field input:focus,
.skf-field select:focus,
.skf-field textarea:focus {
    outline: none;
    background: var(--gold-pale);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,168,67,.12);
}
.skf-field-hint {
    font-size: 11px;
    color: var(--white-45);
    margin-top: 6px;
}

.skf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .skf-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ─── DOB 3-select picker ─── */
.skf-dob-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 8px;
}
.skf-dob-row select {
    width: 100%;
    padding: 11px 12px;
    background: var(--white-04);
    border: 1.5px solid var(--white-12);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                      linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 14px) 17px, calc(100% - 9px) 17px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-inline-end: 28px;
}
[dir="rtl"] .skf-dob-row select {
    background-position: 14px 17px, 9px 17px;
}
.skf-dob-row select:focus {
    outline: none;
    background-color: var(--gold-pale);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,168,67,.12);
}
.skf-dob-row select option {
    background: var(--navy-card);
    color: #fff;
}

/* ─── TILES (role + where + generic) ─── */
.skf-tile-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.skf-tile-group.cols-3 {
    grid-template-columns: none;
}
@media (max-width: 480px) {
    .skf-tile-group, .skf-tile-group.cols-3 { grid-template-columns: 1fr; }
}

/* Generic tile — glassy surface (low-opacity tint + backdrop blur) */
.skf-tile {
    background: var(--white-04);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1.5px solid var(--white-12);
    border-radius: var(--radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 14px rgba(0,0,0,.18);
}
.skf-tile:hover { border-color: rgba(212,168,67,.4); }
.skf-tile.is-selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 12px 32px rgba(212,168,67,.22);
}
.skf-tile.is-selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-0);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.skf-tile-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .9;
    color: #fff;
}
.skf-tile-icon svg { width: 26px; height: 26px; }
.skf-tile-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.1px;
}
.skf-tile-sub {
    font-size: 12px;
    color: var(--white-45);
    margin-top: 3px;
}
.skf-tile.is-selected .skf-tile-sub { color: rgba(255,255,255,.7); }

/* Category tiles — glassy hue tint carries the colour identity (Athlete red,
   Coach gold, Referee blue). Solid washes replaced with low-opacity tint +
   backdrop blur for a quieter, premium-app reading. */
.skf-tile[data-role="athlete"] {
    background:
        radial-gradient(circle at 25% 35%, rgba(196,30,58,.28), transparent 60%),
        linear-gradient(135deg, rgba(196,30,58,.18) 0%, rgba(196,30,58,.05) 75%);
    border-color: rgba(196,30,58,.38);
}
.skf-tile[data-role="coach"] {
    background:
        radial-gradient(circle at 75% 50%, rgba(212,168,67,.24), transparent 60%),
        linear-gradient(135deg, rgba(212,168,67,.16) 0%, rgba(212,168,67,.04) 75%);
    border-color: rgba(212,168,67,.36);
}
.skf-tile[data-role="referee"] {
    background:
        radial-gradient(circle at 50% 50%, rgba(15,76,129,.28), transparent 65%),
        linear-gradient(135deg, rgba(15,76,129,.20) 0%, rgba(15,76,129,.05) 75%);
    border-color: rgba(15,76,129,.40);
}

/* Where tiles — Sudan (red+green hint) + Abroad (blue+gold hint) */
.skf-tile[data-where="sudan"] {
    background:
        radial-gradient(circle at 20% 30%, rgba(196,30,58,.24), transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(10,61,26,.22), transparent 60%),
        linear-gradient(135deg, rgba(196,30,58,.14) 0%, rgba(10,61,26,.06) 75%);
    border-color: rgba(196,30,58,.34);
    min-height: 92px;
}
.skf-tile[data-where="abroad"] {
    background:
        radial-gradient(circle at 30% 30%, rgba(15,76,129,.28), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(212,168,67,.16), transparent 60%),
        linear-gradient(135deg, rgba(15,76,129,.18) 0%, rgba(15,76,129,.04) 75%);
    border-color: rgba(15,76,129,.36);
    min-height: 92px;
}

/* Affiliation tiles (coach path — keep simple/neutral) */
.skf-tile[data-aff] {
    background: var(--white-04);
    border: 1.5px solid var(--white-12);
}

/* ─── BUTTONS ─── */
.skf-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.skf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 22px;
    border: none;
    border-radius: 99px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.skf-btn-primary {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
    color: var(--navy-0);
    flex: 1;
    box-shadow: 0 8px 24px rgba(212,168,67,.32);
}
.skf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(212,168,67,.40);
}
.skf-btn-primary:disabled {
    background: var(--white-12);
    color: var(--white-45);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.skf-btn-secondary {
    background: var(--white-04);
    color: #fff;
    border: 1.5px solid var(--white-12);
}
.skf-btn-secondary:hover {
    background: var(--white-06);
    border-color: var(--white-25);
}
.skf-btn-link {
    background: none;
    color: var(--gold);
    font-weight: 600;
    padding: 8px 4px;
    box-shadow: none;
}
.skf-btn-link:hover {
    color: var(--gold-bright);
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* ─── OTP INPUT ─── */
.skf-otp-input {
    width: 100%;
    padding: 16px;
    font-family: 'DM Sans', 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 26px;
    text-align: center;
    letter-spacing: 14px;
    background: var(--white-04);
    border: 1.5px solid var(--gold-soft);
    border-radius: var(--radius);
    color: #fff;
    font-weight: 700;
}
.skf-otp-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--gold-pale);
    box-shadow: 0 0 0 3px rgba(212,168,67,.12);
}

/* ─── ALERTS ─── */
.skf-alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid;
}
.skf-alert-error {
    background: rgba(248,113,113,.10);
    border-color: rgba(248,113,113,.4);
    color: #fecaca;
}
.skf-alert-success {
    background: rgba(74,222,128,.10);
    border-color: rgba(74,222,128,.4);
    color: #bbf7d0;
}
.skf-alert-warning {
    background: rgba(251,191,36,.10);
    border-color: rgba(251,191,36,.4);
    color: #fde68a;
}

/* ─── DASHBOARD BANNERS ─── */
.skf-banner {
    border-inline-start: 4px solid var(--gold);
    background: var(--gold-pale);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 18px;
    color: #fff;
}
#skf-app[dir="rtl"] .skf-banner {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.skf-banner-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}
#skf-app[dir="rtl"] .skf-banner-title {
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.skf-banner-body {
    font-size: 13px;
    color: var(--white-65);
    line-height: 1.55;
}
.skf-banner.is-success {
    border-color: var(--success);
    background: rgba(74,222,128,.08);
}
.skf-banner.is-error {
    border-color: var(--error);
    background: rgba(248,113,113,.08);
}

/* ─── DASHBOARD — RICH LAYOUT ─── */
.skf-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.skf-dash-header-left { display: flex; align-items: center; gap: 12px; }
.skf-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sudan-red) 0%, var(--gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 20px;
    letter-spacing: .5px;
    box-shadow: 0 8px 20px rgba(196,30,58,.3), 0 0 0 2px rgba(212,168,67,.35);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.skf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.skf-avatar.is-lg {
    width: 112px;
    height: 112px;
    font-size: 42px;
    box-shadow: 0 12px 30px rgba(196,30,58,.32), 0 0 0 3px rgba(212,168,67,.4);
}
.skf-avatar-pending-dot {
    position: absolute;
    bottom: -2px;
    inset-inline-end: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fbbf24;
    border: 2px solid var(--navy-0);
    box-shadow: 0 0 0 2px rgba(251,191,36,.35);
}

/* OTP resend link row (S7) */
.skf-resend-row {
    text-align: center;
    margin-top: 12px;
    min-height: 32px;
}
.skf-resend-row .skf-btn-link:disabled {
    color: var(--white-45);
    cursor: not-allowed;
    text-decoration: none;
}
.skf-resend-row .skf-btn-link:disabled:hover { color: var(--white-45); }

/* Profile page */
.skf-profile-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 20px;
    gap: 12px;
}
.skf-profile-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.skf-profile-meta {
    color: var(--white-45);
    font-size: 12px;
    line-height: 1.5;
}
.skf-avatar-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    background: var(--gold-pale);
    border: 1px solid rgba(212,168,67,.35);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
}
.skf-avatar-edit:hover { background: rgba(212,168,67,.18); }
.skf-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--white-45);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 18px 0 10px;
}

/* ─── Inline nav helpers (Back link + "no account" CTA on login) ────── */
.skf-back-row {
    margin: 0 0 8px;
    text-align: start;
}
.skf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white-65);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 99px;
    background: var(--white-04);
    border: 1px solid var(--white-12);
    transition: var(--transition);
}
.skf-back-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-pale);
}
.skf-alt-cta {
    margin-top: 24px;
    text-align: center;
    color: var(--white-65);
    font-size: 13px;
    line-height: 1.6;
}
.skf-alt-cta a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 4px;
}
.skf-alt-cta a:hover { text-decoration: underline; }

/* ─── FEDERATION FEED (admin-authored announcements) ─────────────────── */
.skf-feed {
    margin: 18px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.skf-feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 2px;
}
.skf-feed-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.skf-post {
    background: var(--white-04);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1.5px solid var(--white-12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 14px rgba(0,0,0,.18);
    transition: var(--transition);
}
.skf-post:hover { border-color: rgba(212,168,67,.32); }
.skf-post-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--navy-1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.skf-post-body { padding: 14px 16px 16px; }
.skf-post-meta {
    color: var(--white-45);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.skf-post-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.2px;
    margin: 0 0 6px;
}
.skf-post-excerpt {
    color: var(--white-65);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

/* ─── LATEST NEWS (Facebook Page Plugin) ────────────────────────────── */
.skf-news-card {
    margin: 18px 0 12px;
    background: var(--white-04);
    border: 1.5px solid var(--white-12);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 14px 14px 0;
}
.skf-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}
.skf-news-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
}
.skf-news-open {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.skf-news-open:hover { text-decoration: underline; }
.skf-news-iframe-wrap {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 -2px -2px;
}
.skf-news-iframe {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
}
@media (max-width: 480px) {
    .skf-news-iframe { height: 520px; }
}

/* ─── ROSTER (coach roster builder + history) ─────────────────────── */
.skf-roster-row {
    background: var(--white-04);
    border: 1px solid var(--white-12);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.skf-roster-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--white-65);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.skf-roster-row .skf-row-remove {
    background: none;
    border: 1px solid var(--white-12);
    color: var(--white-65);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    cursor: pointer;
}
.skf-roster-row .skf-row-remove:hover {
    border-color: var(--error);
    color: var(--error);
}
.skf-roster-past {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skf-roster-past-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: var(--white-04);
    border: 1px solid var(--white-12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--white-65);
    font-size: 13px;
}
.skf-roster-past-date {
    color: var(--white-45);
    font-size: 11px;
}
.skf-roster-status {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.skf-roster-status.pending  { background: rgba(251,191,36,.15); color: var(--warning); }
.skf-roster-status.approved { background: rgba(74,222,128,.15); color: var(--success); }
.skf-roster-status.rejected { background: rgba(248,113,113,.15); color: var(--error); }
.skf-roster-status.partial  { background: rgba(212,168,67,.15); color: var(--gold); }

/* ─── CERT VIEWER + CLUB DIRECTORY CARDS ────────────────────────────── */
.skf-cert-list, .skf-club-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.skf-cert-card {
    background: var(--white-04);
    border: 1.5px solid rgba(212,168,67,.28);
    border-radius: var(--radius);
    padding: 14px 16px;
    position: relative;
}
.skf-cert-belt {
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.1px;
    margin-bottom: 4px;
}
.skf-cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--white-65);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    margin-bottom: 4px;
}
.skf-cert-serial {
    font-family: 'DM Sans', 'SF Mono', monospace;
    color: var(--gold);
    text-transform: uppercase;
}
.skf-cert-date { color: var(--white-45); }
.skf-cert-state { color: var(--white-65); font-size: 12px; }
.skf-cert-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.skf-cert-req-modal {
    margin-top: 18px;
    padding: 16px;
    background: var(--gold-pale);
    border: 1px solid rgba(212,168,67,.4);
    border-radius: var(--radius);
}
.skf-btn-sm {
    padding: 8px 16px !important;
    font-size: 12px !important;
    letter-spacing: .6px !important;
    flex: 0 0 auto !important;
}
.skf-btn-sm svg { width: 14px; height: 14px; }

.skf-club-card {
    background: var(--white-04);
    border: 1px solid var(--white-12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.skf-club-name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}
.skf-club-state {
    color: var(--white-45);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ─── DESKTOP / FULL-SCREEN BREAKPOINT ───────────────────────────────────
   On screens >= 768px, widen the canvas so the portal stops feeling like a
   mobile app stretched on a desktop. >= 1024px adds a 2-column reading rhythm
   for sign-up steps and the profile page; the dashboard stays single-column
   so the avatar + star strip + cards keep their visual hierarchy. */
@media (min-width: 768px) {
    #skf-app { padding: 40px 32px 80px; }
    .skf-hdr { max-width: 920px; }
    .skf-card { max-width: 720px; }
    .skf-headline-en { font-size: 26px; }
    .skf-headline-ar { font-size: 16px; }
    .skf-h1 { font-size: 28px; }
    .skf-tile { padding: 20px 22px; }
    .skf-tile-label { font-size: 18px; }
}
@media (min-width: 1024px) {
    .skf-hdr { max-width: 1080px; }
    .skf-card { max-width: 880px; }
    /* On wide screens, profile sections sit in a 2-column grid (names | social) */
    .skf-profile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }
    .skf-profile-grid > .skf-profile-col { min-width: 0; }
    /* Sign-up name grid + S4 fields also benefit from the 2-col rhythm */
    .skf-grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 1280px) {
    .skf-hdr { max-width: 1180px; }
    .skf-card { max-width: 960px; }
}
.skf-greeting-label {
    color: var(--white-65);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
.skf-greeting-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-top: 2px;
}
#skf-app[dir="rtl"] .skf-greeting-name {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.skf-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251,191,36,.15);
    border: 1.5px solid rgba(251,191,36,.4);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    margin: 12px 0 16px;
}
.skf-pending-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Star strip */
.skf-star-strip {
    padding: 16px 16px 14px;
    background: var(--white-04);
    border: 1.5px solid rgba(212,168,67,.20);
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.skf-star-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.skf-star-strip-label {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.skf-star-strip-progress {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
}
.skf-star-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.skf-star-tile {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    background: var(--white-04);
    border: 1px solid var(--white-06);
    position: relative;
}
.skf-star-tile.is-earned {
    background: var(--gold-pale);
    border-color: rgba(212,168,67,.3);
}
.skf-star-tile.is-pending {
    background: rgba(245,158,11,.08);
    border-color: rgba(245,158,11,.3);
}
.skf-star-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--white-25);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
}
.skf-star-icon svg { width: 20px; height: 20px; }
.skf-star-tile.is-earned .skf-star-icon { color: var(--gold); }
.skf-star-tile.is-pending .skf-star-icon { color: #f59e0b; }
.skf-star-label {
    color: var(--white-65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.skf-star-tile.is-earned .skf-star-label,
.skf-star-tile.is-pending .skf-star-label { color: var(--gold); }
.skf-star-pending-mini {
    position: absolute;
    top: 4px;
    inset-inline-end: 5px;
    background: #f59e0b;
    color: var(--navy-0);
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 99px;
    font-weight: 800;
    letter-spacing: .3px;
}

/* Primary action card (ID upload prompt on dashboard) */
.skf-id-card {
    padding: 18px;
    background: linear-gradient(135deg, rgba(196,30,58,.18) 0%, rgba(212,168,67,.12) 100%);
    border: 1.5px solid rgba(212,168,67,.35);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}
.skf-id-card::before {
    content: '';
    position: absolute;
    inset-inline-end: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212,168,67,.18), transparent 70%);
}
.skf-id-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 22px;
    position: relative;
}
.skf-id-card-icon svg { width: 22px; height: 22px; }
.skf-id-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1.35;
    position: relative;
}
.skf-id-card-body {
    color: var(--white-65);
    font-size: 12px;
    line-height: 1.55;
    margin-top: 10px;
    position: relative;
}
.skf-id-card-cta {
    margin-top: 14px;
    background: var(--gold);
    color: var(--navy-0);
    border: none;
    padding: 9px 18px;
    border-radius: 99px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

/* Secondary cards on dashboard */
.skf-secondary-card {
    padding: 14px;
    background: var(--white-04);
    border: 1.5px solid var(--white-06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
}
.skf-secondary-card:hover { border-color: var(--white-25); }
.skf-secondary-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.skf-secondary-icon svg { width: 18px; height: 18px; }
.skf-secondary-icon.social { background: rgba(99,102,241,.15); color: #818cf8; }
.skf-secondary-icon.cert   { background: rgba(196,30,58,.15);  color: #f87171; }
.skf-secondary-icon.profile { background: rgba(212,168,67,.15); color: var(--gold); }
.skf-secondary-text { flex: 1; min-width: 0; }
.skf-secondary-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.skf-secondary-sub {
    color: var(--white-45);
    font-size: 11px;
    margin-top: 2px;
}
.skf-star-tag {
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 99px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
}

/* Locked feature grid */
.skf-locked-section { margin: 18px 0 0; }
.skf-locked-label {
    color: var(--white-45);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}
.skf-locked-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.skf-locked-tile {
    padding: 14px 12px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--white-06);
    border-radius: var(--radius-sm);
    text-align: center;
    position: relative;
    opacity: .55;
    color: var(--white-65);
    display: block;
}
.skf-locked-tile.is-active {
    opacity: 1;
    background: var(--white-04);
    border-color: rgba(212,168,67,.32);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.skf-locked-tile.is-active:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    transform: translateY(-1px);
}
.skf-locked-tile.is-active .skf-locked-icon { color: var(--gold); }
.skf-locked-tile.is-active .skf-locked-name { color: #fff; }
.skf-locked-icon {
    font-size: 22px;
    color: var(--white-45);
    margin-bottom: 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}
.skf-locked-icon svg { width: 22px; height: 22px; }
.skf-locked-name {
    color: var(--white-65);
    font-size: 11px;
    font-weight: 600;
}
.skf-locked-pin {
    position: absolute;
    top: 6px;
    inset-inline-end: 7px;
    font-size: 12px;
    color: var(--white-25);
    display: inline-flex;
}
.skf-locked-pin svg { width: 11px; height: 11px; }

/* ─── ID UPLOAD LIST ─── */
.skf-id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--white-04);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--white-06);
}
.skf-id-row-body { flex: 1 1 auto; min-width: 0; }
.skf-id-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--white-06);
    background: var(--white-04);
}
.skf-id-thumb-doc {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white-45);
    letter-spacing: .5px;
}
.skf-id-purpose {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}
.skf-id-meta {
    font-size: 11px;
    color: var(--white-45);
    margin-top: 2px;
}
.skf-id-decision {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}
.skf-id-decision.pending  { background: rgba(251,191,36,.15); color: var(--warning); }
.skf-id-decision.approved { background: rgba(74,222,128,.15); color: var(--success); }
.skf-id-decision.rejected { background: rgba(248,113,113,.15); color: var(--error); }

.skf-upload-zone {
    border: 2px dashed var(--white-12);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    background: var(--white-04);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 16px;
    display: block;
}
.skf-upload-zone:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
}
.skf-upload-zone-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}
.skf-upload-zone-icon svg { width: 30px; height: 30px; }
.skf-upload-zone-text {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}
.skf-upload-zone-sub {
    font-size: 11px;
    color: var(--white-45);
    margin-top: 4px;
}

/* ─── LOADING ─── */
.skf-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--white-45);
    font-size: 13px;
}
.skf-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--white-12);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: skf-spin .8s linear infinite;
    vertical-align: middle;
    margin-inline-end: 8px;
}
@keyframes skf-spin { to { transform: rotate(360deg); } }

.skf-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: var(--white-45);
    letter-spacing: .4px;
}
.skf-footer a { color: var(--gold); text-decoration: none; }
.skf-footer a:hover { text-decoration: underline; }

/* ─── INLINE FIELD VALIDATION ─── */
.skf-field.skf-field-error input,
.skf-field.skf-field-error select,
.skf-field.skf-field-error textarea,
.skf-field.skf-field-error .skf-dob-row select {
    border-color: var(--error);
    background: rgba(248,113,113,.08);
}
.skf-field.skf-field-error input:focus,
.skf-field.skf-field-error select:focus,
.skf-field.skf-field-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(248,113,113,.18);
}
.skf-tile-group.skf-field-error {
    outline: 1.5px solid var(--error);
    outline-offset: 4px;
    border-radius: var(--radius);
}
.skf-field-msg {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--error);
    line-height: 1.4;
}
