﻿/* ==========================================================================
   GadgetGhor — layout.css  (base / layout — organized, de-duplicated)

   TABLE OF CONTENTS
   -----------------
   00. DESIGN TOKENS + BASE
   01. ANIMATIONS (keyframes)
   02. GLOBAL SAFETY RULES
   03. STARTUP LOADER (.gg-boot) + LEGACY LOADER
   04. TOP PROGRESS BAR
   05. TOP STRIP
   06. HEADER (logo, menu button, actions, icon button)
   07. SEARCH (box, input, spinner, suggestions dropdown, skeleton, empty)
   08. MAIN NAV + MEGA MENU
   09. MOBILE NAV (offcanvas)
   10. MAIN WRAP
   11. FOOTER
   12. CARDS (base device card)
   13. COMPARE BAR (base)
   14. FLOATING ACTION BUTTONS
   15. BADGES
   16. SPEC LIST
   17. TRENDING (sidebar list)
   18. AD SLOT
   19. GLASS / GREET MODAL
   20. PAGINATION
   21. RESPONSIVE OVERRIDES (1199 · 991 · 767 · 575 · touch)
   ========================================================================== */


/* ==========================================================================
   00. DESIGN TOKENS + BASE
   ========================================================================== */
:root {
    --gg-primary: #6366f1;
    --gg-primary-dark: #4f46e5;
    --gg-accent: #f59e0b;
    --gg-bg: #f8fafc;
    --gg-card-bg: #ffffff;
    --gg-text: #0f172a;
    --gg-muted: #64748b;
    --gg-radius: 16px;
    --gg-shadow: 0 4px 24px rgba(15,23,42,.08);
    --gg-shadow-lg: 0 12px 48px rgba(15,23,42,.15);
}

[data-theme="dark"] {
    --gg-bg: #0b1020;
    --gg-card-bg: #161c33;
    --gg-text: #f1f5f9;
    --gg-muted: #94a3b8;
    --gg-shadow: 0 4px 24px rgba(0,0,0,.4);
}

* {
    box-sizing: border-box;
}

body.gg-body {
    background: var(--gg-bg);
    color: var(--gg-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-bottom: 96px;
}


/* ==========================================================================
   01. ANIMATIONS
   ========================================================================== */
@keyframes ggSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* legacy loader */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
/* legacy */

@keyframes ggShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* --- Fallback keyframes required by components.css (ggFadeDown, ggFadeUp,
       ggToastIn, ggScaleIn, ggBounce, ggPulse). They were not defined in the
       original files. Delete this block if you already define them elsewhere. --- */
@keyframes ggFadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ggFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ggToastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ggScaleIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ggBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ggPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}


/* ==========================================================================
   02. GLOBAL SAFETY RULES
   ========================================================================== */
/* Prevent horizontal scroll (clip keeps position: sticky working) */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

    /* Force sticky by keeping the header out of any transform context */
    body > * {
        transform: none !important;
    }

img {
    max-width: 100%;
    height: auto;
}

.gg-card, .gg-news-card, .gg-review-card {
    max-width: 100%;
    word-wrap: break-word;
}

.gg-detail-actions,
.gg-card-actions {
    flex-wrap: wrap;
}

    .gg-detail-actions .gg-btn,
    .gg-card-actions .gg-btn {
        flex: 1 1 auto;
        min-width: 0;
    }


/* ==========================================================================
   03. STARTUP LOADER (.gg-boot) + LEGACY LOADER
   ========================================================================== */
.gg-boot {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: opacity .55s cubic-bezier(.4,0,.2,1), visibility .55s cubic-bezier(.4,0,.2,1);
}

    .gg-boot.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.gg-boot-bg {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 30%, rgba(99,102,241,.55), transparent 45%), radial-gradient(circle at 80% 70%, rgba(139,92,246,.55), transparent 45%), radial-gradient(circle at 50% 50%, rgba(236,72,153,.35), transparent 55%), linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: ggBootBg 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes ggBootBg {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gg-boot-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

/* Logo */
.gg-boot-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    animation: ggBootLogoIn .8s cubic-bezier(.2,.9,.3,1) both;
}

@keyframes ggBootLogoIn {
    from {
        opacity: 0;
        transform: scale(.5) rotate(-30deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.gg-boot-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255,255,255,.9);
    border-right-color: rgba(139,92,246,.7);
    border-bottom-color: rgba(236,72,153,.5);
    animation: ggSpin 1.4s cubic-bezier(.5,.1,.5,.9) infinite;
}

    .gg-boot-logo-ring::before {
        content: "";
        position: absolute;
        inset: 12px;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: rgba(255,255,255,.55);
        animation: ggSpin 2.2s linear infinite reverse;
    }

.gg-boot-logo-core {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
    backdrop-filter: blur(20px);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 40px rgba(139,92,246,.6), inset 0 2px 12px rgba(255,255,255,.15);
    animation: ggBootPulse 2s ease-in-out infinite;
}

@keyframes ggBootPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 40px rgba(139,92,246,.6), inset 0 2px 12px rgba(255,255,255,.15);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 12px rgba(255,255,255,.03), 0 0 60px rgba(236,72,153,.75), inset 0 2px 12px rgba(255,255,255,.2);
    }
}

/* Title */
.gg-boot-title {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, #c7d2fe 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ggBootTitleShine 3s ease-in-out infinite;
}

