/* ============================================
   ALASH SPORTS — Казахский стиль
   Палитра: Белый / Красный / Чёрный
   Орнаменты: Қошқар мүйіз, Шаңырақ
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Core Palette */
    --red:         #c8102e;
    --red-dark:    #a00d24;
    --red-deep:    #7a0a1b;
    --red-light:   #fef1f3;
    --red-50:      #fff5f7;
    --black:       #0d0d0d;
    --black-soft:  #1a1a1a;
    --gray-900:    #111111;
    --gray-800:    #1f1f1f;
    --gray-700:    #333333;
    --gray-600:    #4a4a4a;
    --gray-500:    #6b6b6b;
    --gray-400:    #999999;
    --gray-300:    #d1d1d1;
    --gray-200:    #e8e8ec;
    --gray-100:    #f3f3f6;
    --gray-50:     #f9f9fb;
    --white:       #ffffff;

    /* Semantic */
    --primary:       var(--red);
    --primary-dark:  var(--red-dark);
    --accent:        var(--red);
    --accent-hover:  var(--red-dark);
    --bg:            #f4f4f7;
    --bg-subtle:     var(--gray-50);
    --card-bg:       var(--white);
    --text:          var(--gray-900);
    --text-muted:    var(--gray-500);
    --border:        var(--gray-200);
    --border-dark:   var(--gray-300);
    --surface-glass: rgba(255, 255, 255, 0.82);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Effects */
    --shadow-xs: 0 1px 2px rgba(15, 15, 20, 0.04);
    --shadow-sm: 0 2px 12px rgba(15, 15, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 15, 20, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 15, 20, 0.12);
    --shadow-red: 0 4px 20px rgba(200, 16, 46, 0.22);
    --ring: 0 0 0 3px rgba(200, 16, 46, 0.14);

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    --radius-2xl: 32px;

    --header-h: 0px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== KAZAKH ORNAMENTAL PATTERNS (CSS) ===== */

/* Қошқар мүйіз (Ram's Horns) ornament strip — red/black */
.ornament-strip {
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10 C4 2, 12 2, 16 10 C20 18, 28 18, 32 10 C36 2, 44 2, 48 10 C52 18, 60 18, 64 10 C68 2, 76 2, 80 10' fill='none' stroke='%23c8102e' stroke-width='2' opacity='0.35'/%3E%3Cpath d='M8 10 C12 18, 20 18, 24 10 C28 2, 36 2, 40 10 C44 18, 52 18, 56 10 C60 2, 68 2, 72 10' fill='none' stroke='%230d0d0d' stroke-width='1.2' opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 80px 20px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-home {
    background: var(--black);
}

body.page-home main {
    padding: 0;
}

body.page-home .container-fluid {
    max-width: none;
    padding: 0;
}

body.page-home .site-header {
    background: rgba(13, 13, 13, 0.72);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.page-home .site-header .brand-name,
body.page-home .site-header .site-nav a,
body.page-home .site-header .user-name {
    color: rgba(255, 255, 255, 0.88);
}

body.page-home .site-header .site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

body.page-home .site-header .brand-mark {
    background: rgba(200, 16, 46, 0.2);
    border-color: rgba(200, 16, 46, 0.35);
    color: #ff6b7f;
}

body.page-home .site-header .nav-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

body.page-home .site-header .nav-toggle span {
    background: var(--white);
}

body.page-home .site-header .user-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

body.page-home .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.page-home .site-header.is-scrolled .brand-name,
body.page-home .site-header.is-scrolled .site-nav a,
body.page-home .site-header.is-scrolled .user-name {
    color: var(--gray-600);
}

body.page-home .site-header.is-scrolled .site-nav a:hover {
    color: var(--red);
    background: var(--red-light);
}

body.page-home .site-header.is-scrolled .nav-toggle {
    background: var(--white);
    border-color: var(--border);
}

body.page-home .site-header.is-scrolled .nav-toggle span {
    background: var(--black);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-header h1::after,
.about-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
    border-radius: 2px;
    margin-top: 0.6rem;
}

.about-title::after {
    margin-left: auto;
    margin-right: auto;
}

h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 700; }

a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--red-dark); }

p { color: var(--text-muted); line-height: 1.7; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-fluid {
    max-width: none;
    width: 100%;
}

/* ============ SITE HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-accent,
.footer-accent {
    height: 3px;
    background: linear-gradient(90deg,
        var(--red) 0%, var(--black) 25%,
        var(--red) 50%, var(--black) 75%,
        var(--red) 100%
    );
}

.header-inner {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-light), var(--white));
    border: 1px solid rgba(200, 16, 46, 0.15);
    color: var(--red);
}

.brand-text {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand-accent {
    color: var(--red);
}

.brand-name {
    color: var(--black);
    margin-left: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    background: var(--gray-100);
    border-radius: 999px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--black);
    border-radius: 1px;
    transition: var(--transition);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid transparent;
}

.nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 0.35rem;
}

.nav-divider-sm { display: none; }

.site-nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--red);
    background: var(--red-light);
}

.site-nav a.nav-logout {
    color: var(--gray-500);
}

.site-nav a.nav-logout:hover {
    color: var(--red-dark);
    background: var(--red-50);
}

/* ============ MAIN ============ */
main {
    flex: 1;
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-flat:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: var(--red);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: var(--shadow-red);
    white-space: nowrap;
}

.btn:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(200, 16, 46, 0.28);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring), var(--shadow-red);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: transparent;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--black);
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    background: var(--gray-800);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-300);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--black);
    color: var(--black);
    box-shadow: none;
}

.btn-danger {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
    box-shadow: none;
}

.btn-danger:hover {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: var(--ring);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============ ALERTS ============ */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.alert-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-info    { background: #f0f4ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ============ TABLES ============ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    background: var(--white);
    margin-bottom: 1.5rem;
}

.table-responsive table {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: var(--gray-50);
    color: var(--gray-500);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1px;
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-200);
}

tr:last-child td { border-bottom: none; }

tbody tr { transition: var(--transition); }

tbody tr:hover { background: var(--red-50); }

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-draft        { background: #f1f3f5; color: #868e96; }
.badge-upcoming     { background: #f0f4ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-registration { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-active,
.badge-ongoing      { background: var(--red-light); color: var(--red); border: 1px solid #f9c4cd; }
.badge-completed    { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-cancelled    { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ============ PAGINATION ============ */
.pagination { margin-top: 2rem; }

.pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.pagination li a:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-light);
}

.pagination li.active a {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}

/* ============ CHECKBOX GROUP ============ */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 1rem; }

.checkbox-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--red);
}

/* ======================================================
   HERO SECTION — Kazakh Ornamental + Red/Black/White
   ====================================================== */

.premium-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    background: var(--black);
}

.premium-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    opacity: 0.25;
    filter: grayscale(50%) contrast(1.15);
}

@media (max-width: 768px) {
    .premium-hero-bg {
        background-attachment: scroll;
        opacity: 0.2;
    }
}

.premium-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            165deg,
            rgba(0,0,0,0.92) 0%,
            rgba(13,13,13,0.7) 45%,
            rgba(200,16,46,0.12) 100%
        );
}

/* Ornamental side accents — red strips */
.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--red), transparent 30%, transparent 70%, var(--red));
    z-index: 5;
}

.premium-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--red), transparent 30%, transparent 70%, var(--red));
    z-index: 5;
}

.premium-hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 52rem;
    width: 100%;
    padding: 2rem 1.25rem 1rem;
    transform: translateY(-2vh);
}

/* Shanyrak Logo */
.premium-hero-logo {
    margin-bottom: 1.25rem;
    animation: fadeInDown 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* Ornamental line */
.hero-ornament-line {
    width: 200px;
    height: 2px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--red), var(--white), var(--red), transparent);
    border-radius: 1px;
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
    opacity: 0;
}

.premium-hero-eyebrow {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
    opacity: 0;
}

.premium-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s forwards;
    opacity: 0;
}

.premium-hero-title::after { display: none; }

.premium-hero-title .text-accent {
    display: block;
    color: var(--red);
    text-shadow: 0 0 40px rgba(200,16,46,0.35);
}

.premium-hero-lead {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    max-width: 36rem;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.25s forwards;
    opacity: 0;
}

.premium-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
    opacity: 0;
}

.premium-btn {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    min-height: 3.25rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
    background: var(--red);
    box-shadow: 0 4px 20px rgba(200,16,46,0.35);
}

.premium-btn:hover {
    background: var(--red-dark);
    box-shadow: 0 8px 30px rgba(200,16,46,0.45);
}

.premium-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--transition);
}

.premium-btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

/* Floating nav */
.premium-floating-nav {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.25rem;
    background: rgba(13,13,13,0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
    opacity: 0;
}

.floating-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    min-height: 3.25rem;
    min-width: 4.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.floating-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.floating-nav-item .nav-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}

