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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #667;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
}

.logo,
.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1a1a1a;
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-text-decoration-skip-ink: none !important;
    text-decoration-skip-ink: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #a3ff00;
}

.signup-btn {
    background: #a3ff00;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
}

.signup-btn:hover {
    background: #8ee600;
    color: #1a1a1a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.highlight {
    color: #a3ff00;
}

.hero-subtitle {
    font-size: 20px;
    color: #667;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a3ff00;
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #1a1a1a;
}

.cta-link {
    display: inline-block;
    text-decoration: none;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.graphic-element {
    position: absolute;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.graphic-element:nth-child(1) {
    width: 300px;
    height: 300px;
    border: 3px solid #a3ff00;
}

.graphic-element:nth-child(2) {
    width: 200px;
    height: 200px;
    border: 2px solid #e5e5e5;
}

.graphic-element:nth-child(3) {
    width: 400px;
    height: 400px;
    border: 1px solid #f5f5f5;
}

.features {
    width: 100%;
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #a3ff00;
    transition: height 0.3s ease;
}

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

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: #667;
    line-height: 1.6;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-graphic {
        margin-top: 60px;
    }

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

.footer {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 40px;
    margin-top: auto;
}

.footer a {
    color: #a3ff00;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.signup-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 40px 100px;
    animation: fadeInUp 0.8s ease;
}

.signup-header {
    text-align: center;
    margin-bottom: 60px;
}

.signup-header h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.signup-subtitle {
    font-size: 18px;
    color: #667;
    line-height: 1.6;
}

.signup-form {
    background: #fafafa;
    padding: 40px;
    border: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.signup-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #a3ff00;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .optional {
    color: #667;
    font-weight: 400;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    color: #1a1a1a;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a3ff00;
    box-shadow: 0 0 0 3px rgba(163, 255, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.error-message {
    display: none;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.privacy-notice {
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid #a3ff00;
}

.privacy-notice a {
    color: #a3ff00;
    text-decoration: underline;
}

.privacy-notice a:hover {
    color: #8ee600;
}

.submit-btn {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a3ff00;
    transition: left 0.3s ease;
    z-index: 0;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: #1a1a1a;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    color: #667;
    font-size: 15px;
}

.login-link a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #a3ff00;
}

@media (max-width: 768px) {
    .signup-container {
        padding: 120px 20px 60px;
    }

    .signup-header h1 {
        font-size: 48px;
    }

    .signup-form {
        padding: 24px;
    }

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

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #ffffff;
    max-width: 500px;
    width: 90%;
    border-left: 4px solid #a3ff00;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
    animation: popupSlideIn 0.4s ease forwards;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 16px;
}

.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.popup-icon.success {
    background: rgba(163, 255, 0, 0.15);
    color: #6ba800;
}

.popup-icon.error {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.popup-body {
    padding: 30px;
}

.popup-message {
    color: #667;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.popup-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.popup-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.popup-btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.popup-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a3ff00;
    transition: left 0.3s ease;
    z-index: 0;
}

.popup-btn-primary:hover::before {
    left: 0;
}

.popup-btn-primary:hover {
    color: #1a1a1a;
}

.popup-btn-primary span {
    position: relative;
    z-index: 1;
}

.popup-btn-secondary {
    background: transparent;
    color: #667;
    border: 1px solid #e5e5e5;
}

.popup-btn-secondary:hover {
    background: #fafafa;
    border-color: #d5d5d5;
    color: #1a1a1a;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.popup-loading {
    padding: 40px;
    text-align: center;
}

.popup-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e5e5;
    border-top-color: #a3ff00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.popup-loading-text {
    color: #667;
    font-size: 15px;
}

.loading-state {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e5e5;
    border-top-color: #a3ff00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    color: #667;
    font-size: 15px;
}

.standings-rosters-error {
    text-align: center;
    padding: 40px;
    color: #667;
}

@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        margin: 20px;
    }

    .popup-header {
        padding: 24px 24px 16px;
    }

    .popup-body {
        padding: 24px;
    }

    .popup-actions {
        padding: 16px 24px 24px;
        flex-direction: column;
    }

    .popup-btn {
        width: 100%;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}


.league-dropdown-container {
    position: relative;
    display: inline-block;
}

.league-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.league-dropdown-btn:hover {
    border-color: #a3ff00;
    background: rgba(163, 255, 0, 0.05);
}

.league-dropdown-btn.active {
    border-color: #a3ff00;
    background: rgba(163, 255, 0, 0.1);
}

.league-dropdown-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.league-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.league-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.league-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.league-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.league-option:last-child {
    border-bottom: none;
}

.league-option:hover {
    background: #fafafa;
    padding-left: 20px;
}

.league-option.active {
    background: rgba(163, 255, 0, 0.1);
    color: #1a1a1a;
    font-weight: 600;
}

.league-option.active:hover {
    background: rgba(163, 255, 0, 0.15);
}

.check-icon {
    color: #a3ff00;
    flex-shrink: 0;
}

.league-option-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.league-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.league-type-badge-supercross {
    background: rgba(163, 255, 0, 0.15);
    color: #6ba800;
}

.league-type-badge-motocross {
    background: rgba(66, 153, 225, 0.15);
    color: #2c5aa0;
}

.league-type-badge-smx {
    background: rgba(255, 170, 0, 0.15);
    color: #cc8800;
}

.league-error {
    color: #e53e3e;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 4px;
}

.league-info {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #a3ff00;
    padding: 24px;
    margin-top: 40px;
}

.league-info p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #667;
}

.league-info p:last-child {
    margin-bottom: 0;
}

.league-info strong {
    color: #1a1a1a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .league-dropdown-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .league-dropdown-menu {
        left: auto;
        right: 0;
        min-width: 250px;
    }
    
    .league-option {
        font-size: 14px;
    }
}

.username-banner {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-bottom: 2px solid #a3ff00;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.username-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.username-banner-text {
    flex: 1;
}

.username-banner-text h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.username-banner-text p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.username-banner-icon {
    color: #a3ff00;
    font-size: 20px;
}

.username-banner-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.username-banner-input {
    padding: 10px 16px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    border-radius: 4px;
    min-width: 250px;
    transition: all 0.3s ease;
}

.username-banner-input:focus {
    outline: none;
    border-color: #a3ff00;
    background: #333;
    box-shadow: 0 0 0 3px rgba(163, 255, 0, 0.1);
}

.username-banner-input::placeholder {
    color: #677;
}

.username-banner-btn {
    background: #a3ff00;
    color: #1a1a1a;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.username-banner-btn:hover {
    background: #8ee600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 255, 0, 0.3);
}

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

.username-banner ~ .signup-container,
.username-banner ~ .hero {
    margin-top: 140px;
}

@media (max-width: 768px) {
    .username-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 16px;
    }
    
    .username-banner-text h3 {
        font-size: 16px;
    }
    
    .username-banner-text p {
        font-size: 13px;
    }
    
    .username-banner-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .username-banner-input {
        width: 100%;
        min-width: auto;
    }
    
    .username-banner-btn {
        width: 100%;
    }
    
    .username-banner ~ .signup-container {
        margin-top: 180px;
    }
}

