/* --- LANDING PAGE --- */
.landing-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 100px 20px;
    background: var(--bg);
}

.body-heading {
    text-align: center;
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 12px 36px;
    border: 2px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 50px;
    background: rgba(var(--accent-rgb), 0.05);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.seo-intro {
    max-width: 900px;
    text-align: center;
    margin-bottom: 50px;
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.8;
    padding: 40px 30px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    transition: box-shadow 0.4s ease;
}

.seo-intro:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 30px rgba(14, 165, 233, 0.3);
}

/* Spinning conic gradient border */
.seo-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(14, 165, 233, 0.9), 
        transparent 30%, 
        rgba(139, 92, 246, 0.9), 
        transparent 60%,
        rgba(236, 72, 153, 0.9),
        transparent 90%
    );
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

/* Inner dark glass with futuristic grid */
.seo-intro::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
    background-size: 24px 24px, 24px 24px, 100% 100%;
    background-position: center center;
    border-radius: 28px;
    z-index: -1;
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

.seo-intro p {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.seo-intro strong {
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, #38bdf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
    letter-spacing: 0.5px;
}

.seo-intro a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding: 0 2px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: all 0.3s ease;
}

.seo-intro a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #38bdf8;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px #38bdf8;
}

.seo-intro a:hover {
    color: #fff;
    text-shadow: 0 0 15px #38bdf8, 0 0 30px #38bdf8;
}

.seo-intro a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

@media (max-width: 768px) {
    .seo-intro {
        padding: 25px 20px;
        font-size: 14px;
        border-radius: 24px;
    }
    .seo-intro::after {
        border-radius: 22px;
    }
}

.section-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--txt-sec);
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    max-width: 1200px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
}

.top-games-grid {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.top-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    height: 90px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    align-items: center;
    padding: 10px;
    gap: 15px;
}

.top-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--main-accent-rgb), 0.3);
}

.tc-img-box {
    width: 110px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-ter);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

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

.top-card:hover .tc-img {
    transform: scale(1.1);
}

.tc-content {
    flex: 1;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tc-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-desc {
    font-size: 11px;
    font-weight: 500;
    color: var(--txt-sec);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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


.games-grid {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--main-accent-rgb), 0.3);
}

.gc-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--txt);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.new-tag {
    position: absolute;
    top: calc(12px + var(--main-badge-y, 0px));
    right: calc(12px - var(--main-badge-x, 0px));
    background: #ff8c32;
    color: #fff;
    font-size: var(--main-badge-size, 10px);
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 20; /* Increased z-index */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: none;
}

.top-card .new-tag {
    font-size: var(--top-badge-size, 10px);
    top: calc(10px + var(--top-badge-y, 0px));
    right: calc(10px - var(--top-badge-x, 0px));
}

/* Badge Styles */
.badge-style-hide {
    display: none !important;
}
.badge-style-large {
    padding: 6px 16px;
    font-size: calc(var(--main-badge-size, 10px) + 2px) !important;
    border-radius: 4px;
}
.top-card .badge-style-large {
    font-size: calc(var(--top-badge-size, 10px) + 2px) !important;
}

.badge-style-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 10px 4px;
    right: 0;
    top: 20px;
    border-radius: 4px 0 0 4px;
}

.badge-style-diagonal {
    top: 15px;
    right: -25px;
    transform: rotate(45deg);
    width: 100px;
    text-align: center;
    border-radius: 0;
    padding: 4px 0;
}

.gc-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

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

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

.gc-content {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gc-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--main-accent-color);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 12px;
    color: var(--txt-sec);
    margin-bottom: 10px;
}

.gc-feature-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    justify-content: center;
}

.feat-tile {
    background: rgba(var(--main-accent-rgb), 0.08);
    color: var(--main-accent-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(var(--main-accent-rgb), 0.15);
    white-space: nowrap;
}

.gc-meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.gc-meta-tile {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px; /* Pill Style */
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(0,0,0,0.05);
}

.gc-meta-tile i {
    color: var(--main-accent-color);
    font-size: 14px;
}

.gc-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--main-accent-color), var(--accent-dark));
    transition: all 0.3s ease;
}

