/* Core CSS Variables and Resets */
:root {
    --bg-dark: #07050f; /* Deep berry/dark violet instead of cold dark metallic */
    --bg-card: rgba(28, 24, 52, 0.78); /* Slightly warmer, lighter, deep purple-tinted card background for high contrast */
    --bg-card-hover: rgba(40, 32, 72, 0.9);
    --primary-neon: #ff4b60; /* Vibrantly warm neon coral/sporty pink-red */
    --secondary-cyan: #9f66ff; /* Rich electric violet */
    --accent-orange: #ff9f1c; /* High-energy athletic amber/orange */
    --text-white: #ffffff;
    --text-gray: #b1b5e5; /* Slightly lighter, more readable text color */
    --border-color: rgba(255, 255, 255, 0.14); /* Clearly visible white line */
    --border-neon: rgba(255, 75, 96, 0.35);
    --border-cyan: rgba(159, 102, 255, 0.35);
    --font-sans: 'Outfit', sans-serif;
    --shadow-neon: 0 0 25px rgba(255, 75, 96, 0.35);
    --shadow-cyan: 0 0 25px rgba(159, 102, 255, 0.35);
}

/* Light Theme Variables Override */
:root.light-theme {
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-card-hover: #e9ecef;
    --primary-neon: #d90429;
    --secondary-cyan: #5f27cd;
    --accent-orange: #d97706;
    --text-white: #000000;
    --text-gray: #495057;
    --border-color: #ced4da;
    --border-neon: #d90429;
    --border-cyan: #5f27cd;
    --shadow-neon: none;
    --shadow-cyan: none;
}

/* Light Theme Component Overrides */
:root.light-theme .header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

:root.light-theme .form-group input,
:root.light-theme .form-group select,
:root.light-theme .form-group textarea,
:root.light-theme .admin-input,
:root.light-theme .admin-select,
:root.light-theme .rec-minteado,
:root.light-theme .rec-observacion {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid var(--border-color) !important;
}

:root.light-theme .year-filter-control select option,
:root.light-theme .premium-select option,
:root.light-theme select option {
    background: #ffffff !important;
    color: #000000 !important;
}

:root.light-theme .form-group input::placeholder,
:root.light-theme .admin-input::placeholder,
:root.light-theme .rec-observacion::placeholder {
    color: #6c757d !important;
}

:root.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

:root.light-theme dialog,
:root.light-theme .reset-dialog,
:root.light-theme #custom-alert-modal > div {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

:root.light-theme dialog h2,
:root.light-theme dialog h3,
:root.light-theme .reset-dialog h2,
:root.light-theme .reset-dialog h3,
:root.light-theme #custom-alert-modal h3 {
    color: #000000 !important;
}

:root.light-theme dialog .dialog-close,
:root.light-theme .reset-dialog .dialog-close {
    color: #495057 !important;
}

:root.light-theme .admin-table th {
    background: #e9ecef;
    color: #000000;
}

:root.light-theme .admin-table td {
    border-bottom-color: #dee2e6;
}

:root.light-theme .admin-table tr:hover td {
    background: #f8f9fa;
}

:root.light-theme .badge-new {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #ced4da !important;
}

:root.light-theme .upcoming-card,
:root.light-theme .benefit-card,
:root.light-theme .club-visual-card {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.75), inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
}

/* Typography Utilities */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.glow-text {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}

.text-neon {
    color: var(--primary-neon);
}

.text-cyan {
    color: var(--secondary-cyan);
}

.text-orange {
    color: var(--accent-orange);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-neon);
    color: #000;
}

.btn-primary:hover {
    background-color: #d8ff33;
    transform: translateY(-2px);
}

.btn-glow:hover {
    box-shadow: var(--shadow-neon);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navigation */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

:root:not(.light-theme) .logo img {
    content: url('logo_dark_theme.png');
}

.logo-img {
    height: 52px;
    display: block;
    transition: height 0.3s ease;
}

.logo-utilities-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.logo span {
    color: var(--primary-neon);
}

.logo-icon {
    color: var(--primary-neon);
    filter: drop-shadow(0 0 5px rgba(204, 255, 0, 0.5));
}

.logo-sub-icons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    margin-left: 0; /* Aligns nicely with the smaller centered logo block */
    font-size: 0.8rem;
    color: var(--text-gray);
}

.logo-sub-icons i {
    transition: color 0.3s;
}