.floating-nav-item:hover .nav-icon svg {
    transform: scale(1.2) translateY(-2px);
    fill: var(--red);
}

.floating-nav-item span {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Home quick nav */
.home-quick-nav {
    position: relative;
    z-index: 10;
}

.home-quick-nav--mobile {
    display: none;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.55s forwards;
    opacity: 0;
}

.home-quick-nav--desktop {
    display: flex;
}

.home-quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 5.5rem;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.home-quick-nav-item:hover,
.home-quick-nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
    outline: none;
}

.home-quick-nav-item:active {
    transform: scale(0.98);
}

.home-quick-nav-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: var(--red);
}

.home-quick-nav-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.home-section-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

/* ============ HOME CONTENT AREA ============ */
.premium-content-wrapper {
    padding: 4rem 0 5rem;
}

.premium-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

/* Red top accent on cards */
.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--black), var(--red));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.premium-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.premium-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--gray-200);
}

.premium-section-header h2 {
    font-size: 1.65rem;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--black);
}

.premium-section-header h2::after { display: none; }

.link-accent {
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-accent:hover { color: var(--red-dark); }

.premium-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.premium-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.15rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.premium-list-item:hover {
    background: var(--red-50);
    border-left-color: var(--red);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.premium-list-item.status-registration { border-left-color: #16a34a; }
.premium-list-item.status-active,
.premium-list-item.status-ongoing      { border-left-color: var(--red); }
.premium-list-item.status-completed    { border-left-color: var(--gray-400); }
.premium-list-item.status-cancelled    { border-left-color: #ef4444; }

.comp-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.comp-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    font-family: var(--font-heading);
}

.comp-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.meta-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    opacity: 0.6;
    margin-right: 2px;
}

.dot-separator { margin: 0 0.35rem; opacity: 0.4; }

.premium-discipline-group { margin-bottom: 2.5rem; }

.premium-discipline-title {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 0.75rem;
    border-left: 3px solid var(--red);
}

.premium-empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

/* ============ HOME HELPERS ============ */
.home-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.home-section-title h2 { margin: 0; font-size: 1.65rem; }

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .home-grid { grid-template-columns: 1.2fr 0.8fr; }
}

/* Comp cards */
.comp-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    margin-bottom: 0.6rem;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.comp-list-card:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: var(--red);
    transform: translateX(4px);
}

.comp-list-card.status-registration { border-left-color: #16a34a; }
.comp-list-card.status-ongoing      { border-left-color: var(--red); }
.comp-list-card.status-completed    { border-left-color: var(--gray-400); }
.comp-list-card.status-cancelled    { border-left-color: #ef4444; }

/* ============ MEDALS & AVATARS ============ */
.medal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.medal-gold   { background: linear-gradient(135deg, #FFD700, #B8860B); }
.medal-silver { background: linear-gradient(135deg, #C0C0C0, #808080); }
.medal-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); }

.athlete-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.athlete-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red-light);
    color: var(--red);
    font-weight: 700;
    font-size: 0.72rem;
    border: 1.5px solid var(--red);
    text-transform: uppercase;
    flex-shrink: 0;
    transition: var(--transition-bounce);
    font-family: var(--font-heading);
}

tbody tr:hover .athlete-avatar {
    background: var(--red);
    color: var(--white);
    border-color: var(--red-dark);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
    transform: scale(1.1);
}

.total-highlight {
    color: var(--red);
    font-weight: 800;
    font-family: var(--font-heading);
}

.wilks-highlight {
    font-weight: 600;
    color: var(--text-muted);
}

/* ============ LIVE / PULSE ============ */
.live-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(200,16,46,0.5);
    animation: pulse-red 1.6s infinite;
    vertical-align: middle;
}

@keyframes pulse-red {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200,16,46,0.5); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(200,16,46,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

.btn-live-glow {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white) !important;
    border: none;
    animation: glow-btn 2s infinite alternate;
}

@keyframes glow-btn {
    0%   { box-shadow: 0 0 6px rgba(200,16,46,0.4); }
    100% { box-shadow: 0 0 18px rgba(200,16,46,0.7), 0 4px 20px rgba(200,16,46,0.4); }
}

/* ============ ICONS ============ */
.comp-meta-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.6;
    margin-right: 2px;
    vertical-align: middle;
}

/* ============ SITE FOOTER ============ */
.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.55);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 2rem;
    padding: 2.5rem 0 1.75rem;
    align-items: start;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-tagline {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    letter-spacing: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
}

.footer-dev {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ============ PAGE HEADER & LAYOUT ============ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.page-header-text h1 {
    margin-bottom: 0.35rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 52ch;
    margin: 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.page-toolbar .form-group {
    margin-bottom: 0;
    min-width: 200px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state td {
    text-align: center !important;
    padding: 2.5rem 1rem !important;
    color: var(--text-muted);
    font-style: italic;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
    padding: 1rem 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card .card {
    margin-bottom: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
}

.auth-header h1::after {
    margin-left: auto;
    margin-right: auto;
}

.auth-header p {
    margin: 0;
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-footer a {
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* ============ DASHBOARD ============ */
.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    box-shadow: var(--shadow-red);
    flex-shrink: 0;
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
    list-style: none;
    padding: 0;
}

.dash-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    opacity: 0;
    transition: var(--transition);
}

.dash-card:hover {
    border-color: rgba(200, 16, 46, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--black);
}

.dash-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.dash-card-badge {
    align-self: flex-start;
    margin-top: 0.25rem;
}

/* ============ ABOUT SECTION (HOME) ============ */
.about-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--white);
    overflow: hidden;
}

.about-intro {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 1.25rem 2.5rem;
    max-width: 44rem;
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.about-title span {
    color: var(--red);
}

.about-desc {
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    line-height: 1.75;
    color: var(--gray-600);
}

.about-desc strong {
    color: var(--black);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
}

.about-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.about-card--link:focus-visible {
    outline: none;
    box-shadow: var(--ring), var(--shadow-md);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 2.5rem;
    height: 3px;
    background: var(--red);
    border-radius: 0 0 2px 2px;
    transition: width 0.3s ease;
}

.about-card:hover::before {
    width: calc(100% - 3rem);
}

.about-card:hover,
.about-card--link:active {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--red-light);
    border: 1px solid rgba(200, 16, 46, 0.12);
    transition: var(--transition);
}

.about-card-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--red);
    transition: var(--transition);
}

.about-card:hover .about-card-icon {
    background: var(--red);
    border-color: var(--red);
}

.about-card:hover .about-card-icon svg {
    fill: var(--white);
}

.about-card h3 {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 800;
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.about-card p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: var(--gray-500);
    line-height: 1.65;
    flex: 1;
}

.about-card-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.02em;
}

.about-card-cta::after {
    content: '→';
    margin-left: 0.35rem;
    transition: transform 0.2s ease;
}

.about-card:hover .about-card-cta::after {
    transform: translateX(3px);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
    background: var(--black);
    color: var(--white);
    position: relative;
    width: 100%;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--black) 25%, var(--red) 50%, var(--black) 75%, var(--red));
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 120px;
}

.about-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 8vw, 3rem);
    font-weight: 900;
    color: var(--red);
    letter-spacing: -0.04em;
    line-height: 1;
}

.about-stat-label {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.about-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.about-mission {
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
    background: var(--gray-50);
    text-align: center;
    border: none;
    margin: 0;
}

.about-mission-inner {
    max-width: 44rem;
    margin: 0 auto;
}

.about-mission-ornament {
    margin-bottom: 1.5rem;
}

.about-mission-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--black);
    font-style: italic;
    padding: 0 0.5rem;
    margin: 0;
}

.about-mission cite {
    display: block;
    margin-top: 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red);
    font-style: normal;
}

.about-cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 2.5rem 1.25rem 3.5rem;
}