.gc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--main-accent-rgb), 0.3);
    filter: brightness(1.1);
}

.btn-accent { background: var(--main-accent-color) !important; }
.btn-orange { background: linear-gradient(135deg, #ff9d4d, #ff7043) !important; }
.btn-cyan { background: linear-gradient(135deg, #26c6da, #00acc1) !important; }
.btn-red { background: linear-gradient(135deg, #ef5350, #d32f2f) !important; }
.btn-indigo { background: linear-gradient(135deg, #5c6bc0, #3949ab) !important; }
.btn-coral { background: linear-gradient(135deg, #ff7043, #f4511e) !important; }

.gc-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* --- AUTOMATION PAGE SPECIFIC STYLES --- */
body .automation-page .gc-title {
    font-size: 15px !important;
    margin-bottom: 10px !important;
    min-height: auto !important;
}

body .automation-page .game-card,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card {
    padding-bottom: 20px !important;
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

body .automation-page .game-card .gc-img-box,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-img-box {
    width: 100% !important;
    height: 200px !important;
    margin-bottom: 18px !important;
    margin-right: 0 !important;
    border-radius: 24px !important;
}

body .automation-page .game-card .gc-content,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-content {
    align-items: center !important;
    text-align: center !important;
    padding: 0 8px 8px 8px !important;
    justify-content: flex-start !important;
}

body .automation-page .game-card .gc-btn,
body .automation-page .game-card .gc-meta-row,
body .automation-page .game-card .gc-feature-tiles,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-btn,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-meta-row,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-feature-tiles {
    display: flex !important;
}

body .automation-page .game-card .gc-btn,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-btn {
    display: block !important;
    color: #ffffff !important;
    background: #000000 !important;
    border: none !important;
}

body .automation-page .game-card .gc-btn:hover,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-btn:hover {
    background: #222222 !important;
}

body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-title {
    font-size: 19px !important;
    margin-bottom: 10px !important;
    -webkit-line-clamp: 3 !important;
}

body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-desc {
    font-size: 13px !important;
    -webkit-line-clamp: 3 !important;
    margin-bottom: 15px !important;
}

body .automation-page .layout-horizontal.theme-one-ui-8.game-card .new-tag {
    top: 24px !important;
    right: 24px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
}

body .automation-page .gc-meta-row {
    margin-bottom: 16px !important;
    margin-top: auto !important;
    justify-content: center !important;
    width: 100% !important;
}

body .automation-page .gc-btn,
body .automation-page .tc-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    color: #ffffff !important;
    background: #000000 !important;
    border: none !important;
}

body .automation-page .gc-btn:hover,
body .automation-page .tc-btn:hover {
    background: #222222 !important;
}

/* --- ONE UI VERTICAL THEME (COMPACT FOR TOP CARDS) --- */
.admin-theme-one-ui-v, .theme-one-ui-v {
    --one-ui-radius: 28px;
    --one-ui-bg: #ffffff;
    --one-ui-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.admin-theme-one-ui-v .game-card,
.theme-one-ui-v.game-card {
    background: var(--one-ui-bg) !important;
    border-radius: var(--one-ui-radius) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: var(--one-ui-shadow) !important;
    padding: 12px !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
    flex-direction: column !important;
    height: 320px !important; /* Compact Height for Top Cards */
    min-height: 320px !important;
    align-items: center !important;
    text-align: center !important;
    display: flex !important;
}

.theme-one-ui-v .tc-img-box, .theme-one-ui-v .gc-img-box {
    width: 100% !important;
    height: 140px !important; /* Compact Poster */
    border-radius: 20px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.admin-theme-one-ui-v .gc-img,
.theme-one-ui-v .gc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.admin-theme-one-ui-v .gc-content,
.theme-one-ui-v .gc-content {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    flex: 1 !important;
    justify-content: space-between !important;
}

.theme-one-ui-v .gc-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: none !important;
    letter-spacing: -0.3px !important;
    min-height: auto !important;
    font-size: 15px !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 36px !important;
}

.theme-one-ui-v .gc-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.theme-one-ui-v .gc-btn {
    border-radius: 20px !important;
    background: #007aff !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    width: fit-content !important;
    align-self: center !important;
    margin-top: auto !important;
}

/* Responsive Overrides for Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .admin-theme-one-ui-v .gc-title,
    .theme-one-ui-v .gc-title {
        font-size: 14px !important;
    }
    
    .admin-theme-one-ui-v .game-card,
    .theme-one-ui-v.game-card {
        padding: 12px !important;
        border-radius: 24px !important;
    }
    
    .admin-theme-one-ui-v .gc-img-box,
    .theme-one-ui-v .gc-img-box {
        border-radius: 16px !important;
        margin-bottom: 10px !important;
    }

    .top-card, div.top-card[class*="theme-"] {
        height: 90px !important;
        min-height: 90px !important;
        padding: 10px !important;
        border-radius: 20px !important;
    }

    .top-card .tc-img-box, div.top-card[class*="theme-"] .tc-img-box {
        width: 70px !important;
        height: 70px !important;
        border-radius: 14px !important;
    }

    .top-card .tc-content, div.top-card[class*="theme-"] .tc-content {
        padding: 0 0 0 10px !important;
    }

    .top-card .tc-title, div.top-card[class*="theme-"] .tc-title {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .top-card .tc-desc, div.top-card[class*="theme-"] .tc-desc {
        font-size: 11px !important;
    }
}

/* Click/Touch Feedback */
.admin-theme-one-ui-v .game-card:active {
    transform: scale(0.97) !important;
}

/* Badge Adjustment */
.admin-theme-one-ui-v .new-tag, .theme-one-ui-v .new-tag {
    background: #ff3b30 !important; /* Soft Red */
    border-radius: 12px !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
}

/* --- MODERN ROUND THEME --- */
.admin-theme-modern-round, .theme-modern-round {
    --mr-radius: 40px;
    --mr-bg: #ffffff;
    --mr-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.admin-theme-modern-round.game-card,
.theme-modern-round.game-card {
    background: var(--mr-bg) !important;
    border-radius: var(--mr-radius) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: var(--mr-shadow) !important;
    padding: 20px !important;
    margin: 0 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden;
    flex-direction: column !important;
    height: 480px !important; /* Fixed Height for Main Cards */
    min-height: 480px !important;
    align-items: center !important;
    text-align: center !important;
    display: flex !important;
    position: relative;
}

.theme-modern-round.game-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
}

.theme-modern-round .gc-img-box {
    width: 100% !important;
    height: 220px !important; /* Consistent Poster Size */
    border-radius: 30px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: #f8fafc;
}

.theme-modern-round .gc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.theme-modern-round.game-card:hover .gc-img {
    transform: scale(1.1) !important;
}

.theme-modern-round .gc-content {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    flex: 1 !important;
    justify-content: flex-start !important;
}

.theme-modern-round .gc-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    font-size: 20px !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Max 2 lines title */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 48px !important;
}

.theme-modern-round .gc-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.theme-modern-round .gc-meta-row {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    justify-content: center !important;
    width: 100% !important;
}

.theme-modern-round .gc-meta-tile {
    background: #f1f5f9 !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 20px !important; /* Pill Style */
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.theme-modern-round .gc-btn {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: linear-gradient(135deg, var(--main-accent-color), var(--accent-dark)) !important;
    box-shadow: 0 10px 20px rgba(var(--main-accent-rgb), 0.3) !important;
    margin-top: auto !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.theme-modern-round .gc-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(var(--main-accent-rgb), 0.4) !important;
    filter: brightness(1.1) !important;
}

/* --- ONE UI TILES (ANNOTATE SCREENSHOT STYLE) --- */
.admin-theme-one-ui-tiles .game-card,
.theme-one-ui-tiles.game-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 0 !important;
    margin: 10px 0;
    transition: all 0.3s ease !important;
    overflow: hidden;
    flex-direction: column !important;
    height: auto !important;
    min-height: 320px !important;
    align-items: center !important;
    text-align: center !important;
    display: flex !important;
    position: relative;
}

.admin-theme-one-ui-tiles .gc-img-box,
.theme-one-ui-tiles .gc-img-box {
    width: 100% !important;
    height: 180px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0 !important;
}

.admin-theme-one-ui-tiles .gc-img,
.theme-one-ui-tiles .gc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.admin-theme-one-ui-tiles .gc-content,
.theme-one-ui-tiles .gc-content {
    flex: 1 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    overflow: hidden;
    width: 100% !important;
}

.admin-theme-one-ui-tiles .gc-title,
.theme-one-ui-tiles .gc-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.admin-theme-one-ui-tiles .gc-desc,
.theme-one-ui-tiles .gc-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.admin-theme-one-ui-tiles .gc-btn,
.theme-one-ui-tiles .gc-btn {
    align-self: flex-start !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    background: #007aff !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3) !important;
}

/* Badge on top of image for One UI Tiles */
.theme-one-ui-tiles .new-tag {
    top: 15px !important;
    right: 15px !important;
    background: #ff3b30 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    z-index: 10 !important;
    transform: none !important;
}

/* --- PERMANENT TOP CARD COMPACT ROUND HORIZONTAL --- */
.top-card, div.top-card[class*="theme-"] {
    background: #ffffff !important;
    border-radius: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    height: 120px !important;
    min-height: 120px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    align-items: center !important;
    padding: 15px !important;
    margin: 0 !important;
}

.top-card:hover, div.top-card[class*="theme-"]:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

.top-card .tc-img-box, div.top-card[class*="theme-"] .tc-img-box {
    width: 90px !important;
    height: 90px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.top-card .tc-img, div.top-card[class*="theme-"] .tc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.top-card:hover .tc-img, div.top-card[class*="theme-"]:hover .tc-img {
    transform: scale(1.1) !important;
}

.top-card .tc-content, div.top-card[class*="theme-"] .tc-content {
    flex: 1 !important;
    padding: 0 0 0 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.top-card .tc-title, div.top-card[class*="theme-"] .tc-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-transform: none !important;
}

.top-card .tc-desc, div.top-card[class*="theme-"] .tc-desc {
    font-size: 12px !important;
    color: #475569 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-weight: 500 !important;
}

.top-card .tc-btn, div.top-card[class*="theme-"] .tc-btn {
    display: none !important;
}

/* --- ONE UI 8 THEME (Premium Light/Pastel) --- */
.admin-theme-one-ui-8, .theme-one-ui-8 {
    --oui8-radius: 32px;
    --oui8-bg: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
    --oui8-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255,255,255,1);
    --oui8-border: 1px solid rgba(226, 232, 240, 0.6);
}

.admin-theme-one-ui-8.game-card,
.theme-one-ui-8.game-card {
    background: var(--oui8-bg) !important;
    border-radius: var(--oui8-radius) !important;
    border: var(--oui8-border) !important;
    box-shadow: var(--oui8-shadow) !important;
    padding: 14px !important;
    margin: 0 !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    overflow: hidden;
    flex-direction: column !important;
    height: auto !important;
    min-height: 380px !important;
    align-items: center !important;
    text-align: center !important;
    display: flex !important;
    position: relative;
}

.theme-one-ui-8.game-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.theme-one-ui-8 .gc-img-box {
    width: 100% !important;
    height: 200px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    background: #e2e8f0 !important;
}

.theme-one-ui-8 .gc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.theme-one-ui-8.game-card:hover .gc-img {
    transform: scale(1.08) !important;
}

.theme-one-ui-8 .gc-content {
    width: 100% !important;
    padding: 0 8px 8px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    flex: 1 !important;
}

.theme-one-ui-8 .gc-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 19px !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.theme-one-ui-8 .gc-desc {
    font-size: 14px !important;
    color: #64748b !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

.theme-one-ui-8 .gc-btn {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 24px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 1px solid #cbd5e1 !important;
    margin-top: auto !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.theme-one-ui-8 .gc-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Pastel Button Colors */
.theme-one-ui-8 .btn-orange { background: linear-gradient(135deg, #ffedd5 0%, #ffedd5 100%) !important; color: #c2410c !important; border-color: #fed7aa !important; }
.theme-one-ui-8 .btn-orange:hover { background: linear-gradient(135deg, #fed7aa 0%, #fed7aa 100%) !important; }

.theme-one-ui-8 .btn-cyan { background: linear-gradient(135deg, #cffafe 0%, #cffafe 100%) !important; color: #0369a1 !important; border-color: #bae6fd !important; }
.theme-one-ui-8 .btn-cyan:hover { background: linear-gradient(135deg, #bae6fd 0%, #bae6fd 100%) !important; }

.theme-one-ui-8 .btn-red { background: linear-gradient(135deg, #fee2e2 0%, #fee2e2 100%) !important; color: #b91c1c !important; border-color: #fecaca !important; }
.theme-one-ui-8 .btn-red:hover { background: linear-gradient(135deg, #fecaca 0%, #fecaca 100%) !important; }

.theme-one-ui-8 .btn-indigo { background: linear-gradient(135deg, #e0e7ff 0%, #e0e7ff 100%) !important; color: #4338ca !important; border-color: #c7d2fe !important; }
.theme-one-ui-8 .btn-indigo:hover { background: linear-gradient(135deg, #c7d2fe 0%, #c7d2fe 100%) !important; }

.theme-one-ui-8 .btn-coral { background: linear-gradient(135deg, #ffedd5 0%, #ffedd5 100%) !important; color: #c2410c !important; border-color: #fed7aa !important; }
.theme-one-ui-8 .btn-coral:hover { background: linear-gradient(135deg, #fed7aa 0%, #fed7aa 100%) !important; }

.theme-one-ui-8 .btn-accent { background: linear-gradient(135deg, #f1f5f9 0%, #f1f5f9 100%) !important; color: #334155 !important; border-color: #e2e8f0 !important; }
.theme-one-ui-8 .btn-accent:hover { background: linear-gradient(135deg, #e2e8f0 0%, #e2e8f0 100%) !important; }

.theme-one-ui-8 .new-tag {
    top: 24px !important;
    right: 24px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #ef4444 !important;
    border-radius: 16px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(5px) !important;
}

.theme-one-ui-8 .gc-meta-row {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    justify-content: center !important;
    width: 100% !important;
}

.theme-one-ui-8 .gc-meta-tile {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.theme-one-ui-8 .gc-feature-tiles {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    justify-content: center !important;
}

.theme-one-ui-8 .feat-tile {
    background: #f8fafc !important;
    color: #475569 !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: 1px solid #e2e8f0 !important;
}

/* --- HORIZONTAL LAYOUT FOR ONE UI 8 (TOP CARDS) --- */
.layout-horizontal.theme-one-ui-8.game-card {
    flex-direction: row !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 12px !important;
    align-items: center !important;
    text-align: left !important;
}

.layout-horizontal.theme-one-ui-8.game-card .gc-img-box {
    width: 96px !important;
    height: 96px !important;
    margin-bottom: 0 !important;
    margin-right: 16px !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
}

.layout-horizontal.theme-one-ui-8.game-card .gc-content {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
    justify-content: center !important;
    height: 100% !important;
}

.layout-horizontal.theme-one-ui-8.game-card .gc-title {
    font-size: 16px !important;
    margin-bottom: 4px !important;
    -webkit-line-clamp: 2 !important;
}

.layout-horizontal.theme-one-ui-8.game-card .gc-desc {
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 0 !important;
}

.layout-horizontal.theme-one-ui-8.game-card .gc-btn,
.layout-horizontal.theme-one-ui-8.game-card .gc-meta-row,
.layout-horizontal.theme-one-ui-8.game-card .gc-feature-tiles {
    display: none !important;
}

.layout-horizontal.theme-one-ui-8.game-card .new-tag {
    top: 12px !important;
    right: 12px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
}