:root {
    --primary-orange: #ff8c00;
    --dark-orange: #e07b00;
    --text-dark: #1a1a1a;
    --text-gray: #7a7a7a;
    --bg-light: #f5f6f8;
    --bg-white: #ffffff;
    --footer-bg: #151515;
    --discord-color: #5865F2;
    --tiktok-color: #111111;
    --youtube-color: #FF0000;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    /* Subtle checkerboard pattern */
    background-image: conic-gradient(
        #ececec 90deg, 
        #f5f5f5 90deg 180deg, 
        #ececec 180deg 270deg, 
        #f5f5f5 270deg
    );
    background-size: 300px 300px;
    background-position: center top;
    background-attachment: fixed;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background-color: var(--primary-orange);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.promo-code {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 5px;
}

/* Navbar */
.navbar {
    background: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-orange);
}

.nav-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-logo img {
    height: 80px;
    object-fit: contain;
}

.nav-socials {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform 0.2s, opacity 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-icon.discord { background-color: var(--discord-color); }
.social-icon.tiktok { background-color: var(--tiktok-color); }
.social-icon.youtube { background-color: var(--youtube-color); }

/* Hero Section */
.hero {
    background-color: var(--primary-orange);
    /* Subtle green checkerboard */
    background-image: conic-gradient(
        rgba(0,0,0,0.03) 90deg, 
        transparent 90deg 180deg, 
        rgba(0,0,0,0.03) 180deg 270deg, 
        transparent 270deg
    );
    background-size: 80px 80px;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    position: relative;
    margin-top: 20px;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.15);
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-discord-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    margin-left: -10px;
}
.avatars img:first-child {
    margin-left: 0;
}

.stats-text {
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 13px;
    line-height: 1.3;
}
.stats-text span:first-child {
    font-weight: 700;
}

.hero h1 {
    color: white;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 40px;
    font-weight: 500;
}

.copy-ip-btn {
    background-color: #e07b00;
    border: none;
    border-radius: 12px;
    padding: 8px 24px 8px 8px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.copy-ip-btn:hover {
    transform: scale(1.03);
    background-color: #cc7000;
}

.btn-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon img {
    width: 30px;
    height: 30px;
    image-rendering: pixelated;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: white;
}

.btn-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
}

.btn-sub {
    font-size: 13px;
    opacity: 0.8;
}

.hero-image {
    position: absolute;
    right: -20px;
    bottom: -20px;
    height: 120%;
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.2));
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
}

.layout-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
}

.layout-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Section Headers */
.section-header {
    margin-bottom: 25px;
}