.about-cta .btn {
    min-height: 3.25rem;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.ornament-strip--bottom {
    margin-top: 0;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card,
.premium-list-item,
.comp-list-card {
    animation: fadeInUp 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .header-login {
        display: none;
    }

    .user-name {
        display: none;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .nav-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-divider,
    .nav-divider-sm {
        display: none;
    }

    .site-nav a {
        padding: 0.65rem 0.85rem;
        width: 100%;
    }

    main { padding: 1.5rem 0 2.5rem; }
    body.page-home main { padding: 0; }
    .card { padding: 1.25rem; }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .premium-hero {
        justify-content: flex-start;
        padding-top: 0.5rem;
        min-height: calc(100svh - var(--header-h));
    }

    .premium-hero-content {
        transform: none;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem 1rem 1rem;
    }

    .premium-hero-logo svg {
        width: 72px;
        height: 72px;
    }

    .premium-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
    }

    .premium-hero-actions .premium-btn,
    .premium-hero-actions .premium-btn-outline {
        width: 100%;
        min-height: 3.5rem;
    }

    .home-quick-nav--mobile {
        display: grid;
    }

    .home-quick-nav--desktop {
        display: none;
    }

    .about-features { grid-template-columns: 1fr; }
    .about-card {
        padding: 1.5rem 1.25rem;
        min-height: auto;
    }
    .about-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 22rem;
        margin: 0 auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .about-cta .btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .comp-list-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .comp-list-card div:last-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .comp-list-card .btn { width: 100%; text-align: center; }
    .premium-list-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============ HOME — MINIMAL ONEPAGE ============ */
body.page-home-minimal {
    background: var(--black);
}

body.page-home-minimal .site-footer {
    display: none;
}

.home-onepage {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(2rem, env(safe-area-inset-top)) 1.25rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    overflow: hidden;
    background: var(--black);
}

.home-onepage-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(200, 16, 46, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 90%, rgba(200, 16, 46, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 35% at 10% 80%, rgba(255, 255, 255, 0.04), transparent 50%);
}

.home-onepage-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    text-align: center;
}

.home-onepage-brand {
    margin-bottom: 1rem;
    animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-onepage-brand svg {
    filter: drop-shadow(0 8px 24px rgba(200, 16, 46, 0.35));
}

.home-onepage-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.home-onepage-title {
    font-family: var(--font-heading);
    font-size: clamp(3.25rem, 15vw, 4.75rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 1rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.home-onepage-title span {
    display: block;
    color: var(--red);
    text-shadow: 0 0 60px rgba(200, 16, 46, 0.4);
}

.home-onepage-lead {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 auto 1.75rem;
    max-width: 20rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.home-onepage-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.home-onepage-btn {
    min-height: 3.25rem;
    min-width: 7.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    border-radius: 50px;
    letter-spacing: 0.03em;
}

.home-onepage-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-onepage-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
    box-shadow: none;
}

.home-onepage-divider {
    width: 3rem;
    height: 2px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    border-radius: 1px;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.home-onepage-nav-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.85rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.home-onepage-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.home-onepage-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 5.5rem;
    padding: 1.1rem 0.75rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1),
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.3s + var(--item-delay, 0s)) both;
}

.home-onepage-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background: var(--red);
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.home-onepage-nav-item:hover::before,
.home-onepage-nav-item:focus-visible::before {
    width: 100%;
    opacity: 1;
}

.home-onepage-nav-item:hover,
.home-onepage-nav-item:focus-visible {
    transform: translateY(-3px);
    background: linear-gradient(
        145deg,
        rgba(200, 16, 46, 0.14) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-color: rgba(200, 16, 46, 0.35);
    color: var(--white);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(200, 16, 46, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    outline: none;
}

.home-onepage-nav-item:active {
    transform: translateY(-1px) scale(0.98);
}

.home-onepage-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(200, 16, 46, 0.15);
    border: 1px solid rgba(200, 16, 46, 0.2);
    transition: var(--transition);
}

.home-onepage-nav-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #ff6b7f;
    transition: var(--transition);
}

.home-onepage-nav-item:hover .home-onepage-nav-icon,
.home-onepage-nav-item:focus-visible .home-onepage-nav-icon {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
}

.home-onepage-nav-item:hover .home-onepage-nav-icon svg,
.home-onepage-nav-item:focus-visible .home-onepage-nav-icon svg {
    fill: var(--white);
}

.home-onepage-nav-text {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
}

.home-onepage-foot {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.home-onepage-dev {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    body.page-home-minimal main {
        padding: 0;
    }

    .home-onepage {
        min-height: 100svh;
        padding: 1.25rem 1rem;
    }

    .home-onepage-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-onepage-btn {
        width: 100%;
        min-width: 0;
    }

    .home-onepage-nav-item {
        min-height: 5.75rem;
        padding: 1.15rem 0.65rem;
    }

    .home-onepage-nav-text {
        font-size: 0.92rem;
    }
}

@media (min-width: 520px) {
    .home-onepage-inner {
        max-width: 30rem;
    }

    .home-onepage-nav {
        gap: 0.75rem;
    }

    .home-onepage-nav-item {
        min-height: 6rem;
    }
}

/* ============ HOME — ДВЕ ГЛАВНЫЕ КНОПКИ ============ */
.home-entry {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.home-entry-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    text-align: left;
    text-decoration: none;
    color: var(--white);
    background: linear-gradient(
        145deg,
        rgba(200, 16, 46, 0.16) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(200, 16, 46, 0.28);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1),
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.2s + var(--item-delay, 0s)) both;
}

.home-entry-card:hover,
.home-entry-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(200, 16, 46, 0.6);
    background: linear-gradient(
        145deg,
        rgba(200, 16, 46, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(200, 16, 46, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    outline: none;
}

.home-entry-card:active {
    transform: translateY(-1px) scale(0.99);
}

.home-entry-card__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: var(--red);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
}

.home-entry-card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--white);
}

.home-entry-card__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-entry-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.005em;
}

.home-entry-card__desc {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.home-entry-card__arrow {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease, color 0.25s ease;
}

.home-entry-card__arrow svg {
    width: 1.5rem;
    height: 1.5rem;
}

.home-entry-card:hover .home-entry-card__arrow,
.home-entry-card:focus-visible .home-entry-card__arrow {
    transform: translateX(4px);
    color: var(--white);
}

.home-onepage-actions--compact {
    margin-bottom: 1.5rem;
}

/* ============ BROWSE — ФЕДЕРАЦИИ / ГОРОДА ============ */
.browse-toolbar {
    margin-bottom: 1rem;
}

.browse-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.4rem;
}

.browse-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
}

.browse-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: var(--text, #1a1a1a);
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) var(--card-delay, 0s) both;
}

.browse-card:hover,
.browse-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(200, 16, 46, 0.45);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
    outline: none;
}

.browse-card__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--red);
}

.browse-card__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.browse-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.browse-card__title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
}

.browse-card__sub {
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.5);
}

.browse-card__count {
    align-self: flex-start;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--red);
    background: rgba(200, 16, 46, 0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
}

.browse-card__arrow {
    flex: none;
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, color 0.2s ease;
}

.browse-card:hover .browse-card__arrow,
.browse-card:focus-visible .browse-card__arrow {
    transform: translateX(3px);
    color: var(--red);
}

/* ============ COMPETITIONS INDEX — UX-FIRST ============ */
.page-competitions .page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.55;
    max-width: 42ch;
}

.page-competitions .comp-index-create {
    min-height: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.comp-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comp-index-card {
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--card-delay, 0s);
}

.comp-index-card__inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--gray-300);
    transition: var(--transition);
}

.comp-index-card--registration .comp-index-card__inner {
    border-left-color: #16a34a;
}

.comp-index-card--closed .comp-index-card__inner {
    border-left-color: var(--gray-400);
}

.comp-index-card__inner:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.18);
}

.comp-index-card__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.comp-index-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3.8vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--black);
    margin: 0;
}

.comp-index-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.comp-index-badge--open {
    background: #f0fdf4;
    color: #15803d;
    border: 1.5px solid #bbf7d0;
}

.comp-index-badge--open:hover {
    background: #dcfce7;
    color: #166534;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
}

.comp-index-badge--open:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.comp-index-badge--closed {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
}

.comp-index-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
}

.comp-index-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    min-height: 2.75rem;
}

.comp-index-meta__item dd {
    margin: 0;
    min-width: 0;
}

.comp-index-meta__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-600);
}

.comp-index-meta__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}

.comp-index-meta__value {
    display: block;
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.35;
}

.comp-index-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.comp-index-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 9rem;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.comp-index-btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.comp-index-btn--primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(200, 16, 46, 0.28);
}

.comp-index-btn--primary:focus-visible {
    outline: none;
    box-shadow: var(--ring), var(--shadow-red);
}

.comp-index-btn--secondary {
    background: var(--white);
    color: var(--gray-800);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-xs);
}

.comp-index-btn--secondary:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-50);
}

.comp-index-btn--secondary:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.comp-index-empty {
    text-align: center;
    padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-xl);
}

.comp-index-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
}

.comp-index-empty__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 800;
    color: var(--black);
    margin: 0 0 0.5rem;
}

.comp-index-empty__text {
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
    max-width: 28ch;
}

.comp-index-empty .comp-index-btn {
    min-width: min(100%, 20rem);
    margin: 0 auto;
}

.comp-index-pagination .pagination li a {
    min-width: 2.75rem;
    height: 2.75rem;
    font-size: 0.9375rem;
}

@media (min-width: 540px) {
    .comp-index-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .comp-index-card__top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .comp-index-card__inner {
        padding: 1.5rem 1.65rem;
        gap: 1.25rem;
    }

    .comp-index-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .comp-index-actions {
        justify-content: flex-start;
    }

    .comp-index-btn {
        flex: 0 1 auto;
        min-width: 10rem;
    }
}