.logo-sub-icons i:hover {
    color: var(--primary-neon);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu .btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: 20px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-white);
}

.flag-catalan {
    display: inline-block;
    width: 1.35rem;
    height: 0.95rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    vertical-align: middle;
    background: linear-gradient(
        to bottom,
        #f5c400 0%,
        #f5c400 16.66%,
        #a51931 16.66%,
        #a51931 33.33%,
        #f5c400 33.33%,
        #f5c400 50%,
        #a51931 50%,
        #a51931 66.66%,
        #f5c400 66.66%,
        #f5c400 83.33%,
        #a51931 83.33%,
        #a51931 100%
    );
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.flag-es {
    display: inline-block;
    width: 1.35rem;
    height: 0.95rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    vertical-align: middle;
    background: linear-gradient(
        to bottom,
        #c60b1e 0%,
        #c60b1e 25%,
        #ffc400 25%,
        #ffc400 75%,
        #c60b1e 75%,
        #c60b1e 100%
    );
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.flag-gb {
    display: inline-block;
    width: 1.35rem;
    height: 0.95rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    vertical-align: middle;
    background: #012169;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 0h60v30H0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23c8102e' stroke-width='2'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}


.hero {
    position: relative;
    padding: 30px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-new {
    display: inline-block;
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-neon);
    border: 1px solid var(--border-neon);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-text-area p {
    color: var(--text-gray);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* Register Card Form */
.register-card {
    max-width: 600px;
    border: 1px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
}

.register-card h3 {
    margin-bottom: 4px;
}

.card-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-with-icon {
    position: relative;
    flex-grow: 1;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.input-with-icon input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 14px 20px 14px 48px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.15);
}

.form-info {
    color: var(--text-gray);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero Badge 3D Visual */
.hero-visual-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-3d-glow {
    position: relative;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.05) 0%, rgba(0, 240, 255, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed var(--border-cyan);
    animation: rotateDashed 20s linear infinite;
}

.floating-medal {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(18, 22, 28, 0.9);
    border: 2px solid var(--secondary-cyan);
    box-shadow: var(--shadow-cyan);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: floatMedal 4s ease-in-out infinite;
}

.medal-icon {
    font-size: 4rem;
    color: var(--secondary-cyan);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.medal-status {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary-cyan);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes rotateDashed {
    100% { transform: rotate(360deg); }
}

@keyframes floatMedal {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(18, 22, 28, 0.5) 100%);
}

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

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    height: 100%;
}

.benefit-card[data-role="runner"] {
    border-top: 3px solid var(--primary-neon);
}

.benefit-card[data-role="organizer"] {
    border-top: 3px solid var(--secondary-cyan);
}

.benefit-card[data-role="company"] {
    border-top: 3px solid var(--accent-orange);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.icon-runner {
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-neon);
}

.icon-organizer {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary-cyan);
}

.icon-company {
    background: rgba(255, 108, 0, 0.1);
    color: var(--accent-orange);
}

.benefit-card h3 {
    margin-bottom: 16px;
}

.benefit-card ul {
    list-style: none;
}

.benefit-card li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.benefit-card li i {
    margin-top: 4px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.contact-card p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
}

.form-group select {
    cursor: pointer;
}

.status-msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
}

.status-msg.success {
    display: block;
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-neon);
    border: 1px solid var(--border-neon);
}

.status-msg.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    color: #ff5555;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Cookies Consent Banner */
.cookies-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 252, 246, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 194, 255, 0.18);
    border-radius: 16px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 18px 45px rgba(10, 28, 44, 0.16);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookies-banner.show {
    bottom: 24px;
}

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

.cookies-content p {
    font-size: 0.9rem;
    color: #425466;
    margin: 0;
    line-height: 1.6;
}

.cookie-icon {
    color: #ff6b5f;
    font-size: 1.2rem;
}

.cookies-content a {
    color: #0088cc;
    font-weight: 700;
    text-decoration: none;
}

.cookies-content a:hover {
    color: #006fa6;
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookies-reject {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(66, 84, 102, 0.16);
    color: #425466;
}

.btn-cookies-reject:hover {
    color: #1f2d3d;
    background: rgba(255, 255, 255, 0.95);
}

.scroll-to-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-neon);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(12, 20, 33, 0.95));
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease;
    z-index: 900;
    pointer-events: none;
}

.scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top-btn:hover {
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.36);
    transform: translateY(-2px);
}

.scroll-to-top-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

.scroll-to-top-btn i {
    font-size: 1.1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--border-cyan);
    box-shadow: var(--shadow-cyan);
}

.tx-modal-content {
    border-color: var(--border-cyan);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.8rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-white);
}

.modal-body-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
}

.modal-body-scroll p {
    margin-bottom: 16px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background: #060709;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-neon);
}

/* =======================================
   DASHBOARD SPECIFIC STYLES
   ======================================= */
.dashboard-body {
    background-color: #060709;
}

.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

:root:not(.light-theme) .dashboard-header {
    background: rgba(6, 7, 9, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-header,
.dashboard-header a,
.dashboard-header span,
.dashboard-header i,
.dashboard-header button {
    color: #212529 !important;
}

:root:not(.light-theme) .dashboard-header,
:root:not(.light-theme) .dashboard-header a,
:root:not(.light-theme) .dashboard-header span,
:root:not(.light-theme) .dashboard-header i,
:root:not(.light-theme) .dashboard-header button {
    color: #ffffff !important;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.btn-logout {
    color: var(--text-gray);
    transition: color 0.3s;
    margin-left: 8px;
}

.btn-logout:hover {
    color: #ff5555;
}

.dashboard-main {
    padding: 40px 0 80px 0;
}

.dashboard-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-intro p {
    color: var(--text-gray);
}

.blockchain-status-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-neon);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* Circular Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.metric-header h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-unit {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.circle-chart-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
}

.circle-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out;
}

.progress-km {
    stroke: var(--primary-neon);
    filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.4));
}

