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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    margin: auto;
    overflow: auto;
    /* Göz yormayan tünd mavi gradient */
    background: linear-gradient(315deg, #0a0a0a 0%, #1a1a2e 35%, #1e2a44 65%, #101824 100%);
    animation: gradient 20s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

.seo-hidden {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: -1;
    animation: subtle-move 25s infinite alternate ease-in-out;
    background: radial-gradient(circle, rgba(30,42,60,0.15) 0%, transparent 70%);
}

@keyframes subtle-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, -30px);
    }
}

.wave {
    background: rgba(255, 255, 255, 0.1); /* çox yumşaq ağ */
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 12s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
    bottom: 0;
    left: 0;
    z-index: -1;
}

    .wave:nth-of-type(2) {
        bottom: -1.25em;
        animation: wave 18s linear reverse infinite;
        opacity: 0.5;
    }

    .wave:nth-of-type(3) {
        bottom: -2.5em;
        animation: wave 22s -1s reverse infinite;
        opacity: 0.55;
    }

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}


/* --- Modal overlay --- */
.exam-purpose-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* --- Modal box --- */
.exam-purpose-box {
    border-radius: 16px;
    border: 1px solid #a0ffd6;
    padding: 35px 25px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(160,255,214,0.3);
    background: #121212;
    animation: fadeIn 0.25s ease;
}

    /* --- Modal header --- */
    .exam-purpose-box h2 {
        color: #fff;
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

/* --- Buttons container (grid) --- */
.exam-purpose-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

    /* --- Each button --- */
    .exam-purpose-buttons button {
        background: #1f1f1f;
        border: 1px solid #a0ffd6;
        color: #a0ffd6;
        font-weight: 600;
        font-size: 1rem;
        padding: 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .exam-purpose-buttons button:hover {
            background: #a0ffd6;
            color: #121212;
            transform: translateY(-1px);
            box-shadow: 0 0 8px rgba(160,255,214,0.3);
        }

/* --- Close button --- */
.exam-purpose-close-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 1rem;
    background: #ff5a5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255,90,95,0.3);
    transition: all 0.2s ease;
}

    .exam-purpose-close-btn:hover {
        background: #e74c51;
        box-shadow: 0 0 12px rgba(255,90,95,0.4);
        transform: translateY(-1px);
    }

/* --- Fade-in animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Styles - Fixed at top */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #FFD700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

    .logo:hover {
        color: #FFD700;
    }

.sat-btn {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, #FFD700, #ffcc33);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .sat-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
    }

/* Main Content - with top padding for fixed header */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem; /* Top padding for fixed header */
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 120px); /* Account for header and footer */
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #FFD700, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.main-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.level-btn {
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 1.5rem;
    font-weight: 700;
    color: #fff;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.15);
    position: relative;
    overflow: hidden;
    font-size: 1.125rem;
}

    .level-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 215, 0, 0), rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0));
        opacity: 0;
        transition: opacity 0.4s;
    }

    .level-btn:hover {
        border-color: #FFD700;
        color: #FFD700;
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), 0 0 40px rgba(0, 255, 242, 0.3);
    }

        .level-btn:hover::before {
            opacity: 1;
        }

/* Footer - Fixed at bottom */
footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 1.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 1px solid #333;
}
/* Mobil üçün */
@media (max-width: 768px) {
    footer {
        padding: 0.75rem; /* daha kiçik padding */
        font-size: 0.75rem; /* daha kiçik font */
        position: fixed; /* altda qalır */
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        border-top: 1px solid #333;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: #111;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #f0f0f0;
    border-top: 4px solid #FFD700;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

    .close-btn:hover {
        color: white;
    }

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .form-input:focus {
        outline: none;
        border-color: #FFD700;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    }

/* Country Selector Styles */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
}

.country-selector {
    position: relative;
    width: 140px;
}

.country-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .country-button:hover,
    .country-button:focus {
        border-color: #FFD700;
    }

.country-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-flag {
    font-size: 1.125rem;
}

.country-code {
    font-weight: 500;
}

.dropdown-icon {
    transition: transform 0.3s;
}

.country-selector.open .dropdown-icon {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 50;
    max-height: 240px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.country-selector.open .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    padding: 0.75rem;
    border-bottom: 1px solid #333;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    position: relative;
}

.search-container::before {
    content: '🔍';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.countries-list {
    max-height: 160px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: white;
}

    .country-option:hover {
        background-color: #2a2a2a;
    }

.country-details {
    flex: 1;
    min-width: 0;
}

.country-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-phone {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-input {
    width: 1rem;
    height: 1rem;
    accent-color: #FFD700;
}

/* Error Styles */
.form-error {
    background-color: #dc2626;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
}

    .form-error.show {
        display: block;
    }

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
    display: none;
}

    .success-message.show {
        display: block;
    }

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.success-text {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* Button Styles */
.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-cancel {
    background: #6b7280;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .btn-cancel:hover {
        background: #4b5563;
    }

.btn-submit {
    background: linear-gradient(90deg, #FFD700, #ffcc33);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-submit:hover:not(:disabled) {
        background: #ffe066;
        transform: scale(1.05);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    main {
        padding-top: 8rem; /* More padding for mobile header */
    }

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

    .level-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .phone-input-container {
        flex-direction: column;
    }

    .country-selector {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #FFD700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.admin-links {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 5px 0;
}

/* Admin link */
.admin-link {
    color: #1f2937; /* qaranlıq boz */
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); /* yüngül gradient */
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* subtle shadow */
    transition: all 0.2s ease;
}

    .admin-link:hover {
        background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
        color: #111827;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

/* Logout link */
.logout-link {
    color: #ffffff;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #374151;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

    .logout-link:hover {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-color: #1f2937;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
