
:root {
    --logo_width: 300px;
    --main-color: #ff4d4d; 
    --error-color: #dc2626; 
    --hover-buy: #ff6666; 
    --background-color: #0a0a0a; 
    --second-background: #1a1a1a; 
    --third-background: #2d2d2d; 
    --package-border: rgba(255, 255, 255, 0.05);
    --primary-text-color: #ffffff; 
    --focus-text-color: #ff4d4d; 
    --secondary-text-color: #9ca3af; 
    --green-button: #ff4d4d; 
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 12px;
    --header-img: url("");
    --filter-shadow: rgba(255, 77, 77, 0.2); 
    --height-image: 500px;
    --opacity-image: 0.15;
    --blur-image: 5px;

    --color-text: #fff;
    --color-text-darker: #e5e5e5;
    --color-text-secondary: #ccc;
    --color-text-dark: #0D0D0D;
    --color-bg: #000;
    --color-brighter-bg: #0D0D0D;
    --color-primary: rgb(0 72 255);
    --color-primary-hover: #fff;
    --color-primary-text: var(--color-text-dark);
    --color-primary-text-hover: var(--color-primary-text);
    --color-secondary: #ccc;
    --color-secondary-hover: #e5e5e5;
    --color-secondary-text: var(--color-text-dark);
    --color-secondary-text-hover: var(--color-secondary-text);
    --color-tertiary: transparent;
    --color-tertiary-hover: rgb(255 255 255 / 15%);
    --color-tertiary-text: var(--color-text);
    --color-tertiary-text-hover: var(--color-tertiary-text);
    --color-removed: #C12E2E;
    --color-sale-banner-bg: var(--color-primary);
    --color-sale-banner-text: var(--color-primary-text);
    --tebex-footer-height: 35px;
    --widget-padding: 24px;
    --content-padding: var(--widget-padding);
    --content-inner-width: 1280px;
    --content-width: calc((var(--content-padding) * 2) + var(--content-inner-width));
    --sidebar-width: 287px;
    --tebex-legal-footer-max-width: min(
        var(--content-inner-width),
        calc(100vw - (var(--content-padding) * 2))
    );
    --tebex-legal-footer-background-color: var(--color-brighter-bg);
    --tebex-legal-footer-border-color: var(--color-brighter-bg);
    --tebex-legal-footer-text-color: var(--color-text-secondary);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    vertical-align: baseline;
    color: inherit;
    background: transparent;
    font-size: inherit;
    font-family: var(--font-family);
    font-weight: inherit;
    letter-spacing: inherit;
}

body {
    background: var(--background-color) !important;
    color: var(--secondary-text-color);
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    min-height: 100vh;
    position: relative;
    max-width: 100%;
    width: 100%;
    accent-color: var(--color-primary);
    font-size: 16px;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

/* Allow text selection only in package view/description areas */
.package-info, .category-description, .home-about-text, .home-hero-content, .checkout-content-wrapper {
    user-select: text !important;
}

.triplezone-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}