@keyframes ggBootTitleShine {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gg-boot-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    margin: .35rem 0 2rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Progress */
.gg-boot-progress {
    width: 220px;
    height: 4px;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

.gg-boot-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 999px;
    transition: width .3s cubic-bezier(.2,.9,.3,1);
    box-shadow: 0 0 20px rgba(139,92,246,.8);
    position: relative;
}

    .gg-boot-progress-bar::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
        background-size: 40px 100%;
        animation: ggBootProgressShimmer 1.2s linear infinite;
    }

@keyframes ggBootProgressShimmer {
    from {
        background-position: -40px 0;
    }

    to {
        background-position: 240px 0;
    }
}

/* Status dots */
.gg-boot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: rgba(255,255,255,.65);
}

.gg-boot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    animation: ggBootDot 1.2s ease-in-out infinite;
}

    .gg-boot-dot:nth-child(2) {
        animation-delay: .15s;
    }

    .gg-boot-dot:nth-child(3) {
        animation-delay: .3s;
    }

@keyframes ggBootDot {
    0%, 100% {
        opacity: .35;
        transform: scale(.85);
        background: rgba(255,255,255,.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
        background: #a78bfa;
    }
}

.gg-boot-status-text {
    margin-left: .5rem;
    letter-spacing: .04em;
}

/* Footer */
.gg-boot-footer {
    position: absolute;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    z-index: 2;
    letter-spacing: .05em;
}

    .gg-boot-footer i {
        color: #ec4899;
    }

/* Fade-out */
.gg-boot.is-hidden .gg-boot-content {
    animation: ggBootContentOut .55s cubic-bezier(.4,0,.2,1) both;
}

@keyframes ggBootContentOut {
    to {
        opacity: 0;
        transform: scale(1.08) translateY(-20px);
    }
}

/* Legacy simple loader */
.gg-loader {
    position: fixed;
    inset: 0;
    background: var(--gg-bg);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity .3s;
}

    .gg-loader.hide {
        opacity: 0;
        pointer-events: none;
    }

.gg-loader-ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99,102,241,.2);
    border-top-color: var(--gg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* ==========================================================================
   04. TOP PROGRESS BAR  (slow responses only)
   ========================================================================== */
.gg-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

    .gg-top-progress.is-active {
        opacity: 1;
    }

    .gg-top-progress::before {
        content: "";
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
        border-radius: 0 3px 3px 0;
        box-shadow: 0 0 12px rgba(99,102,241,.6);
        transition: width .2s ease;
    }

    .gg-top-progress.is-active::before {
        animation: ggProgressBar 1.6s cubic-bezier(.1,.6,.4,.9) infinite;
    }

@keyframes ggProgressBar {
    0% {
        width: 0;
        margin-left: 0;
    }

    60% {
        width: 70%;
        margin-left: 0;
    }

    100% {
        width: 30%;
        margin-left: 70%;
    }
}


/* ==========================================================================
   05. TOP STRIP
   ========================================================================== */
.gg-topstrip {
    background: linear-gradient(90deg, #1e1b4b, #312e81);
    color: #c7d2fe;
    font-size: .78rem;
}

    .gg-topstrip a {
        color: #c7d2fe;
        text-decoration: none;
        padding: .25rem .55rem;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        transition: background .15s, color .15s;
    }

        .gg-topstrip a:hover {
            background: rgba(255,255,255,.1);
            color: #fff;
        }

.gg-topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .3rem 0;
    gap: .5rem;
}


/* ==========================================================================
   06. HEADER
   ========================================================================== */
.gg-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    z-index: 1020;
}

[data-theme="dark"] .gg-header {
    background: rgba(22,28,51,.9);
}

.gg-header-inner {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 0;
    min-height: 60px;
}

.gg-logo {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gg-primary);
    text-decoration: none;
    flex-shrink: 0;
}

    .gg-logo i {
        font-size: 1.5rem;
    }

.gg-logo-text {
    display: inline;
}

.gg-menu-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.1);
    background: var(--gg-card-bg);
    color: var(--gg-text);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background .15s;
}

    .gg-menu-btn:hover {
        background: rgba(99,102,241,.1);
        color: var(--gg-primary);
    }

.gg-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.gg-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15,23,42,.08);
    background: var(--gg-card-bg);
    color: var(--gg-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

    .gg-icon-btn:hover {
        background: rgba(99,102,241,.1);
        transform: translateY(-1px);
    }


/* ==========================================================================
   07. SEARCH
   ========================================================================== */
.gg-search {
    flex: 1 1 auto;
    min-width: 0; /* allows flex shrink */
    max-width: 520px;
}

/* ---- Box ---- */
.gg-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

    .gg-search-box:focus-within {
        background: #fff;
        border-color: #6366f1;
        box-shadow: 0 0 0 4px rgba(99,102,241,.14);
    }

    .gg-search-box.is-loading {
        border-color: #6366f1;
        box-shadow: 0 0 0 4px rgba(99,102,241,.14);
    }

/* ---- Input / icons ---- */
.gg-search-input {
    width: 100%;
    padding: .65rem 2.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(99,102,241,.08);
    font-size: .92rem;
    color: var(--gg-text);
    transition: all .2s;
}

    .gg-search-input:focus {
        outline: none;
        border-color: var(--gg-primary);
        background: var(--gg-card-bg);
        box-shadow: 0 0 0 4px rgba(99,102,241,.15);
    }

.gg-search-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gg-muted);
    pointer-events: none;
    font-size: .95rem;
    transition: opacity .18s ease, transform .18s ease;
}
/* Hide the magnifier while loading (spinner takes its place) */
.gg-search-box.is-loading .gg-search-icon {
    opacity: 0;
    transform: translateY(-50%) scale(.85);
}

