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

:root {
    --color-primary: #00e5ff;
    /* Cyan JDM */
    --color-primary-hover: #00b8cc;
    --color-bg: #0d0d0d;
    --color-brighter-bg: #161616;
    --color-text: #ffffff;
    --color-text-secondary: #aaaaaa;
    /* Optimized Background */
    --bg-image: linear-gradient(135deg, #0f0f10 0%, #1a1a1e 100%);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    overflow-x: hidden;
    background: var(--bg-image);
}

/* Home Hero Section */
.home-hero {
    height: 400px;
    /* Reduced from 60vh to fix "giant spacing" */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, rgba(13, 13, 13, 0) 70%),
        url('https://r4.wallpaperflare.com/wallpaper/586/602/692/car-vehicle-jdm-wallpaper-89c0989d91ca6dbb6667984f107126bd.jpg');
    /* Keep image but maybe user wants it removed? Let's use a darker overlay */
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 40px;
}

/* ... (keeping intermediate rules if needed, but targeting specific blocks is safer) ... */

/* Standalone Logout Door Button */
.logout-btn {
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    /* Larger icon */
    margin-left: 5px;
    background: transparent !important;
    /* Transparent by default */
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.logout-btn:hover {
    background: #ff4d4d !important;
    /* Red warning color for logout */
    border-color: #ff4d4d;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
    transform: skewX(-10deg) scale(1.1);
}

/* Overlay for better text readability */
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darken bg */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    /* Center the button */
    gap: 20px;
}

.basket-btn-wrapper .btn-basket {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 1rem;
}

/* Fix Basket "0" styling */
.basket-btn-wrapper .btn-basket {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px;
    font-size: 1.1rem;
    min-width: 80px;
}

.basket-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* JDM / Automotive Styling Overrides */

