/* ═══════════════════════════════════════════════════════════
   ASCOT UNITED FC — Membership Platform v5.0.0
   Design: Clean modern sports-club aesthetic
   Palette: Deep Navy + Warm Gold + Clean White
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Brand Palette ──────────────────────────────────── */
    --aufc-navy:        #0c1b33;
    --aufc-navy-light:  #152238;
    --aufc-navy-mid:    #1a2d4a;
    --aufc-gold:        #d4a843;
    --aufc-gold-light:  #e8c86e;
    --aufc-gold-dark:   #b8922e;
    --aufc-white:       #ffffff;
    --aufc-off-white:   #f7f8fa;
    --aufc-grey-50:     #f9fafb;
    --aufc-grey-100:    #f0f2f5;
    --aufc-grey-200:    #e4e7ec;
    --aufc-grey-300:    #cdd3dc;
    --aufc-grey-400:    #98a2b3;
    --aufc-grey-500:    #6b7280;
    --aufc-grey-600:    #5a6478;
    --aufc-grey-800:    #2d3748;

    /* ── Semantic Colours ───────────────────────────────── */
    --aufc-danger:      #dc3545;
    --aufc-danger-bg:   #ffebee;
    --aufc-danger-border: #ef9a9a;
    --aufc-danger-dark: #c62828;

    --aufc-success:     #198754;
    --aufc-success-bg:  #e8f5e9;
    --aufc-success-border: #a5d6a7;
    --aufc-success-dark: #2e7d32;

    --aufc-warning:     #e65100;
    --aufc-warning-bg:  #fff3e0;
    --aufc-warning-border: #ffe0b2;
    --aufc-warning-dark: #bf360c;

    --aufc-info:        #1565c0;
    --aufc-info-bg:     #e3f2fd;
    --aufc-info-border: #bbdefb;
    --aufc-info-dark:   #0d47a1;

    --aufc-purple:      #7b1fa2;
    --aufc-purple-bg:   #f3e5f5;
    --aufc-purple-border: #ce93d8;

    /* ── Typography ─────────────────────────────────────── */
    --font-display:     'Outfit', sans-serif;
    --font-body:        'DM Sans', sans-serif;

    /* ── Radii ──────────────────────────────────────────── */
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-pill:      100px;

    /* ── Shadows ─────────────────────────────────────────── */
    --shadow-sm:        0 1px 3px rgba(12, 27, 51, 0.06);
    --shadow-md:        0 4px 16px rgba(12, 27, 51, 0.08);
    --shadow-lg:        0 8px 32px rgba(12, 27, 51, 0.12);
    --shadow-xl:        0 16px 48px rgba(12, 27, 51, 0.16);
    --shadow-hover:     0 4px 16px rgba(0,0,0,0.1);

    /* ── Transitions ─────────────────────────────────────── */
    --transition:       all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:  all 0.15s ease;

    /* ── Layout widths ───────────────────────────────────── */
    --width-narrow:     540px;
    --width-medium:     900px;
    --width-default:    960px;
    --width-wide:       1100px;
    --width-full:       1200px;
}

/* ── Reset & Base ──────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--aufc-grey-800);
    background: var(--aufc-off-white);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--aufc-navy);
}

a {
    color: var(--aufc-gold-dark);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--aufc-gold); }

/* ── Navbar ────────────────────────────────────────────── */

.aufc-navbar {
    background: var(--aufc-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.aufc-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.aufc-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.aufc-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.aufc-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--aufc-white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.aufc-brand-tag {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--aufc-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.aufc-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.aufc-nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}
.aufc-nav-link:hover {
    color: var(--aufc-white);
    background: rgba(255,255,255,0.08);
}

/* Nav dropdown menus */

.aufc-btn-nav {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--aufc-navy) !important;
    background: linear-gradient(135deg, var(--aufc-gold-light), var(--aufc-gold));
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}
.aufc-btn-nav:hover {
    background: linear-gradient(135deg, var(--aufc-gold), var(--aufc-gold-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

.aufc-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--aufc-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ── Hero Section ──────────────────────────────────────── */

.aufc-hero {
    background: linear-gradient(135deg, var(--aufc-navy) 0%, var(--aufc-navy-mid) 50%, var(--aufc-navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.aufc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.aufc-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aufc-gold), transparent);
}

.aufc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.aufc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212,168,67,0.12);
    border: 1px solid rgba(212,168,67,0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--aufc-gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.aufc-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--aufc-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.aufc-hero h1 span {
    color: var(--aufc-gold);
}

.aufc-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.aufc-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────── */

.aufc-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1.4;
}

.aufc-btn-primary {
    background: linear-gradient(135deg, var(--aufc-gold-light), var(--aufc-gold));
    color: var(--aufc-navy);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.25);
}
.aufc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 168, 67, 0.35);
    color: var(--aufc-navy);
}