.settings-container {
    width: 100%;
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 40px;
    animation: fadeInUp 0.8s ease;
}

.settings-header {
    margin-bottom: 40px;
}

.settings-header h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -2px;
    color: #1a1a1a;
}

.settings-subtitle {
    font-size: 18px;
    color: #667;
    line-height: 1.6;
}

.tabs-container {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: #fafafa;
    border-bottom: 2px solid #e5e5e5;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #667;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #1a1a1a;
    background: rgba(163, 255, 0, 0.05);
}

.tab-btn.active {
    color: #1a1a1a;
    background: #ffffff;
    border-bottom-color: #a3ff00;
}

.tab-icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tab-btn.active .tab-icon {
    opacity: 1;
}

.tabs-content {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

.settings-section {
    max-width: 800px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.section-description {
    font-size: 16px;
    color: #667;
    margin-bottom: 32px;
    line-height: 1.6;
}

.settings-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #a3ff00;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.settings-card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.settings-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.settings-card-body {
    padding: 24px;
}

.settings-form .form-group {
    margin-bottom: 24px;
}

.settings-form .form-group:last-of-type {
    margin-bottom: 32px;
}

.settings-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.settings-form .form-row .form-group {
    margin-bottom: 0;
}

.settings-form label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"],
.settings-form input[type="date"],
.settings-form input[type="time"],
.settings-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    color: #1a1a1a;
    border-radius: 4px;
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: #a3ff00;
    box-shadow: 0 0 0 3px rgba(163, 255, 0, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #667;
    font-weight: 400;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #1a1a1a;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #a3ff00;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.info-value {
    color: #667;
    font-size: 15px;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a3ff00;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: #1a1a1a;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background: transparent;
    color: #667;
    border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
    color: #1a1a1a;
}

.btn-danger {
    background: #e53e3e;
    color: #ffffff;
    z-index: 1;
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger:not(:disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #c53030;
    transition: left 0.3s ease;
    z-index: -1;
}


.btn-danger:not(:disabled):hover {
    background: #c53030;
}

.btn-danger span {
    position: relative;
    z-index: 2;
}

#manageMembersCard #memberCapForm {
    margin-bottom: 24px;
}

.settings-card-subsection {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.settings-card-subsection-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.settings-card-subsection.settings-form .form-group {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .settings-container {
        margin-top: 90px;
        padding: 0 20px;
    }

    .settings-header h1 {
        font-size: 36px;
    }

    .settings-subtitle {
        font-size: 16px;
    }

    .tabs-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 16px 20px;
        font-size: 14px;
    }

    .tab-icon {
        width: 18px;
        height: 18px;
    }

    .tab-panel {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 15px;
    }

    .settings-card-header,
    .settings-card-body {
        padding: 20px;
    }

    .settings-card-header h3 {
        font-size: 18px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .settings-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .settings-form .form-row .form-group {
        margin-bottom: 24px;
    }
}

.draft-preview {
    background: linear-gradient(135deg, rgba(163, 255, 0, 0.1) 0%, rgba(163, 255, 0, 0.05) 100%);
    border: 2px solid #a3ff00;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

.preview-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667;
    margin-bottom: 8px;
}

.preview-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.delete-warning {
    display: flex;
    gap: 16px;
    background: rgba(229, 62, 62, 0.1);
    border: 2px solid #e53e3e;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.warning-icon {
    color: #e53e3e;
    flex-shrink: 0;
    margin-top: 2px;
}

.delete-warning p {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.5;
}

.delete-warning p:last-child {
    margin-bottom: 0;
}

.delete-warning strong {
    font-weight: 700;
}

.draft-info-container {
    width: 100%;
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 40px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #a3ff00;
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.draft-info-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.draft-info-header {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-align: center;
}

.draft-date-display {
    font-size: 20px;
    color: #667;
    margin: 16px 0 32px;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}
.draft-note {
    font-size: 12px;
    color: #667;
    margin: 16px 0 32px;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #a3ff00;
}

.countdown-value {
    font-size: 48px;
    font-weight: 800;
    display: block;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 8px;
    color: #667;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

@media (max-width: 768px) {
    .draft-info-container {
        margin: 100px auto 40px;
        padding: 24px 20px;
    }

    .draft-info-header {
        font-size: 24px;
    }

    .draft-date-display {
        font-size: 18px;
        margin: 12px 0 24px;
    }

    .countdown-container {
        gap: 12px;
    }

    .countdown-item {
        padding: 16px;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 36px;
    }

    .countdown-label {
        font-size: 11px;
        margin-top: 6px;
    }
}

.username-banner ~ * .draft-info-container,
body:has(.username-banner) .draft-info-container {
    margin-top: 160px;
}

@media (max-width: 768px) {
    .username-banner ~ * .draft-info-container,
    body:has(.username-banner) .draft-info-container {
        margin-top: 140px;
    }
}

#standingsRostersRoot > .loading-state,
#standingsRostersRoot > .standings-rosters-error {
    margin-top: 120px;
}

body:has(.username-banner) #standingsRostersRoot > .loading-state,
body:has(.username-banner) #standingsRostersRoot > .standings-rosters-error {
    margin-top: 180px;
}

@media (max-width: 768px) {
    #standingsRostersRoot > .loading-state,
    #standingsRostersRoot > .standings-rosters-error {
        margin-top: 100px;
    }

    body:has(.username-banner) #standingsRostersRoot > .loading-state,
    body:has(.username-banner) #standingsRostersRoot > .standings-rosters-error {
        margin-top: 160px;
    }
}

