/* --- Variables & Reset --- */
:root {
    /* LIGHT MODE */
    --primary-color: #51CBCE;
    --bg-color: #f0f4f8;
    --card-bg: #ffffff;         /* White cards in light mode */
    --accent: rgba(62, 198, 203, 0.8);
    --text-main: #0e0e12;
    --text-muted: #28284f;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    /* DARK MODE */
    --bg-color: #0b1120;       /* Deep Navy */
    --card-bg: #1e293b;        /* Dark Navy for cards */
    --text-main: #f8fafc;      /* Bright text */
    --text-muted: #94a3b8;     /* Muted text */
    --accent: rgba(30, 41, 59, 0.8); /* Dark Navy Navbar */
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Moving Background (Aurora) --- */
.aurora {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 10s infinite alternate ease-in-out;
}

@keyframes pulse {
    from { transform: translateX(-50%) scale(1); opacity: 0.15; }
    to { transform: translateX(-40%) scale(1.2); opacity: 0.25; }
}

/* --- Navigation (The Island) --- */
.navbar {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 2000;
}

.nav-container {
    padding: 0 !important; /* kills padding inherited from .container */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 90%;
    max-width: 1000px;
    background: var(--accent);
    backdrop-filter: blur(15px);
    border-radius: 100px;
    position: relative;
    margin: 0 auto;
    border: 1px solid var(--border);
    pointer-events: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    height: 100%;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
    height: 100%;
    transition: 0.3s;
}

/* --- The Logo (Floating Independent of the bar) --- */
.logo {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logo-img img {
    image-rendering: optimizeQuality;
}

@media screen and (max-width: 960px) {
    /* 1. Show the Burger Icon */
    .menu-toggle {
        display: flex;
        visibility: visible;
        cursor: pointer;
        position: absolute;
        right: 20px;
        z-index: 2100;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: white;
    }

    /* 2. Hide the Links initially */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--primary-color);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1500;
        pointer-events: none;
        visibility: hidden;
    }

    /* 3. Show links when active */
    .nav-links.active {
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .nav-links a {
        font-size: 2.2rem;
        color: white;
    }

    /* 4. Burger to X Animation */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* --- Hero Section --- */
.hero-section {
    padding: 12rem 0 6rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #2c3e50, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Features Grid (The Cards) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid;
}

.card-image {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-content {
    padding: 10px;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.btn-card {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .card-image img {
    transform: scale(1.1);
}

/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 960px) {
    .features-grid {
        grid-template-columns: 1fr; /* Stacks cards on mobile */
    }
}

.about-section {
    padding: 100px 0;
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.about-features li {
    margin-bottom: 1rem;
    padding-left: 30px;
    position: relative;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-features li {
        text-align: left;
    }

    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

.contact-section {
    padding: 100px 0;
    text-align: center;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 15px;
}

/* --- Contact Info Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Map Container --- */
.map-container {
    width: 100%;
    min-height: 450px;
    margin-top: 50px;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #e5e7eb;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-container {
        min-height: 300px;
        margin-top: 30px;
        border-radius: 25px;
    }
    .map-container iframe {
        min-height: 300px;
    }
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
}

.contact-person {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.contact-person:nth-of-type(2) {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.contact-person .name {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.contact-person .phone {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-email {
    margin-top: 1rem;
    font-weight: 600;
    background: var(--bg-color);
    padding: 8px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    text-decoration: none;
    color: white;
    padding: 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook {
    background: #1877F2;
}

.social-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.social-icon {
    font-size: 1.2rem;
}

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

    .map-container {
        height: 300px;
    }
}

/* --- Calendar Section --- */
.calendar-section {
    padding: 100px 0;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 40px;
}

.event-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    padding: 20px 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    gap: 2rem;
}

.event-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.event-date {
    background: var(--primary-color);
    color: white;
    min-width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    font-weight: 800;
}

.event-date .day { font-size: 1.8rem; line-height: 1; }
.event-date .month { font-size: 0.9rem; text-transform: uppercase; }

.event-info {
    flex-grow: 1;
}

.event-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.event-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-event {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: 0.3s;
}

.btn-event:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 1rem;
    }

    .event-date {
        width: 100px;
        height: 100px;
    }

    .btn-event {
        width: 100%;
    }
}

/* --- Nabor (Recruitment) Section --- */
.nabor-section {
    padding: 80px 0;
}

.nabor-wrapper {
    background: linear-gradient(135deg, var(--accent), #3da8ab);
    border-radius: 40px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(81, 203, 206, 0.3);
}

.nabor-info {
    flex: 1;
    z-index: 2;
}

.nabor-info h2 {
    font-size: 3rem;
    margin: 20px 0;
    line-height: 1.1;
}

.nabor-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    background: white;
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    flex-shrink: 0;
}

.nabor-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transform: rotate(3deg);
}

.btn-nabor {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    transition: 0.3s ease;
}

.btn-nabor:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 960px) {
    .nabor-wrapper {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    .nabor-info h2 { font-size: 2.2rem; }
    .step { text-align: left; }
    .glass-box { transform: rotate(0); }

    .nabor-form-container {
        margin-top: 30px;
        max-width: 100%;
    }
}

/* --- Form Container --- */
.nabor-form-container {
    flex: 1;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px; /* room for success message */
}

.nabor-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.nabor-form h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.nabor-form input,
.nabor-form select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.9);
    color: #0e0e12;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.nabor-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2351CBCE' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.nabor-form input:focus,
.nabor-form select:focus {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-note {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
    text-align: center;
}

/* Styles the input only when the typed value is outside min/max */
.nabor-form input:out-of-range {
    border-color: #ff4d4d;
    background-color: #fff0f0;
    color: #ff4d4d;
}

.nabor-form input:out-of-range + .age-error {
    display: block;
}

.age-error {
    display: none;
    font-size: 0.75rem;
    color: #ff4d4d;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* --- Success Message --- */
#form-success {
    display: none; /* JS toggles this */
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px);
    padding: 40px !important;
    border-radius: 30px;
    border: 2px solid white;
    text-align: center;
    color: white !important;
    width: 100%;
    min-height: 200px;
}

#form-success h3,
#form-success p {
    color: white !important;
    margin-bottom: 15px;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn-reset {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.btn-reset:hover {
    background: white;
    color: var(--primary-color);
}

/* --- Footer Styling --- */
.footer {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-top: 1px solid var(--border) !important;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none; /* JS toggles visibility */
    z-index: 1000;
    transition: 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   MODAL — jediná verze (dřív duplikováno 3×)
   ============================================ */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none; /* JS changes this to 'flex' */
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 40px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

/* ============================================
   RESULTS TABLE — jediná verze, respektuje proměnné (dark mode aware)
   ============================================ */
.results-container {
    text-align: left;
}

.results-header {
    margin-bottom: 25px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 25px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.results-table {
    width: 100%;
    min-width: 550px;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-main);
}

.results-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:hover {
    background: rgba(81, 203, 206, 0.08);
}

.results-table tr.rank-1 {
    background: rgba(255, 215, 0, 0.06);
}

/* --- The Medals --- */
.medal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    background: #f0f2f5;
    color: #888;
}

.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: white;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.bronze {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: white;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.other {
    background: linear-gradient(135deg, #E8E8E8, #B0B0B0);
    color: #333;
}

/* --- Tags & Scores --- */
.tag {
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.score,
.points {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.score-pill {
    background: var(--text-main);
    color: var(--card-bg);
    padding: 5px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .results-table th,
    .results-table td {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* ============================================
   GENERAL SELECT BOX — mimo .nabor-form kontext
   ============================================ */
select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2351CBCE' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select:hover {
    border-color: var(--primary-color);
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(81, 203, 206, 0.35);
}

select option {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* --- Theme toggle button --- */
.theme-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-btn {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(81, 203, 206, 0.4);
}
/* ============================================
   DATA TABLE — mřížka + zebra řádky (filtrovaný seznam akcí)
   ============================================ */
.data-table-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-color);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Zebra - sudé řádky jemně odlišené */
.data-table tbody tr:nth-child(even) {
    background-color: var(--bg-color);
}

.data-table tbody tr:nth-child(odd) {
    background-color: var(--card-bg);
}

.data-table tbody tr:hover {
    background-color: rgba(81, 203, 206, 0.08);
}

.data-table a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.data-table a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* --- Filter button --- */
.btn-filter {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-filter:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(81, 203, 206, 0.3);
}

.btn-filter:active {
    transform: translateY(0);
}