:root {
    --primary: #00a6fb;
    --primary-dark: #0077c8;
    --primary-deep: #082f49;
    --secondary: #fbbf24;
    --accent: #22c55e;
    --danger: #fb7185;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-soft: rgba(15, 23, 42, 0.58);
    --surface-light: rgba(255, 255, 255, 0.09);
    --text: #eaf6ff;
    --muted: #b9d7ea;
    --border: rgba(0, 166, 251, 0.35);
    --shadow: rgba(0, 0, 0, 0.38);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 166, 251, 0.32), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.18), transparent 30%),
        linear-gradient(135deg, #061826 0%, #082f49 48%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(6, 24, 38, 0.78), rgba(15, 23, 42, 0.82)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 72px);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--primary);
}

header {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(18px);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(20px, 5vw, 56px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(0, 166, 251, 0.45);
}

header .logo {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #fff;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 166, 251, 0.35);
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 9px 15px;
    border-radius: 999px;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 166, 251, 0.24);
}

header nav ul li a:hover {
    color: #061826;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.28);
}

main {
    padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 36px);
    max-width: 1220px;
    margin: 0 auto;
    flex: 1;
}

#hero {
    background:
        linear-gradient(135deg, rgba(0, 166, 251, 0.28) 0%, rgba(15, 23, 42, 0.68) 52%, rgba(251, 191, 36, 0.18) 100%),
        radial-gradient(circle at 78% 24%, rgba(251, 191, 36, 0.2), transparent 32%);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: clamp(36px, 7vw, 86px) clamp(24px, 6vw, 64px);
    margin-bottom: 44px;
    display: flex;
    align-items: center;
    gap: 44px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.36);
    border: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 50%;
    right: -120px;
    top: -120px;
}

#hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 50%;
    left: -90px;
    bottom: -90px;
}

#hero > * {
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    text-align: center;
}

#hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0,0,0,0.42);
    font-weight: 900;
    line-height: 1.08;
}

#hero p {
    font-size: clamp(1rem, 2vw, 1.28rem);
    color: #d7efff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    line-height: 1.85;
    max-width: 720px;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    text-shadow: 0 3px 16px rgba(0,0,0,0.35);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(8, 47, 73, 0.62) 100%);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(0,0,0,0.28);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 166, 251, 0.25);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 166, 251, 0.18) 0%, rgba(251, 191, 36, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service:hover::before {
    opacity: 1;
}

.service > * {
    position: relative;
    z-index: 1;
}

.service:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 22px 55px rgba(0, 166, 251, 0.18);
    border-color: rgba(251, 191, 36, 0.42);
}

.service h3 {
    font-size: 1.35rem;
    margin: 18px 0 12px;
    color: #fff;
}

.service p {
    color: var(--muted);
}

#about,
#testimonials,
#contact-form,
.dashboard {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(8, 47, 73, 0.62) 100%);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 54px);
    text-align: center;
    box-shadow: 0 18px 55px rgba(0,0,0,0.32);
    border: 1px solid rgba(0, 166, 251, 0.28);
}

#about p,
#testimonials p,
.testimonial p {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.85;
}

.testimonial {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(0, 166, 251, 0.08) 100%);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.22);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.3);
    border-color: rgba(251, 191, 36, 0.35);
}

.testimonial cite {
    color: var(--secondary);
    font-weight: 800;
}

footer {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
    backdrop-filter: blur(12px);
    color: #fff;
    text-align: center;
    padding: 28px 20px;
    margin-top: auto;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.22);
    border-top: 1px solid rgba(0, 166, 251, 0.28);
}