.info-banner {
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.info-banner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 60px;
}

body:has(.username-banner) .info-banner-wrapper {
    padding-top: 200px;
}

.info-banner-content {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #a3ff00;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: all 0.3s ease;
}

.info-banner-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-banner-icon {
    font-size: 64px;
    flex-shrink: 0;
    line-height: 1;
}

.info-banner-text {
    flex: 1;
}

.info-banner-text h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.info-banner-text p {
    margin: 0;
    color: #667;
    font-size: 16px;
    line-height: 1.6;
}

.info-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.info-banner-btn {
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.info-banner-btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    z-index: 1;
}

.info-banner-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a3ff00;
    transition: left 0.3s ease;
    z-index: -1;
}

.info-banner-btn-primary:hover::before {
    left: 0;
}

.info-banner-btn-primary:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
}

.info-banner-btn-secondary {
    background: transparent;
    color: #667;
    border: 1px solid #e5e5e5;
}

.info-banner-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
    color: #1a1a1a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .info-banner-wrapper {
        padding: 120px 20px 40px;
    }
    
    body:has(.username-banner) .info-banner-wrapper {
        padding-top: 180px;
    }
    
    .info-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }
    
    .info-banner-icon {
        font-size: 48px;
    }
    
    .info-banner-text h2 {
        font-size: 24px;
    }
    
    .info-banner-text p {
        font-size: 15px;
    }
    
    .info-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .info-banner-btn {
        width: 100%;
        text-align: center;
    }
}

