:root {
    --svf-navy: #082B5F;
    --svf-blue: #0757a8;
    --svf-royal: #0D6EFD;
    --svf-sky: #EAF4FF;
    --svf-light: #F8FAFC;
    --svf-blue-dark: #043d78;
    --svf-blue-soft: #eaf4ff;
    --svf-white: #ffffff;
    --svf-border: #E5E7EB;
    --svf-success: #198754;
    --svf-warning: #FFC107;
    --svf-danger: #DC3545;
    --svf-accent: #F97316;
    --svf-text: #1f2937;
    --svf-muted: #6b7280;
    --svf-bg: #F8FAFC;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--svf-text);
    background:
        radial-gradient(circle at 8% 12%, rgba(13, 110, 253, 0.08) 0 70px, transparent 72px),
        radial-gradient(circle at 92% 20%, rgba(8, 43, 95, 0.06) 0 110px, transparent 112px),
        var(--svf-bg);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.landing-page {
    color: var(--svf-white);
    background: var(--svf-navy);
}

.hero {
    width: 100%;
    min-height: 100vh;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.landing-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 24%, rgba(13, 110, 253, 0.3), transparent 28%),
        linear-gradient(130deg, #061d42 0%, var(--svf-navy) 52%, #0757a8 100%);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px),
        radial-gradient(ellipse at 82% 48%, transparent 0 98px, rgba(255, 255, 255, 0.09) 100px 102px, transparent 104px);
    background-size: 38px 38px, 100% 100%;
    pointer-events: none;
}

.landing-panel {
    position: relative;
    z-index: 1;
    padding: 0 22px;
}

.landing-stage {
    width: min(940px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 640px) 180px;
    align-items: center;
    justify-content: center;
    gap: 58px;
}

.landing-content {
    min-width: 0;
    animation: heroRise 0.7s ease both;
}

.landing-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    padding: 6px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--svf-white);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.landing-kicker {
    margin: 0 0 10px;
    color: #8ed5ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.landing-content h1 {
    margin: 0 0 10px;
    color: var(--svf-white);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.landing-content h2 {
    margin: 0 0 18px;
    color: #b9dcff;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.35;
}

.landing-description {
    max-width: 570px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.6;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.landing-primary {
    color: var(--svf-white);
    background: var(--svf-royal);
    border-color: var(--svf-royal);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.landing-primary:hover {
    color: var(--svf-white);
    background: #297dfd;
    border-color: #297dfd;
}

.landing-secondary {
    color: var(--svf-white);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.54);
}

.landing-secondary:hover {
    color: var(--svf-white);
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--svf-white);
}

.landing-ball-stage {
    position: relative;
    width: 100%;
    height: 236px;
}

.volleyball-scene {
    position: absolute;
    inset: 0;
    width: 180px;
    height: 236px;
    margin: auto;
}

.volleyball {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 144px;
    height: 144px;
    transform: translateX(-50%);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 38px rgba(1, 19, 46, 0.28);
    animation: ballFloat 4.6s ease-in-out infinite;
}

.ball-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    animation: ballSwap 9.2s ease-in-out infinite;
}

.ball-bv550c {
    animation-delay: -4.6s;
}

.volleyball-shadow {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 102px;
    height: 16px;
    border-radius: 50%;
    background: rgba(1, 20, 48, 0.36);
    filter: blur(7px);
    margin-left: -51px;
    animation: ballShadow 4.6s ease-in-out infinite;
}

.login-page,
.verify-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.2) 0 80px, transparent 82px),
        radial-gradient(circle at 78% 72%, rgba(249, 115, 22, 0.16) 0 72px, transparent 74px),
        linear-gradient(135deg, var(--svf-navy), var(--svf-royal));
}

.login-page::before,
.login-page::after,
.verify-page::before,
.verify-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before,
.verify-page::before {
    width: 520px;
    height: 520px;
    left: -160px;
    top: -120px;
    background:
        repeating-radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px 22px),
        radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
    animation: floatPattern 14s ease-in-out infinite alternate;
}

