* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --accent: #ff64ff;
    --accent-hover: #ff7fff;
    --text: #f5f5f5;
    --text-muted: #8a8a9a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Tło GTA 5 - miasto nocą (możesz podmienić na assets/gta-bg.jpg) */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.92) 100%),
        url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1920') center/cover no-repeat;
    animation: bgShift 25s ease-in-out infinite alternate;
}

.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

@keyframes bgShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    backdrop-filter: blur(12px);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-discord {
    background: #5865f2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #e040ff 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 24px rgba(255,100,255,0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255,100,255,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-copy {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(255,100,255,0.25), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255,100,255,0.12), transparent),
        linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    animation: heroFadeIn 1s ease-out;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 30px rgba(255,100,255,0.5));
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    letter-spacing: 12px;
    color: var(--accent);
    margin-bottom: 12px;
    text-shadow: 
        0 0 40px rgba(255,100,255,0.6),
        0 0 80px rgba(255,100,255,0.4),
        0 2px 20px rgba(0,0,0,0.8);
    animation: logoPulse 2.5s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from { opacity: 0.95; }
    to { opacity: 1; text-shadow: 0 0 50px rgba(255,100,255,0.7), 0 0 100px rgba(255,100,255,0.4), 0 2px 20px rgba(0,0,0,0.8); }
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-desc {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255,100,255,0.4);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */
section {
    padding: 100px 0;
}

section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 30px rgba(255,100,255,0.3);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About */
.about {
    background: rgba(18,18,26,0.6);
    backdrop-filter: blur(12px);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: rgba(18,18,26,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    border-color: rgba(255,100,255,0.4);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255,100,255,0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Connect */
.connect {
    position: relative;
}

.connect-steps {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 48px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: 700;
}

.step p {
    color: var(--text-muted);
}

.step a {
    color: var(--accent);
}

.connect-box {
    max-width: 520px;
    margin: 32px auto 0;
    background: rgba(18,18,26,0.9);
    border: 1px solid rgba(255,100,255,0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 0 40px rgba(255,100,255,0.1);
}

.connect-direct {
    margin-top: 20px;
}

.connect-direct .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1.1rem;
}

.connect-label {
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.connect-box code {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    font-family: monospace;
}

/* Regulamin - styl ExoticRP */
.regulamin {
    background: rgba(0,0,0,0.6);
}

.regulamin-container {
    max-width: 1200px;
}

.regulamin-header-exotic {
    text-align: center;
    margin-bottom: 48px;
}

.regulamin-logo {
    width: 100px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 25px rgba(255,100,255,0.4));
}

.regulamin-header-exotic h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 16px;
}

.regulamin-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.regulamin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.regulamin-toc {
    position: sticky;
    top: 100px;
    background: rgba(25,25,35,0.9);
    border: 1px solid rgba(255,100,255,0.15);
    border-radius: 12px;
    padding: 24px;
}

.regulamin-toc h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.toc-nav a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.regulamin-pomoc {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.regulamin-pomoc h4 {
    margin-bottom: 12px;
}

.regulamin-pomoc a {
    display: block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

.regulamin-pomoc a:hover {
    opacity: 0.8;
}

.regulamin-content {
    min-width: 0;
}

.reg-section {
    margin-bottom: 36px;
    padding: 24px 28px;
    scroll-margin-top: 100px;
    background: rgba(25,25,35,0.6);
    border: 1px solid rgba(255,100,255,0.1);
    border-radius: 10px;
}

.reg-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,100,255,0.3);
}

.reg-section ul {
    list-style: none;
}

.reg-section > ul > li {
    position: relative;
    padding: 10px 0 10px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid transparent;
}

.reg-section > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.reg-section > ul > li:hover {
    border-left-color: rgba(255,100,255,0.4);
}

.reg-section > ul > li strong {
    color: var(--text);
    margin-right: 4px;
}

.reg-section > ul > li.sub {
    padding-left: 32px;
    margin-left: 12px;
    border-left: 2px solid rgba(255,100,255,0.2);
}

.reg-section > ul > li.sub::before {
    display: none;
}

.reg-section ul.nest {
    margin: 8px 0 8px 16px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.reg-section ul.nest li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.reg-section ul.nest li::before {
    display: none;
}

.reg-section code {
    display: inline;
    padding: 2px 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.reg-glossary li {
    padding: 8px 0 8px 20px;
}

@media (max-width: 900px) {
    .regulamin-layout {
        grid-template-columns: 1fr;
    }

    .regulamin-toc {
        position: static;
    }
}

/* Podania - styl ExoticRP */
.podania {
    background: rgba(18,18,26,0.85);
    backdrop-filter: blur(12px);
}

.container-podania {
    max-width: 1000px;
}

.podania-header {
    text-align: center;
    margin-bottom: 40px;
}

.podania-logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(255,100,255,0.4));
}

.podania-header h2 {
    margin-bottom: 8px;
}

.podania-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.podania-auth-required {
    background: rgba(25,25,35,0.9);
    border: 1px solid rgba(255,100,255,0.2);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
}

.podania-auth-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.podania-auth-box p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.podania-auth-discord {
    margin-top: 20px;
    font-size: 0.9rem;
}

.podania-auth-discord a {
    color: var(--accent);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-username {
    font-size: 0.9rem;
    color: var(--text);
}

.btn-logout {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.podania-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.podanie-card {
    background: rgba(25,25,35,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.podanie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.podanie-card:hover {
    border-color: rgba(255,100,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255,100,255,0.15);
}

.podanie-card:hover::before {
    opacity: 1;
}

.podanie-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.podanie-card h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 4px;
}

.podanie-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.podanie-card-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,100,255,0.2);
    color: var(--accent);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.podanie-card:hover .podanie-card-btn {
    background: var(--accent);
    color: var(--bg-dark);
}

.podania-discord-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.podania-discord-note a {
    color: var(--accent);
}

.podania-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.podania-modal.open {
    display: flex;
}

.podania-modal-content {
    position: relative;
    background: rgba(18,18,26,0.98);
    border: 1px solid rgba(255,100,255,0.2);
    border-radius: 12px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(255,100,255,0.1);
}

.podania-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.podania-modal-logo {
    width: 48px;
    height: auto;
}

.podania-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.podania-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.podania-modal-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0;
}

.podania-form .form-group {
    margin-bottom: 20px;
}

.podania-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.podania-form input,
.podania-form select,
.podania-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.podania-form input:focus,
.podania-form select:focus,
.podania-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.podania-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: auto;
    margin-top: 4px;
}

.form-message {
    margin: 12px 0;
    font-size: 0.95rem;
}

.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

.podania-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .connect-steps {
        flex-direction: column;
        align-items: center;
    }
}