.gg-search-clear {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gg-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

    .gg-search-clear:hover {
        background: rgba(0,0,0,.06);
    }

/* ---- Inline spinner ---- */
.gg-search-spinner {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,.25);
    border-top-color: #6366f1;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.gg-search-box.is-loading .gg-search-spinner {
    opacity: 1;
    transform: scale(1);
    animation: ggSpin .7s linear infinite;
}

/* ---- Dropdown shell ---- */
.gg-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15,23,42,.12);
    max-height: min(70vh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

    .gg-search-suggest.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* ---- Skeleton rows ---- */
.gg-suggest-skel {
    padding: 8px 14px;
}

.gg-skel-row {
    display: grid;
    grid-template-columns: 42px 1fr 60px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .gg-skel-row:last-child {
        border-bottom: none;
    }

.gg-skel-block {
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 40%, #f1f5f9 80%);
    background-size: 200% 100%;
    animation: ggShimmer 1.4s linear infinite;
}

.gg-skel-thumb {
    width: 42px;
    height: 42px;
}

.gg-skel-line {
    height: 10px;
}

.gg-skel-line-sm {
    height: 8px;
    width: 60%;
    margin-top: 6px;
}

.gg-skel-price {
    height: 12px;
    width: 100%;
}

/* ---- Empty / error ---- */
.gg-suggest-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 14px;
    text-align: center;
    color: #64748b;
    font-size: .85rem;
}

    .gg-suggest-empty i {
        font-size: 1.35rem;
        color: #94a3b8;
        margin-bottom: 4px;
    }

    .gg-suggest-empty kbd {
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        padding: 1px 5px;
        font-size: .72rem;
    }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .gg-search-box.is-loading .gg-search-spinner,
    .gg-skel-block,
    .gg-top-progress.is-active::before {
        animation: none !important;
    }

    .gg-search-box.is-loading .gg-search-spinner {
        border-color: #6366f1;
        border-top-color: transparent;
    }
}


/* ==========================================================================
   08. MAIN NAV + MEGA MENU
   ========================================================================== */
.gg-mainnav {
    border-top: 1px solid rgba(15,23,42,.06);
    background: var(--gg-card-bg);
}

.gg-mainnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .25rem;
}

    .gg-mainnav-list > li {
        position: relative;
    }

        .gg-mainnav-list > li > a {
            display: flex;
            align-items: center;
            gap: .4rem;
            padding: .65rem .85rem;
            color: var(--gg-text);
            text-decoration: none;
            font-weight: 600;
            font-size: .9rem;
            border-radius: 10px;
            transition: background .15s, color .15s;
        }

            .gg-mainnav-list > li > a:hover {
                background: rgba(99,102,241,.1);
                color: var(--gg-primary);
            }

.gg-has-mega:hover > .gg-mega {
    display: grid;
}

.gg-mega {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gg-card-bg);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow-lg);
    padding: 1.25rem;
    display: none;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.5rem;
    min-width: 820px;
    z-index: 1050;
    border: 1px solid rgba(15,23,42,.06);
    animation: ggFadeDown .2s ease;
}

.gg-mega-col h6 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gg-muted);
    margin-bottom: .65rem;
}

.gg-mega-col a {
    display: block;
    padding: .35rem 0;
    color: var(--gg-text);
    text-decoration: none;
    font-size: .88rem;
    transition: color .12s, padding-left .12s;
}

    .gg-mega-col a:hover {
        color: var(--gg-primary);
        padding-left: 4px;
    }

.gg-mega-more {
    color: var(--gg-primary) !important;
    font-weight: 600;
}

.gg-mega-featured {
    border-left: 1px dashed rgba(99,102,241,.25);
    padding-left: 1rem;
}

.gg-mega-featured-item {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    padding: .55rem !important;
    background: rgba(99,102,241,.06);
    border-radius: 10px;
}

    .gg-mega-featured-item img {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }

    .gg-mega-featured-item strong {
        display: block;
        font-size: .9rem;
    }

    .gg-mega-featured-item span {
        font-size: .8rem;
        color: var(--gg-primary);
        font-weight: 700;
    }


/* ==========================================================================
   09. MOBILE NAV (offcanvas)
   ========================================================================== */
.offcanvas.gg-mobile-nav {
    --bs-offcanvas-width: 320px;
    background: var(--gg-card-bg);
    z-index: 1090;
}

.gg-mobile-nav .offcanvas-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.gg-mobile-nav .offcanvas-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.gg-mobile-nav .btn-close {
    filter: invert(1) brightness(2);
    opacity: .9;
}

.gg-mobile-nav .offcanvas-body {
    overflow-y: auto;
    max-height: calc(100vh - 64px);
    overscroll-behavior: contain;
}

.gg-mobile-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.gg-mobile-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* light logo on dark header; remove if logo is already light */
}