.progress-medals {
    stroke: var(--secondary-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.progress-pace {
    stroke: var(--accent-orange);
    filter: drop-shadow(0 0 6px rgba(255, 108, 0, 0.4));
}

.circle-chart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-chart-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.circle-chart-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.metric-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* Dashboard Details Section */
.dashboard-details {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.dashboard-details.full-width {
    grid-template-columns: 1fr;
}

/* Custom interactive season bar chart styling */
.details-chart {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.color-km {
    background-color: var(--primary-neon);
}

.color-pace {
    background-color: var(--accent-orange);
}

.custom-chart-area {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.custom-chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12%;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
}

.bar-tooltip {
    position: absolute;
    top: -45px;
    background: rgba(10, 11, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.chart-bar-group:hover .bar-tooltip {
    opacity: 1;
}

.chart-double-bars {
    display: flex;
    flex-direction: column-reverse; /* stacked top-to-bottom or vice versa */
    align-items: center;
    gap: 0px;
    width: 100%;
    height: 80%;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.bar-km {
    width: 100%;
    background: var(--primary-neon); /* Coral running color */
    transition: height 1s ease-out;
}

.bar-cycling {
    width: 100%;
    background: var(--secondary-cyan); /* Violet cycling color */
    transition: height 1s ease-out;
}

.bar-pace {
    flex-grow: 1;
    background: var(--accent-orange);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    box-shadow: 0 0 10px rgba(255, 108, 0, 0.2);
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px 0 10px;
}

.chart-x-axis span {
    font-size: 0.8rem;
    color: var(--text-gray);
    width: 12%;
    text-align: center;
}

/* Verified Medals list styling */
.medals-list-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.medal-list-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.medal-list-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 75, 96, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.medal-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.medal-list-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.medal-list-item:hover .medal-list-badge {
    transform: scale(1.08);
}

.medal-text h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 4px 0;
}

.medal-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    gap: 12px;
}

.medal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.medal-stats-badge {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.medal-time {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-white);
    font-family: var(--font-sans);
}

.btn-verify-tx {
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-verify-tx:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

/* Light Theme Overrides */
:root.light-theme .medal-list-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
}

:root.light-theme .medal-list-item:hover {
    background: #ffffff;
    border-color: rgba(95, 39, 205, 0.3);
    box-shadow: 0 10px 25px rgba(95, 39, 205, 0.08);
}

:root.light-theme .medal-text h5 {
    color: #0d0c1a;
}

:root.light-theme .medal-time {
    color: #0d0c1a;
}

:root.light-theme .medal-meta {
    color: #636b8f;
}

/* Tx Info Modal Details */
.tx-details-body {
    margin-top: 20px;
}

.tx-success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tx-check-icon {
    font-size: 3rem;
    color: var(--primary-neon);
}

.tx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.tx-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.tx-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.font-mono {
    font-family: monospace;
}

.success-pill {
    background: rgba(204, 255, 0, 0.15);
    color: var(--primary-neon);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.tx-explanation {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.5;
}

/* =======================================
   RESPONSIVENESS (MOBILE FIRST)
   ======================================= */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .logo-img {
        height: 44px;
    }

    .logo-utilities-group {
        gap: 20px;
    }

    .header-utilities {
        gap: 10px;
        padding-left: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 8px;
        width: 100%;
    }

    .nav-menu .btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-visual-area {
        order: -1;
        margin-bottom: 20px;
    }

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

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

    .dashboard-details {
        grid-template-columns: 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .logo-utilities-group {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .nav-menu {
        gap: 10px;
    }

    .medal-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .medal-info {
        width: 100%;
        gap: 12px;
    }

    .medal-meta {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .medal-stats-badge {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        border-top: 1px solid var(--border-color);
        padding-top: 14px;
        gap: 10px;
    }

    .medal-stats-badge > div {
        justify-content: flex-start !important;
        width: 100%;
    }

    .btn-verify-tx {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }

    .form-group-row {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .cookies-content {
        flex-direction: column;
        text-align: center;
    }

    .cookies-buttons {
        width: 100%;
        justify-content: center;
    }

    .dashboard-main {
        padding: 20px 0 60px 0;
    }

    .dashboard-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* Upcoming Calendar Styles */
.dashboard-upcoming {
    margin-top: 24px;
}

.section-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.upcoming-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.upcoming-card:hover {
    border-color: var(--border-neon);
    background: rgba(204, 255, 0, 0.02);
    transform: translateY(-2px);
}

.upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.upcoming-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.upcoming-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.tag-registered {
    background: rgba(204, 255, 0, 0.15);
    color: var(--primary-neon);
    border: 1px solid var(--border-neon);
}

.tag-open {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.upcoming-info {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.upcoming-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upcoming-action {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.btn-upcoming-action.btn-accent {
    background: var(--primary-neon);
    color: #000;
    border: none;
}

.btn-upcoming-action:hover {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.btn-upcoming-action.btn-accent:hover {
    background: #d8ff33;
    color: #000;
}

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

/* Filter Bar styles */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.btn-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-filter.active {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

.year-filter-control {
    padding-right: 14px;
}

.year-filter-control:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.year-filter-control.active:focus-within {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.year-filter-control select {
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 0 18px 0 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 76px;
}

.year-filter-control select option {
    background: #1c1834;
    color: var(--text-white);
}

/* 42K Marathon Circle Colors */
.progress-marathon {
    stroke: #ff00a0;
    filter: drop-shadow(0 0 6px rgba(255, 0, 160, 0.4));
}

.text-pink {
    color: #ff00a0;
}

/* Language Selector Styles */
.lang-selector select {
    background: rgba(18, 22, 28, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.lang-selector select:focus,
.lang-selector select:hover {
    border-color: var(--primary-neon);
}

.header-right-actions {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.profile-sport-selector-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.sports-filter-widget {
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    display: flex;
    flex-direction: column;
    width: 235px;
}

.sport-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text-gray);
}

.sport-select-row i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.premium-select {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    flex-grow: 1;
    outline: none;
    padding: 4px;
    border-radius: 4px;
}

.premium-select option {
    background: #1c1834;
    color: var(--text-white);
    font-weight: 600;
}

/* About Philosophy Section Styles */
.about-philosophy {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(18, 22, 28, 0.5) 0%, var(--bg-dark) 100%);
}

.about-card {
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid var(--border-cyan);
    box-shadow: var(--shadow-cyan);
}

.about-content-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-salute {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.about-content-body p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-quote-box {
    margin-top: 15px;
    background: rgba(0, 240, 255, 0.05);
    border-left: 4px solid var(--secondary-cyan);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 2.5rem;
    opacity: 0.1;
    pointer-events: none;
}

.quote-text {
    font-style: italic;
    color: var(--text-white) !important;
    font-size: 1.1rem !important;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Dashboard Legacy Section Styles */
.dashboard-legacy {
    margin-top: 24px;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(204, 255, 0, 0.1);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin: 10px 0 20px 0;
    border: 1px dashed var(--border-neon);
}

.form-row-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-3 input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-row-3 input:focus {
    outline: none;
    border-color: var(--primary-neon);
}

@media (max-width: 900px) {
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Hero Form Tabs Styles */
.register-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 12px;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--primary-neon);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-neon);
    box-shadow: var(--shadow-neon);
}

/* Club Management and Modal Styles */
.club-management-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .club-management-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Annual Evolution Graph simulation */
.annual-evolution-card {
    grid-column: span 2;
}
@media (max-width: 900px) {
    .annual-evolution-card {
        grid-column: span 1;
    }
}

.annual-stats-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.chart-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14%;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-container {
    width: 70%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px 8px 0 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.chart-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--primary-neon), var(--secondary-cyan));
    border-radius: 8px 8px 0 0;
    transition: height 1s ease-out;
    position: relative;
}

.chart-bar-val {
    position: absolute;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-neon);
}

.chart-label {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Modal Windows */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 5, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--primary-neon);
}

.modal-title {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 800;
}

/* Edit / Add Form fields */
.legacy-form .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legacy-form label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.legacy-form input, .legacy-form select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
}

.legacy-form input:focus, .legacy-form select:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(255, 75, 96, 0.15);
}

/* Interactive list table changes */
.runner-badge-country {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    margin-left: 8px;
}

.medal-list-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-action-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
}

.btn-edit {
    background: rgba(255, 159, 28, 0.15);
    color: var(--accent-orange);
}
.btn-edit:hover {
    background: var(--accent-orange);
    color: #000;
}

.btn-delete {
    background: rgba(255, 75, 96, 0.1);
    color: var(--primary-neon);
}
.btn-delete:hover {
    background: var(--primary-neon);
    color: #000;
}

/* Club Features Landing Section */
.club-promo-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0c0a1a 0%, #171333 100%) !important;
    position: relative;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.club-promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-neon), transparent);
}

.club-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.club-feature-card {
    text-align: center;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.club-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.club-feature-card:hover::before {
    opacity: 1;
}

.club-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-neon), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =======================================
   SECTIONS VISUAL SEPARATION & FLOW
   ======================================= */

/* General Section Spacing */
section {
    padding: 90px 0;
    position: relative;
}

/* Specific Section Background Transitions and Dividers */
.hero {
    background: radial-gradient(circle at 70% 30%, rgba(159, 102, 255, 0.08) 0%, #07050f 70%);
}

.benefits {
    background: linear-gradient(180deg, #07050f 0%, #15112e 100%) !important;
    border-top: 1px solid rgba(255, 75, 96, 0.15);
    border-bottom: 1px solid rgba(159, 102, 255, 0.15);
}

.about-philosophy {
    padding: 90px 0;
    background: linear-gradient(180deg, #07050f 0%, #0c0a1a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact {
    background: linear-gradient(180deg, #07050f 0%, #0f0b24 100%) !important;
    border-top: 1px solid rgba(255, 75, 96, 0.1);
}

/* Dashboard Sections Visual Distinctions */
.dashboard-main section,
.dashboard-main .filter-bar,
.dashboard-main .dashboard-intro {
    margin-bottom: 45px;
    padding-bottom: 35px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.dashboard-main section:last-of-type,
.dashboard-main .dashboard-upcoming {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Styling of labels/titles for sections inside Dashboards */
.dashboard-main h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 20px;
    font-weight: 800;
}

.dashboard-main h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-cyan));
    border-radius: 2px;
}

/* Card Flip Animations and Blurred Backgrounds */
.nft-medal-card-wrapper {
    perspective: 1200px;
    cursor: pointer;
    min-height: 392px;
    isolation: isolate;
}

.nft-medal-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 392px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.nft-medal-card-wrapper.flipped .nft-medal-card-inner {
    transform: rotateY(180deg);
}

.nft-medal-card-front,
.nft-medal-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    -webkit-font-smoothing: antialiased;
}

.nft-medal-card-front {
    background: linear-gradient(180deg, rgba(9, 11, 23, 0.95) 0%, rgba(17, 20, 34, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform: rotateY(0deg);
}

.nft-medal-card-back {
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.97) 0%, rgba(10, 24, 36, 0.94) 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-color: var(--secondary-cyan);
}

.nft-medal-card-wrapper:hover .nft-medal-card-front,
.nft-medal-card-wrapper:hover .nft-medal-card-back {
    border-color: var(--secondary-cyan);
    box-shadow: var(--shadow-cyan);
}

.nft-medal-card-wrapper.flipped:hover .nft-medal-card-back {
    border-color: var(--primary-neon);
    box-shadow: var(--shadow-neon);
}

.medal-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('app_mockup.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.35);
    opacity: 0.45;
    z-index: 1;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.nft-medal-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 16px;
}

.nft-medal-card-content-back {
    gap: 12px;
}

.nft-medal-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.nft-medal-card-serial {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: right;
}

.nft-medal-card-image-wrap {
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px 6px;
}

.nft-medal-card-image {
    max-width: 100%;
    max-height: 138px;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.32));
}

.nft-medal-card-image-fallback {
    width: 100%;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
}

.nft-medal-card-front-copy {
    margin-top: auto;
}

.nft-medal-card-title,
.nft-medal-card-back-title {
    color: var(--text-white);
    font-weight: 800;
    margin: 0;
}

.nft-medal-card-title {
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nft-medal-card-distance {
    color: var(--text-gray);
    font-size: 0.83rem;
    text-align: center;
    margin: 8px 0 0;
    min-height: 1.1rem;
}

.nft-medal-card-hint {
    margin-top: 14px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.75rem;
}

.nft-medal-card-back-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nft-medal-card-back-title {
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nft-medal-card-stats {
    display: grid;
    gap: 8px;
}

.nft-medal-data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nft-medal-data-label {
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nft-medal-data-value {
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: right;
    word-break: break-word;
}

.nft-medal-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.nft-medal-card-action-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

/* Light Theme Adaptations */
:root.light-theme .nft-medal-card-front {
    background: linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%) !important;
}

:root.light-theme .nft-medal-card-back {
    background: linear-gradient(180deg, #ffffff 0%, #edf3f6 100%) !important;
    border-color: var(--secondary-cyan) !important;
}

:root.light-theme .medal-card-bg {
    filter: blur(5px) brightness(1.2) grayscale(0.2) !important;
    opacity: 0.16 !important;
}

:root.light-theme .nft-medal-card-wrapper:hover .nft-medal-card-front {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

:root.light-theme .nft-medal-data-row {
    background: rgba(8, 16, 28, 0.04);
    border-color: rgba(8, 16, 28, 0.08);
}

@media (max-width: 640px) {
    .nft-medal-card-wrapper,
    .nft-medal-card-inner {
        min-height: 420px;
    }

    .nft-medal-card-content {
        padding: 16px;
    }

    .nft-medal-data-row {
        align-items: flex-start;
    }

    .nft-medal-data-value {
        max-width: 54%;
    }
}

@media (max-width: 480px) {
    .nft-medal-card-wrapper,
    .nft-medal-card-inner {
        min-height: 452px;
    }

    .nft-medal-card-actions {
        grid-template-columns: 1fr;
    }
}

/* Section background gradients adapted to Dark/Light themes */
.promo-registration-section {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(255, 75, 96, 0.03) 100%);
}

:root.light-theme .promo-registration-section {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 75, 96, 0.02) 100%) !important;
}

.promo-dual-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.promo-request-card {
    padding: 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.promo-request-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
}

.promo-request-card--official {
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 18px 45px rgba(0, 240, 255, 0.08);
}

.promo-request-card--unlock {
    border: 1px solid rgba(255, 75, 96, 0.22);
    box-shadow: 0 18px 45px rgba(255, 75, 96, 0.08);
}

.promo-request-card > * {
    position: relative;
    z-index: 1;
}

.promo-request-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 240, 255, 0.12);
    color: var(--secondary-cyan);
    border: 1px solid rgba(0, 240, 255, 0.22);
}

.promo-request-badge i {
    font-size: 1rem;
}

.promo-request-badge--unlock {
    background: rgba(255, 75, 96, 0.12);
    color: var(--primary-neon);
    border-color: rgba(255, 75, 96, 0.22);
}

.promo-request-card h3 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    line-height: 1.15;
    color: var(--text-white);
}

.promo-request-card p {
    margin: 0 0 18px;
    color: var(--text-gray);
    line-height: 1.6;
}

.promo-request-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.promo-request-perks span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-request-perks span::before {
    content: "•";
    color: var(--accent-orange);
    font-size: 1rem;
}

@media (max-width: 980px) {
    .promo-dual-forms {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .promo-request-card {
        padding: 22px;
    }

    .promo-request-badge {
        gap: 8px;
        padding: 8px 14px;
        font-size: 0.82rem;
        letter-spacing: 0.05em;
    }

    .promo-request-badge i {
        font-size: 0.9rem;
    }

    .promo-request-card h3 {
        font-size: 1.55rem;
    }

    .promo-request-perks {
        gap: 8px;
    }

    .promo-request-perks span {
        width: 100%;
        justify-content: center;
    }
}

.runner-signup-section {
    background: linear-gradient(180deg, rgba(255, 75, 96, 0.03) 0%, rgba(159, 102, 255, 0.04) 100%);
}

:root.light-theme .runner-signup-section {
    background: linear-gradient(180deg, rgba(255, 75, 96, 0.01) 0%, #ffffff 100%) !important;
}

.faq-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(255, 75, 96, 0.02) 100%);
}

.faq-container {
    max-width: 900px;
}

.faq-header {
    margin-bottom: 50px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item + .faq-item {
    margin-top: 15px;
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-cyan);
    box-shadow: 0 5px 15px rgba(159, 102, 255, 0.1);
}

.faq-item.active {
    border-color: var(--secondary-cyan);
    box-shadow: 0 10px 25px rgba(159, 102, 255, 0.15);
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 22px 28px;
    background: transparent;
    border: 0;
    color: var(--text-white);
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.faq-toggle span:first-child {
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.faq-toggle:hover span:first-child {
    color: var(--secondary-cyan);
}

.faq-icon {
    color: var(--secondary-cyan);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-neon);
}

.faq-content {
    padding: 0 28px 22px;
}

.faq-content p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .faq-toggle {
        padding: 20px;
    }

    .faq-content {
        padding: 0 20px 20px;
    }

    .faq-toggle span:first-child {
        font-size: 1rem;
    }
}

:root.light-theme .benefits {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
}

:root.light-theme .faq-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
}

:root.light-theme .faq-item {
    background: #ffffff !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

:root.light-theme .faq-toggle {
    color: #000000 !important;
}

:root.light-theme .faq-content p {
    color: #495057 !important;
}

/* Red-themed light focal gradient for Hero in Light Mode */
:root.light-theme .hero {
    background: radial-gradient(circle at 70% 30%, #ffffff 0%, rgba(217, 4, 41, 0.06) 75%) !important;
}

/* Ensure Club Features & Philosophy sections use clean light backgrounds in Light Mode */
:root.light-theme .club-promo-section {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color) !important;
}

:root.light-theme .about-philosophy {
    background: #ffffff !important;
}

:root.light-theme .about-card {
    background: #f8f9fa !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}

/* Guarantee header texts are high-contrast black in Light Mode */
:root.light-theme h1,
:root.light-theme h2,
:root.light-theme h3,
:root.light-theme h4,
:root.light-theme h5,
:root.light-theme .glow-text {
    color: #000000 !important;
}

/* Three distinct, soft contrasting backgrounds for Benefit Cards in Light Mode */
:root.light-theme .benefit-card[data-role="runner"] {
    background-color: #fff0f2 !important;
    border-color: rgba(217, 4, 41, 0.15) !important;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.02) !important;
}

:root.light-theme .benefit-card[data-role="organizer"] {
    background-color: #f3efff !important;
    border-color: rgba(95, 39, 205, 0.15) !important;
    box-shadow: 0 4px 15px rgba(95, 39, 205, 0.02) !important;
}

:root.light-theme .benefit-card[data-role="company"] {
    background-color: #fff8eb !important;
    border-color: rgba(217, 119, 6, 0.15) !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.02) !important;
}

/* Three distinct, soft contrasting backgrounds for Club Feature Cards in Light Mode */
:root.light-theme .club-feature-card:nth-child(1) {
    background-color: #fff0f2 !important;
    border-color: rgba(217, 4, 41, 0.15) !important;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.02) !important;
}

:root.light-theme .club-feature-card:nth-child(2) {
    background-color: #f3efff !important;
    border-color: rgba(95, 39, 205, 0.15) !important;
    box-shadow: 0 4px 15px rgba(95, 39, 205, 0.02) !important;
}

:root.light-theme .club-feature-card:nth-child(3) {
    background-color: #fff8eb !important;
    border-color: rgba(217, 119, 6, 0.15) !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.02) !important;
}

/* Admin Dashboard Light Theme Overrides */
:root.light-theme .btn-tab {
    background: rgba(0, 0, 0, 0.02) !important;
    color: var(--text-gray) !important;
}

:root.light-theme .btn-tab.active {
    background: var(--primary-neon) !important;
    color: #ffffff !important;
    border-color: var(--primary-neon) !important;
    box-shadow: none !important;
}

:root.light-theme .btn-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: var(--text-white) !important;
    color: var(--text-white) !important;
}