@media (max-width: 479px) {
    .comp-index-actions {
        flex-direction: column;
    }

    .comp-index-btn {
        width: 100%;
        flex: none;
    }

    .comp-index-badge {
        width: 100%;
    }
}

/* ============ COMPETITION FORM — UX-FIRST ============ */
.comp-form-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 0.25rem 0 2.5rem;
}

.page-comp-form .page-header h1::after {
    display: none;
}

.comp-form-header {
    margin-bottom: 1.5rem;
}

.comp-form-eyebrow {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.page-comp-form .page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.55;
    max-width: 48ch;
}

.comp-form-back {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.625rem 1.125rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition);
}

.comp-form-back:hover {
    color: var(--primary);
    border-color: var(--gray-400);
}

.comp-form-back:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.comp-form.card {
    padding: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
}

.comp-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.comp-form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comp-form-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    color: var(--primary);
}

.comp-form-section__title--danger {
    border-left-color: var(--red);
}

.comp-form-section__head {
    margin-bottom: 1.25rem;
}

.comp-form-section__head .comp-form-section__title {
    margin-bottom: 0.35rem;
}

.comp-form-section__desc {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 52ch;
}

.comp-form-section--disciplines {
    margin-bottom: 0;
}

.comp-form-disciplines-panel {
    padding: 1.125rem;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 14px;
}

.comp-form-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.comp-form-chips:empty {
    display: none;
}

.comp-form-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.comp-form-chip:hover {
    border-color: var(--gray-400);
    box-shadow: var(--shadow-xs);
}

.comp-form-chip:has(input:checked) {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}

.comp-form-chip:has(input:focus-visible) {
    outline: none;
    box-shadow: var(--ring);
}

.comp-form-chip input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.comp-form-disciplines-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 2rem 1.25rem;
    text-align: center;
}

.comp-form-disciplines-empty[hidden] {
    display: none;
}

.comp-form-disciplines-empty__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.comp-form-disciplines-empty__text {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 32ch;
}

.page-comp-form .form-group {
    margin-bottom: 1.5rem;
}

.page-comp-form .form-group label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.page-comp-form .form-group input,
.page-comp-form .form-group select,
.page-comp-form .form-group textarea {
    min-height: 52px;
    padding: 0.875rem 1.125rem;
    font-size: 1.0625rem;
    line-height: 1.4;
    border-radius: 12px;
}

.page-comp-form .form-group select {
    cursor: pointer;
}

.page-comp-form .form-group textarea {
    min-height: 7rem;
    resize: vertical;
}

.comp-form-readonly {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0.875rem 1.125rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary);
    background: var(--gray-50, #f7fafc);
    border: 1.5px solid var(--gray-300);
    border-radius: 12px;
}

.comp-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 2rem;
    padding-top: 0.5rem;
}

.comp-form-submit {
    min-height: 52px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.comp-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}

.comp-form-cancel:hover {
    color: var(--primary);
    background: var(--gray-50, #f7fafc);
}

.comp-form-cancel:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.comp-form-danger {
    padding: clamp(1.25rem, 4vw, 2rem);
    border-color: #fecaca;
    background: #fffbfb;
}

.comp-form-danger__text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    max-width: 48ch;
}

.comp-form-delete {
    min-height: 52px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .page-comp-form .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-comp-form .page-header-actions {
        width: 100%;
    }

    .comp-form-back {
        width: 100%;
        justify-content: center;
    }

    .comp-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .comp-form-submit,
    .comp-form-cancel,
    .comp-form-delete {
        width: 100%;
        justify-content: center;
    }
}

/* ============ COMPETITION SHOW — UX-FIRST ============ */
.page-comp-show .page-header h1::after {
    display: none;
}

.comp-show-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.comp-show-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.5rem 0.85rem 0.5rem 0.35rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1rem);
    font-weight: 700;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.comp-show-back:hover {
    color: var(--red);
    background: var(--red-50);
}

.comp-show-back:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.comp-show-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.comp-show-hero {
    background: linear-gradient(145deg, var(--black) 0%, #1a0508 55%, #2a0810 100%);
    border: 1px solid rgba(200, 16, 46, 0.22);
    border-left: 5px solid var(--red);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.comp-show-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(200, 16, 46, 0.18), transparent 55%);
}

.comp-show-hero > * {
    position: relative;
    z-index: 1;
}

.comp-show-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 180, 190, 0.95);
    margin: 0 0 0.65rem;
}

.comp-show-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.625rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 1rem;
}

.comp-show-hero__title::after {
    display: none;
}

.comp-show-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.comp-show-status {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.comp-show-status--draft        { background: rgba(255,255,255,0.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.15); }
.comp-show-status--registration { background: rgba(22,163,74,0.18); color: #86efac; border: 1px solid rgba(22,163,74,0.35); }
.comp-show-status--ongoing      { background: rgba(200,16,46,0.22); color: #fecdd3; border: 1px solid rgba(200,16,46,0.45); }
.comp-show-status--completed    { background: rgba(255,255,255,0.08); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.12); }
.comp-show-status--cancelled    { background: rgba(239,68,68,0.18); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }

.comp-show-hero__level {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(200, 16, 46, 0.14);
    border: 1px solid rgba(200, 16, 46, 0.32);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 700;
    color: #ffb3bc;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.comp-show-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0 0 1.35rem;
}

.comp-show-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    min-height: 2.75rem;
}

.comp-show-meta__item dd {
    margin: 0;
    min-width: 0;
}

.comp-show-meta__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
}

.comp-show-meta__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
}

.comp-show-meta__value {
    display: block;
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.35;
}

.comp-show-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.comp-show-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.comp-show-btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.comp-show-btn--primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.comp-show-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.comp-show-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.comp-show-btn--ghost {
    background: var(--white);
    color: var(--gray-800);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-xs);
}

.comp-show-btn--ghost:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-50);
}

.comp-show-btn--block {
    width: 100%;
}

.comp-show-toolbar__actions .btn {
    min-height: 3rem;
}

.comp-show-geo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.comp-show-geo__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.comp-show-geo__card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(200, 16, 46, 0.15);
}

.comp-show-geo__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.comp-show-geo__title {
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--black);
    margin: 0;
}

.comp-show-geo__count {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--red);
    background: var(--red-50);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    line-height: 1.2;
}

.comp-show-geo__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.comp-show-geo__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    font-weight: 600;
    color: var(--gray-800);
}

.comp-show-geo__empty {
    color: var(--text-muted);
    font-size: 0.9375rem;
    list-style: none;
}

.comp-show-section {
    margin-bottom: 2rem;
}

.comp-show-section__head {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.comp-show-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3.5vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 0 0 1rem;
}

.comp-show-section__head .comp-show-section__title {
    margin-bottom: 0;
}

.comp-show-section__count {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--red);
}

.comp-show-section__footer {
    margin-top: 1rem;
}

.comp-show-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.comp-show-nav__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 1rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--item-delay, 0s);
}