.body--with-sidebar {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.body--no-sidebar {
    justify-content: center;
}

.body--no-sidebar .triplezone-main-content {
    flex: 0 0 85%;
    max-width: 1800px;
}


.category-header {
    background: var(--second-background);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid var(--package-border);
}

.category-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.category-description {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
}

.category-packages {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .package-tags {
        flex-wrap: wrap;
    }

    .btn-documentation {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .package-title {
        font-size: 1.8rem;
    }

    .package-actions-row .actions-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-cerberus {
        width: 100%;
    }

    .btn-gift-full, .btn-remove-small {
        width: 100% !important;
    }
}
        
.resource-dependencies {
    margin-top: 20px;
}

.resource-dependencies h3 {
    color: var(--primary-text-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.dependencies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-dependency {
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.resource-dependency a {
    color: #fff;
    text-decoration: none;
    height: 45px;
}

.package-card {
    background: var(--second-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--package-border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
}

.package-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.package-image {
    height: 200px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-info {
    padding: 15px;
    flex-grow: 1;
}

.package-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.package-card-tags .badge {
    padding: 2px 8px;
    font-size: 0.65rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--package-border);
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.package-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.package-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--main-color);
}

.original-price {
    font-size: 0.9rem;
    color: var(--error-color);
    margin-right: 10px;
    font-weight: 400;
}

.package-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--package-border);
}

.btn-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--package-border);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-buy, .btn-remove {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-buy {
    background: #4ade80; /* Green for "Add to Basket" */
    color: #000;
}

.btn-buy:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-remove {
    background: #4ade80;
    color: #000;
}

.btn-remove.active-in-cart {
    background: #4ade80; /* Green for "In Cart" status */
    color: #000;
}

.btn-remove.active-in-cart:hover {
    background: #22c55e;
    opacity: 0.9;
}

.btn-delete-cart {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--error-color);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 700;
}

.btn-delete-cart.wide {
    flex-grow: 1;
    width: auto;
    padding: 0 20px;
}

.btn-delete-cart:hover {
    background: var(--error-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.buy-actions-group {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.btn-gift {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--package-border);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gift:hover {
    background: #fbbf24; /* Amber/Gold for Gift */
    color: #000;
    border-color: #fbbf24;
    transform: translateY(-2px);
}

.no-packages {
    text-align: center;
    padding: 60px;
    background: var(--second-background);
    border-radius: var(--border-radius);
    color: var(--secondary-text-color);
}

@media (max-width: 992px) {
    .body--with-sidebar {
        flex-direction: column;
    }
}


.triplezone-sidebar {
    flex: 0 0 280px;
    background: var(--second-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--package-border);
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-bottom: 1px solid var(--package-border);
    cursor: pointer;
}

.sidebar-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 10px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--secondary-text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-nav li a:hover, .sidebar-nav li.active > a {
    background: rgba(255, 77, 77, 0.1);
    color: var(--main-color);
}

.sidebar-nav li.active > a {
    font-weight: 700;
}

.sidebar-nav .carret {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.has-dropdown.active .carret {
    transform: rotate(180deg);
}

.dropdown-menu {
    padding-left: 20px !important;
    display: none;
}

.has-dropdown.active .dropdown-menu {
    display: block;
}

.doc-link a {
    color: var(--main-color) !important;
    font-weight: 700 !important;
}

.doc-link a:hover {
    background: rgba(255, 77, 77, 0.1) !important;
}

.external-link a {
    color: #5865F2 !important; /* Discord color */
}

.external-link a:hover {
    background: rgba(88, 101, 242, 0.1) !important;
}

.triplezone-main-content {
    flex: 1;
    min-width: 0;
}

/* Category & Packages */
.category-header {
    background: var(--second-background);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid var(--package-border);
}

.category-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.category-description {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* Layout Structure */
.body--with-sidebar {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.triplezone-main-content {
    width: 100%;
}

.package-page-container {
    background: var(--second-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--package-border);
    overflow: hidden;
}

/* Breadcrumbs */
.package-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
}

.package-breadcrumbs a {
    color: var(--main-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.package-breadcrumbs a:hover {
    opacity: 0.8;
}

.package-breadcrumbs i {
    font-size: 1.1rem;
}

/* Header Section */
.package-header-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 30px; /* Slightly reduced padding */
    border-bottom: 1px solid var(--package-border);
}

/* Media Section */
.package-media {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    background: var(--second-background);
    margin-bottom: 15px;
    position: relative;
    cursor: zoom-in;
    display: block;
    border: 1px solid var(--package-border);
}

.main-image-wrapper.has-video {
    cursor: default;
}

#main-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#main-media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

#main-media-container img, 
#main-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 2px var(--second-background)) drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--main-color);
    font-size: 2rem;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-image-wrapper:hover .enlarge-overlay {
    opacity: 1;
}

.enlarge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.enlarge-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.main-package-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery-carousel {
    padding: 0 30px;
}

.thumbnail-item {
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 0 6px;
    background: var(--second-background);
    position: relative;
}

.thumbnail-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 1px var(--second-background));
}

.video-thumb {
    position: relative;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: var(--main-color);
    font-size: 2rem;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.thumbnail-item.active, .thumbnail-item:hover {
    border-color: var(--main-color);
    transform: scale(0.95);
}

/* Slick arrows styling */
.package-media {
    position: relative;
}

.slick-prev, .slick-next {
    position: absolute !important;
    top: 50% !important; /* Centered on main image container */
    transform: translateY(-50%) !important;
    width: 45px !important;
    height: 45px !important;
    z-index: 30 !important; /* Higher z-index to stay above the enlarge overlay */
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
}


.slick-prev {
    left: 15px !important;
}

.slick-next {
    right: 15px !important;
}

.slick-prev:hover, .slick-next:hover {
    background: var(--main-color) !important;
    transform: translateY(-50%) scale(1.1);
}

.slick-prev:before, .slick-next:before {
    font-family: "Material Design Icons" !important;
    font-size: 28px !important;
    color: #fff !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

.slick-prev:before {
    content: "\F0141" !important; /* mdi-chevron-left */
}

.slick-next:before {
    content: "\F0142" !important; /* mdi-chevron-right */
}


/* Summary Section */
.package-summary {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap */
}

.package-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.package-tags {
    display: flex;
    gap: 8px;
}

.btn-documentation {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #eee;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid var(--package-border);
}

.btn-documentation:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transform: translateY(-1px);
}

.btn-documentation i {
    font-size: 1.1rem;
    color: var(--main-color);
}

.btn-documentation:hover i {
    color: #fff;
}

.badge {
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--package-border);
    color: #999;
}

.package-title {
    font-size: 2.2rem; /* Reduced size */
    font-weight: 900;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.package-price-row .current-price {
    font-size: 1.8rem; /* Reduced size */
    font-weight: 800;
    color: var(--main-color);
}

.package-actions-row .actions-group {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn-cerberus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px; /* Reduced size */
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem; /* Reduced size */
}

.btn-buy-full {
    background: var(--main-color);
    color: #000;
    flex-grow: 1;
}

.btn-gift-full {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--package-border);
    color: #fff;
    width: 50px; /* Reduced size */
    padding: 0;
}

.btn-in-cart-status {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    flex-grow: 1;
    pointer-events: none;
}

.btn-remove-small {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--error-color);
    width: 50px; /* Reduced size */
    padding: 0;
}

/* Description Sections */
.resource-description-short {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--package-border);
}

.resource-description-short h3 {
    font-size: 1.1rem; /* Reduced size */
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.short-desc-container {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem; /* Reduced size */
}

.package-full-description {
    padding: 40px; /* Reduced padding */
    background: rgba(0, 0, 0, 0.1);
}

.description-content {
    color: #ccc;
    line-height: 1.7;
    font-size: 1rem; /* Reduced size */
}

.description-content p {
    margin-bottom: 1.2em;
    line-height: 1.7;
    color: #b0b0b0;
}

.description-content h3, .description-content h4 {
    font-weight: 800;
    color: #fff;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--package-border);
}

.description-content h3 {
    font-size: 1.5rem;
}

.description-content h4 {
    font-size: 1.25rem;
}

.description-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 1.5em;
}

.description-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8em;
    color: #b0b0b0;
}

.description-content ul li::before {
    content: '\F0142'; /* mdi-chevron-right */
    font-family: "Material Design Icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--main-color);
    font-size: 1.2em;
    line-height: 1;
}

.description-content strong {
    color: #fff;
    font-weight: 700;
}

.description-content hr {
    border: 0;
    border-top: 1px solid var(--package-border);
    margin: 2.5em 0;
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: rgba(0,0,0,0.1);
    border: 1px solid var(--package-border);
    border-radius: 8px;
    overflow: hidden;
}

.description-content th, .description-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--package-border);
}

.description-content thead {
    background: rgba(0,0,0,0.2);
}

.description-content th {
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.description-content tbody tr:last-child td {
    border-bottom: none;
}

.description-content tbody td:last-child {
    font-weight: 700;
    color: #fff;
}


/* Enlarge Modal Styles */
#modal-enlarge-image.iziModal {
    background: transparent !important;
}

.enlarged-image-container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enlarged-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
}