[data-theme="light"] .gg-mobile-logo.want-white {
    filter: none;
}

.gg-mobile-brand-text {
    min-width: 0;
}

    .gg-mobile-brand-text small {
        color: rgba(255,255,255,.75);
        font-size: .7rem;
        letter-spacing: .04em;
        text-transform: uppercase;
        display: block;
        margin-top: 2px;
    }

.gg-mobile-search {
    padding: .85rem 1rem;
    background: rgba(99,102,241,.06);
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.gg-mobile-list {
    list-style: none;
    padding: .5rem .75rem;
    margin: 0;
}

    .gg-mobile-list a {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .75rem .85rem;
        color: var(--gg-text);
        text-decoration: none;
        font-weight: 500;
        font-size: .95rem;
        border-radius: 10px;
        transition: background .15s, color .15s;
    }

        .gg-mobile-list a:hover,
        .gg-mobile-list a:active {
            background: rgba(99,102,241,.1);
            color: var(--gg-primary);
        }

    .gg-mobile-list i {
        color: var(--gg-primary);
        font-size: 1.15rem;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

.gg-mobile-list-secondary a {
    font-size: .88rem;
    padding: .6rem .85rem;
    color: var(--gg-muted);
}

.gg-mobile-social {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    border-top: 1px dashed rgba(15,23,42,.1);
    margin-top: .5rem;
}

    .gg-mobile-social a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(99,102,241,.1);
        color: var(--gg-primary);
        display: grid;
        place-items: center;
        font-size: 1.05rem;
        text-decoration: none;
        transition: background .15s, color .15s, transform .15s;
    }

        .gg-mobile-social a:hover,
        .gg-mobile-social a:active {
            background: var(--gg-primary);
            color: #fff;
            transform: translateY(-2px);
        }


/* ==========================================================================
   10. MAIN WRAP
   ========================================================================== */
.gg-main-wrap {
    padding: 1rem 0 2rem;
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.gg-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

    .gg-footer .gg-logo {
        color: #fff !important;
        font-size: 1.5rem;
    }

    .gg-footer h6 {
        color: #f1f5f9 !important;
        font-size: .85rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 1rem;
    }

    .gg-footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .gg-footer ul li {
            margin-bottom: .4rem;
        }

        .gg-footer ul a {
            color: #94a3b8 !important;
            text-decoration: none;
            font-size: .88rem;
            transition: color .15s;
        }

            .gg-footer ul a:hover {
                color: #ffffff !important;
            }

.gg-footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

    .gg-footer-logo i {
        color: #818cf8;
        font-size: 1.6rem;
    }

.gg-footer-desc {
    color: #cbd5e1 !important;
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: .75rem;
}

.gg-footer-desc-bn {
    color: #94a3b8 !important;
    font-size: .85rem;
    line-height: 1.8;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    margin-bottom: 0;
}

.gg-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s, transform .15s;
}

    .gg-footer-social a:hover {
        background: var(--gg-primary);
        color: #fff;
        transform: translateY(-2px);
    }

.gg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

    .gg-footer-bottom .small,
    .gg-footer-bottom a {
        color: #94a3b8 !important;
        text-decoration: none;
    }

        .gg-footer-bottom a:hover {
            color: #ffffff !important;
        }


/* ==========================================================================
   12. CARDS (base device card — see components.css for the full version)
   ========================================================================== */
.gg-card {
    background: var(--gg-card-bg);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

    .gg-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--gg-shadow-lg);
    }

.gg-card-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

    .gg-card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .4s;
    }

.gg-card:hover .gg-card-img img {
    transform: scale(1.08);
}

.gg-card-body {
    padding: .9rem 1rem;
    flex-grow: 1;
}

.gg-brand {
    font-size: .75rem;
    color: var(--gg-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gg-device-name {
    font-weight: 700;
    color: var(--gg-text);
    text-decoration: none;
    display: block;
    margin: .15rem 0;
}

    .gg-device-name:hover {
        color: var(--gg-primary);
    }

.gg-price {
    font-weight: 700;
    color: var(--gg-primary);
}

.gg-card-actions {
    display: flex;
    gap: .5rem;
    padding: 0 1rem 1rem;
}


/* ==========================================================================
   13. COMPARE BAR (base)
   ========================================================================== */
.gg-compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gg-card-bg);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    padding: .75rem 0;
    transform: translateY(100%);
    transition: transform .3s;
    z-index: 1030;
}

    .gg-compare-bar.show {
        transform: translateY(0);
    }

.gg-compare-items {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

    .gg-compare-items .badge {
        cursor: default;
    }


/* ==========================================================================
   14. FLOATING ACTION BUTTONS
       .gg-fab-stack owns the fixed position; .gg-fab is just the button.
       (The old standalone fixed/right/bottom on .gg-fab was removed — it
       conflicted with the stack and shifted buttons when nested.)
   ========================================================================== */
.gg-fab-stack {
    position: fixed;
    right: 20px;
    bottom: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1030;
}

.gg-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--gg-card-bg);
    color: var(--gg-text);
    box-shadow: var(--gg-shadow-lg);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: transform .2s, background .2s;
}

    .gg-fab:hover {
        transform: scale(1.08);
    }

.gg-fab-primary {
    background: var(--gg-primary);
    color: #fff;
}


