/* ==========================================================================
   Game Home Page - Cartzilla/Dashboard Style
   ========================================================================== */

/* CSS Variables for Light/Dark Theme Support */
.game-home-page {
    --gh-bg: #f8f9fa;
    --gh-card-bg: #ffffff;
    --gh-card-border: rgba(0, 0, 0, 0.08);
    --gh-text-primary: #1a1c1e;
    --gh-text-secondary: #5a6169;
    --gh-text-muted: #8b919a;
    --gh-accent: #2f6ed5;
    --gh-accent-hover: #245bb8;
    --gh-accent-light: rgba(47, 110, 213, 0.1);
    --gh-hover-bg: rgba(0, 0, 0, 0.03);
    --gh-border-color: rgba(0, 0, 0, 0.08);
    --gh-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --gh-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --gh-success: #33b36b;
    --gh-warning: #fc9231;
    --gh-danger: #f03d3d;
}

html[data-theme="dark"] .game-home-page {
    --gh-bg: transparent;
    --gh-card-bg: rgba(34, 41, 52, 0.6);
    --gh-card-border: rgba(255, 255, 255, 0.08);
    --gh-text-primary: #f0f2f5;
    --gh-text-secondary: #cad0d9;
    --gh-text-muted: #8b919a;
    --gh-accent: #5c9aff;
    --gh-accent-hover: #7db0ff;
    --gh-accent-light: rgba(92, 154, 255, 0.15);
    --gh-hover-bg: rgba(255, 255, 255, 0.05);
    --gh-border-color: rgba(255, 255, 255, 0.08);
    --gh-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --gh-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-home-page {
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Prevent horizontal scroll on body */
body:has(.gh-hero) {
    overflow-x: hidden;
}

/* ==========================================================================
   Hero Section with Cover Image
   ========================================================================== */

.gh-hero {
    position: relative;
    height: 340px;
    overflow: visible;
    margin-top: 56px; /* Start below navbar */
    margin-bottom: 0;
    background-color: #181d25;
}

.gh-hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gh-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.gh-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(24, 29, 37, 0.9) 80%,
        rgba(24, 29, 37, 1) 100%
    );
}

html[data-theme="light"] .gh-hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(248, 249, 250, 0.85) 85%,
        rgba(248, 249, 250, 1) 100%
    );
}

.gh-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 2rem 3rem;
}