/* Utilities */
.no-image-placeholder {
    width: 100%;
    aspect-ratio: 3/2;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #333;
    border-radius: 12px;
}

@media (max-width: 1200px) {
    .package-header-section {
        grid-template-columns: 1fr;
    }
    .body--with-sidebar {
        width: 95%;
    }
}


@media (min-width: 1600px) {
    .packages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 1200px) {
    .body--with-sidebar {
        flex-direction: column;
    }
    .triplezone-sidebar {
        flex: 0 0 auto;
        width: 100%;
        position: static;
    }
}

/* ====================
   HOMEPAGE
   ==================== */
.homepage {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Homepage Hero --- */
.home-hero {
    position: relative;
    padding: 80px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    overflow: hidden;
    background: var(--second-background);
    border: 1px solid var(--package-border);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,77,77,0.12) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 70% 100%, rgba(255,77,77,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255,77,77,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,77,77,0.1);
    border: 1px solid rgba(255,77,77,0.2);
    border-radius: 50px;
    color: var(--main-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.home-hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--main-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.home-hero-content h1 {
    font-size: 3.2rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.15;
}

.home-hero-desc {
    font-size: 1.15rem;
    color: var(--secondary-text-color);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Homepage Buttons --- */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.home-btn-primary {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.home-btn-primary:hover {
    background: var(--hover-buy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,77,77,0.35);
}

.home-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.home-btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* --- Homepage Featured Packages --- */
.featured__packages {
    background: var(--second-background) !important;
    border: 1px solid var(--package-border) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: none !important;
}

.featured__packages .featured__packages--title {
    color: var(--main-color) !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.featured__packages .featured__packages--flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 !important;
}

.featured__packages .featured__package {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--package-border);
    border-radius: var(--border-radius);
    padding: 14px 20px;
    cursor: pointer;
    flex: 1 1 calc(33.33% - 12px);
    min-width: 250px;
    transition: border-color 0.3s ease, background 0.3s ease;
    margin: 0 !important;
}

.featured__packages .featured__package:hover {
    border-color: var(--main-color);
    background: rgba(255,77,77,0.04);
}

/* --- Homepage About --- */
.home-about {
    display: block;
}

.home-about-text {
    background: var(--second-background);
    border: 1px solid var(--package-border);
    border-radius: var(--border-radius);
    padding: 40px;
}

.home-about-text h2 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.home-about-text h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.home-about-text p {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.home-about-text p:last-child {
    margin-bottom: 0;
}

.home-about-text strong {
    color: #fff;
    font-weight: 700;
}

/* --- Homepage Section Header --- */
.home-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-section-header h2 {
    font-size: 2rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

.home-section-header p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Homepage Features Grid --- */
.home-features {
    padding-top: 10px;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-feature {
    background: var(--second-background);
    border: 1px solid var(--package-border);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.home-feature:hover {
    border-color: var(--feature-color, var(--main-color));
    transform: translateY(-4px);
}

.home-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: color-mix(in srgb, var(--feature-color, var(--main-color)) 12%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--feature-color, var(--main-color));
}

.home-feature h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-feature p {
    color: var(--secondary-text-color);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Homepage Policies --- */
.home-policies {
    padding-top: 10px;
}

.home-policies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-policy {
    background: var(--second-background);
    border: 1px solid var(--package-border);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.home-policy:hover {
    border-color: var(--main-color);
}

.home-policy-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: rgba(255,77,77,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--main-color);
}

.home-policy h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-policy p {
    color: var(--secondary-text-color);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.home-policy a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
}

.home-policy a:hover {
    text-decoration: underline;
}

/* --- Homepage Responsive --- */
@media (max-width: 1024px) {
    .home-features-grid { grid-template-columns: repeat(2, 1fr); }
    .home-policies-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .home-hero { padding: 50px 24px; }
    .home-hero-content h1 { font-size: 2rem; }
    .home-hero-desc { font-size: 0.95rem; }

    .home-about-text { padding: 24px; }
    .home-about-text h2 { font-size: 1.4rem; }

    .home-features-grid { grid-template-columns: 1fr; }

    .home-policies-grid { grid-template-columns: 1fr; }

    .home-section-header h2 { font-size: 1.5rem; }
}

/* ====================
   TERMS PAGE
   ==================== */
.terms-page {
    background: var(--second-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--package-border);
    overflow: hidden;
}

.terms-hero {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 50px 40px;
    text-align: center;
    border-bottom: 1px solid var(--package-border);
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

.terms-hero-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 77, 77, 0.1);
    border: 2px solid rgba(255, 77, 77, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--main-color);
}

.terms-hero h1 {
    font-size: 2.4rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 10px;
}

.terms-subtitle {
    color: var(--secondary-text-color);
    font-size: 1.05rem;
    font-weight: 500;
}

.terms-last-updated {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--package-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-text-color);
}

.terms-content {
    padding: 50px 40px;
}

.terms-body {
    max-width: 900px;
    margin: 0 auto;
    color: #bbb;
    line-height: 1.8;
    font-size: 1rem;
}

.terms-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--package-border);
}

.terms-body h2:first-child {
    margin-top: 0;
}

.terms-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #eee;
    margin-top: 32px;
    margin-bottom: 12px;
}

.terms-body p {
    margin-bottom: 18px;
}

.terms-body strong {
    color: #fff;
    font-weight: 700;
}

.terms-body a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.terms-body a:hover {
    opacity: 0.8;
}

.terms-body ul,
.terms-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.terms-body ul li,
.terms-body ol li {
    margin-bottom: 8px;
    color: #bbb;
}

.terms-body ul li::marker {
    color: var(--main-color);
}

.terms-body blockquote {
    border-left: 3px solid var(--main-color);
    background: rgba(255, 77, 77, 0.05);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #ccc;
    font-style: italic;
}

.terms-body hr {
    border: 0;
    border-top: 1px solid var(--package-border);
    margin: 36px 0;
}

.terms-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--package-border);
    border-radius: 8px;
    overflow: hidden;
}