/* ==========================================================================
   15. BADGES
   ========================================================================== */
.gg-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
}

.gg-badge-sponsored {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f59e0b;
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gg-primary);
    color: #fff;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: .68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}


/* ==========================================================================
   16. SPEC LIST
   ========================================================================== */
.gg-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px dashed rgba(0,0,0,.06);
}

.gg-spec-key {
    color: var(--gg-muted);
    font-size: .9rem;
    display: flex;
    gap: .4rem;
    align-items: center;
}

.gg-spec-val {
    font-weight: 600;
    text-align: right;
    font-size: .9rem;
}


/* ==========================================================================
   17. TRENDING (sidebar list)
   ========================================================================== */
.gg-trending {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.gg-trend-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .6rem;
    border-radius: 10px;
    color: var(--gg-text);
    text-decoration: none;
    font-size: .9rem;
}

    .gg-trend-item:hover {
        background: rgba(99,102,241,.1);
    }

.gg-trend-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gg-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 700;
}


/* ==========================================================================
   18. AD SLOT
   ========================================================================== */
.gg-sidebar-ad {
    position: relative;
}

.gg-ad-label {
    font-size: .65rem;
    text-transform: uppercase;
    color: var(--gg-muted);
    letter-spacing: .08em;
}

.gg-ad-slot {
    margin-top: .35rem;
    border: 2px dashed rgba(99,102,241,.3);
    border-radius: 12px;
    min-height: 200px;
    display: grid;
    place-items: center;
    color: var(--gg-muted);
    text-align: center;
}

    .gg-ad-slot i {
        font-size: 2rem;
        display: block;
        margin-bottom: .35rem;
    }


/* ==========================================================================
   19. GLASS / GREET MODAL
   ========================================================================== */
.gg-greet-emoji {
    font-size: 3rem;
    margin-bottom: .5rem;
}

.gg-glass {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: var(--gg-radius);
}

[data-theme="dark"] .gg-glass {
    background: rgba(22,28,51,.9);
}


/* ==========================================================================
   20. PAGINATION
   ========================================================================== */
.gg-pagination {
    margin-top: 2rem;
}

    .gg-pagination .page-link {
        color: var(--gg-text);
        border-radius: 10px !important;
        margin: 0 3px;
        border: 1px solid rgba(0,0,0,.06);
    }

    .gg-pagination .page-item.active .page-link {
        background: var(--gg-primary);
        border-color: var(--gg-primary);
        color: #fff;
    }


/* ==========================================================================
   21. RESPONSIVE OVERRIDES  (kept last so they win over base rules)
   ========================================================================== */

/* ≤ 1199px — narrower mega menu */
@media (max-width: 1199.98px) {
    .gg-mega {
        min-width: 640px !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ≤ 991px — tablet: hide mega nav, compact header */
@media (max-width: 991.98px) {
    .gg-mainnav {
        display: none !important;
    }

    .gg-header-inner {
        gap: .5rem;
        padding: .55rem 0;
        min-height: 56px;
    }

    .gg-logo {
        font-size: 1.05rem;
    }

    .gg-search {
        max-width: none;
    }

    .gg-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .gg-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .gg-main-wrap {
        padding: .75rem 0 1.5rem;
    }

    .gg-footer {
        padding: 2rem 0 1rem;
    }
}

/* ≤ 767px — detail hero + home hero stacking */
@media (max-width: 767.98px) {
    .gg-detail-hero {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 1rem;
    }

    .gg-detail-img-wrap {
        max-width: 260px;
        margin: 0 auto;
    }

    .gg-detail-quick {
        grid-template-columns: 1fr 1fr;
    }

    .gg-post-hero-image {
        aspect-ratio: 4/3;
    }

    .gg-post-content {
        padding: 1.1rem;
    }

    .gg-hero-visual {
        display: none;
    }

    .gg-hero {
        padding: 1.5rem !important;
        grid-template-columns: 1fr !important;
    }

        .gg-hero h1 {
            font-size: 1.6rem;
        }
}

/* ≤ 575px — mobile: compact everything */
@media (max-width: 575.98px) {
    .gg-topstrip {
        font-size: .7rem;
    }

    .gg-topstrip-social {
        gap: .35rem !important;
    }

        .gg-topstrip-social a {
            padding: .2rem .35rem !important;
        }

    .gg-logo-text {
        display: none;
    }
    /* icon only on tiny screens */
    .gg-logo i {
        font-size: 1.5rem;
    }

    .gg-search-input {
        padding: .55rem 2.2rem;
        font-size: .85rem;
    }

    .gg-search-icon {
        left: .7rem;
        font-size: .85rem;
    }

    .gg-search-clear {
        right: .5rem;
        width: 24px;
        height: 24px;
        font-size: .75rem;
    }

    .gg-header-actions {
        gap: .35rem;
    }

    .gg-icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .gg-badge {
        min-width: 15px;
        height: 15px;
        font-size: .6rem;
    }

    body.gg-body {
        padding-top: 0;
    }

    /* Boot loader */
    .gg-boot-logo {
        width: 100px;
        height: 100px;
    }

    .gg-boot-logo-core {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .gg-boot-title {
        font-size: 1.7rem;
    }

    .gg-boot-progress {
        width: 180px;
    }

    /* Keep FABs clear of the compare bar */
    .gg-fab-stack {
        bottom: 84px;
        right: 14px;
    }

    .gg-fab {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .gg-compare-bar {
        padding: .5rem 0;
    }

        .gg-compare-bar .container-xxl {
            gap: .5rem;
        }
}

/* Touch devices — comfortable tap targets */
@media (hover: none) {
    .gg-btn, .gg-icon-btn, .gg-menu-btn, .gg-view-btn, .gg-chip {
        min-height: 40px;
    }
}




/* ═══════════════════════════════════════════════════════════════════════
 * BLOG / REVIEWS / NEWS / GUIDES
 * ═══════════════════════════════════════════════════════════════════════ */

.gg-blog-hero {
    padding: 4rem 0 2.5rem;
    background: radial-gradient(900px 300px at 15% 0%, rgba(99,102,241,.10), transparent 60%), radial-gradient(700px 260px at 85% 20%, rgba(236,72,153,.08), transparent 60%);
    text-align: center;
}

    .gg-blog-hero h1 {
        font-size: clamp(1.7rem, 3.5vw, 2.6rem);
        font-weight: 800;
        margin: 12px 0 10px;
        letter-spacing: -.02em;
    }

    .gg-blog-hero p {
        color: #64748b;
        max-width: 640px;
        margin: 0 auto;
    }

.gg-blog-wrap {
    padding: 2.5rem 0 4rem;
}

/* ── Tabs ──────────────────────────────────────────────────────────── */
.gg-blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 14px;
    width: fit-content;
    max-width: 100%;
}

.gg-blog-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
    white-space: nowrap;
}

    .gg-blog-tab:hover {
        color: #0f172a;
        background: rgba(255,255,255,.6);
    }

    .gg-blog-tab.is-active {
        background: #fff;
        color: #6366f1;
        box-shadow: 0 2px 8px rgba(15,23,42,.08);
    }

    .gg-blog-tab i {
        font-size: 1rem;
    }

.gg-blog-tab-count {
    background: rgba(99,102,241,.14);
    color: #6366f1;
    font-size: .72rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
}

/* ── Panes ─────────────────────────────────────────────────────────── */
.gg-blog-pane {
    display: none;
}

    .gg-blog-pane.is-active {
        display: block;
        animation: ggFadeIn .3s ease;
    }

@keyframes ggFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Cards ─────────────────────────────────────────────────────────── */
.gg-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

    .gg-blog-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px -20px rgba(15,23,42,.2);
    }

.gg-blog-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

    .gg-blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.gg-blog-card:hover .gg-blog-card-img img {
    transform: scale(1.05);
}

.gg-blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.gg-blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .74rem;
    color: #64748b;
}