.gh-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gh-game-logo {
    width: 48px;
    height: 48px;
    border-radius: 0.625rem;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gh-game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gh-hero-info {
    flex: 1;
    min-width: 0;
}

.gh-game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gh-game-title span {
    font-weight: 400;
    opacity: 0.85;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .gh-game-title {
    color: var(--gh-text-primary);
    text-shadow: none;
}

.gh-game-tagline {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

html[data-theme="light"] .gh-game-tagline {
    color: var(--gh-text-secondary);
}

/* Game Selector Dropdown */
.gh-game-selector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.75rem;
}

.gh-game-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

html[data-theme="light"] .gh-game-selector-btn {
    background: var(--gh-card-bg);
    border-color: var(--gh-border-color);
    color: var(--gh-text-primary);
}

.gh-game-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="light"] .gh-game-selector-btn:hover {
    background: var(--gh-hover-bg);
    border-color: var(--gh-accent);
}

.gh-game-selector-btn i {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.gh-game-selector.open .gh-game-selector-btn i {
    transform: rotate(180deg);
}

.gh-game-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(30, 38, 50, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100; /* Below navbar (z-index: 1000) */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

html[data-theme="light"] .gh-game-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.gh-game-selector.open .gh-game-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Ensure dropdown is above other content but below navbar */
.gh-game-selector.open {
    z-index: 100;
}

.gh-game-dropdown-search {
    position: sticky;
    top: 0;
    padding: 0.75rem;
    background: rgba(30, 38, 50, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

html[data-theme="light"] .gh-game-dropdown-search {
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .gh-game-dropdown-search {
    background: rgba(255, 255, 255, 1);
}

.gh-game-dropdown-search input {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #f0f2f5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease;
}

html[data-theme="light"] .gh-game-dropdown-search input {
    color: #1a1c1e;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gh-game-dropdown-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .gh-game-dropdown-search input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.gh-game-dropdown-search input:focus {
    border-color: var(--gh-accent);
}

.gh-game-dropdown-list {
    padding: 0.5rem;
}

.gh-game-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: #f0f2f5;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

html[data-theme="light"] .gh-game-dropdown-item {
    color: #1a1c1e;
}

.gh-game-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #5c9aff;
}

html[data-theme="light"] .gh-game-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2f6ed5;
}

.gh-game-dropdown-item.active {
    background: rgba(92, 154, 255, 0.15);
    color: #5c9aff;
}

html[data-theme="light"] .gh-game-dropdown-item.active {
    background: rgba(47, 110, 213, 0.1);
    color: #2f6ed5;
}

.gh-game-dropdown-item img {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    object-fit: cover;
}

.gh-game-dropdown-item span {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.gh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.gh-breadcrumb a {
    color: var(--gh-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.gh-breadcrumb a:hover {
    color: var(--gh-accent);
}

.gh-breadcrumb > a > i,
.gh-breadcrumb i.fa-home {
    font-size: 0.875rem;
}

.gh-breadcrumb i.fa-chevron-right {
    font-size: 0.625rem;
    color: var(--gh-text-muted);
}

.gh-breadcrumb span {
    color: var(--gh-text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.gh-services-section {
    margin-bottom: 3rem;
}

.gh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.gh-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gh-text-primary);
    margin: 0;
}

.gh-section-title i {
    color: var(--gh-accent);
    font-size: 1rem;
}

.gh-section-count {
    font-size: 0.875rem;
    color: var(--gh-text-muted);
    font-weight: 400;
}

.gh-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gh-service-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    min-height: 60px;
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: var(--gh-shadow);
}

.gh-service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 0.75rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--gh-accent) 0%, rgba(92, 154, 255, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gh-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

html[data-theme="dark"] .gh-service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gh-service-card:hover::before {
    opacity: 1;
}

.gh-service-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.gh-service-card:hover .gh-service-name {
    color: var(--gh-accent);
}

/* Service Tags - Use absolute positioning like old design */
.gh-service-card .tags {
    position: absolute;
    display: block;
    top: 0;
    right: 8px;
    transform: translateY(-50%);
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    z-index: 2;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.gh-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

@media (max-width: 1199.98px) {
    .gh-content-layout {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 991.98px) {
    .gh-content-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Popular Services
   ========================================================================== */

.gh-popular-section {
    margin-bottom: 2.5rem;
}

.gh-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .gh-popular-grid {
        grid-template-columns: 1fr;
    }
}

.gh-popular-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gh-popular-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--gh-accent) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gh-popular-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gh-shadow-hover);
    border-color: transparent;
}

.gh-popular-card:hover::before {
    opacity: 1;
}

.gh-popular-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gh-hover-bg);
}

.gh-popular-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-popular-info {
    flex: 1;
    min-width: 0;
}

.gh-popular-game {
    font-size: 0.75rem;
    color: var(--gh-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.gh-popular-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gh-text-primary);
    line-height: 1.3;
}

.gh-popular-card:hover .gh-popular-name {
    color: var(--gh-accent);
}

.gh-popular-arrow {
    color: var(--gh-text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.gh-popular-card:hover .gh-popular-arrow {
    color: var(--gh-accent);
    transform: translateX(4px);
}

/* ==========================================================================
   Rewards Section
   ========================================================================== */

.gh-rewards-section {
    margin-bottom: 2.5rem;
}

.gh-rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

@media (max-width: 575.98px) {
    .gh-rewards-grid {
        grid-template-columns: 1fr;
    }
}

.gh-reward-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 0.75rem;
    text-align: left;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-reward-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gh-shadow-hover);
}

/* Discount Card Styling */
.gh-reward-card.gh-discount-card {
    /* No left border */
}

/* Store Credit Card Styling */
.gh-reward-card.gh-credit-card {
    /* No left border */
}

/* Copy Button */
.gh-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gh-border-color);
    background: var(--gh-card-bg);
    color: var(--gh-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.gh-copy-btn:hover {
    background: var(--gh-accent);
    border-color: var(--gh-accent);
    color: #fff;
}

.gh-copy-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.gh-reward-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.gh-discount-card .gh-reward-icon {
    background: var(--gh-accent-light);
    color: var(--gh-accent);
}

.gh-credit-card .gh-reward-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.gh-reward-icon i {
    font-size: 1rem;
}

.gh-reward-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.gh-discount-card .gh-reward-value {
    color: var(--gh-accent);
}

.gh-credit-card .gh-reward-value {
    color: #22c55e;
}

.gh-reward-code {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.gh-reward-desc {
    font-size: 0.75rem;
    color: var(--gh-text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.gh-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.gh-reward-badge i {
    font-size: 0.625rem;
}

.gh-reward-label {
    font-size: 0.8125rem;
    color: var(--gh-text-secondary);
}

/* Rewards Empty State */
.gh-rewards-empty {
    padding: 2rem;
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 1rem;
    text-align: center;
}

.gh-rewards-empty i {
    font-size: 2.5rem;
    color: var(--gh-text-muted);
    margin-bottom: 1rem;
}

.gh-rewards-empty h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin: 0 0 0.5rem;
}

.gh-rewards-empty p {
    font-size: 0.875rem;
    color: var(--gh-text-secondary);
    margin: 0;
}

.gh-rewards-empty a {
    color: var(--gh-accent);
    text-decoration: none;
}

.gh-rewards-empty a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.gh-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Order History Card */
.gh-sidebar-card {
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 1rem;
    overflow: hidden;
}

.gh-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gh-border-color);
}

.gh-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin: 0;
}

.gh-sidebar-title i {
    color: var(--gh-accent);
    font-size: 0.875rem;
}

.gh-sidebar-link {
    font-size: 0.8125rem;
    color: var(--gh-accent);
    text-decoration: none;
    font-weight: 500;
}

.gh-sidebar-link:hover {
    text-decoration: underline;
}

.gh-sidebar-body {
    padding: 0;
}

/* Order List */
.gh-order-list {
    display: flex;
    flex-direction: column;
}

.gh-order-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gh-border-color);
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.gh-order-item:last-child {
    border-bottom: none;
}

.gh-order-item:hover {
    background: var(--gh-hover-bg);
}

.gh-order-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.gh-order-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-order-info {
    flex: 1;
    min-width: 0;
}

.gh-order-user {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin-bottom: 0.125rem;
}

.gh-order-service {
    font-size: 0.75rem;
    color: var(--gh-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50rem;
    flex-shrink: 0;
    border: 1px solid transparent;
}

/* Completed - Green */
.gh-order-status.completed {
    background: rgba(51, 179, 107, 0.15);
    color: #33b36b;
    border-color: rgba(51, 179, 107, 0.3);
}

/* Cancelled / Refunded - Red */
.gh-order-status.cancelled,
.gh-order-status.refunded {
    background: rgba(240, 61, 61, 0.15);
    color: #f03d3d;
    border-color: rgba(240, 61, 61, 0.3);
}

/* Pending / Waiting - Orange/Yellow */
.gh-order-status.pending,
.gh-order-status.waiting {
    background: rgba(252, 146, 49, 0.15);
    color: #fc9231;
    border-color: rgba(252, 146, 49, 0.3);
}

/* In Progress / Active / Processing - Blue */
.gh-order-status.in-progress,
.gh-order-status.active,
.gh-order-status.processing {
    background: rgba(47, 110, 213, 0.15);
    color: #2f6ed5;
    border-color: rgba(47, 110, 213, 0.3);
}

/* Working - Yellow (matching dashboard) */
.gh-order-status.working {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

/* Paused / On Hold - Purple */
.gh-order-status.paused,
.gh-order-status.on-hold {
    background: rgba(159, 122, 234, 0.15);
    color: #9f7aea;
    border-color: rgba(159, 122, 234, 0.3);
}

/* New - Cyan */
.gh-order-status.new {
    background: rgba(56, 178, 172, 0.15);
    color: #38b2ac;
    border-color: rgba(56, 178, 172, 0.3);
}

/* Light theme adjustments */
html[data-theme="light"] .gh-order-status.completed {
    background: rgba(51, 179, 107, 0.1);
}

html[data-theme="light"] .gh-order-status.cancelled,
html[data-theme="light"] .gh-order-status.refunded {
    background: rgba(240, 61, 61, 0.1);
}

html[data-theme="light"] .gh-order-status.pending,
html[data-theme="light"] .gh-order-status.waiting {
    background: rgba(252, 146, 49, 0.1);
}

html[data-theme="light"] .gh-order-status.in-progress,
html[data-theme="light"] .gh-order-status.active,
html[data-theme="light"] .gh-order-status.processing {
    background: rgba(47, 110, 213, 0.1);
}

html[data-theme="light"] .gh-order-status.working {
    background: rgba(255, 193, 7, 0.15);
    color: #d4a106;
}

html[data-theme="light"] .gh-order-status.paused,
html[data-theme="light"] .gh-order-status.on-hold {
    background: rgba(159, 122, 234, 0.1);
}

html[data-theme="light"] .gh-order-status.new {
    background: rgba(56, 178, 172, 0.1);
}

/* Empty Order State */
.gh-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.gh-orders-empty img {
    width: 120px;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.gh-orders-empty h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gh-text-primary);
    margin: 0 0 0.375rem;
}

.gh-orders-empty p {
    font-size: 0.8125rem;
    color: var(--gh-text-secondary);
    margin: 0;
}

.gh-orders-empty a {
    color: var(--gh-accent);
    text-decoration: none;
}

.gh-orders-empty a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.gh-news-section {
    margin-top: 3rem;
}

.gh-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 575.98px) {
    .gh-news-grid {
        grid-template-columns: 1fr;
    }
}

.gh-news-card {
    display: flex;
    flex-direction: column;
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gh-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gh-shadow-hover);
}