.login-page::after,
.verify-page::after {
    width: 360px;
    height: 360px;
    right: -90px;
    bottom: -80px;
    border: 26px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
    animation: driftBall 18s linear infinite;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background: var(--svf-white);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(4, 28, 65, 0.28);
    position: relative;
    z-index: 1;
    animation: cardEnter 0.65s ease both;
}

.login-logo,
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--svf-white);
    background: var(--svf-blue);
    font-weight: 700;
}

.login-logo-img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    font-size: 1.4rem;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    flex: 0 0 270px;
    background: linear-gradient(180deg, var(--svf-navy), #061d42);
    color: var(--svf-white);
    padding: 22px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    background: var(--svf-white);
    color: var(--svf-blue-dark);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
    background: var(--svf-white);
    border-radius: 8px;
    padding: 4px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--svf-white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 3px 0 0 var(--svf-accent);
}

.sidebar-nav .logout-link {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.main-content {
    width: 100%;
    padding: 30px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.page-title-with-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title-with-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.eyebrow {
    color: var(--svf-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-summary {
    display: grid;
    justify-items: end;
    padding: 10px 14px;
    background: var(--svf-white);
    border: 1px solid var(--svf-border);
    border-radius: 8px;
}

.user-summary span {
    font-weight: 700;
}

.user-summary small {
    color: var(--svf-muted);
}

.welcome-panel,
.dashboard-card,
.content-panel {
    background: var(--svf-white);
    border: 1px solid var(--svf-border);
    border-radius: 8px;
}

.welcome-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    min-height: 140px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 14px 34px rgba(8, 43, 95, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(8, 43, 95, 0.12);
}

.dashboard-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 90px;
    height: 90px;
    border: 10px solid rgba(13, 110, 253, 0.08);
    border-radius: 50%;
}

.dashboard-card span {
    color: var(--svf-muted);
    font-weight: 700;
}

.dashboard-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-card-top i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 1.35rem;
}

.dashboard-card strong {
    color: var(--svf-blue);
    font-size: 2.35rem;
    line-height: 1;
}

.dashboard-card.card-blue .dashboard-card-top i { background: #0D6EFD; }
.dashboard-card.card-sky .dashboard-card-top i { background: #0EA5E9; }
.dashboard-card.card-green .dashboard-card-top i { background: #198754; }
.dashboard-card.card-orange .dashboard-card-top i { background: #F97316; }
.dashboard-card.card-yellow .dashboard-card-top i { background: #D97706; }
.dashboard-card.card-indigo .dashboard-card-top i { background: #4F46E5; }
.dashboard-card.card-red .dashboard-card-top i { background: #DC3545; }

.dashboard-card.card-blue strong { color: #0D6EFD; }
.dashboard-card.card-sky strong { color: #0284C7; }
.dashboard-card.card-green strong { color: #198754; }
.dashboard-card.card-orange strong { color: #EA580C; }
.dashboard-card.card-yellow strong { color: #B45309; }
.dashboard-card.card-indigo strong { color: #4F46E5; }
.dashboard-card.card-red strong { color: #DC3545; }

.content-panel {
    padding: 24px;
    box-shadow: 0 12px 30px rgba(8, 43, 95, 0.05);
}

.form-steps {
    gap: 8px;
}

.form-steps .nav-link {
    border: 1px solid var(--svf-border);
    color: var(--svf-blue-dark);
}

.form-steps .nav-link.active {
    background: var(--svf-blue);
    border-color: var(--svf-blue);
}

.document-upload-grid {
    display: grid;
    gap: 12px;
}

.document-upload-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--svf-border);
}

.club-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.club-logo-preview {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border: 1px solid var(--svf-border);
    border-radius: 8px;
    background: var(--svf-blue-soft);
    padding: 8px;
}

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

.detail-label {
    display: block;
    color: var(--svf-muted);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.review-note {
    padding: 14px;
    border-radius: 8px;
    background: var(--svf-blue-soft);
    border: 1px solid var(--svf-border);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.certificate-owner-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--svf-border);
    border-radius: 8px;
    background: var(--svf-blue-soft);
}

.certificate-preview {
    width: 100%;
    min-height: 720px;
    border: 1px solid var(--svf-border);
    border-radius: 8px;
    background: var(--svf-white);
}

.verify-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.verify-card {
    width: 100%;
    max-width: 780px;
    padding: 32px;
    background: var(--svf-white);
    border: 1px solid var(--svf-border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(4, 61, 120, 0.12);
}

.verification-result {
    padding: 18px;
    border: 1px solid var(--svf-border);
    border-radius: 8px;
    background: #fbfdff;
}

.btn-primary {
    --bs-btn-bg: var(--svf-royal);
    --bs-btn-border-color: var(--svf-royal);
    --bs-btn-hover-bg: var(--svf-navy);
    --bs-btn-hover-border-color: var(--svf-navy);
}

.btn-warning {
    --bs-btn-bg: var(--svf-accent);
    --bs-btn-border-color: var(--svf-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #dc5f0b;
    --bs-btn-hover-border-color: #dc5f0b;
    --bs-btn-hover-color: #fff;
}

.svf-table thead th,
.table thead th {
    color: var(--svf-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    border-bottom-color: var(--svf-border);
}

.avatar-sm {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--svf-border);
    background: var(--svf-sky);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-photo-lg {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--svf-border);
    background: var(--svf-sky);
}

@keyframes floatPattern {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    to {
        transform: translate3d(34px, 28px, 0) rotate(8deg);
    }
}

@keyframes driftBall {
    from {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
    to {
        transform: rotate(360deg) translate3d(-16px, -10px, 0);
    }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ballFloat {
    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(34px) rotate(62deg);
    }
}

@keyframes ballSwap {
    0%,
    42% {
        opacity: 1;
    }
    50%,
    92% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes ballShadow {
    0%,
    100% {
        opacity: 0.36;
        transform: scaleX(0.7);
    }
    50% {
        opacity: 0.72;
        transform: scaleX(1);
    }
}

@media (max-width: 900px) {
    .landing-hero {
        min-height: 100svh;
        padding: 20px 18px;
    }

    .landing-panel {
        padding: 0;
    }

    .landing-stage {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }

    .landing-content {
        width: min(100%, 280px);
        margin: 0 auto;
        text-align: center;
    }

    .landing-logo {
        width: 58px;
        height: 58px;
        margin: 0 auto 13px;
        padding: 5px;
    }

    .landing-kicker {
        margin-bottom: 8px;
        font-size: 0.72rem;
    }

    .landing-content h1 {
        margin-bottom: 8px;
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .landing-content h2 {
        margin-bottom: 13px;
        font-size: 1rem;
    }

    .landing-description {
        margin: 0 auto 20px;
        font-size: 0.94rem;
        line-height: 1.48;
    }

    .landing-actions {
        justify-content: center;
    }

    .landing-button {
        min-height: 45px;
        padding: 11px 20px;
    }

    .landing-ball-stage {
        width: 150px;
        height: 140px;
        flex: none;
    }

    .volleyball-scene {
        width: 150px;
        height: 140px;
    }

    .volleyball {
        top: 0;
        width: 120px;
        height: 120px;
    }

    .volleyball-shadow {
        width: 72px;
        height: 12px;
        bottom: 1px;
        margin-left: -36px;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 16px;
    }

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

    .main-content {
        padding: 20px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-summary {
        justify-items: start;
        width: 100%;
    }

    .document-upload-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .club-view-header,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .certificate-preview {
        min-height: 520px;
    }
}