.terms-body th,
.terms-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--package-border);
}

.terms-body thead {
    background: rgba(0, 0, 0, 0.2);
}

.terms-body th {
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.terms-body tbody tr:last-child td {
    border-bottom: none;
}

/* ====================
   CMS PAGE CONTENT (fallback for non-terms pages)
   ==================== */
.triplezone-body-description {
    background: var(--second-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--package-border);
    padding: 50px 40px;
    color: #bbb;
    line-height: 1.8;
    font-size: 1rem;
}

.triplezone-body-description h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

.triplezone-body-description h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--package-border);
}

.triplezone-body-description h2:first-child {
    margin-top: 0;
}

.triplezone-body-description h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #eee;
    margin-top: 28px;
    margin-bottom: 10px;
}

.triplezone-body-description p {
    margin-bottom: 16px;
}

.triplezone-body-description strong {
    color: #fff;
    font-weight: 700;
}

.triplezone-body-description a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.triplezone-body-description a:hover {
    opacity: 0.8;
}

.triplezone-body-description ul,
.triplezone-body-description ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.triplezone-body-description li {
    margin-bottom: 6px;
    color: #bbb;
}

.triplezone-body-description ul li::marker {
    color: var(--main-color);
}

.triplezone-body-description blockquote {
    border-left: 3px solid var(--main-color);
    background: rgba(255, 77, 77, 0.05);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #ccc;
    font-style: italic;
}

