:root {
    --bg-main: #18181b;
    --bg-card: #27272a;
    --bg-footer-top: #131316;
    --bg-footer-bottom: #0f0f11;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-red: #f87171;
    --accent-red-hover: #ef4444;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #3b82f6;
    --accent-green: #84cc16;
    
    --card-red-gradient: linear-gradient(135deg, #a41936, #7a0e24);
    --card-border: #d72146;
    --card-circle: rgba(255, 255, 255, 0.05);

    --border-color: #3f3f46;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* Top Nav */
.top-nav-wrapper {
    padding: 15px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

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

.nav-links a:hover, .back-link:hover {
    color: var(--text-main);
}

/* Header */
.main-header {
    background-color: #202022;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.icon-box {
    width: 45px;
    height: 45px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.3);
}

.text-info h2 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.text-info p {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.header-right {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.btn-login {
    background-color: var(--accent-red);
    color: white;
}

.btn-cart {
    display: none !important;
}

/* Sale Banner */
.sale-banner {
    background-color: #202022;
    border-radius: 12px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.sale-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--accent-green);
    border-radius: 2px 2px 0 0;
}

.sale-tag {
    background-color: var(--accent-green);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
}

.sale-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.countdown {
    display: flex;
    gap: 10px;
    background-color: #2a2a2d;
    padding: 10px 15px;
    border-radius: 8px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.time-box .number {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.time-box .label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Store Categories */
.store-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--card-red-gradient);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(215, 33, 70, 0.3);
}

.card-bg-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    pointer-events: none;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.card-info h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.card-info p {
    font-size: 0.9rem;
    font-weight: 600;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.card-icon img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.question-mark {
    font-size: 5rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 2px 2px 0 #000, 
                 -2px -2px 0 #000, 
                 2px -2px 0 #000, 
                 -2px 2px 0 #000,
                 0 5px 15px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace;
}

/* Footer */
footer {
    margin-top: 50px;
}

.footer-top {
    background-color: var(--bg-footer-top);
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-column p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-copy {
    background-color: var(--accent-blue);
    color: #1a1a1a;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-copy:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.45) !important;
    filter: brightness(1.1);
}

.btn-copy:active {
    transform: translateY(-1px) scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2) !important;
}

.btn-discord {
    background-color: var(--accent-red);
    color: white;
}

.footer-bottom-wrapper {
    background-color: var(--bg-footer-bottom);
    padding: 25px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.copyright-info {
    color: var(--text-main);
    margin-bottom: 4px;
}

.theme-credits strong {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
    }
    
    .sale-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .store-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rank-list {
        grid-template-columns: 1fr;
    }
}

/* Ranks Page Styles */
.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.rank-item {
    background-color: #202022;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rank-image-box {
    background-color: #161616;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    border-right: 1px solid rgba(255,255,255,0.02);
}

.rank-image-box img {
    max-width: 100%;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.rank-info-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.rank-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.rank-price {
    font-size: 0.95rem;
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 15px;
}

.rank-inr {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.rank-buttons {
    display: flex;
    gap: 10px;
}

.btn-info-small {
    background-color: var(--accent-red);
    color: white;
    padding: 8px 25px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.btn-cart-small {
    background-color: var(--accent-blue);
    color: #1a1a1a;
    padding: 8px 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    flex: 1;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.btn-info-small:hover, .btn-cart-small:hover {
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(6, 4, 9, 0.75); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.modal-content {
    background: rgba(18, 14, 28, 0.93) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 2px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 420px !important;
    padding: 30px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75),
                0 0 40px rgba(139, 92, 246, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #e4e4e7 !important;
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    0% { transform: translateY(30px) scale(0.96); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(139, 92, 246, 0.15) !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
}

.modal-header h2 {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.close-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
}

.close-btn:hover {
    transform: scale(1.15) rotate(10deg) !important;
    filter: brightness(1.2) !important;
}

.mc-section {
    margin-bottom: 20px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.mc-title {
    font-size: 0.95rem !important;
    color: #a1a1aa !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-left: 3px solid rgba(139, 92, 246, 0.8) !important;
    padding-left: 8px !important;
}

.mc-item {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #e4e4e7 !important;
}

.mc-bullet {
    font-size: 0.75rem !important;
    color: rgba(139, 92, 246, 0.8) !important;
}

/* Dialogue Injected Content Styling */
#loginModal p {
    margin-bottom: 22px !important;
    font-size: 0.92rem !important;
    color: #d4d4d8 !important;
    line-height: 1.6 !important;
    font-family: 'Montserrat', sans-serif !important;
}

#loginModal p span {
    color: #60a5fa !important;
    font-weight: 700 !important;
}

#mcUsername {
    width: 100% !important;
    padding: 13px 16px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

#mcUsername:focus {
    border-color: #84cc16 !important;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.25),
                inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    background: rgba(0, 0, 0, 0.45) !important;
}

#submitLoginBtn {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%) !important;
    color: #120a16 !important;
    width: 100% !important;
    font-size: 1.05rem !important;
    padding: 13px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(132, 204, 22, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: none !important;
}

#submitLoginBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.55) !important;
    filter: brightness(1.08) !important;
}

#submitLoginBtn:active {
    transform: translateY(0) !important;
}

/* Vote Page Styles */
.vote-links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.vote-link-btn {
    background: var(--card-red-gradient);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vote-link-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(215, 33, 70, 0.3);
}

.vote-link-btn i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
}
