@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Roboto:wght@400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 100px 20px 40px 20px;
    background: radial-gradient(circle at 50% 0%, #1e1b4b, #050505);
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

.wrapper {
    width: 100%;
    max-width: 800px;
}

.wrapper-small {
    max-width: 450px;
    margin-top: 5vh;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

h1,
h2,
h3 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
    text-shadow: 0 2px 10px rgba(129, 140, 248, 0.2);
}

h2 {
    color: #818cf8;
    border-bottom: 1px solid rgba(129, 140, 248, 0.2);
    padding-bottom: 10px;
    margin-top: 40px;
}
.admin-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-header-layout h1 {
    margin: 0;
    font-size: 2.2rem;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

option {
    background: #0f172a;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

button:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #818cf8;
    font-size: 1.2rem;
    box-shadow: none;
}

.btn-next:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-profile {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.5);
    color: #818cf8;
    padding: 10px 24px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
    width: auto;
}

.btn-profile:hover {
    background: rgba(129, 140, 248, 0.15);
    color: #fff;
    border-color: #818cf8;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    width: auto;
    padding: 10px 24px;
    font-size: 1rem;
    margin-top: 0;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-delete {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0;
    width: auto;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn-delete:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    padding: 10px 24px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
    width: auto;
}

.btn-action:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: white;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #818cf8, #c084fc);
}

.info-card h3 {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 1.3rem;
    word-break: break-word;
    hyphens: auto;
}

.info-card ul {
    padding-left: 20px;
    color: #94a3b8;
    line-height: 1.6;
}

.info-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 10px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #818cf8, #c084fc);
}

.player-card h3 {
    margin-top: 0;
    text-align: left;
    color: #e2e8f0;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.status-msg {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    min-height: 24px;
}

.success {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.error {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
}

.admin-team-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.admin-team-header {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.admin-team-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.clickable-team {
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.clickable-team:hover {
    color: #c084fc;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-tag {
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid #4f46e5;
    color: #a5b4fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    letter-spacing: 1px;
}

.date-tag {
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.admin-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.admin-table th,
.admin-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table th {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.captain-row td {
    color: #c084fc;
    font-weight: 500;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.5);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    color: #818cf8;
    font-size: 1.8rem;
}

.modal-content p {
    font-size: 1.1rem;
    margin: 20px 0;
    color: #cbd5e1;
    word-break: break-all;
}

.profile-email-highlight {
    color: #c084fc !important;
    font-weight: bold;
    font-size: 1.3rem !important;
}

.modal-content button {
    margin-top: 15px;
    padding: 14px;
    font-size: 1.2rem;
}

.composer-content {
    max-width: 600px;
    text-align: left;
}

.composer-content h3 {
    text-align: center;
    margin-bottom: 30px;
}

.radio-group {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 25px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    margin: 0;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #c084fc;
    margin: 0;
}

textarea {
    resize: vertical;
}

.team-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #c084fc;
    cursor: pointer;
}

#sendMassEmailBtn {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 1.5rem;
}

#closeComposerBtn {
    width: 100%;
}

.footer-text {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-text a {
    color: #c084fc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: #818cf8;
    text-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

@media (max-width: 768px) {
    body {
        padding: 140px 10px 20px 10px;
    }

    .nav-content {
        flex-direction: column;
        gap: 10px;
    }

    .glass-panel {
        padding: 25px 15px;
    }

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

    .admin-header-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .btn-action,
    .btn-profile,
    .btn-danger {
        flex: 1 1 calc(50% - 15px);
        min-width: 130px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .admin-team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-team-header h3 {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        padding: 25px 20px;
    }
}

.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease;
}

.konami-content {
    background: #0f172a;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #c084fc;
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.4);
    text-align: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.konami-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.konami-close {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 10px 30px;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
    width: auto;
}

.konami-close:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}
.match-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    width: 100%;
}

.match-card:hover {
    border-color: rgba(192, 132, 252, 0.4);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.15);
}

.match-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    gap: 15px;
}

.match-team {
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-a {
    text-align: right;
    color: #818cf8;
}

.team-b {
    text-align: left;
    color: #cbd5e1;
}

.match-result-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
}

.match-vs {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: bold;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.match-score {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #c084fc;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.6);
    background: rgba(192, 132, 252, 0.08);
    padding: 6px 22px;
    border-radius: 8px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .match-body {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .team-a, .team-b {
        text-align: center;
        flex: none;
    }
    
    .match-result-box {
        order: -1;
        margin: 10px 0;
    }
}
.inline-score-editor {
    padding: 20px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.score-team {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
}

.score-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.score-btn {
    background: transparent;
    border: none;
    color: #c084fc;
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.score-btn:hover {
    background: rgba(192, 132, 252, 0.15);
    transform: none;
    box-shadow: none;
    color: #fff;
}

.score-display {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    min-width: 35px;
    text-align: center;
}

.score-divider {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #64748b;
}

@media (max-width: 768px) {
    .inline-score-editor {
        flex-direction: column;
        gap: 15px;
    }
    
    .score-divider {
        display: none;
    }
}
@keyframes pulse {
    0% { opacity: 1; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
    50% { opacity: 0.5; text-shadow: 0 0 2px rgba(239, 68, 68, 0.2); }
    100% { opacity: 1; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
}

.live-pulse {
    animation: pulse 1.5s infinite;
}