.gh-news-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gh-hover-bg);
}

.gh-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.gh-news-card:hover .gh-news-image img {
    transform: scale(1.05);
}

.gh-news-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gh-news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gh-text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-news-card:hover .gh-news-title {
    color: var(--gh-accent);
}

.gh-news-excerpt {
    font-size: 0.8125rem;
    color: var(--gh-text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gh-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gh-border-color);
}

.gh-news-date {
    font-size: 0.75rem;
    color: var(--gh-text-muted);
}

.gh-news-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gh-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.gh-news-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.gh-news-card:hover .gh-news-link i {
    transform: translateX(3px);
}

/* ==========================================================================
   Promo Section
   ========================================================================== */

.gh-promo-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(47, 110, 213, 0.1) 0%, rgba(92, 154, 255, 0.05) 100%);
    border: 1px solid var(--gh-accent-light);
    border-radius: 1rem;
}

html[data-theme="dark"] .gh-promo-section {
    background: linear-gradient(135deg, rgba(47, 110, 213, 0.15) 0%, rgba(92, 154, 255, 0.08) 100%);
}

.gh-promo-content {
    max-width: 800px;
}

.gh-promo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gh-text-primary);
    margin: 0 0 0.75rem;
}

.gh-promo-content p {
    font-size: 0.9375rem;
    color: var(--gh-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   SEO Content Section
   ========================================================================== */

.gh-seo-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-card-border);
    border-radius: 1rem;
}