.comp-show-nav__item:hover,
.comp-show-nav__item:focus-visible {
    border-color: rgba(200, 16, 46, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.comp-show-nav__item:focus-visible {
    outline: none;
    box-shadow: var(--ring), var(--shadow-md);
}

.comp-show-nav__item--featured {
    border-left: 4px solid #16a34a;
    background: linear-gradient(90deg, #f0fdf4 0%, var(--white) 35%);
}

.comp-show-nav__item--featured .comp-show-nav__icon {
    background: #dcfce7;
    color: #15803d;
}

.comp-show-nav__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    transition: var(--transition);
}

.comp-show-nav__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.comp-show-nav__item:hover .comp-show-nav__icon,
.comp-show-nav__item:focus-visible .comp-show-nav__icon {
    background: var(--red-light);
    color: var(--red);
}

.comp-show-nav__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.comp-show-nav__label {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.25;
}

.comp-show-nav__desc {
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    color: var(--text-muted);
    line-height: 1.35;
}

.comp-show-nav__arrow {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: var(--transition);
}

.comp-show-nav__item:hover .comp-show-nav__arrow,
.comp-show-nav__item:focus-visible .comp-show-nav__arrow {
    color: var(--red);
    transform: translateX(3px);
}

.comp-show-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.comp-show-entries__row {
    display: grid;
    grid-template-columns: 3rem 1fr;
    grid-template-areas:
        "lot name"
        "lot meta";
    gap: 0.15rem 0.85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.comp-show-entries__row:last-child {
    border-bottom: none;
}

.comp-show-entries__lot {
    grid-area: lot;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 800;
    color: var(--red);
    text-align: center;
}

.comp-show-entries__name {
    grid-area: name;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.25;
}

.comp-show-entries__meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    color: var(--text-muted);
}

.comp-show-entries__cat::after {
    content: '·';
    margin-left: 0.5rem;
    opacity: 0.45;
}

.comp-show-entries__status {
    color: var(--text-muted);
}

.comp-show-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* —— Top results leaderboard —— */
.comp-show-section--tops .comp-show-section__title {
    margin-bottom: 1.25rem;
}

.comp-show-tops {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comp-show-podium {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: end;
    gap: 0.65rem;
}

.comp-show-podium__slot {
    min-width: 0;
}

.comp-show-podium__pedestal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.15rem 0.85rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.comp-show-podium__pedestal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.comp-show-podium__slot--1 .comp-show-podium__pedestal {
    min-height: 15.5rem;
    padding-top: 1.35rem;
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 215, 0, 0.45);
}

.comp-show-podium__slot--1 .comp-show-podium__pedestal::before {
    background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
}

.comp-show-podium__slot--2 .comp-show-podium__pedestal {
    min-height: 13rem;
    border-color: rgba(192, 192, 192, 0.55);
}

.comp-show-podium__slot--2 .comp-show-podium__pedestal::before {
    background: linear-gradient(90deg, #808080, #e8e8e8, #808080);
}

.comp-show-podium__slot--3 .comp-show-podium__pedestal {
    min-height: 11.5rem;
    border-color: rgba(205, 127, 50, 0.45);
}

.comp-show-podium__slot--3 .comp-show-podium__pedestal::before {
    background: linear-gradient(90deg, #8b4513, #cd7f32, #8b4513);
}

.comp-show-podium__medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.65rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.comp-show-podium__slot--1 .comp-show-podium__medal {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #ffd700, #b8860b);
}

.comp-show-podium__slot--2 .comp-show-podium__medal {
    background: linear-gradient(135deg, #e8e8e8, #808080);
}

.comp-show-podium__slot--3 .comp-show-podium__medal {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
}

.comp-show-podium__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--red-light);
    color: var(--red);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    border: 2px solid var(--red);
    margin-bottom: 0.55rem;
}

.comp-show-podium__slot--1 .comp-show-podium__avatar {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #fff8e1, #ffe082);
    border-color: #b8860b;
    color: #8b6914;
}

.comp-show-podium__name {
    font-family: var(--font-heading);
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
    margin: 0 0 0.25rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.comp-show-podium__cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.comp-show-podium__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    width: 100%;
    margin: 0 0 0.75rem;
}

.comp-show-podium__stats div {
    margin: 0;
}

.comp-show-podium__stats dt {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin-bottom: 0.1rem;
}

.comp-show-podium__stats dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 700;
    color: var(--gray-800);
}

.comp-show-podium__total {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.comp-show-podium__total span {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.8vw, 1.35rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
}

.comp-show-podium__total small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.comp-show-tops__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.comp-show-tops__card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "rank main"
        "score score";
    gap: 0.75rem 1rem;
    padding: 1.1rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    align-items: start;
}

.comp-show-tops__card:hover {
    border-color: rgba(200, 16, 46, 0.18);
    box-shadow: var(--shadow-sm);
}

.comp-show-tops__card--medal {
    border-left-width: 4px;
}

.comp-show-tops__card--rank-1 {
    border-left-color: #ffd700;
    background: linear-gradient(90deg, #fffdf5 0%, var(--white) 40%);
}

.comp-show-tops__card--rank-2 {
    border-left-color: #c0c0c0;
    background: linear-gradient(90deg, #fafafa 0%, var(--white) 40%);
}

.comp-show-tops__card--rank-3 {
    border-left-color: #cd7f32;
    background: linear-gradient(90deg, #fffaf5 0%, var(--white) 40%);
}

.comp-show-tops__rank {
    grid-area: rank;
    display: flex;
    align-items: flex-start;
    padding-top: 0.15rem;
}

.comp-show-tops__rank .medal-badge {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.85rem;
}

.comp-show-tops__rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-500);
}

.comp-show-tops__main {
    grid-area: main;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comp-show-tops__athlete {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.comp-show-tops__avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comp-show-tops__identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.comp-show-tops__name {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.25;
}

.comp-show-tops__meta {
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    color: var(--text-muted);
    line-height: 1.35;
}

.comp-show-tops__meta-sep {
    margin: 0 0.35rem;
    opacity: 0.45;
}

.comp-show-tops__lifts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0;
}

.comp-show-tops__lift {
    margin: 0;
    padding: 0.55rem 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.comp-show-tops__lift dt {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}

.comp-show-tops__lift dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    font-weight: 700;
    color: var(--gray-800);
}

.comp-show-tops__score {
    grid-area: score;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, var(--red-50) 0%, #fff 100%);
    border: 1px solid rgba(200, 16, 46, 0.12);
    border-radius: var(--radius-md);
}

.comp-show-tops__score-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
}

.comp-show-tops__score-value {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.comp-show-tops__wilks {
    margin-left: auto;
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 600;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .comp-show-tops__card {
        grid-template-columns: 3.5rem 1fr auto;
        grid-template-areas: "rank main score";
        align-items: center;
        gap: 1rem 1.25rem;
        padding: 1.15rem 1.35rem;
    }

    .comp-show-tops__rank {
        align-items: center;
        padding-top: 0;
    }

    .comp-show-tops__main {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }

    .comp-show-tops__athlete {
        flex: 1;
        min-width: 12rem;
    }

    .comp-show-tops__lifts {
        flex: 1.4;
        max-width: 18rem;
    }

    .comp-show-tops__score {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.2rem;
        min-width: 6.5rem;
        padding: 0.65rem 0.85rem;
        background: var(--gray-50);
        border-color: var(--border);
    }

    .comp-show-tops__wilks {
        margin-left: 0;
    }
}

@media (max-width: 639px) {
    .comp-show-podium {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.75rem;
    }

    .comp-show-podium__slot--1 { order: 1; }
    .comp-show-podium__slot--2 { order: 2; }
    .comp-show-podium__slot--3 { order: 3; }

    .comp-show-podium__slot--1 .comp-show-podium__pedestal,
    .comp-show-podium__slot--2 .comp-show-podium__pedestal,
    .comp-show-podium__slot--3 .comp-show-podium__pedestal {
        min-height: auto;
    }
}

@media (min-width: 540px) {
    .comp-show-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .comp-show-geo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .comp-show-meta {
        grid-template-columns: repeat(3, 1fr);
    }

    .comp-show-geo {
        grid-template-columns: repeat(3, 1fr);
    }

    .comp-show-entries__row {
        grid-template-columns: 3.5rem 1fr auto auto;
        grid-template-areas: "lot name cat status";
        gap: 1rem;
        align-items: center;
    }

    .comp-show-entries__meta {
        display: contents;
    }

    .comp-show-entries__cat {
        grid-area: cat;
        text-align: right;
        white-space: nowrap;
    }

    .comp-show-entries__cat::after {
        content: none;
    }

    .comp-show-entries__status {
        grid-area: status;
        text-align: right;
        white-space: nowrap;
    }
}

@media (max-width: 479px) {
    .comp-show-hero__actions {
        flex-direction: column;
    }

    .comp-show-hero__actions .comp-show-btn,
    .comp-show-toolbar__actions .btn,
    .comp-show-toolbar__actions .comp-show-btn {
        width: 100%;
    }

    .comp-show-toolbar__actions {
        width: 100%;
    }
}

/* ── Tops / Ratings page ─────────────────────────────────────── */

.page-tops .page-header h1::after {
    content: none;
}

.tops-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tops-header__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin: 0 0 0.5rem;
}

.tops-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--black);
    margin: 0 0 0.65rem;
}

.tops-header__lead {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0;
}

.tops-header__back {
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
}

.tops-filters {
    margin-bottom: 2rem;
    padding: 1.25rem 1.35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.tops-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem 1.25rem;
}

.tops-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tops-filters__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
}

.tops-filters__select {
    min-height: 3rem;
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.tops-filters__select:hover,
.tops-filters__select:focus {
    border-color: rgba(200, 16, 46, 0.35);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.tops-filters__reset {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tops-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.tops-empty--compact {
    padding: 2rem 1.25rem;
}

.tops-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
    background: var(--gray-50);
    border-radius: 50%;
}

.tops-empty__title {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--black);
    margin: 0 0 0.4rem;
}

.tops-empty__text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 36ch;
    margin: 0 auto;
    line-height: 1.5;
}

.tops-athlete-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tops-athlete-link:hover,
.tops-athlete-link:focus-visible {
    color: var(--red);
}

a.comp-show-podium__avatar.tops-athlete-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tops-athlete-card-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
    padding: 0.35rem 0.5rem 0.35rem 0;
    margin: -0.35rem 0;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.tops-athlete-card-link:hover,
.tops-athlete-card-link:focus-visible {
    background: rgba(200, 16, 46, 0.05);
    outline: none;
}

.tops-athlete-card-link__chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform 0.15s ease, color 0.15s ease;
}

.tops-athlete-card-link:hover .tops-athlete-card-link__chevron,
.tops-athlete-card-link:focus-visible .tops-athlete-card-link__chevron {
    color: var(--red);
    transform: translateX(2px);
}

