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

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

html, body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1a0f3e 0%, #2d1b69 50%, #1a0f3e 100%);
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(20, 10, 50, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.header .logo img {
    height: 45px;
}

.header nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    transition: width 0.3s ease;
}

.header nav a:hover {
    color: #ffd700;
}

.header nav a:hover::after {
    width: 100%;
}

.header .auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header .auth .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.header .auth .btn-login {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
}

.header .auth .btn-login:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.header .auth .btn-register {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a0f3e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.header .auth .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main */
.main {
    flex: 1;
    padding: 40px 0;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #2d1b69 0%, #4a2d8f 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(138, 43, 226, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.promo-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.promo-title {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite;
}

.promo-subtitle {
    font-size: 28px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
}

.promo-btn {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(135deg, #32cd32 0%, #228b22 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(50, 205, 50, 0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.promo-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(50, 205, 50, 0.7);
}

/* Section */
.section {
    margin: 60px 0;
    padding: 50px;
    background: rgba(20, 10, 50, 0.6);
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    margin: 30px 0 20px;
}

p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

/* Lists */
ul, ol {
    margin: 25px 0;
    padding-left: 40px;
}

ul li, ol li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    position: relative;
}

ul {
    list-style: none;
}

ul li::before {
    content: '⭐';
    position: absolute;
    left: -30px;
    color: #ffd700;
}

ol {
    list-style: decimal;
    list-style-position: outside;
}

ol li::marker {
    color: #ffd700;
    font-weight: 700;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(20, 10, 50, 0.4);
    border-radius: 15px;
    overflow: hidden;
    display: table;
}

thead {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 18px;
    color: #1a0f3e;
    text-transform: uppercase;
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

tr:hover td {
    background: rgba(255, 215, 0, 0.1);
}

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

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.card {
    background: rgba(20, 10, 50, 0.6);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

.card__content {
    padding: 25px;
}

.card__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
}

.card__text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(20, 10, 50, 0.95);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 80px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer .list-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.footer ul li::before {
    content: '';
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}

/* ============================================ */
/* RESPONSIVE DESIGN - MOBILE OPTIMIZATION */
/* ============================================ */

/* Tablet and below (992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .header nav ul {
        gap: 20px;
    }

    .header nav a {
        font-size: 14px;
    }

    .promo-title {
        font-size: 42px;
    }

    .promo-subtitle {
        font-size: 24px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 24px;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile Optimization */
    .header {
        padding: 15px 0;
    }

    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .header .logo img {
        height: 35px;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .header nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header nav.active {
        max-height: 500px;
    }

    .header nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
        width: 100%;
    }

    .header nav li {
        width: 100%;
        text-align: center;
    }

    .header nav a {
        display: block;
        padding: 12px;
        font-size: 14px;
    }

    /* Auth buttons mobile */
    .header .auth {
        gap: 10px;
        order: 2;
    }

    .header .auth .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Promo Banner Mobile */
    .promo-banner {
        padding: 40px 20px;
        margin: 20px 0;
        border-radius: 20px;
    }

    .promo-title {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .promo-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .promo-btn {
        padding: 15px 40px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
    }

    /* Main Content Mobile */
    .main {
        padding: 20px 0;
    }

    /* Sections Mobile */
    .section {
        margin: 30px 0;
        padding: 25px 15px;
        border-radius: 15px;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 25px;
        line-height: 1.3;
    }

    h3 {
        font-size: 20px;
        margin: 20px 0 15px;
    }

    p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* Lists Mobile */
    ul, ol {
        margin: 20px 0;
        padding-left: 30px;
    }

    ul li, ol li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    ul li::before {
        left: -25px;
        font-size: 14px;
    }

    /* Tables Mobile - Card Style */
    table {
        display: block;
        border-radius: 10px;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tr {
        display: block;
        margin-bottom: 20px;
        background: rgba(20, 10, 50, 0.6);
        border-radius: 10px;
        padding: 15px;
        border: 1px solid rgba(255, 215, 0, 0.2);
    }

    td {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        text-align: left;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 700;
        color: #ffd700;
        margin-right: 10px;
        min-width: 120px;
    }

    /* Cards Mobile */
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .card {
        border-radius: 15px;
    }

    .card__content {
        padding: 20px;
    }

    .card__title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .card__text {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Footer Mobile */
    .footer {
        padding: 30px 0 20px;
        margin-top: 40px;
    }

    .footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer .list-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer ul {
        gap: 10px;
    }

    .footer ul li a {
        font-size: 14px;
    }
}

/* Small Mobile devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header .logo {
        font-size: 16px;
    }

    .header .logo img {
        height: 30px;
    }

    .header .auth .btn {
        padding: 8px 15px;
        font-size: 11px;
    }

    .promo-banner {
        padding: 30px 15px;
        margin: 15px 0;
    }

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

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

    .promo-btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
    }

    .section {
        padding: 20px 12px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p, ul li, ol li {
        font-size: 14px;
    }

    .card__content {
        padding: 15px;
    }

    .card__title {
        font-size: 18px;
    }

    .card__text {
        font-size: 13px;
    }

    td::before {
        display: block;
        margin-bottom: 5px;
    }
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .promo-banner {
        padding: 30px 20px;
    }

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

    .promo-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .promo-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .header nav a,
    .footer ul li a,
    .card,
    .promo-btn,
    .header .auth .btn {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
    }

    .card:active {
        transform: scale(0.98);
    }

    .promo-btn:active {
        transform: scale(0.95);
    }
}