.triplezone-body-description hr {
    border: 0;
    border-top: 1px solid var(--package-border);
    margin: 30px 0;
}

.triplezone-body-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.triplezone-body-description th,
.triplezone-body-description td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--package-border);
}

.triplezone-body-description th {
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .triplezone-body-description {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 36px 24px;
    }

    .terms-hero h1 {
        font-size: 1.8rem;
    }

    .terms-content {
        padding: 30px 20px;
    }

    .terms-body h2 {
        font-size: 1.3rem;
    }
}

/* Common Components used across pages */
.btn-primary, .buy__btn, .proceed_to_checkout {
    background: var(--main-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: var(--border-radius) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.btn-primary:hover, .buy__btn:hover {
    background: var(--hover-buy) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}


/* Login Page Styles */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color) url("") no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--second-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--package-border);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-logo img {
    max-width: 200px;
    margin: 0 auto 30px;
}

.login-title {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-description {
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

.login-form .input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--background-color);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-form #mc_IGN_INPUT {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-login.btn-fivem {
    background: var(--main-color);
    color: #fff;
}

.btn-login.btn-fivem:hover {
    background: var(--hover-buy);
    transform: translateY(-2px);
}

.return-home-link {
    display: block;
    margin-top: 30px;
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.return-home-link:hover {
    color: var(--main-color);
}

#modal-login .login-panel {
    background: var(--second-background);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--package-border);
}

#modal-login .login-title {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

#modal-login .login-description {
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

#modal-login .triplezone-login {
    display: flex;
    gap: 10px;
}

#modal-login #mc_IGN_INPUT {
    flex-grow: 1;
    background: var(--background-color);
    border: 1px solid var(--package-border);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
}

#modal-login .steam__login, #modal-login button {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    display: block;
    text-align: center;
}

#modal-login .steam__login:hover, #modal-login button:hover {
    background: var(--hover-buy);
}

#IGN_MC {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

#avatar_MC {
    border-radius: 50%;
}

@media (max-width: 992px) {
    .triplezone-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --logo_width: 250px;
    }

    .triplezone-wrapper {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    :root {
        --logo_width: 200px;
    }

    .btn-primary, .buy__btn, .proceed_to_checkout {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}