.comp-show-tops__card--linked .comp-show-tops__main {
    gap: 1rem;
}

.page-tops .comp-show-tops__name {
    font-size: clamp(1.0625rem, 2.8vw, 1.2rem);
}

.page-tops .comp-show-tops__card {
    padding: 1.2rem 1.25rem;
}

.page-tops .comp-show-tops__lift {
    padding: 0.7rem 0.55rem;
}

.page-tops .comp-show-tops__lift dd {
    font-size: clamp(1rem, 2.4vw, 1.125rem);
}

/* Athlete profile */

.tops-athlete-hero {
    margin-bottom: 2rem;
}

.tops-athlete-hero__back {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tops-athlete-hero__back:hover,
.tops-athlete-hero__back:focus-visible {
    color: var(--red);
}

.tops-athlete-hero__main {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tops-athlete-hero__avatar {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tops-athlete-hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin: 0 0 0.35rem;
}

.tops-athlete-hero__name {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.5vw, 2.35rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--black);
    margin: 0 0 1rem;
}

.tops-athlete-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.tops-athlete-hero__meta div {
    margin: 0;
}

.tops-athlete-hero__meta dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.15rem;
}

.tops-athlete-hero__meta dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.tops-athlete-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.tops-athlete-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 5.5rem;
    padding: 1rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.tops-athlete-stat__value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 900;
    line-height: 1;
    color: var(--black);
}

.tops-athlete-stat__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tops-athlete-stat--gold .tops-athlete-stat__value { color: #b8860b; }
.tops-athlete-stat--silver .tops-athlete-stat__value { color: #6b7280; }
.tops-athlete-stat--bronze .tops-athlete-stat__value { color: #a0522d; }

.tops-athlete-stat--highlight {
    background: linear-gradient(135deg, var(--red-50) 0%, var(--white) 100%);
    border-color: rgba(200, 16, 46, 0.15);
}

.tops-athlete-stat--highlight .tops-athlete-stat__value {
    color: var(--red);
}

.tops-athlete-career__title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--black);
}

.tops-career-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tops-career-card {
    padding: 1.2rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-left-color: var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.tops-career-card--gold { border-left-color: #ffd700; }
.tops-career-card--silver { border-left-color: #c0c0c0; }
.tops-career-card--bronze { border-left-color: #cd7f32; }

.tops-career-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.tops-career-card__competition {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    transition: color 0.15s ease;
}

a.tops-career-card__competition:hover,
a.tops-career-card__competition:focus-visible {
    color: var(--red);
}

.tops-career-card__date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tops-career-card__place-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.tops-career-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0 0 0.85rem;
}

.tops-career-card__meta div {
    margin: 0;
}

.tops-career-card__meta dt {
    display: inline;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin-right: 0.35rem;
}

.tops-career-card__meta dd {
    display: inline;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
}

.tops-career-card__lifts {
    margin-bottom: 0.85rem;
}

.tops-career-card__score {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.tops-career-card__total {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--red);
}

.tops-career-card__wilks {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 639px) {
    .tops-athlete-hero__main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tops-athlete-hero__meta {
        justify-content: center;
    }

    .tops-athlete-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tops-career-card__head {
        flex-direction: column;
    }
}

/* ── Standards page ──────────────────────────────────────────── */

.page-standards .page-header h1::after {
    content: none;
}

.std-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.std-header__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin: 0 0 0.5rem;
}

.std-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--black);
    margin: 0 0 0.65rem;
}

.std-header__lead {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 58ch;
    margin: 0;
}

.std-header__back {
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    white-space: nowrap;
}

.std-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.std-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.35rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.std-tabs__btn {
    min-height: 3rem;
    padding: 0.75rem 0.85rem;
    border: 2px solid transparent;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.std-tabs__btn:hover {
    color: var(--black);
    background: rgba(255, 255, 255, 0.6);
}

.std-tabs__btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.std-tabs__btn.is-active {
    background: var(--white);
    color: var(--red);
    border-color: rgba(200, 16, 46, 0.15);
    box-shadow: var(--shadow-xs);
}

.std-gender {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.35rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.std-gender__btn {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.std-gender__btn:hover {
    color: var(--black);
    background: rgba(255, 255, 255, 0.6);
}

.std-gender__btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.std-gender__btn.is-active {
    background: var(--white);
    color: var(--red);
    border-color: rgba(200, 16, 46, 0.15);
    box-shadow: var(--shadow-xs);
}

.std-legend {
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.1rem;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.std-legend__toggle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    cursor: pointer;
    list-style: none;
    user-select: none;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.std-legend__toggle::-webkit-details-marker {
    display: none;
}

.std-legend__toggle::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    color: var(--red);
}

.std-legend[open] .std-legend__toggle::before {
    transform: rotate(90deg);
}

.std-legend__list {
    margin: 0.75rem 0 0;
    padding: 0 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.std-legend__list abbr {
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

.std-panel {
    animation: std-fade-in 0.25s ease;
}

@keyframes std-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.std-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    font-weight: 800;
    color: var(--black);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.std-section__note {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1.15rem;
}

.std-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    margin-bottom: 0.5rem;
}

.std-table-wrap:focus {
    outline: none;
    box-shadow: var(--shadow-xs), var(--ring);
}

.std-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-variant-numeric: tabular-nums;
}

.std-table th,
.std-table td {
    padding: 1rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.std-table th:first-child,
.std-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--white);
    box-shadow: 2px 0 6px rgba(15, 15, 20, 0.04);
    font-weight: 700;
    min-width: 5.5rem;
}

.std-table thead th {
    background: var(--gray-50);
    color: var(--gray-600);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gray-200);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.std-table thead th:first-child {
    background: var(--gray-50);
    z-index: 3;
}

.std-table thead th abbr {
    text-decoration: none;
    cursor: help;
}

.std-table tbody tr {
    transition: background 0.15s ease;
}

.std-table tbody tr:hover {
    background: var(--red-50);
}

.std-table tbody tr:hover td:first-child {
    background: var(--red-50);
}

.std-table tbody tr:last-child td {
    border-bottom: none;
}

.std-table td:not(:first-child) {
    font-weight: 600;
    color: var(--gray-800);
}

.std-table td:not(:first-child)::after {
    content: ' кг';
    font-weight: 400;
    font-size: 0.85em;
    color: var(--text-muted);
}

.std-table-hint {
    display: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
    .std-toolbar {
        padding: 1rem;
    }

    .std-tabs {
        grid-template-columns: 1fr;
    }

    .std-tabs__btn {
        min-height: 3.25rem;
        font-size: 1.05rem;
    }

    .std-gender__btn {
        min-height: 3.25rem;
        font-size: 1.05rem;
    }

    .std-table th,
    .std-table td {
        padding: 1.05rem 1rem;
    }

    .std-table-hint {
        display: block;
    }
}

@media (min-width: 640px) {
    .std-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .std-tabs {
        flex: 1;
        max-width: 32rem;
    }

    .std-gender {
        flex-shrink: 0;
        width: 16rem;
    }
}

/* ============ MOBILE APP BOTTOM NAV ============ */
.mobile-app-nav {
    display: none;
}

body.has-mobile-nav {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .mobile-app-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        align-items: stretch;
        justify-content: space-around;
        gap: 0.15rem;
        padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom));
        background: rgba(13, 13, 13, 0.94);
        backdrop-filter: blur(20px) saturate(1.5);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
    }

    .mobile-app-nav__item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-width: 0;
        padding: 0.35rem 0.15rem;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.5);
        border-radius: var(--radius-md);
        transition:
            color 0.2s ease,
            background 0.2s ease,
            transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-app-nav__item:active {
        transform: scale(0.95);
    }

    .mobile-app-nav__item.is-active {
        color: var(--white);
    }

    .mobile-app-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: var(--transition);
    }

    .mobile-app-nav__item.is-active .mobile-app-nav__icon {
        background: rgba(200, 16, 46, 0.22);
        border-color: rgba(200, 16, 46, 0.35);
        box-shadow: 0 0 16px rgba(200, 16, 46, 0.2);
    }

    .mobile-app-nav__icon svg {
        width: 1.1rem;
        height: 1.1rem;
        fill: currentColor;
    }

    .mobile-app-nav__item.is-active .mobile-app-nav__icon svg {
        fill: #ff6b7f;
    }

    .mobile-app-nav__label {
        font-family: var(--font-heading);
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    body.has-mobile-nav .site-footer .footer-links {
        display: none;
    }

    body.has-mobile-nav .site-footer .footer-inner {
        padding-bottom: 1rem;
    }
}

/* ============ APPLICATIONS (inbox) ============ */

.page-applications .page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.55;
    max-width: 46ch;
}

.page-applications .page-subtitle strong {
    color: var(--text);
    font-weight: 700;
}