.gh-seo-section h2,
.gh-seo-section h3,
.gh-seo-section h4 {
    color: var(--gh-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.gh-seo-section h2:first-child,
.gh-seo-section h3:first-child,
.gh-seo-section h4:first-child {
    margin-top: 0;
}

.gh-seo-section p {
    color: var(--gh-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.gh-seo-section a {
    color: var(--gh-accent);
}

.gh-seo-section ul,
.gh-seo-section ol {
    color: var(--gh-text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.gh-seo-section li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991.98px) {
    .gh-hero {
        height: 320px;
    }
    
    .gh-hero-content {
        padding: 0 1.5rem 2.5rem;
    }
    
    .gh-hero-inner {
        gap: 1rem;
    }
    
    .gh-game-logo {
        width: 64px;
        height: 64px;
    }
    
    .gh-game-title {
        font-size: 1.5rem;
    }
    
    .gh-game-selector {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
    }
    
    .gh-sidebar {
        order: 1;
    }
    
    .gh-content-layout {
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .gh-hero {
        height: 280px;
    }
    
    .gh-hero-content {
        padding: 0 1rem 2rem;
    }
    
    .gh-hero-inner {
        gap: 0.875rem;
    }
    
    .gh-game-logo {
        width: 56px;
        height: 56px;
        border-radius: 0.75rem;
    }
    
    .gh-game-title {
        font-size: 1.375rem;
    }
    
    .gh-game-tagline {
        font-size: 0.75rem;
    }
    
    .gh-game-selector-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .gh-section-title {
        font-size: 1.125rem;
    }
    
    .gh-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gh-service-card {
        padding: 0.875rem;
        min-height: 70px;
    }
    
    .gh-service-name {
        font-size: 0.8125rem;
    }
    
    .gh-service-tag {
        padding: 0.1875rem 0.5rem;
        font-size: 0.625rem;
    }
    
    .gh-promo-section {
        padding: 1.5rem;
    }
    
    .gh-popular-grid {
        gap: 0.75rem;
    }
    
    .gh-popular-card {
        padding: 1rem;
    }
    
    .gh-popular-icon {
        width: 48px;
        height: 48px;
    }
    
    .gh-popular-name {
        font-size: 0.9375rem;
    }
    
    .gh-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gh-news-card {
        flex-direction: row;
    }
    
    .gh-news-image {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }
    
    .gh-news-content {
        padding: 1rem;
    }
    
    .gh-news-title {
        font-size: 0.9375rem;
    }
    
    .gh-news-excerpt {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .game-home-page {
        padding-bottom: 2rem;
    }
    
    .gh-hero {
        height: 240px;
    }
    
    .gh-hero-content {
        padding: 0 1rem 1.75rem;
    }
    
    .gh-hero-inner {
        gap: 0.625rem;
    }
    
    .gh-game-logo {
        width: 48px;
        height: 48px;
    }
    
    .gh-game-title {
        font-size: 1.125rem;
    }
    
    .gh-hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(24, 29, 37, 0.9) 100%
        );
    }
    
    html[data-theme="light"] .gh-hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(248, 249, 250, 0.95) 100%
        );
    }
    
    .gh-game-logo {
        width: 36px;
        height: 36px;
        border-radius: 0.5rem;
    }
    
    .gh-game-title {
        font-size: 1rem;
    }
    
    .gh-game-tagline {
        font-size: 0.625rem;
    }
    
    .gh-breadcrumb {
        margin-bottom: 1rem;
        font-size: 0.8125rem;
    }
    
    .gh-services-section {
        margin-bottom: 2rem;
    }
    
    .gh-section-header {
        margin-bottom: 1rem;
    }
    
    .gh-section-title {
        font-size: 1rem;
    }
    
    .gh-services-grid {
        gap: 0.625rem;
    }
    
    .gh-service-card {
        padding: 0.75rem;
        min-height: auto;
        border-radius: 0.625rem;
    }
    
    .gh-service-name {
        font-size: 0.75rem;
        line-height: 1.25;
    }
    
    .gh-service-tag {
        padding: 0.125rem 0.375rem;
        font-size: 0.5625rem;
        margin-bottom: 0.375rem;
    }
    
    .gh-popular-section,
    .gh-rewards-section {
        margin-bottom: 2rem;
    }
    
    .gh-popular-card {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .gh-popular-icon {
        width: 44px;
        height: 44px;
    }
    
    .gh-popular-game {
        font-size: 0.6875rem;
    }
    
    .gh-popular-name {
        font-size: 0.875rem;
    }
    
    .gh-rewards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .gh-reward-card {
        padding: 1.25rem 0.75rem;
    }
    
    .gh-reward-icon {
        width: 40px;
        height: 40px;
    }
    
    .gh-reward-value {
        font-size: 1.25rem;
    }
    
    .gh-sidebar-card {
        border-radius: 0.875rem;
    }
    
    .gh-sidebar-header {
        padding: 0.875rem 1rem;
    }
    
    .gh-order-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .gh-order-avatar {
        width: 36px;
        height: 36px;
    }
    
    .gh-order-user {
        font-size: 0.8125rem;
    }
    
    .gh-order-service {
        font-size: 0.6875rem;
    }
    
    .gh-order-status {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
    }
    
    .gh-news-section {
        margin-top: 2rem;
    }
    
    .gh-news-card {
        border-radius: 0.75rem;
    }
    
    .gh-news-image {
        width: 100px;
    }
    
    .gh-news-content {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .gh-news-title {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
    
    .gh-news-footer {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .gh-news-date {
        font-size: 0.6875rem;
    }
    
    .gh-news-link {
        font-size: 0.75rem;
    }
    
    .gh-seo-section {
        margin-top: 2rem;
        padding: 1.25rem;
        border-radius: 0.875rem;
    }
    
    .gh-promo-section {
        margin: 1.5rem 0;
        padding: 1.25rem;
        border-radius: 0.875rem;
    }
}