.section-header.mt-lg {
    margin-top: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.section-header p {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Cards Shared Styles */
.mode-card, .purchase-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.mode-card:hover, .purchase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Left Modes Grid (Vertical) */
.modes-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Right Purchases Row */
.purchases-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 58px; /* align roughly with left cards */
}

/* Purchase Card */
.purchase-card {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.player-head {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.purchase-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.item-name {
    font-weight: 800;
    font-size: 13px;
    color: var(--primary-orange);
    text-transform: uppercase;
}

.item-name.klucz {
    color: #ff9d00; /* maybe slightly different green if needed */
}

.time {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

/* Right Modes Row */
.modes-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Mode Card */
.mode-card {
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 25px;
}

.mode-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform 0.2s;
}

.mode-card:hover .mode-icon img {
    transform: scale(1.1);
}

.mode-card.unavailable {
    cursor: not-allowed;
}

.mode-card.unavailable .mode-info {
    background-color: #ffe6e6; /* Light red */
    border-radius: 12px;
    padding: 12px;
    margin-left: -12px;
}

.mode-card.unavailable .check-offer {
    color: #e63946; /* Red text for 'Niedostępny' */
}

.mode-info h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.check-offer {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    background-image: conic-gradient(
        #1c1c1c 90deg,
        transparent 90deg 180deg,
        #1c1c1c 180deg 270deg,
        transparent 270deg
    );
    background-size: 150px 150px;
    padding: 50px 0;
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    max-width: 400px;
}

.footer-logo h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.copyright {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.disclaimer {
    color: #555;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 30px;
}

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

.footer-links a {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Discord Widget Footer */
.discord-widget {
    background-color: var(--discord-color);
    border-radius: 16px;
    display: flex;
    width: 320px;
    position: relative;
    transition: transform 0.2s;
    cursor: pointer;
}

.discord-widget:hover {
    transform: translateY(-5px);
}

.widget-content {
    padding: 25px;
    flex: 1;
    z-index: 2;
}

.widget-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
}

.widget-content p {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 15px;
}

.widget-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
}

.avatars-small {
    display: flex;
}

.avatars-small img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: -8px;
    border: 1px solid var(--discord-color);
}
.avatars-small img:first-child {
    margin-left: 0;
}

.widget-stats span {
    font-size: 13px;
    font-weight: 700;
}

.widget-image {
    width: 120px;
    position: relative;
}

.widget-image img {
    position: absolute;
    right: -10px;
    bottom: -10px;
    height: 130%;
    object-fit: contain;
}

.external-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }
    
    .layout-left {
        flex: none;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .section-header.mt-lg {
        margin-top: 0;
        grid-column: 2;
    }
    
    .modes-left {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .modes-left .mode-card {
        flex: 1;
        min-width: 250px;
    }
    
    .purchases-row {
        margin-top: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modes-right {
        margin-top: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-logo img {
        height: 60px;
    }
    
    .nav-socials {
        justify-content: center;
        width: 100%;
        margin-top: 5px;
    }

    .hero {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 36px;
    }
    
    .hero-discord-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .copy-ip-btn {
        margin: 0 auto;
    }
    
    .hero-image {
        position: relative;
        right: auto;
        bottom: auto;
        height: 200px;
        margin-top: 30px;
    }
    
    .layout-left {
        grid-template-columns: 1fr;
    }
    
    .section-header.mt-lg {
        grid-column: 1;
        margin-top: 20px;
    }

    .section-header {
        text-align: center;
    }
    
    .modes-left {
        flex-direction: column;
    }

    .purchases-row, .modes-right {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .discord-widget {
        width: 100%;
        max-width: 100%;
    }

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

    .rules-header > div {
        justify-content: center;
    }
}

/* Regulamin View */
.rules-view {
    padding: 20px 0 60px 0;
}

.rules-header {
    margin-bottom: 40px;
}

.rules-header h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.rules-header p {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 5px;
}

.rules-container {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rule-block h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.rule-block p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.rule-block p:last-child,
.rule-block ul:last-child {
    margin-bottom: 0;
}

.rule-block ul {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 20px;
}

.rule-block li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .rules-container {
        padding: 25px;
    }
}

/* Store View */
.store-view {
    padding: 20px 0 60px 0;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.mode-icon-large {
    width: 64px;
    height: 64px;
}

.mode-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.store-title h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
}

.store-title p {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 5px;
}

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

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    -webkit-text-stroke: 1px #222;
    text-shadow: 2px 2px 0 #222;
    letter-spacing: 2px;
}

.product-tag.vip { color: #facc15; }
.product-tag.svip { color: #4ade80; }
.product-tag.mvip { color: #2dd4bf; }
.product-tag.kox { color: #22c55e; }

.product-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.product-amount {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.product-card .price {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-orange);
    margin-bottom: 20px;
    margin-top: auto;
}

.product-card .price span {
    font-size: 14px;
    vertical-align: super;
}

.buy-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.buy-btn:hover {
    transform: translateY(-2px);
    background-color: var(--dark-orange);
}

.other-servers-section h4 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.other-servers-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.other-server-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.2s;
    text-decoration: none;
}

.other-server-pill:hover {
    transform: translateY(-2px);
}

.other-server-pill img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

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

/* Custom Alert Modal */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.custom-alert-box {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.custom-alert-message {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-alert-actions {
    display: flex;
    justify-content: flex-end;
}

.custom-alert-btn {
    background: #a8c7fa;
    color: #000;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-btn:hover {
    background: #8ab4f8;
}