.aufc-btn-outline {
    background: transparent;
    color: var(--aufc-white);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.aufc-btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
    color: var(--aufc-white);
}

.aufc-btn-secondary {
    background: var(--aufc-grey-100);
    color: var(--aufc-grey-800);
    border: 1px solid var(--aufc-grey-200);
}
.aufc-btn-secondary:hover {
    background: var(--aufc-grey-200);
    color: var(--aufc-grey-800);
}
/* v6.0.1 — utility button variants used in new views */
.aufc-btn-navy {
    background: var(--aufc-navy);
    color: #ffffff !important;
    border: none;
}
.aufc-btn-navy:hover {
    background: #162847;
    color: #ffffff !important;
    text-decoration: none;
}
.aufc-btn-gold {
    background: var(--aufc-gold);
    color: var(--aufc-navy) !important;
    border: none;
}
.aufc-btn-gold:hover {
    background: var(--aufc-gold-dark);
    color: var(--aufc-navy) !important;
    text-decoration: none;
}

.aufc-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.aufc-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ── Cards ─────────────────────────────────────────────── */

.aufc-card {
    background: var(--aufc-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--aufc-grey-200);
    overflow: hidden;
    transition: var(--transition);
}

.aufc-card-elevated {
    box-shadow: var(--shadow-lg);
}