.page-applications .page-header h1::after {
    content: '';
    display: block;
    width: 3rem;
    height: 4px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.app-index-header {
    align-items: center;
}

.app-index-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0 0.85rem;
    border-radius: var(--radius-lg);
    background: var(--red-light);
    color: var(--red);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* Filter pills */
.app-filter {
    margin-bottom: 1.5rem;
}

.app-filter__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-filter__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--gray-700);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.app-filter__pill:hover {
    border-color: rgba(200, 16, 46, 0.25);
    color: var(--red);
    background: var(--red-50);
}

.app-filter__pill--active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.app-filter__pill--active:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.app-filter__pill:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* Status badges */
.app-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-status--lg {
    min-height: 3rem;
    padding: 0.6rem 1.15rem;
    font-size: clamp(0.875rem, 2.2vw, 0.95rem);
}

.app-status--pending {
    background: #fffbeb;
    color: #b45309;
    border: 1.5px solid #fde68a;
}

.app-status--approved {
    background: #f0fdf4;
    color: #15803d;
    border: 1.5px solid #bbf7d0;
}

.app-status--rejected {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
}

/* Index cards */
.app-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-index-card {
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--card-delay, 0s);
}

.app-index-card__inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--gray-300);
    transition: var(--transition);
}

.app-index-card--pending .app-index-card__inner { border-left-color: #f59e0b; }
.app-index-card--approved .app-index-card__inner { border-left-color: #16a34a; }
.app-index-card--rejected .app-index-card__inner { border-left-color: #dc2626; }

.app-index-card__inner:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.15);
}

.app-index-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.app-index-card__name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.app-index-card__name a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.app-index-card__name a:hover {
    color: var(--red);
}

.app-index-card__date {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    color: var(--text-muted);
    font-weight: 500;
}

.app-index-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.app-index-meta__item {
    margin: 0;
    min-width: 0;
}

.app-index-meta__item dt {
    font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.app-index-meta__item dd {
    margin: 0;
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.app-index-meta__item dd a {
    color: inherit;
    text-decoration: none;
}

.app-index-meta__item dd a:hover {
    color: var(--red);
    text-decoration: underline;
}

.app-index-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
}

.app-index-card__delete-form {
    margin: 0;
}

.app-index-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--white);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-xl);
}

.app-index-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
}

.app-index-empty__title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.app-index-empty__text {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    color: var(--text-muted);
    max-width: 36ch;
    margin: 0 auto;
    line-height: 1.55;
}

.app-index-pagination {
    margin-top: 1.75rem;
}

.app-index-pagination .pagination li a {
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

/* Shared application buttons */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.app-btn--block {
    width: 100%;
}

.app-btn--primary {
    flex: 1;
    min-width: 10rem;
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.app-btn--primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.app-btn--success {
    background: #16a34a;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.app-btn--success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.app-btn--danger {
    background: #dc2626;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.app-btn--danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.app-btn--ghost-danger {
    background: transparent;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
    min-height: 3rem;
}

.app-btn--ghost-danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.app-btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* Show page */
.app-show-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 3rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.85rem 0.5rem 0.35rem;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.app-show-back:hover {
    color: var(--red);
    background: var(--red-50);
}

.app-show-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1rem 1.15rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.app-show-hero__avatar {
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red-light), #fff);
    border: 2px solid rgba(200, 16, 46, 0.15);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--red);
}

.app-show-hero__id {
    margin: 0 0 0.2rem;
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.app-show-hero__name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 4.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--black);
}

.app-show-hero__sub {
    margin: 0.4rem 0 0;
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    color: var(--text-muted);
    font-weight: 500;
}

.app-show-hero .app-status {
    grid-column: 1 / -1;
    justify-self: start;
}

.app-show-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-show-section {
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.app-show-section__title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--black);
}

.app-show-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.app-show-dl__row {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

.app-show-dl__row--wide {
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.app-show-dl__row dt {
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.app-show-dl__row dd {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

.app-show-dl__row dd a {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

.app-show-dl__row dd a:hover {
    text-decoration: underline;
}

.app-show-dl__muted {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-muted);
}

.app-show-reject-reason {
    padding: 0.85rem 1rem;
    background: #fef2f2;
    border-radius: var(--radius-md);
    border-left: 3px solid #dc2626;
}

.app-link-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.45rem 0;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}

.app-link-action:hover {
    text-decoration: underline;
}

.app-show-actions {
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.app-show-actions__title {
    margin: 0 0 1.15rem;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 800;
    color: var(--black);
}

.app-show-actions__alert {
    margin-bottom: 0;
}

.app-show-actions__approve {
    margin-bottom: 1.25rem;
}

.app-show-actions__reject {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.app-form-field {
    margin-bottom: 1rem;
}

.app-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 700;
    color: var(--text);
}

.app-form-optional {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.app-form-field textarea {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.0625rem);
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition);
}

.app-form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: var(--ring);
}

.app-show-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

@media (min-width: 640px) {
    .app-index-card__actions {
        flex-wrap: nowrap;
    }

    .app-show-hero {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto;
        align-items: center;
    }

    .app-show-hero__avatar {
        grid-row: auto;
    }

    .app-show-hero .app-status {
        grid-column: auto;
        justify-self: end;
    }

    .app-show-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-show-grid .app-show-section:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .app-index-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .app-index-meta {
        grid-template-columns: 1fr;
    }

    .app-index-card__actions {
        flex-direction: column;
    }

    .app-btn--primary {
        width: 100%;
    }

    .app-show-dl__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ============ ATTEMPTS INDEX ============ */

.page-attempts .page-header h1::after {
    content: '';
    display: block;
    width: 3rem;
    height: 4px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.page-attempts .page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.55;
    max-width: 50ch;
}

.page-attempts .page-subtitle strong {
    color: var(--text);
    font-weight: 700;
}

.att-eyebrow {
    margin: 0 0 0.35rem;
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}

.att-header {
    align-items: center;
}

.att-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0 0.85rem;
    border-radius: var(--radius-lg);
    background: var(--red-light);
    color: var(--red);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.att-toolbar {
    margin-bottom: 1.5rem;
}

.att-toolbar__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.att-toolbar__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--gray-700);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.att-toolbar__pill svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.att-toolbar__pill:hover {
    border-color: rgba(200, 16, 46, 0.25);
    color: var(--red);
    background: var(--red-50);
}

.att-toolbar__pill--featured {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.att-toolbar__pill--featured svg {
    opacity: 1;
}

.att-toolbar__pill--featured:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.att-toolbar__pill:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.att-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.att-card {
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--card-delay, 0s);
}

.att-card__inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--gray-300);
    transition: var(--transition);
}

.att-card--locked .att-card__inner {
    border-left-color: #94a3b8;
    opacity: 0.92;
}

.att-card__inner:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.15);
}

.att-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.att-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.att-card__lot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 800;
    flex-shrink: 0;
}

.att-card__name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--black);
}

.att-card__meta {
    margin: 0.35rem 0 0;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.att-card__meta-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.att-card__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.att-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 800;
    white-space: nowrap;
}

.att-place--top1 {
    background: linear-gradient(135deg, #fff8e1, #ffe082);
    color: #8b6914;
    border: 1.5px solid rgba(184, 134, 11, 0.35);
}

.att-place--top2 {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #475569;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
}

.att-place--top3 {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    color: #9a3412;
    border: 1.5px solid rgba(205, 127, 50, 0.35);
}

.att-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.att-status--locked {
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.att-lifts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.att-lift {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    border: 1px solid var(--border);
    min-height: 4.5rem;
}

.att-lift__label {
    font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.att-lift__value {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    line-height: 1.1;
}

.att-lift--total {
    grid-column: 1 / -1;
    background: var(--red-light);
    border-color: rgba(200, 16, 46, 0.2);
}

.att-lift--total .att-lift__label {
    color: var(--red);
}

.att-lift--total .att-lift__value {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--red);
}

.att-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
}

.att-card__actions--muted {
    justify-content: center;
}

.att-card__form {
    margin: 0;
}

.att-card__locked-note {
    font-size: clamp(0.9375rem, 2.2vw, 1rem);
    color: var(--text-muted);
    font-weight: 600;
}

.att-btn--outline {
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--border-dark);
    box-shadow: none;
}

.att-btn--outline:hover {
    border-color: rgba(200, 16, 46, 0.3);
    color: var(--red);
    background: var(--red-50);
    transform: translateY(-1px);
}

.att-btn--outline.att-btn--success {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.att-btn--outline.att-btn--success:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.att-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--white);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-xl);
}

.att-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-muted);
}

.att-empty__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 800;
    color: var(--black);
}

.att-empty__text {
    margin: 0;
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    color: var(--text-muted);
    max-width: 36ch;
    margin-inline: auto;
    line-height: 1.55;
}

.att-back-wrap {
    margin: 1.75rem 0 0;
}

.att-back {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.65rem 0;
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1.05rem);
    font-weight: 700;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.att-back:hover {
    color: var(--red);
}