:root.light-theme .status {
    background: #f8f9fa !important;
    color: #000000 !important;
    border-color: var(--border-color) !important;
}

:root.light-theme .status.error {
    background: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
}

:root.light-theme .status.ok {
    background: #efebff !important;
    border-color: #e0d8ff !important;
    color: #5f27cd !important;
}

:root.light-theme .blockchain-status-tag {
    background: #f8f9fa !important;
    border-color: var(--border-color) !important;
    color: #000000 !important;
}

:root.light-theme .blockchain-status-tag span {
    color: #000000 !important;
}

:root.light-theme .file-drop-area {
    background: #f8f9fa !important;
    border-color: var(--border-color) !important;
    color: #000000 !important;
}

:root.light-theme .file-drop-area:hover,
:root.light-theme .file-drop-area.dragover {
    border-color: var(--primary-neon) !important;
    background: #fff0f2 !important;
}

/* Light Theme Overrides for Dashboard Pages */
:root.light-theme .dashboard-body {
    background-color: var(--bg-dark) !important;
}

:root.light-theme .dashboard-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color) !important;
}

:root.light-theme .footer {
    background: #ffffff !important;
    border-top: 1px solid var(--border-color) !important;
}

:root.light-theme .circle-bg {
    stroke: rgba(0, 0, 0, 0.05) !important;
}