.gg-blog-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(99,102,241,.1);
    color: #6366f1;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

    .gg-blog-card-cat i {
        font-size: .8rem;
    }

.gg-blog-card-meta time {
    color: #94a3b8;
}

.gg-blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .gg-blog-card-title a {
        color: #0f172a;
        text-decoration: none;
    }

        .gg-blog-card-title a:hover {
            color: #6366f1;
        }

.gg-blog-card-summary {
    font-size: .88rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gg-blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6366f1;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

    .gg-blog-card-cta:hover {
        gap: 8px;
    }

    .gg-blog-card-cta i {
        transition: transform .18s;
    }

.gg-blog-card:hover .gg-blog-card-cta i {
    transform: translateX(3px);
}

.gg-blog-empty {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .gg-blog-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        width: 100%;
    }

    .gg-blog-tab {
        padding: 8px 12px;
        font-size: .82rem;
    }
}




/* ═══════════════════════════════════════════════════════════════════════
 * VIDEOS PAGE
 * ═══════════════════════════════════════════════════════════════════════ */

.gg-videos-hero {
    padding: 3.5rem 0 2rem;
    text-align: center;
}

    .gg-videos-hero h1 {
        font-size: clamp(1.7rem, 3.5vw, 2.5rem);
        font-weight: 800;
        margin: 8px 0;
    }

    .gg-videos-hero p {
        color: #64748b;
        margin: 0;
    }

.gg-videos-wrap {
    padding: 2rem 0 4rem;
}

/* Filters */
.gg-videos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.gg-videos-search {
    position: relative;
    flex: 1 1 240px;
}

    .gg-videos-search i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        pointer-events: none;
    }

    .gg-videos-search input {
        width: 100%;
        padding: 10px 12px 10px 36px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        font-size: .92rem;
    }

        .gg-videos-search input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 4px rgba(99,102,241,.14);
        }

.gg-videos-date {
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: .88rem;
}

    .gg-videos-date:focus {
        outline: none;
        border-color: #6366f1;
    }

.gg-videos-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: #334155;
    cursor: pointer;
}

.gg-videos-count {
    color: #475569;
    font-size: .9rem;
    margin-bottom: 1rem;
}

    .gg-videos-count strong {
        color: #0f172a;
    }

/* Video cards */
.gg-video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease;
}

    .gg-video-card:hover {
        transform: translateY(-2px);
    }

.gg-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0;
}

    .gg-video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
    }

.gg-video-card:hover .gg-video-thumb img {
    transform: scale(1.05);
}

.gg-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15,23,42,.25);
    opacity: 0;
    transition: opacity .2s ease;
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.gg-video-card:hover .gg-video-play {
    opacity: 1;
}