footer p {
    margin-bottom: 8px;
    color: var(--muted);
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.dashboard {
    max-width: 1200px;
    margin: 50px auto;
    animation: fadeInUp 0.75s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard h2 {
    text-align: left;
    margin-bottom: 28px;
    color: #fff;
}

.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.widget {
    background: linear-gradient(145deg, rgba(0, 166, 251, 0.18) 0%, rgba(251, 191, 36, 0.08) 100%);
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.75s ease-out forwards;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.widget:nth-child(1) { animation-delay: 0.08s; }
.widget:nth-child(2) { animation-delay: 0.16s; }
.widget:nth-child(3) { animation-delay: 0.24s; }
.widget:nth-child(4) { animation-delay: 0.32s; }

.widget:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 38px rgba(0, 166, 251, 0.18);
    border-color: rgba(251, 191, 36, 0.4);
}

.widget h3 {
    color: #fff;
    margin-bottom: 10px;
}

.widget p {
    color: var(--secondary);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0;
    font-weight: 900;
}

.activities {
    background: rgba(255, 255, 255, 0.07);
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activities:hover {
    background: rgba(0, 166, 251, 0.09);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.activities h3 {
    color: #fff;
    margin-bottom: 15px;
}

.activity {
    color: var(--muted);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-links a,
.home-link,
.btn,
.logout-btn,
.register-btn,
.back-home,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.28s ease;
    box-shadow: 0 8px 20px rgba(0, 166, 251, 0.28) !important;
}

.nav-links a,
.home-link {
    padding: 10px 20px;
}

.btn {
    padding: 14px 30px;
    font-size: 1rem;
}

.nav-links a:hover,
.btn:hover,
.logout-btn:hover,
.register-btn:hover,
.back-home:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(251, 191, 36, 0.28) !important;
}

.logout-btn {
    width: 200px;
    padding: 12px;
    background: linear-gradient(135deg, var(--danger) 0%, #be123c 100%) !important;
    font-size: 16px;
    text-align: center;
    margin: 20px auto;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%) !important;
}

.register-wrapper {
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(0,0,0,0.42);
    animation: slideIn 0.55s ease-out;
    border: 1px solid rgba(0, 166, 251, 0.26);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-info {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 55%, #0f172a 100%) !important;
    padding: 54px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.register-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 45% 35%, rgba(251, 191, 36, 0.22) 0%, transparent 55%);
    z-index: 0;
}

.register-info > * {
    position: relative;
    z-index: 1;
}

.register-info h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.register-info p {
    color: #dff6ff !important;
}

.register-benefits {
    list-style: none;
    margin-top: 30px;
}

.register-benefits li {
    margin: 15px 0;
    padding-left: 34px;
    position: relative;
    font-size: 1rem;
    color: var(--muted);
}

.register-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 900;
}

.register-form-container {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(8, 47, 73, 0.76) 100%);
    backdrop-filter: blur(18px);
    padding: 54px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-form-container h2 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 10px;
    text-align: center;
}

.register-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 0.98rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
label {
    color: #fff !important;
    font-weight: 700;
}

.form-group input,
.form-group select,
input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 166, 251, 0.34) !important;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.76) !important;
    color: var(--text) !important;
    font-size: 0.98rem;
    transition: all 0.25s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: rgba(8, 47, 73, 0.9) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16) !important;
}

.form-group input::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(234, 246, 255, 0.62);
}

.form-group select option,
select option {
    background: #082f49 !important;
    color: var(--text) !important;
    padding: 10px;
}

.password-row,
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.player-fields {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding-top: 25px;
    margin-top: 25px;
}

.player-fields.active {
    display: block;
    animation: fadeIn 0.38s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-fields h3 {
    color: #fff !important;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 166, 251, 0.3);
}

.register-btn {
    width: 100%;
    padding: 13px;
    margin-top: 15px;
}

.login-container {
    max-width: 430px;
    margin: 100px auto;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(8, 47, 73, 0.78) 100%);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.36);
    border: 1px solid rgba(0, 166, 251, 0.28);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.message {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.55);
}

.message.error {
    background: rgba(251, 113, 133, 0.16);
    color: #fda4af;
    border: 1px solid rgba(251, 113, 133, 0.55);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
}

.login-link a,
.register-link a {
    color: var(--secondary) !important;
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover,
.register-link a:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    color: var(--text) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

table th {
    background: rgba(0, 166, 251, 0.18) !important;
    color: #fff !important;
}

table tr:hover {
    background: rgba(0, 166, 251, 0.08);
}

table button {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.alert,
.alert-success,
.alert-danger {
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 12px;
    font-weight: 700;
}

.alert-success {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.alert-danger {
    background: rgba(251, 113, 133, 0.16);
    color: #fda4af;
    border: 1px solid rgba(251, 113, 133, 0.5);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 20px;
    }

    header nav ul {
        justify-content: center;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        padding: 42px 22px;
    }

    .hero-content,
    .hero-image {
        text-align: center;
    }

    #hero h1 {
        font-size: 2.3rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .service {
        padding: 22px;
    }

    .dashboard {
        padding: 24px;
        margin: 26px auto;
    }

    .dashboard h2 {
        text-align: center;
    }

    .widgets {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .widget p {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .activities {
        padding: 16px;
    }

    .register-wrapper {
        grid-template-columns: 1fr;
    }

    .register-info,
    .register-form-container {
        padding: 42px 30px;
    }

    .password-row,
    .form-row,
    .form-row-three {
        grid-template-columns: 1fr;
    }

    .login-container {
        margin: 70px 16px;
        padding: 30px 22px;
    }

    .back-home {
        position: static;
        width: fit-content;
        margin: 0 auto 24px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px 12px;
    }

    #hero {
        border-radius: 20px;
        padding: 34px 18px;
    }

    #hero h1 {
        font-size: 1.85rem;
    }

    section h2 {
        font-size: 1.55rem;
    }

    .service h3 {
        font-size: 1.18rem;
    }

    .dashboard {
        padding: 18px;
        border-radius: 18px;
    }

    .dashboard h2 {
        font-size: 1.65rem;
    }

    .widget h3 {
        font-size: 1.05rem;
    }

    .activities h3 {
        font-size: 1.15rem;
    }

    .btn,
    .nav-links a {
        padding: 11px 16px;
        font-size: 0.92rem;
    }

    .logout-btn {
        width: 100%;
    }

    table {
        font-size: 0.88rem;
    }
}