.no-results {
    text-align: center;
    padding: 80px 40px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.no-results p {
    font-size: 16px;
    color: #667;
    margin: 0;
}

@media (max-width: 768px) {
    .no-results {
        padding: 60px 24px;
    }

    .no-results-icon {
        font-size: 48px;
    }

    .no-results h3 {
        font-size: 20px;
    }

    .no-results p {
        font-size: 15px;
    }
}

.info-banner + .riders-container {
    margin-top: 40px;
}

.sortable-list {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}

.sortable-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
}

.sortable-item:last-child {
    margin-bottom: 0;
}

.sortable-item:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sortable-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.sortable-item.drag-over {
    border-top: 3px solid #a3ff00;
}

.drag-handle {
    color: #999;
    font-size: 20px;
    cursor: grab;
    flex-shrink: 0;
    line-height: 1;
}

.sortable-item:active .drag-handle {
    cursor: grabbing;
}

.member-position {
    font-weight: 700;
    color: #1a1a1a;
    min-width: 30px;
    font-size: 16px;
}

.member-name {
    flex: 1;
    color: #1a1a1a;
    font-size: 15px;
}

@media (max-width: 768px) {
    .sortable-item {
        padding: 10px;
    }
    
    .drag-handle {
        font-size: 18px;
    }
    
    .member-position {
        min-width: 25px;
        font-size: 14px;
    }
    
    .member-name {
        font-size: 14px;
    }
}

.rider-checkbox-list {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.rider-checkbox-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.rider-checkbox-item:last-child {
    margin-bottom: 0;
}

.rider-checkbox-item:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
}

.rider-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    height: 24px;
    width: 24px;
    min-width: 24px;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.rider-checkbox-item:hover .checkbox-custom {
    border-color: #a3ff00;
}

.rider-checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: #a3ff00;
    border-color: #a3ff00;
}

.rider-checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    display: block;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rider-name {
    flex: 1;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    display: block;
}

.rider-checkbox-item input[type="checkbox"]:checked ~ .rider-name {
    font-weight: 600;
    color: #1a1a1a;
}

.rider-checkbox-item:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}

#selectionCount {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.rider-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.rider-checkbox-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.rider-checkbox-list::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 4px;
}

.rider-checkbox-list::-webkit-scrollbar-thumb:hover {
    background: #a3ff00;
}

@media (max-width: 768px) {
    .rider-checkbox-item {
        padding: 12px 14px;
        gap: 14px;
    }
    
    .checkbox-custom {
        height: 20px;
        width: 20px;
        min-width: 20px;
    }
    
    .rider-checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom::after {
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
    }
    
    .rider-name {
        font-size: 14px;
    }
}