.gg-video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    background: #ef4444;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 4px;
    text-transform: uppercase;
}

.gg-video-body {
    padding: 10px 4px 0;
}

    .gg-video-body h3 {
        font-size: .95rem;
        font-weight: 600;
        line-height: 1.35;
        margin: 0 0 4px;
        color: #0f172a;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .gg-video-body time {
        font-size: .78rem;
        color: #94a3b8;
    }

/* Pagination */
.gg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.gg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: background .15s, color .15s, border-color .15s;
}

    .gg-page-btn:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }

    .gg-page-btn.is-active {
        background: #6366f1;
        border-color: #6366f1;
        color: #fff;
    }

.gg-page-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
}

@media (max-width: 575.98px) {
    .gg-videos-filters {
        padding: 10px;
        gap: 8px;
    }

    .gg-videos-search {
        flex: 1 1 100%;
    }

    .gg-videos-date {
        flex: 1 1 calc(50% - 4px);
    }

    .gg-videos-check {
        flex: 1 1 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * TRENDING — premium list with top-10 badges and small thumbnails
 * ═══════════════════════════════════════════════════════════════════════ */

.gg-trending-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* ─── Row ────────────────────────────────────────────────────────────── */
.gg-trending-row {
    position: relative;
    display: grid;
    grid-template-columns: 44px 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
    overflow: hidden;
}

    .gg-trending-row::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: transparent;
        transition: background .2s ease;
    }

    .gg-trending-row.is-featured::before {
        background: linear-gradient(180deg, #f59e0b, #ef4444);
    }

    .gg-trending-row:hover {
        transform: translateY(-2px);
        border-color: rgba(99,102,241,.35);
        background: #fafbff;
        box-shadow: 0 10px 26px -18px rgba(99,102,241,.55);
    }

        .gg-trending-row:hover::before {
            background: linear-gradient(180deg, #6366f1, #8b5cf6);
        }

/* ─── Rank badge ─────────────────────────────────────────────────────── */
.gg-trending-rank {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: .9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: transform .25s ease, box-shadow .25s ease;
    flex-shrink: 0;
}

    .gg-trending-rank span {
        line-height: 1;
    }

    .gg-trending-rank i {
        font-size: 1.1rem;
        margin-right: 1px;
    }

    /* Gold / silver / bronze / top10 variants */
    .gg-trending-rank.is-gold {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #fef3c7, #fbbf24);
        color: #78350f;
        box-shadow: 0 4px 14px -6px rgba(251,191,36,.9), inset 0 0 0 2px rgba(255,255,255,.6);
        font-size: .95rem;
    }

    .gg-trending-rank.is-silver {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #e2e8f0, #94a3b8);
        color: #1e293b;
        box-shadow: 0 4px 14px -6px rgba(148,163,184,.9), inset 0 0 0 2px rgba(255,255,255,.6);
        font-size: .95rem;
    }

    .gg-trending-rank.is-bronze {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #fed7aa, #fb923c);
        color: #7c2d12;
        box-shadow: 0 4px 14px -6px rgba(251,146,60,.9), inset 0 0 0 2px rgba(255,255,255,.6);
        font-size: .95rem;
    }

    .gg-trending-rank.is-top10 {
        background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
        color: #312e81;
        box-shadow: 0 3px 10px -5px rgba(99,102,241,.7);
    }

.gg-trending-row:hover .gg-trending-rank.is-gold,
.gg-trending-row:hover .gg-trending-rank.is-silver,
.gg-trending-row:hover .gg-trending-rank.is-bronze {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 22px -8px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.7);
}

.gg-trending-row:hover .gg-trending-rank.is-top10 {
    transform: scale(1.05);
}

/* ─── Small device image ─────────────────────────────────────────────── */
.gg-trending-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .25s ease;
}

    .gg-trending-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
        transition: transform .35s ease;
    }

.gg-trending-row:hover .gg-trending-thumb img {
    transform: scale(1.08);
}

/* ─── Info block ─────────────────────────────────────────────────────── */
.gg-trending-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .gg-trending-info .gg-brand {
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        font-weight: 700;
        color: #94a3b8;
    }

.gg-trending-name {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gg-price {
    font-size: .85rem;
    font-weight: 600;
    color: #6366f1;
}

/* ─── Stats ──────────────────────────────────────────────────────────── */
.gg-trending-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gg-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background .15s, color .15s;
}

    .gg-stat-pill i {
        font-size: .85rem;
        color: #6366f1;
    }

.gg-trending-row:hover .gg-stat-pill {
    background: #e0e7ff;
    color: #312e81;
}

/* Hot badge */
.gg-trend-hot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    animation: ggHotPulse 2.4s ease-in-out infinite;
}

    .gg-trend-hot i {
        font-size: .8rem;
    }

@keyframes ggHotPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239,68,68,.35);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239,68,68,0);
    }
}

/* ─── Skeleton shimmer ──────────────────────────────────────────────── */
.gg-skel-block {
    display: inline-block;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 40%, #f1f5f9 80%);
    background-size: 200% 100%;
    animation: ggSkelShimmer 1.4s linear infinite;
    border-radius: 8px;
}