:root.light-theme .metric-unit {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-gray) !important;
}

/* Premium Table Styles for Member List */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-family: var(--font-sans);
}

.premium-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

.premium-table td {
    padding: 16px 18px;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    vertical-align: middle;
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

:root.light-theme .premium-table th {
    background: #f1f3f5;
    color: #495057;
    border-bottom-color: #dee2e6;
}

:root.light-theme .premium-table td {
    color: #212529;
    border-bottom-color: #eee;
}

:root.light-theme .premium-table tr:hover td {
    background: #f8f9fa;
}

/* NFT Medal Interactive Designer Styles */
.medal-interactive-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    border-radius: 50%;
    overflow: hidden;
}

.medal-interactive-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.15), 
                inset 0 -20px 30px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

#medal-preview-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.1s ease;
}

.medal-interactive-wrapper:hover #medal-preview-canvas {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.3);
}

.medal-interactive-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 55%
    );
    z-index: 3;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: shine-sweep 6s infinite linear;
}

@keyframes shine-sweep {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    100% {
        transform: translate(30%, 30%) rotate(360deg);
    }
}

.btn-share {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.btn-share:hover {
    transform: translateY(-2px);
    border-color: var(--primary-neon) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(255, 75, 96, 0.15);
}

.share-x:hover {
    border-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.share-wa:hover {
    border-color: #25D366 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.share-tg:hover {
    border-color: #0088cc !important;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
}

.share-fb:hover {
    border-color: #1877F2 !important;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

/* Icon-based share buttons in the card itself */
.share-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.share-icon-btn:hover {
    transform: scale(1.08) translateY(-1px);
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Native share button — wide pill style */
.share-icon-btn.share-btn-native {
    width: auto;
    flex: 1;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(159, 102, 255, 0.18) 0%, rgba(0, 240, 255, 0.12) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--secondary-cyan);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.share-icon-btn.share-btn-native:hover {
    background: linear-gradient(135deg, rgba(159, 102, 255, 0.35) 0%, rgba(0, 240, 255, 0.25) 100%) !important;
    border-color: var(--secondary-cyan) !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
    color: #fff;
}

/* Copy link button */
.share-icon-btn.share-btn-copy:hover {
    color: var(--secondary-cyan) !important;
    border-color: var(--secondary-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Card actions row — share + copy side by side */
.nft-medal-card-actions {
    margin-bottom: 8px;
}

.share-popover-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.share-popover-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(3px);
}

.share-popover-btn i {
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 640px) {
    .scroll-to-top-btn {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
    }
}