/* Skewed Buttons for Speed Look */
.btn-primary,
.btn-secondary,
.btn-tertiary {
    transform: skewX(-10deg);
    border-radius: 0 !important;
    /* Sharp edges */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary>*,
.btn-secondary>*,
.btn-tertiary>* {
    transform: skewX(10deg);
    /* Counter skew content */
    display: inline-block;
}

.btn-primary {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    border-color: var(--color-primary);
}

/* Navigation - Techy Look */
.site-header {
    border-bottom: 2px solid var(--color-primary);
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
}

/* Cards / Widgets - sharp corners and dark bg */
.widget,
.store-product,
.category-description,
.store-text {
    border-radius: 2px !important;
    border: 1px solid #222;
    background: var(--color-brighter-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.widget-title,
.product-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Sale Banner */
.site-sale-banner {
    transform: skewX(-10deg);
    border: 1px solid var(--color-primary);
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Products Layout */
.store-product .image {
    transition: transform 0.3s ease;
}

.store-product:hover .image {
    transform: scale(1.05);
}

/* Inputs */
input[type=text],
input[type=number],
select,
textarea {
    background: #111 !important;
    border: 1px solid #333;
    color: #fff !important;
    border-radius: 0 !important;
    font-family: var(--font-body);
}

/* Logo Sizing override */
.site-logo {
    max-height: 100px !important;
    /* Larger Logo */
    height: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05) skewX(-5deg);
}

/* Header container refactor for top nav */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    height: auto;
    min-height: 120px;
    position: relative;
    /* Ensure z-index works */
    z-index: 1000;
    /* Fix clickable issues */
}

/* Ensure navigation is horizontal if moved */
.top-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

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

.nav-item {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    transform: skewX(-20deg);
}

.nav-item:hover::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-brighter-bg);
    border: 1px solid #333;
    border-top: 2px solid var(--color-primary);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 25px;
    /* Slide effect */
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: 400px;
    z-index: -1;
    background: var(--bg-image) center center/cover no-repeat;
    mask-image: linear-gradient(rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    border-radius: 2px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    box-shadow: 0 0 6px rgb(from var(--btn-color-bg-hover) r g b/0.6);
}

.quantity-field {
    border-radius: 5px;
}

.site-header-inner .info .image {
    border-radius: 5px;
}

.site-sale-banner {
    border-radius: 5px;
}

.site-home-categories .category {
    border-radius: 5px;
    padding: 20px var(--widget-padding);
    background: var(--color-brighter-bg);
    transition: color 0.15s ease-in-out;
}

.site-home-categories .category:hover {
    color: var(--color-primary);
}

.category-description {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

.store-text {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
    text-align: center;
}

.store-products-list .store-product,
.store-products-images .store-product {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

.store-products-images .store-product {
    text-align: center;
}

.widget-title {
    text-align: center;
}

.widget .store-product {
    text-align: center;
}

.no-products {
    color: var(--color-text-secondary);
    background: var(--color-brighter-bg);
    border-radius: 5px;
}

.store-product-full {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

.store-product .quantity-field {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

.store-product .quantity-field input[type=number] {
    border: none;
}

@media (width > 960px) {
    .navigation-horizontal>ul {
        border-radius: 5px;
    }
}

.navigation-horizontal .has-children>ul {
    border-radius: 5px;
}

.widget {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

@media (width <=960px) {
    .widget.site-navigation {
        border-radius: 0;
        background: transparent;
    }
}

.widget-gift-card .gift-card-input {
    border-radius: 2px;
}

.widget-top-donator .avatar {
    border-radius: 50%;
}

.widget-community-goal .progress,
.widget-goal .progress {
    border-radius: 2px;
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
    border-radius: 2px;
}

.popup-content {
    border-radius: 5px;
}

.popup-close {
    border-radius: 0 5px 0 5px;
}

.basket-popup-content,
.basket-popup-content .popup-close {
    border-radius: 0;
}

.basket-items {
    padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
    border-radius: 5px;
}

.basket-item .quantity {
    border-radius: 2px;
}

.toast {
    border-radius: 6px;
}

.toast-close {
    border-radius: 2px;
}

.store-category-tiered {
    border-radius: 5px;
    background: var(--color-brighter-bg);
}

.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
    text-align: center;
}

.store-product-tiered {
    border-radius: 5px;
    background: rgb(from var(--color-bg) r g b/0.5);
}

.media-slider .slider,
.media-slider .thumb {
    border-radius: 5px;
}

.media-slider .open-lightbox {
    border-radius: 2px;
}

.popup.popup-media-slider .thumb {
    border-radius: 5px;
}

.popup.popup-media-slider .popup-close {
    border-radius: 5px;
}

/* Fix popup visibility over header */
.popup {
    z-index: 10001 !important;
    /* Ensure it is above the header */
}

/* Ensure basket/modal overlay backgrounds are also above */
.overlay,
.modal-backdrop {
    z-index: 10000 !important;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    list-style: none;
    /* Reset if inherited */
}

.user-menu .dropdown {
    right: 0;
    left: auto;
    /* Align to right edge */
    min-width: 150px;
    top: 100%;
    margin-top: 10px;
    /* Gap */
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
}

.user-btn i {
    font-size: 0.9em;
}

/* Auth Buttons Layout */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu:hover .dropdown {
    display: flex;
    /* Ensure it opens */
}

/* New Homepage Design */
.home-welcome-container {
    padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(15, 26, 46, 0.8) 0%, rgba(13, 13, 13, 1) 100%);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-welcome-box {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(13, 13, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    backdrop-filter: blur(5px);
    position: relative;
    border-radius: 2px;
}

.welcome-label {
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 225, 255, 0.3);
}

.welcome-title {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 20px;
}

.welcome-divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 30px auto;
    transform: skewX(-20deg);
    box-shadow: 0 0 15px var(--color-primary);
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.social-btn {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: skewX(-10deg);
}

.social-btn:hover {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Plan Cards Grid */
.plan-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    height: 100%;
}

/* Subscribe Card Special Style */
.plan-card.subscribe {
    border-left: 4px solid var(--color-primary);
}

.plan-card.subscribe:hover {
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Lifetime Card Special Style */
.plan-card.lifetime {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--color-primary);
}

.plan-card.lifetime:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.plan-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.plan-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-style: italic;
}

.plan-card.subscribe .plan-title {
    color: var(--color-primary);
}

.plan-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

    .welcome-title {
        font-size: 2.5rem;
    }
}

/* Footer Payment Icons */
.we-accept {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.we-accept li i {
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    font-size: 28px !important;
    /* Force size */
}

.we-accept li i:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Discord Button Header */
.btn-discord-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-discord-header i {
    font-size: 28px;
    color: #fff;
    transition: all 0.3s ease;
}

.discord-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.discord-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
    /* Glitch/Chromic effect static */
    text-shadow: 2px 0 #00e5ff, -2px 0 #ff00de;
}

.discord-subtitle {
    font-size: 9px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Hover - "Review" style (Cyan bg) */
.btn-discord-header:hover {
    background: var(--color-primary);
    border-left-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: skewX(-5deg);
}

.btn-discord-header:hover i,
.btn-discord-header:hover .discord-title,
.btn-discord-header:hover .discord-subtitle {
    color: #000;
    text-shadow: none;
}

.btn-discord-header:hover .discord-text {
    transform: skewX(5deg);
    /* Counter skew text */
}

@media (max-width: 960px) {
    .btn-discord-header {
        display: none;
        /* Hide on mobile/tablet to save space */
    }
}

/* Coupon Popup Toaster */
.coupon-popup-overlay {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: 20000;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    /* Let clicks pass through transparent area */
}

/* Coupon Box */
.coupon-popup-box {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid #333;
    border-left: 4px solid #00e5ff;
    padding: 25px;
    width: 380px;
    /* Smaller width */
    max-width: 90vw;
    text-align: left;
    /* Left align text */
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    /* Re-enable clicks on box */
    backdrop-filter: blur(10px);
}

.coupon-popup-overlay.active .coupon-popup-box {
    transform: translateY(0);
    opacity: 1;
}

/* Header Stripe removed for cleaner look, using left border instead */
.coupon-header-stripe {
    display: none;
}

.coupon-content {
    padding: 0;
}

/* Close Button */
.coupon-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.coupon-close:hover {
    background: #ff4d4d;
    color: #fff;
}

/* Popup Typography */
.coupon-title {
    font-size: 24px;
    /* Smaller title */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    margin: 5px 0 5px 0;
    line-height: 1;
}

.coupon-subtitle {
    font-size: 13px;
    /* Smaller subtitle */
    color: #aaa;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Coupon Code Display */
.coupon-code-display {
    background: rgba(0, 229, 255, 0.1);
    border: 1px dashed #00e5ff;
    padding: 8px 15px;
    font-size: 20px;
    font-weight: 800;
    color: #00e5ff;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.coupon-code-display:hover {
    background: #00e5ff;
    color: #000;
}

.coupon-note {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    display: none;
    /* Hide note to save space */
}