.att-back:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
    .att-lifts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .att-lift--total {
        grid-column: auto;
    }

    .att-card__actions {
        flex-wrap: nowrap;
    }

    .att-card__actions .app-btn--primary {
        flex: 1;
        min-width: 10rem;
    }
}

@media (max-width: 520px) {
    .att-card__actions {
        flex-direction: column;
    }

    .att-card__actions .app-btn {
        width: 100%;
    }

    .att-toolbar__pill {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
}

/* —— Attempts edit (input form) —— */

.page-attempts-edit .page-header h1::after,
.page-attempts-edit .att-edit-hero__name::after {
    display: none;
}

.page-attempts-edit .container {
    max-width: 920px;
}

/* Hero */
.att-edit-hero {
    position: relative;
    margin-bottom: 1.5rem;
    padding: clamp(1.35rem, 4vw, 2rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, var(--black) 0%, #1a0508 55%, #2a0810 100%);
    border: 1px solid rgba(200, 16, 46, 0.22);
    border-left: 5px solid var(--red);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--white);
}

.att-edit-hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(200, 16, 46, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(200, 16, 46, 0.08), transparent 50%);
}

.att-edit-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.att-edit-hero__profile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.att-edit-hero__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.5rem, 10vw, 4.25rem);
    height: clamp(3.5rem, 10vw, 4.25rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.35), rgba(200, 16, 46, 0.12));
    border: 2px solid rgba(255, 180, 190, 0.35);
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fecdd3;
    flex-shrink: 0;
}

.att-edit-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-family: var(--font-heading);
    font-size: clamp(0.72rem, 1.8vw, 0.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 180, 190, 0.9);
}

.att-edit-hero__name {
    margin: 0 0 0.85rem;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--white);
}

.att-edit-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.att-edit-hero__chips li {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: clamp(0.78rem, 2vw, 0.875rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.3;
}

.att-edit-hero__chip--lot {
    background: rgba(200, 16, 46, 0.28);
    border-color: rgba(200, 16, 46, 0.45);
    color: #fecdd3;
    font-weight: 800;
}

.att-edit-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.att-edit-hero__link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.att-edit-hero__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Scoreboard summary */
.att-edit-scoreboard {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.att-edit-scoreboard__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.att-edit-scoreboard__label {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.att-edit-scoreboard__place {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--red-light);
    color: var(--red);
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 800;
}

.att-edit-scoreboard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.att-edit-scoreboard__lift,
.att-edit-scoreboard__total {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    border: 1px solid var(--border);
}

.att-edit-scoreboard__total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--red-light), #fff5f7);
    border-color: rgba(200, 16, 46, 0.2);
}

.att-edit-scoreboard__lift-name {
    font-size: clamp(0.72rem, 1.8vw, 0.78rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.att-edit-scoreboard__lift-val {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    line-height: 1.1;
}

.att-edit-scoreboard__total-val {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--red);
    line-height: 1;
}

.att-edit-scoreboard__total-val small {
    font-size: 0.55em;
    font-weight: 700;
    opacity: 0.75;
}

.att-edit-scoreboard__wilks {
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* Form */
.att-edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.att-edit-lift {
    padding: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--lift-delay, 0s);
}

.att-edit-lift__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: var(--gray-50);
}

.att-edit-lift--squat .att-edit-lift__head {
    background: linear-gradient(90deg, #f0f4ff 0%, var(--gray-50) 100%);
    border-bottom-color: #c7d2fe;
}

.att-edit-lift--bench .att-edit-lift__head {
    background: linear-gradient(90deg, var(--red-50) 0%, var(--gray-50) 100%);
    border-bottom-color: rgba(200, 16, 46, 0.15);
}

.att-edit-lift--deadlift .att-edit-lift__head {
    background: linear-gradient(90deg, #fff7ed 0%, var(--gray-50) 100%);
    border-bottom-color: #fed7aa;
}

.att-edit-lift__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.att-edit-lift--squat .att-edit-lift__icon { color: #4338ca; border-color: #c7d2fe; }
.att-edit-lift--bench .att-edit-lift__icon { color: var(--red); border-color: rgba(200, 16, 46, 0.25); }
.att-edit-lift--deadlift .att-edit-lift__icon { color: #c2410c; border-color: #fed7aa; }

.att-edit-lift__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
}

.att-edit-lift__grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.15rem 1.25rem;
}

.att-edit-lift__columns {
    display: none;
}

.att-edit-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 1fr;
    grid-template-areas:
        "num weight weight"
        "num result quick";
    gap: 0.6rem;
    align-items: end;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.att-edit-row:hover {
    box-shadow: var(--shadow-xs);
}

.att-edit-row--good {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #86efac;
}

.att-edit-row--no_lift {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border-color: #fca5a5;
}

.att-edit-row--withdrawn {
    background: linear-gradient(135deg, #fffbeb, #fefce8);
    border-color: #fcd34d;
}

.att-edit-row__num {
    grid-area: num;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-dark);
    font-family: var(--font-heading);
    font-size: clamp(0.9375rem, 2.2vw, 1rem);
    font-weight: 800;
    color: var(--gray-600);
    align-self: center;
}

.att-edit-row--good .att-edit-row__num {
    background: #16a34a;
    border-color: #15803d;
    color: var(--white);
}

.att-edit-row--no_lift .att-edit-row__num {
    background: #dc2626;
    border-color: #b91c1c;
    color: var(--white);
}

.att-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.att-edit-field--weight { grid-area: weight; }
.att-edit-field--result { grid-area: result; }
.att-edit-field--quick { grid-area: quick; }

.att-edit-field__label {
    font-size: clamp(0.7rem, 1.7vw, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.att-edit-weight-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.att-edit-weight-wrap__unit {
    position: absolute;
    right: 0.85rem;
    font-family: var(--font-heading);
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.att-edit-input,
.att-edit-select {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: clamp(1.0625rem, 2.8vw, 1.2rem);
    font-weight: 700;
    color: var(--black);
    background: var(--white);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.att-edit-input {
    padding-right: 2.5rem;
}

.att-edit-input:focus,
.att-edit-select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: var(--ring);
}

.att-edit-input::placeholder {
    color: var(--gray-300);
    font-weight: 600;
}

.att-edit-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

.att-edit-select--good {
    color: #15803d;
    border-color: #86efac;
    background-color: #f0fdf4;
}

.att-edit-select--no_lift {
    color: #b91c1c;
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.att-edit-select--withdrawn {
    color: #b45309;
    border-color: #fcd34d;
    background-color: #fffbeb;
}

.att-edit-quick {
    display: flex;
    gap: 0.45rem;
}

.att-edit-quick__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition-bounce);
    -webkit-tap-highlight-color: transparent;
}

.att-edit-quick__btn--good {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}

.att-edit-quick__btn--good:hover {
    background: var(--red-dark);
    transform: scale(1.04);
}

.att-edit-quick__btn--good:active {
    transform: scale(0.96);
}

.att-edit-quick__btn--fail {
    background: var(--white);
    color: var(--red);
    border-color: rgba(200, 16, 46, 0.35);
}

.att-edit-quick__btn--fail:hover {
    background: var(--red-50);
    border-color: var(--red);
    transform: scale(1.04);
}

.att-edit-quick__btn--fail:active {
    transform: scale(0.96);
}

.att-edit-quick__btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* Sticky save */
.att-edit-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 0.25rem;
    padding: 0.85rem 0;
    background: linear-gradient(to top, var(--bg) 75%, transparent);
}

.att-edit-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.35rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border-radius: var(--radius-lg);
}

.att-edit-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.att-edit-footer__form {
    margin: 0;
}

@media (min-width: 640px) {
    .att-edit-scoreboard__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .att-edit-scoreboard__total {
        grid-column: auto;
    }

    .att-edit-lift__columns {
        display: grid;
        grid-template-columns: 2.5rem 1fr 1.25fr 7rem;
        gap: 0.75rem;
        padding: 0 0.85rem 0.15rem;
        font-size: clamp(0.7rem, 1.7vw, 0.75rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-muted);
    }

    .att-edit-row {
        grid-template-columns: 2.5rem 1fr 1.25fr 7rem;
        grid-template-areas: "num weight result quick";
        align-items: center;
        padding: 0.6rem 0.85rem;
    }

    .att-edit-field__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .att-edit-field {
        position: relative;
    }

    .att-edit-quick__btn {
        flex: 0 0 2.85rem;
        min-width: 2.85rem;
    }

    .att-edit-submit {
        width: auto;
        min-width: 18rem;
    }

    .att-edit-sticky {
        display: flex;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .att-edit-hero__inner {
        flex-direction: column;
    }

    .att-edit-hero__link {
        width: 100%;
    }

    .att-edit-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .att-edit-footer .app-btn--danger {
        width: 100%;
    }
}