@keyframes ggSkelShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.gg-trend-skel .gg-trending-row {
    pointer-events: none;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .gg-trending-row {
        grid-template-columns: 40px 56px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .gg-trending-thumb {
        width: 56px;
        height: 56px;
    }

    .gg-trending-rank {
        width: 36px;
        height: 36px;
        font-size: .82rem;
    }

        .gg-trending-rank.is-gold,
        .gg-trending-rank.is-silver,
        .gg-trending-rank.is-bronze {
            width: 40px;
            height: 40px;
        }

    .gg-trending-name {
        font-size: .88rem;
    }

    .gg-stat-pill {
        padding: 3px 8px;
        font-size: .72rem;
    }

    .gg-trend-hot {
        display: none;
    }
    /* save space on mobile */
}

@media (max-width: 480px) {
    .gg-trending-row {
        grid-template-columns: 36px 48px 1fr;
        grid-template-areas:
            "rank thumb info"
            "rank thumb stats";
        row-gap: 4px;
        column-gap: 10px;
    }

    .gg-trending-rank {
        grid-area: rank;
    }

    .gg-trending-thumb {
        grid-area: thumb;
        width: 48px;
        height: 48px;
    }

    .gg-trending-info {
        grid-area: info;
    }

    .gg-trending-stats {
        grid-area: stats;
        justify-content: flex-start;
    }

        .gg-trending-stats .gg-stat-pill {
            padding: 2px 6px;
            font-size: .68rem;
        }

            .gg-trending-stats .gg-stat-pill:nth-child(n+3) {
                display: none;
            }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gg-trending-row,
    .gg-trending-row::before,
    .gg-trending-rank,
    .gg-trending-thumb img,
    .gg-trend-hot,
    .gg-skel-block {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}



/* ─── Google Auth ─────────────────────────────────────────────────── */

.gg-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: background .15s, color .15s, transform .15s;
}

    .gg-user-btn:hover {
        background: #6366f1;
        color: #fff;
        transform: scale(1.05);
    }



/*---------------------gg-avatar-----------------------*/


.gg-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
    user-select: none;
    flex-shrink: 0;
}

.gg-avatar-dyn {
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
    text-shadow: 0 2px 6px rgba(0,0,0,.25);
}



.gg-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.gg-user-avatar-dyn {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    user-select: none;
}

.gg-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
    padding: 0;
}

    .gg-user-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
        transform: translateY(-1px);
    }

    .gg-user-btn.gg-user-btn-google {
        background: #fff;
        border: 1px solid #e2e8f0;
    }

        .gg-user-btn.gg-user-btn-google:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #2563eb;
        }

/* ═══ User menu wrapper ═══ */
.gg-user-menu {
    position: relative;
    display: inline-block;
}

/* Trigger button (matches the previous gg-user-btn) */
.gg-user-trigger {
    border: none;
    cursor: pointer;
}

/* ═══ Dropdown container ═══ */
.gg-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 20px 40px -16px rgba(15,23,42,.25);
    padding: 6px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}



    .gg-user-dropdown.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

/* ═══ Header (avatar + name/email) ═══ */
.gg-user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

.gg-user-dropdown-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

    .gg-user-dropdown-avatar img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

.gg-user-dropdown-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .gg-user-dropdown-meta strong {
        font-size: .92rem;
        font-weight: 700;
        color: #0f172a;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gg-user-dropdown-meta small {
        font-size: .74rem;
        color: #64748b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ═══ Sections ═══ */
.gg-user-dropdown-section {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .gg-user-dropdown-section:last-child {
        border-bottom: none;
    }

.gg-user-dropdown-last {
    padding-top: 6px;
}

/* ═══ Individual items ═══ */
.gg-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .14s, color .14s;
}

    .gg-user-item i {
        font-size: 1rem;
        color: #6366f1;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .gg-user-item:hover,
    .gg-user-item:focus-visible {
        background: #eef2ff;
        color: #1e293b;
        outline: none;
    }

/* Danger item (Sign Out) */
.gg-user-item-danger {
    color: #b91c1c;
}

    .gg-user-item-danger i {
        color: #dc2626;
    }

    .gg-user-item-danger:hover {
        background: #fef2f2;
        color: #991b1b;
    }

/* ═══ Small screens: full-width sheet-style dropdown ═══ */
@media (max-width: 575.98px) {
    .gg-user-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        bottom: auto; /* ⭐ remove the fixed-bottom */
        width: 260px;
        max-width: calc(100vw - 24px); /* never overflow the viewport */
        transform-origin: top right;
        transform: translateY(-6px) scale(.97);
    }

        .gg-user-dropdown.is-open {
            transform: translateY(0) scale(1);
        }
}




/*gg-identity-strip review form*/

.gg-identity-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.gg-identity-avatar img, .gg-identity-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.gg-identity-initial {
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    color: #fff;
}

.gg-identity-meta {
    display: flex;
    flex-direction: column;
}

    .gg-identity-meta strong {
        font-size: .9rem;
    }

    .gg-identity-meta small {
        font-size: .78rem;
        color: #64748b;
    }

.gg-identity-badge {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 3px 10px;
    border-radius: 999px;
}

.gg-identity-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 16px;
}

    .gg-identity-cta > i {
        font-size: 1.4rem;
        color: #2563eb;
    }

    .gg-identity-cta > div {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .gg-identity-cta small {
        font-size: .78rem;
        color: #64748b;
    }