.aufc-card-body {
    padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   COMPONENT LIBRARY (v5.0.0)
   Reusable classes to replace inline styles across all views
   ═══════════════════════════════════════════════════════════ */

/* ── Layout Containers ────────────────────────────────── */

.aufc-page          { padding: 2.5rem 0 3rem; }
.aufc-page-medium   { max-width: var(--width-medium); margin: 0 auto; }
.aufc-page-default  { max-width: var(--width-default); margin: 0 auto; }
.aufc-page-wide     { max-width: var(--width-wide); margin: 0 auto; }
.aufc-page-full     { max-width: var(--width-full); margin: 0 auto; }

/* ── Page Header ──────────────────────────────────────── */

.aufc-page-header           { margin-bottom: 1.75rem; }
.aufc-page-header h2        { color: var(--aufc-navy); margin-bottom: 0.25rem; }
.aufc-page-header h2 i      { color: var(--aufc-gold); }
.aufc-page-header p         { color: var(--aufc-grey-500); margin: 0; }
.aufc-page-header-row       { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.aufc-page-header-row h2    { margin: 0; }

/* ── Breadcrumbs ──────────────────────────────────────── */

.aufc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.aufc-breadcrumb a {
    color: var(--aufc-gold-dark);
    text-decoration: none;
    font-weight: 500;
}
.aufc-breadcrumb a:hover { color: var(--aufc-gold); text-decoration: underline; }
.aufc-breadcrumb-sep {
    color: var(--aufc-grey-300);
    font-size: 0.7rem;
}
.aufc-breadcrumb-current {
    color: var(--aufc-grey-500);
    font-weight: 500;
}

/* ── Section Labels (tile group headers) ──────────────── */

.aufc-section-label {
    color: var(--aufc-navy);
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.aufc-section-label i { color: var(--aufc-gold); }

/* ── Stat Cards ───────────────────────────────────────── */

.aufc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.aufc-stat-card {
    background: var(--aufc-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--aufc-grey-200);
    padding: 1rem;
    text-align: center;
}

.aufc-stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--aufc-navy);
}
.aufc-stat-value.danger  { color: var(--aufc-danger-dark); }
.aufc-stat-value.warning { color: var(--aufc-warning); }
.aufc-stat-value.success { color: var(--aufc-success-dark); }
.aufc-stat-value.info    { color: var(--aufc-info-dark); }

.aufc-stat-label {
    font-size: 0.7rem;
    color: var(--aufc-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* ── Tile Grid & Cards ────────────────────────────────── */

.aufc-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.aufc-tile {
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
    padding: 1.25rem;
}
.aufc-tile:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.aufc-tile-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.aufc-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.aufc-tile-icon i { color: #fff; font-size: 1.1rem; }

.aufc-tile-title {
    color: var(--aufc-navy);
    margin: 0;
    font-size: 1rem;
}

.aufc-tile-desc {
    color: var(--aufc-grey-500);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
}

/* Tile icon gradient presets */
.aufc-tile-icon.navy     { background: linear-gradient(135deg, #1a237e, #283593); }
.aufc-tile-icon.blue     { background: linear-gradient(135deg, #0d47a1, #1565c0); }
.aufc-tile-icon.sky      { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.aufc-tile-icon.orange   { background: linear-gradient(135deg, #e65100, #f57c00); }
.aufc-tile-icon.red      { background: linear-gradient(135deg, #c62828, #e53935); }
.aufc-tile-icon.green    { background: linear-gradient(135deg, #2e7d32, #43a047); }
.aufc-tile-icon.teal     { background: linear-gradient(135deg, #004d40, #00695c); }
.aufc-tile-icon.purple   { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.aufc-tile-icon.slate    { background: linear-gradient(135deg, #37474f, #546e7a); }
.aufc-tile-icon.gold     { background: linear-gradient(135deg, #b8860b, #d4a843); }

/* ── Alert Banners (success / error / info / warning) ─── */

.aufc-alert-banner {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.aufc-alert-banner.success { background: var(--aufc-success-bg); border: 1px solid var(--aufc-success-border); color: var(--aufc-success-dark); }
.aufc-alert-banner.danger  { background: var(--aufc-danger-bg);  border: 1px solid var(--aufc-danger-border);  color: var(--aufc-danger-dark); }
.aufc-alert-banner.warning { background: var(--aufc-warning-bg); border: 1px solid var(--aufc-warning-border); color: var(--aufc-warning); }
.aufc-alert-banner.info    { background: var(--aufc-info-bg);    border: 1px solid var(--aufc-info-border);    color: var(--aufc-info-dark); }

/* ── Attention Badges (Dashboard) ─────────────────────── */

/* ── Status Badges (Pending, Allocated, etc.) ─────────── */

.aufc-badge {
    display: inline-block;
    padding: 0.15rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.aufc-badge.pending    { background: #fff3cd; color: #856404; }
.aufc-badge.allocated  { background: var(--aufc-info-bg); color: var(--aufc-info-dark); }
.aufc-badge.registered { background: var(--aufc-success-bg); color: var(--aufc-success-dark); }
.aufc-badge.rejected   { background: var(--aufc-danger-bg); color: var(--aufc-danger-dark); }
.aufc-badge.awaiting   { background: var(--aufc-warning-bg); color: var(--aufc-warning); }
.aufc-badge.open       { color: var(--aufc-success-dark); font-size: 0.8rem; }
.aufc-badge.closed     { color: var(--aufc-danger-dark); font-size: 0.8rem; }
.aufc-badge.gold       { background: var(--aufc-gold); color: #fff; font-size: 0.75rem; }
.aufc-badge.scope      { background: var(--aufc-grey-50); padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.75rem; color: var(--aufc-grey-400); }

/* ── Action Panels (rejection, payment required) ──────── */

/* ── Data Detail Grid (2-col key/value) ───────────────── */

.aufc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}
.aufc-detail-grid .label {
    font-size: 0.75rem;
    color: var(--aufc-grey-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.aufc-detail-grid .value {
    font-weight: 500;
}

/* ── Scrollable Data Tables ───────────────────────────── */

.aufc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.aufc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.aufc-table th {
    background: var(--aufc-grey-50);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aufc-grey-500);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--aufc-grey-200);
    white-space: nowrap;
}
.aufc-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--aufc-grey-100);
    vertical-align: middle;
}
.aufc-table tr:hover td { background: var(--aufc-grey-50); }
.aufc-table tr:last-child td { border-bottom: none; }

/* ── Empty State ──────────────────────────────────────── */

.aufc-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}
.aufc-empty-state i {
    font-size: 2.5rem;
    color: var(--aufc-grey-300);
    margin-bottom: 0.75rem;
    display: block;
}
.aufc-empty-state p {
    color: var(--aufc-grey-400);
    margin: 0;
}

/* ── Section Divider ──────────────────────────────────── */

/* ── Toast Notifications ──────────────────────────────── */

.aufc-toast-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.aufc-toast {
    pointer-events: auto;
    background: var(--aufc-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid var(--aufc-grey-200);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    min-width: 280px;
    max-width: 420px;
    animation: aufc-toastIn 0.35s ease;
    border-left: 4px solid transparent;
}
.aufc-toast.success { border-left-color: var(--aufc-success); }
.aufc-toast.danger  { border-left-color: var(--aufc-danger); }
.aufc-toast.warning { border-left-color: var(--aufc-warning); }
.aufc-toast.info    { border-left-color: var(--aufc-info); }

.aufc-toast.success i { color: var(--aufc-success); }
.aufc-toast.danger i  { color: var(--aufc-danger); }
.aufc-toast.warning i { color: var(--aufc-warning); }
.aufc-toast.info i    { color: var(--aufc-info); }

.aufc-toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--aufc-grey-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
    line-height: 1;
}
.aufc-toast-close:hover { color: var(--aufc-grey-800); }

.aufc-toast.hiding { animation: aufc-toastOut 0.25s ease forwards; }

@keyframes aufc-toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes aufc-toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ── Flex/Grid Utilities ──────────────────────────────── */

.flex-row    { display: flex; flex-wrap: wrap; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: 0.5rem; }
.gap-md      { gap: 0.75rem; }
.items-center { align-items: center; }

/* ── Feature Cards (Home Page) ─────────────────────────── */

.aufc-features {
    padding: 4rem 0;
}

.aufc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.aufc-feature-card {
    padding: 2rem;
    text-align: center;
}

.aufc-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(212,168,67,0.1), rgba(212,168,67,0.05));
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--aufc-gold-dark);
    margin: 0 auto 1.25rem;
}

.aufc-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.aufc-feature-card p {
    color: var(--aufc-grey-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Section Headers ───────────────────────────────────── */

.aufc-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.aufc-section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.aufc-section-header p {
    color: var(--aufc-grey-600);
    font-size: 1rem;
}

/* ── Registration Form ─────────────────────────────────── */

.aufc-reg-container {
    max-width: 780px;
    margin: 0 auto;
}

/* Step Indicator */
.aufc-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}

.aufc-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--aufc-grey-400);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.aufc-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aufc-grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.aufc-step.active {
    color: var(--aufc-navy);
}
.aufc-step.active .aufc-step-num {
    background: linear-gradient(135deg, var(--aufc-gold-light), var(--aufc-gold));
    color: var(--aufc-navy);
}

.aufc-step.completed .aufc-step-num {
    background: var(--aufc-success);
    color: var(--aufc-white);
}
.aufc-step.completed {
    color: var(--aufc-success);
}

.aufc-step-connector {
    width: 40px;
    height: 2px;
    background: var(--aufc-grey-200);
    align-self: center;
    transition: var(--transition);
}
.aufc-step-connector.completed {
    background: var(--aufc-success);
}

/* Form Panels */
.aufc-form-panel {
    display: none;
    animation: aufc-fadeIn 0.35s ease;
}
.aufc-form-panel.active {
    display: block;
}

@keyframes aufc-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aufc-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.aufc-form-subtitle {
    color: var(--aufc-grey-600);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Controls */
.aufc-form-group {
    margin-bottom: 1.25rem;
}

.aufc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.aufc-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--aufc-navy);
    margin-bottom: 0.4rem;
}

.aufc-label .optional {
    font-weight: 400;
    color: var(--aufc-grey-400);
    font-size: 0.8rem;
}

.aufc-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--aufc-grey-800);
    background: var(--aufc-white);
    border: 1.5px solid var(--aufc-grey-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.aufc-input:focus {
    border-color: var(--aufc-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.aufc-input::placeholder {
    color: var(--aufc-grey-400);
}

.aufc-input.input-validation-error,
.aufc-input.is-invalid {
    border-color: var(--aufc-danger);
}
.aufc-input.input-validation-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

textarea.aufc-input {
    min-height: 100px;
    resize: vertical;
}

select.aufc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6478' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Validation messages */
.field-validation-error {
    display: block;
    color: var(--aufc-danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

.validation-summary-errors {
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--aufc-danger);
    font-size: 0.9rem;
}
.validation-summary-errors ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
}

/* File Upload */
.aufc-file-upload {
    border: 2px dashed var(--aufc-grey-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--aufc-grey-100);
}

.aufc-file-upload:hover {
    border-color: var(--aufc-gold);
    background: rgba(212,168,67,0.03);
}

.aufc-file-upload.has-file {
    border-color: var(--aufc-success);
    background: rgba(25, 135, 84, 0.04);
}

.aufc-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.aufc-file-icon {
    font-size: 2rem;
    color: var(--aufc-grey-400);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.aufc-file-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--aufc-grey-600);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.aufc-file-hint {
    font-size: 0.8rem;
    color: var(--aufc-grey-400);
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.aufc-file-name {
    font-weight: 600;
    color: var(--aufc-success);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Checkbox / Terms */
.aufc-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.aufc-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--aufc-grey-300);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--aufc-gold);
}

.aufc-checkbox-label {
    font-size: 0.9rem;
    color: var(--aufc-grey-800);
    cursor: pointer;
    line-height: 1.5;
}

.aufc-terms-box {
    background: var(--aufc-grey-100);
    border: 1px solid var(--aufc-grey-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.aufc-terms-box h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.aufc-terms-box-content {
    font-size: 0.85rem;
    color: var(--aufc-grey-600);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Video Embed */
.aufc-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background: var(--aufc-navy);
}
.aufc-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Navigation Buttons */
.aufc-form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--aufc-grey-200);
}

/* ── Login Page ────────────────────────────────────────── */

/* ── Confirmation Page ─────────────────────────────────── */

@keyframes aufc-scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Footer ────────────────────────────────────────────── */

.aufc-footer {
    background: var(--aufc-navy);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.aufc-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.aufc-footer-tagline {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin: 0.75rem 0 0;
    font-style: italic;
}

.aufc-footer-links {
    display: flex;
    gap: 2rem;
}

.aufc-footer-links a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}
.aufc-footer-links a:hover {
    color: var(--aufc-gold);
}

.aufc-footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ── Alert / Info Box ──────────────────────────────────── */

.aufc-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.aufc-alert-info {
    background: rgba(12, 27, 51, 0.04);
    border: 1px solid rgba(12, 27, 51, 0.1);
    color: var(--aufc-grey-800);
}

.aufc-alert-info i {
    color: var(--aufc-gold-dark);
    font-size: 1.1rem;
    margin-top: 1px;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
    .aufc-mobile-toggle { display: block; }

    .aufc-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--aufc-navy-light);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    }
    .aufc-nav-links.open { display: flex; }

    /* User dropdown on mobile */
    #userDropdown { width: 100%; }
    #userDropdownBtn { width: 100%; justify-content: flex-start !important; }
    #userDropdownMenu {
        position: relative !important;
        top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(255,255,255,0.05) !important;
        border-radius: 6px !important;
        margin: 0.25rem 0 !important;
        min-width: auto !important;
    }
    #userDropdownMenu a { color: #fff !important; }
    #userDropdownMenu a:hover { background: rgba(255,255,255,0.1) !important; }
    #userDropdownMenu button { color: #ef9a9a !important; }

    .aufc-hero h1 { font-size: 2rem; }
    .aufc-hero { padding: 3rem 0 2.5rem; }

    .aufc-form-row { grid-template-columns: 1fr; }

    .aufc-steps { flex-wrap: wrap; gap: 0.25rem; }
    .aufc-step { font-size: 0.7rem; padding: 0.4rem 0.75rem; }
    .aufc-step-connector { width: 20px; }

    .aufc-card-body { padding: 1.25rem; }

    /* Tile grid to single column */
    .aufc-tile-grid { grid-template-columns: 1fr; }

    /* Stat grid: 2-col on tablet */
    .aufc-stat-grid { grid-template-columns: repeat(2, 1fr); }

    /* Attention badges wrap */

    /* Detail grid stack */
    .aufc-detail-grid { grid-template-columns: 1fr; gap: 0.75rem; }

    /* Toast full-width on mobile */
    .aufc-toast-container { left: 1rem; right: 1rem; }
    .aufc-toast { min-width: auto; max-width: none; }

    /* Breadcrumb wrapping */
    .aufc-breadcrumb { font-size: 0.78rem; }

    /* Page padding */
    .aufc-page { padding: 1.5rem 0 2rem; }
}

@media (max-width: 480px) {
    .aufc-step span:not(.aufc-step-num) { display: none; }
    .aufc-hero-actions { flex-direction: column; }
    .aufc-hero-actions .aufc-btn { width: 100%; justify-content: center; }

    /* Stat grid: 2-col stays but smaller */
    .aufc-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .aufc-stat-value { font-size: 1.4rem; }

    /* Full-width action buttons */
}

/* ── Utilities ─────────────────────────────────────────── */

.text-gold { color: var(--aufc-gold); }
.bg-navy { background: var(--aufc-navy); }
.mt-2 { margin-top: 0.5rem; }
.mb-0 { margin-bottom: 0; }

/* -- Multi-Child Entries ----------------------------------- */
.child-entry {
    background: var(--aufc-grey-100);
    border: 1px solid var(--aufc-grey-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.child-entry:first-child {
    border-left: 3px solid var(--aufc-gold);
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--aufc-grey-200);
}

.child-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aufc-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-title i {
    color: var(--aufc-gold);
}

.child-entry .aufc-input {
    background: var(--aufc-white);
}

.child-entry .aufc-file-upload {
    background: var(--aufc-white);
}

/* -- Club Badge Logo -------------------------------------- */
.aufc-brand-badge {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.aufc-footer .aufc-brand-badge {
    height: 36px;
}

/* -- User Dropdown ---------------------------------------- */
