/* Custom CSS for Game Category (4 column grid + Filter) */

body {
    background-color: #f8fafc;
    /* Nền nhạt */
}


/* Banner */
.gc-banner {
    background: linear-gradient(90deg, #1e293b 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.gc-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Lưới sáu cạnh mờ */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 10v20L20 40 0 30V10z' fill-rule='evenodd' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.05' fill='none'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    z-index: 1;
}

.gc-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.gc-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.gc-breadcrumb a {
    color: #93c5fd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gc-breadcrumb a:hover {
    color: #fff;
}

.gc-banner-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
    margin-bottom: 1rem;
}

.gc-banner-tags {
    display: flex;
    gap: 12px;
}

.gc-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filter Bar */
.gc-filter-bar {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
}

.gc-filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.gc-input,
.gc-select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    outline: none;
    transition: 0.2s;
    font-family: inherit;
}

.gc-input:focus,
.gc-select:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gc-btn-filter {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
}

.gc-btn-filter:hover {
    background: #2563eb;
}

/* Grid */
.gc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media(max-width: 1024px) {
    .gc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .gc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

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

    .gc-card-body {
        padding: 10px;
    }

    .gc-card-footer {
        padding: 10px;
    }

    .gc-price {
        font-size: 15px;
    }

    .gc-btn-cart {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .gc-spec-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Card */
.gc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.gc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.gc-card-img {
    aspect-ratio: 16 / 9;
    height: auto;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gc-card:hover .gc-card-img img {
    transform: scale(1.05);
}

.gc-badge-id {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.gc-card-body {
    padding: 15px;
    flex-grow: 1;
    cursor: pointer;
}

.gc-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gc-spec-tag {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gc-spec-tag b {
    color: #1e293b;
    font-weight: 700;
}

.gc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px dashed #e2e8f0;
}

.gc-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
    /* Blue price as requested -> Now System Color */
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gc-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.gc-btn-cart {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-red);
    opacity: 0.85;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gc-btn-cart:hover {
    background: var(--primary-red);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.gc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.gc-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

/* GAME DETAIL PAGE (.gd-*) */
.gd-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.gd-breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gd-breadcrumb a:hover {
    color: #1e293b;
}

.gd-breadcrumb .active {
    color: #1e293b;
    font-weight: 700;
}

.gd-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.gd-layout {
    display: flex;
    flex-wrap: wrap;
}

.gd-gallery {
    flex: 1 1 55%;
    padding: 2rem;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    box-sizing: border-box;
    max-width: 100%;
}

.gd-main-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.gd-img-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gd-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gd-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: 0.2s;
}

.gd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gd-thumb.active,
.gd-thumb:hover {
    opacity: 1;
    border-color: var(--primary-red);
}

.gd-info {
    flex: 1 1 45%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
}

@media(max-width: 992px) {

    .gd-gallery,
    .gd-info {
        flex: 1 1 100%;
        border-right: none;
    }
}

@media(max-width: 768px) {
    .gd-gallery {
        padding: 1rem;
    }

    .gd-info {
        padding: 1.25rem;
    }

    .gd-title {
        font-size: 20px;
    }

    .gd-trust-badges {
        flex-direction: column;
        gap: 10px;
    }

    .gd-description {
        padding: 1.25rem;
    }

    .gd-new-price {
        font-size: 26px !important;
    }
}

/* New Premium Dashboard Detail Title styles */
.gd-title-premium {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 10px;
}

.gd-title-premium .highlight {
    color: var(--primary-red);
}

.gd-label-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.gd-label-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

/* Sections Containers */
.gd-section-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.section-title i {
    color: var(--primary-red);
}

/* Specs Grid Premium */
.gd-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.spec-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.spec-pill:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.spec-icon {
    width: 28px;
    height: 28px;
    background: color-mix(in srgb, var(--primary-red) 10%, transparent);
    color: var(--primary-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.spec-texts {
    display: flex;
    flex-direction: column;
}

.spec-p-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.spec-p-value {
    font-size: 13px;
    color: #1e293b;
    font-weight: 700;
}

/* Action Card (Light Theme) */
.gd-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.action-price-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.gd-old-price-p {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.gd-new-price-p {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-red);
    /* Use system primary color for consistency */
}

.gd-new-price-p b {
    font-size: 0.6em;
    font-weight: 700;
    margin-left: 2px;
}

.premium-btn-p {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px -5px color-mix(in srgb, var(--primary-red) 60%, transparent);
    transition: 0.2s;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.premium-btn-p:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* White Ticket Bought Card */
.gd-bought-card {
    background: #ffffff;
    border: 1px solid var(--primary-red);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
    position: relative;
    overflow: hidden;
}

.gd-bought-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

.bought-header {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bought-header i {
    font-size: 18px;
    color: #10b981;
}

.bought-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bought-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.b-value-wrap {
    display: flex;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.b-value-wrap:focus-within {
    border-color: #10b981;
    background: #fff;
}

.b-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: #1e293b;
    font-weight: 700;
    font-size: 15px;
    outline: none !important;
}

.btn-copy {
    background: #f1f5f9;
    border: none;
    border-left: 1px solid #e2e8f0;
    color: #6b7280;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-copy:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.gd-action {
    margin-top: auto;
    padding-top: 1rem;
}

.btn-buy-nick-page {
    width: 100%;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px -5px var(--primary-red);
    letter-spacing: 0.5px;
}

.btn-buy-nick-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px var(--primary-red);
    filter: brightness(1.1);
}

.gd-trust-badges {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.5rem;
}

.trust-item {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media(max-width: 768px) {
    .gd-trust-badges {
        flex-direction: column;
        gap: 10px;
    }
}

.gd-description {
    padding: 2.5rem;
    border-top: 1px solid #f1f5f9;
}

.gd-desc-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.gd-desc-content {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.gd-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .gd-action-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 1.25rem;
    }
    
    .action-price-side {
        width: 100%;
    }
    
    .price-wrapper {
        justify-content: center;
        margin-top: 5px;
    }
    
    .action-btn-side, .premium-btn-p {
        width: 100%;
        justify-content: center;
    }
}