/* ============================================================
   GroupBuyChina — Premium Tablet Responsive Design
   Target: 768px – 991.98px (iPad, Galaxy Tab, Surface Go, etc.)
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   1. GLOBAL TABLET FOUNDATIONS
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* ── Container & Layout ── */
    .container {
        max-width: 720px;
        padding-inline: 1.25rem;
    }

    body {
        font-size: 0.93rem;
        -webkit-text-size-adjust: 100%;
    }

    /* ── Typography Scale ── */
    .display-4 { font-size: 2.2rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.45rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.05rem; }
    h5 { font-size: 0.95rem; }

    /* ── Section Rhythm ── */
    section.py-5,
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .mb-5 { margin-bottom: 2.5rem !important; }
    .mt-5 { margin-top: 2.5rem !important; }
    .g-4 { --bs-gutter-y: 1.25rem; --bs-gutter-x: 1.25rem; }
    .g-5 { --bs-gutter-y: 1.5rem; --bs-gutter-x: 1.5rem; }

    /* ── Cards — Uniform radius & shadow ── */
    .card {
        border-radius: 1rem;
        overflow: hidden;
    }

    /* ── Touch-Friendly Forms ── */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 0.9rem;
        border-radius: 0.625rem;
    }
    .form-label {
        font-size: 0.88rem;
        font-weight: 600;
    }
    .form-text {
        font-size: 0.78rem;
    }
    textarea.form-control {
        min-height: 100px;
    }

    /* ── Buttons — Touch Targets ── */
    .btn {
        min-height: 44px;
        font-size: 0.88rem;
        padding: 0.5rem 1.25rem;
        border-radius: 0.625rem;
    }
    .btn-sm {
        min-height: 38px;
        font-size: 0.82rem;
        padding: 0.4rem 1rem;
    }
    .btn-lg {
        min-height: 50px;
        font-size: 0.95rem;
    }

    /* ── Badges ── */
    .badge {
        font-size: 0.72rem;
        padding: 0.35em 0.6em;
    }

    /* ── Tables — Scrollable & Compact ── */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    .table {
        font-size: 0.85rem;
    }
    .table th {
        font-size: 0.73rem;
        white-space: nowrap;
        padding: 0.6rem 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .table td {
        padding: 0.6rem 0.7rem;
    }

    /* ── Modals ── */
    .modal-dialog {
        margin: 1rem auto;
        max-width: 520px;
    }
    .modal-content {
        border-radius: 1.25rem;
    }
    .modal-header {
        padding: 1rem 1.25rem;
    }
    .modal-body {
        padding: 1.25rem;
    }
    .modal-footer {
        padding: 0.85rem 1.25rem;
    }

    /* ── Breadcrumbs ── */
    .breadcrumb {
        font-size: 0.83rem;
    }
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 0.7rem;
    }

    /* ── Alerts ── */
    .alert {
        font-size: 0.88rem;
        padding: 0.85rem 1.1rem;
        border-radius: 0.75rem;
    }

    /* ── Pagination — Touch friendly ── */
    .pagination .page-link {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        border-radius: 0.5rem;
    }
    .pagination {
        gap: 0.25rem;
    }

    /* ── Dropdown menus ── */
    .dropdown-menu {
        border-radius: 0.85rem;
        padding: 0.5rem;
    }
    .dropdown-item {
        padding: 0.55rem 0.85rem;
        border-radius: 0.5rem;
        font-size: 0.88rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   2. NAVIGATION — TABLET OPTIMIZED
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .gbc-navbar {
        padding-block: 0.55rem;
    }
    .gbc-navbar .container {
        padding-inline: 1rem;
    }

    /* Brand styling */
    .gbc-navbar-brand span {
        font-size: 1.05rem;
    }
    .gbc-navbar-brand i {
        font-size: 1.35rem !important;
    }

    /* Mobile controls spacing */
    .gbc-mobile-controls {
        gap: 0.65rem;
    }

    /* Drawer — wider on tablet */
    .gbc-drawer {
        max-width: 360px;
        width: 72vw;
    }
    .gbc-drawer-search-input {
        font-size: 0.92rem;
        min-height: 44px;
    }
    .gbc-drawer-link {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    .gbc-drawer-link i {
        width: 22px;
        font-size: 1rem;
    }
    .gbc-drawer-avatar {
        width: 52px;
        height: 52px;
    }
    .gbc-drawer-user-info {
        padding: 1.25rem 1.5rem;
    }

    /* Mobile avatar */
    .gbc-mobile-avatar {
        width: 34px;
        height: 34px;
    }
    .gbc-mobile-avatar-placeholder {
        width: 34px;
        height: 34px;
    }

    /* Hamburger */
    .gbc-hamburger {
        width: 38px;
        height: 38px;
    }

    /* Notification dropdown — wider on tablet */
    .gbc-mobile-notif .dropdown-menu {
        width: 340px !important;
        max-height: 420px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   3. HERO CAROUSEL — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .hero-carousel .carousel-item {
        min-height: 480px;
    }
    .hero-carousel .slide-content {
        padding: 2.5rem 0 2rem;
    }

    /* Center-align copy on tablet */
    .hero-carousel .hero-copy-col {
        text-align: center !important;
    }
    .hero-carousel .hero-copy-col .lead {
        margin-inline: auto;
        max-width: 500px;
    }

    /* Glass panel behind copy */
    .hero-carousel .hero-copy-col::before {
        inset: -0.4rem;
        border-radius: 18px;
    }

    /* Hero typography */
    .hero-carousel h1,
    .hero-carousel .display-4 {
        font-size: clamp(1.85rem, 5vw, 2.3rem);
        line-height: 1.1;
    }
    .hero-carousel .lead {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    /* kicker badge */
    .hero-carousel .hero-kicker {
        font-size: 0.72rem;
        padding: 0.38rem 0.85rem;
    }

    /* Chip row */
    .hero-carousel .hero-chip-row .badge {
        font-size: 0.72rem;
        padding: 0.38rem 0.65rem;
    }

    /* Trust elements */
    .hero-carousel .hero-trust-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    .hero-carousel .avatar-group img {
        width: 30px;
        height: 30px;
    }

    /* Deal card — centered below copy */
    .hero-carousel .deal-card {
        max-width: 400px;
        margin: 1.5rem auto 0;
        padding: 1.25rem;
        border-radius: 20px;
    }
    .hero-carousel .deal-card-image {
        border-radius: 14px;
        height: 160px;
        object-fit: cover;
    }
    .hero-carousel .deal-title {
        font-size: 1rem;
    }
    .hero-carousel .deal-price {
        font-size: 1.75rem;
    }

    /* Buttons side-by-side */
    .hero-carousel .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hide heavy controls on tablet */
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 44px;
        height: 44px;
    }
    .hero-carousel .control-icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    /* Indicators */
    .hero-carousel .carousel-indicators {
        margin-bottom: 1rem;
    }
    .hero-carousel .carousel-indicators [data-bs-target] {
        height: 6px;
        width: 18px;
    }
    .hero-carousel .carousel-indicators .active {
        width: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   4. CATEGORY CARDS — TABLET GRID
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .category-section {
        padding: 2.5rem 0;
    }
    .category-card {
        padding: 1.2rem 0.6rem;
        border-radius: 14px;
    }
    .icon-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .category-icon {
        font-size: 1.65rem;
    }
    .category-title {
        font-size: 0.88rem;
        margin-top: 0.6rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   5. DEAL CARDS — HOMEPAGE SECTIONS
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Section Headers */
    .home-deals-section .section-head-row {
        padding: 0.9rem 1rem 0.9rem 1.4rem !important;
        border-radius: 16px !important;
        gap: 0.8rem !important;
        flex-wrap: nowrap;
        align-items: center;
    }
    .home-deals-section .section-head-row .section-title {
        font-size: 1.35rem !important;
    }
    .section-head-eyebrow {
        font-size: 0.68rem;
    }
    .section-head-sub {
        font-size: 0.82rem;
    }

    /* Deal card layout */
    .home-hot-deals .hot-deal-card,
    .home-ending-soon .ending-deal-card {
        border-radius: 1rem;
    }
    .home-hot-deals .hot-deal-card .card-img-top,
    .home-ending-soon .ending-deal-card .card-img-top {
        height: 195px;
        object-fit: cover;
    }
    .deal-card .card-body {
        padding: 1rem;
    }
    .deal-card .card-footer {
        padding: 0.75rem 1rem;
    }

    /* Deal meta chips */
    .home-deals-section .deal-topline {
        gap: 0.4rem;
    }
    .home-deals-section .deal-category-chip,
    .home-deals-section .deal-left-chip {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }
    .home-deals-section .deal-title {
        font-size: 0.92rem;
        min-height: 2.5rem;
    }
    .home-deals-section .deal-mini-meta span {
        font-size: 0.7rem;
        padding: 0.18rem 0.45rem;
    }

    /* CTA buttons */
    .home-deals-section .deal-cta-btn {
        min-height: 40px;
        font-size: 0.82rem;
    }
    .btn-hot-link,
    .btn-ending-link {
        font-size: 0.79rem !important;
        padding: 0.42rem 0.95rem !important;
    }

    /* Countdown wrap */
    .home-deals-section .deal-countdown-wrap {
        font-size: 0.72rem;
        padding: 0.22rem 0.5rem;
    }

    /* Progress bar */
    .home-deals-section .progress {
        height: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   6. HOW IT WORKS — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .home-how-it-works {
        padding: 2.5rem 0;
    }
    .home-how-it-works .how-step-card {
        padding: 1.3rem 1rem;
        border-radius: 1rem;
    }
    .home-how-it-works .how-step-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .home-how-it-works .how-step-card h4 {
        font-size: 1rem;
    }
    .home-how-it-works .how-step-card p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    /* How It Works icons */
    .gbc-how-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   7. TESTIMONIALS — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .home-testimonials {
        padding: 2.5rem 0;
    }
    .home-testimonials .testimonial-card {
        padding: 1.5rem !important;
        border-radius: 1rem;
    }
    .home-testimonials .testimonial-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .home-testimonials .testimonial-card .fw-bold {
        font-size: 0.92rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   8. NEWSLETTER — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .home-newsletter {
        padding: 2.5rem 0;
    }
    .home-newsletter .newsletter-wrap {
        border-radius: 1.25rem;
        padding: 2rem 1.75rem;
    }
    .home-newsletter h2,
    .home-newsletter .display-6 {
        font-size: 1.45rem;
    }
    .home-newsletter p {
        font-size: 0.9rem;
    }
    .newsletter-input-row {
        flex-direction: row;
        gap: 0.6rem;
    }
    .newsletter-input-row .form-control {
        flex: 1;
        min-height: 46px;
    }
    .newsletter-input-row .btn {
        min-height: 46px;
        white-space: nowrap;
        padding-inline: 1.5rem;
    }

    /* Newsletter benefits badges */
    .newsletter-benefits .badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   9. FOOTER — TABLET LAYOUT
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    footer {
        padding-top: 0;
    }
    footer .container {
        padding-inline: 1.5rem;
    }
    footer .row {
        row-gap: 1.5rem;
    }

    /* 2-column layout for footer on tablet */
    footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    footer h5 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem !important;
    }
    footer .small,
    footer p.small {
        font-size: 0.82rem;
        line-height: 1.6;
    }
    footer .footer-link {
        font-size: 0.88rem;
        padding: 0.25rem 0;
    }

    /* Social icons */
    footer .btn-outline-light {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer bottom bar */
    footer .footer-bottom {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
    footer .footer-bottom .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    /* Newsletter in footer */
    footer .input-group {
        max-width: 100%;
    }
    footer .input-group .form-control {
        min-height: 42px;
        font-size: 0.85rem;
    }
    footer .input-group .btn {
        min-height: 42px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   10. PAGE HEADERS — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .gbc-page-head {
        padding: 2.5rem 0 !important;
    }
    .gbc-page-head h1 {
        font-size: 1.75rem;
    }
    .gbc-page-head .lead {
        font-size: 0.92rem;
        max-width: 520px;
    }
    .gbc-page-head .display-5,
    .gbc-page-head .display-6 {
        font-size: 1.65rem;
    }
    .gbc-page-head::after {
        width: 280px;
        height: 280px;
        top: -80px;
        right: -60px;
    }
    .gbc-page-head::before {
        width: 200px;
        height: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   11. DEALS LISTING PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Filter sidebar collapses to horizontal on tablet */
    .deals-filter-sidebar {
        margin-bottom: 1.25rem;
    }
    .deals-filter-sidebar .card {
        border-radius: 1rem;
    }
    .deals-filter-sidebar .card-body {
        padding: 1rem;
    }

    /* Deals grid — 2-column */
    .deals-grid .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .deals-grid .card-img-top {
        height: 190px;
        object-fit: cover;
    }
    .deals-grid .card-body {
        padding: 1rem;
    }
    .deals-grid .card-title {
        font-size: 0.95rem;
    }
    .deals-grid .card-text {
        font-size: 0.82rem;
    }

    /* Sort bar */
    .deals-sort-bar {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        font-size: 0.85rem;
    }

    /* Active filters */
    .deals-active-filters .badge {
        font-size: 0.72rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   12. DEAL DETAIL PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .deal-detail-section {
        padding: 2rem 0;
    }

    /* Gallery — wider image on tablet */
    .deal-main-image {
        height: 380px;
        border-radius: 1rem;
        object-fit: contain;
    }
    .gallery-thumb-btn {
        flex-basis: 80px;
        height: 65px;
        border-radius: 0.5rem;
    }

    /* Info panel */
    .left-info-panel {
        margin-top: 1rem;
    }

    /* Pricing tiers */
    .tier-card {
        border-radius: 0.85rem;
        padding: 0.9rem;
    }
    .tier-price {
        font-size: 1.8rem;
    }
    .tier-card .badge {
        font-size: 0.68rem;
    }

    /* Countdown */
    .deal-countdown-main {
        gap: 0.7rem;
    }
    .deal-countdown-main .countdown-unit {
        min-width: 56px;
    }

    /* Timeline grid */
    .timeline-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* Delivery options */
    .delivery-item {
        padding: 0.75rem 0.9rem;
        border-radius: 0.75rem;
    }

    /* Quantity selector */
    .deal-quantity-panel {
        padding: 1rem;
        border-radius: 0.85rem;
    }

    /* Join button */
    .deal-join-btn {
        min-height: 48px;
        font-size: 0.95rem;
        border-radius: 0.75rem;
    }

    /* Participants list */
    .participant-item {
        padding: 0.65rem;
        border-radius: 0.6rem;
    }

    /* Reviews section */
    .reviews-summary-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 1rem;
    }
    .review-item-card {
        padding: 1rem 1.15rem;
        border-radius: 0.85rem;
    }
    .review-name {
        font-size: 0.9rem;
    }
    .review-comment {
        font-size: 0.88rem;
    }

    /* Related deals */
    .related-deals .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   13. SEARCH PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Search KPIs — 2-column grid */
    .gbc-search-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }
    .gbc-search-kpi-card {
        padding: 1rem;
        border-radius: 0.85rem;
    }

    /* Filter bar */
    .search-filter-bar {
        padding: 0.85rem 1rem;
        border-radius: 14px;
    }
    .search-filter-row {
        flex-wrap: wrap;
        gap: 0.55rem;
    }
    .search-filter-chips {
        flex: 1 1 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .search-filter-chips::-webkit-scrollbar {
        display: none;
    }
    .search-chip {
        font-size: 0.76rem;
        padding: 0.32rem 0.75rem;
    }
    .search-filter-controls {
        width: 100%;
        justify-content: flex-start;
        gap: 0.45rem;
    }
    .search-sort-select {
        flex: 1;
        min-width: 140px;
    }

    /* Search cards */
    .gbc-search-card {
        border-radius: 1rem;
    }
    .gbc-search-card img {
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
    .gbc-search-card .card-body {
        padding: 1rem;
    }

    /* Price range inputs */
    .search-price-inputs .form-control {
        width: 90px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   14. AUTH PAGES (Login, Register, Forgot Password) — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .gbc-auth-shell {
        padding: 2rem 0;
        min-height: 60vh;
    }

    /* Auth card — centered with max-width */
    .gbc-login-card,
    .gbc-glass-card {
        border-radius: 1.25rem;
        padding: 2.25rem 2rem;
        max-width: 480px;
        margin-inline: auto;
    }

    /* Form groups */
    .gbc-input-group {
        border-radius: 0.75rem;
    }
    .gbc-input-group .input-group-text {
        padding: 0.6rem 1rem;
        border-radius: 0.75rem 0 0 0.75rem;
    }
    .gbc-input-group .form-control {
        border-radius: 0 0.75rem 0.75rem 0;
        min-height: 46px;
    }

    /* Auth buttons */
    .gbc-auth-btn,
    .gbc-login-card .btn-primary,
    .gbc-glass-card .btn-primary {
        min-height: 48px;
        font-size: 0.92rem;
        border-radius: 0.75rem;
    }

    /* Quick register modal */
    #authModal .modal-dialog {
        max-width: 480px;
    }
    #authModal .quick-register-header {
        padding: 1.1rem 1.25rem;
    }
    #authModal .quick-register-header h5 {
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   15. ABOUT PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .about-page .about-header {
        padding: 3.5rem 0;
    }
    .about-page .about-header .display-4 {
        font-size: 2.2rem;
    }
    .about-page .about-header .lead {
        font-size: 0.95rem;
        max-width: 520px;
        margin-inline: auto;
    }
    .about-page .about-header::before {
        width: 280px;
        height: 280px;
    }
    .about-page .about-header::after {
        width: 200px;
        height: 200px;
    }

    /* Feature cards */
    .about-page .feature-card {
        padding: 1.4rem 1.15rem;
        border-radius: 1rem;
    }
    .about-page .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        border-radius: 14px;
    }
    .about-page .feature-card h4 {
        font-size: 1.05rem;
    }
    .about-page .feature-card p {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    /* Image placeholder */
    .about-page .about-img-placeholder {
        min-height: 300px;
        border-radius: 1rem;
    }

    /* Stats section */
    .about-page .stat-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    .about-page .stat-value {
        font-size: 2rem;
    }
    .about-page .stat-label {
        font-size: 0.82rem;
    }

    /* Team section */
    .about-page .team-card {
        border-radius: 1rem;
    }
    .about-page .team-card img {
        height: 200px;
        object-fit: cover;
    }
}

/* ═══════════════════════════════════════════════════════════════
   16. CONTACT PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .gbc-contact-header {
        padding: 3rem 0;
    }
    .gbc-contact-header .display-6 {
        font-size: 1.55rem;
    }
    .gbc-contact-header .lead {
        font-size: 0.92rem;
    }
    .gbc-contact-header::before {
        width: 280px;
        height: 280px;
    }
    .gbc-contact-header::after {
        width: 200px;
        height: 200px;
    }

    /* Contact info cards */
    .gbc-info-item {
        padding: 1rem;
        border-radius: 0.85rem;
    }
    .gbc-info-item i {
        font-size: 1.2rem;
    }
    .gbc-info-item h6 {
        font-size: 0.88rem;
    }
    .gbc-info-item p {
        font-size: 0.82rem;
    }

    /* Contact form */
    .gbc-card {
        border-radius: 1rem;
        padding: 1.5rem;
    }
    .gbc-input-group {
        border-radius: 0.75rem;
    }
    .gbc-input-group .input-group-text {
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0.75rem 0 0 0.75rem;
    }
    .gbc-input-group .form-control {
        border-radius: 0 0.75rem 0.75rem 0;
    }
    textarea.form-control {
        border-radius: 0.85rem !important;
    }

    /* Map */
    .gbc-map-placeholder {
        height: 200px;
        border-radius: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   17. TRACK ORDER PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .gbc-track-hero {
        padding: 3.5rem 0 3rem;
    }
    .gbc-track-title {
        font-size: 1.75rem;
    }
    .gbc-track-form {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    /* Timeline — 2-column grid on tablet */
    .gbc-pub-timeline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .gbc-pub-step {
        position: relative;
    }
    .gbc-pub-step-connector {
        display: none;
    }
    .gbc-pub-step-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .gbc-pub-step-label {
        font-size: 0.85rem;
    }

    /* Order details grid */
    .gbc-track-order-row-inner {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.85rem;
    }

    /* Milestones */
    .gbc-milestone-item {
        border-radius: 0.75rem;
        padding: 0.75rem 0.85rem;
    }
    .gbc-milestone-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    /* Track CTA */
    .gbc-track-cta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .gbc-track-cta-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   18. FAQ PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .accordion {
        border-radius: 1rem;
        overflow: hidden;
    }
    .accordion-button {
        font-size: 0.92rem;
        padding: 0.9rem 1.15rem;
    }
    .accordion-body {
        font-size: 0.88rem;
        padding: 0.9rem 1.15rem;
        line-height: 1.65;
    }
    .accordion-item {
        border-radius: 0;
    }
    .accordion-item:first-child {
        border-radius: 1rem 1rem 0 0;
    }
    .accordion-item:last-child {
        border-radius: 0 0 1rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   19. LEGAL PAGES (Terms, Privacy) — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .gbc-legal-content {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }
    .gbc-legal-content p,
    .gbc-legal-content li {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .gbc-legal-content h2 {
        font-size: 1.35rem;
        margin-top: 1.75rem;
    }
    .gbc-legal-content h3 {
        font-size: 1.15rem;
        margin-top: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   20. DASHBOARD — TABLET LAYOUT
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Dashboard shell */
    .dashboard-shell {
        min-height: auto;
    }

    /* Sidebar — Offcanvas on tablet */
    .dashboard-sidebar-card {
        border-radius: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Mobile toolbar for dashboard */
    .dashboard-mobile-toolbar {
        padding: 0.75rem 1rem;
        border-radius: 0.85rem;
    }

    /* Dashboard title */
    .dashboard-page-title {
        font-size: 1.3rem;
    }

    /* Dashboard page header */
    .dashboard-page-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Stats cards — 2-column grid */
    .dashboard-content .row.g-3 > [class*="col-md-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Dashboard cards */
    .dashboard-content .card {
        border-radius: 0.85rem;
    }
    .dashboard-content .card-header {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }
    .dashboard-content .card-body {
        padding: 1rem;
    }

    /* Dashboard tables */
    .dashboard-content .table {
        font-size: 0.85rem;
    }
    .dashboard-content .table th {
        font-size: 0.73rem;
        white-space: nowrap;
        padding: 0.55rem 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .dashboard-content .table td {
        padding: 0.6rem 0.65rem;
        vertical-align: middle;
    }

    /* Status badges in tables */
    .dashboard-content .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.55em;
    }

    /* Dashboard nav links */
    .dashboard-sidebar-card .nav-link {
        font-size: 0.88rem;
        padding: 0.6rem 1rem;
        border-radius: 0.5rem;
    }
    .dashboard-sidebar-card .nav-link i {
        width: 20px;
        font-size: 0.92rem;
    }

    /* Dashboard avatar */
    .dashboard-sidebar-card .rounded-circle {
        width: 60px;
        height: 60px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   21. DASHBOARD PAGES — Orders, Profile, Addresses
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Order detail */
    .order-detail-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .order-detail-card {
        border-radius: 0.85rem;
    }
    .order-detail-timeline {
        padding: 1rem;
    }
    .order-items-table th,
    .order-items-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Profile page */
    .profile-avatar-section {
        text-align: center;
        padding: 1.5rem;
    }
    .profile-avatar-upload {
        width: 100px;
        height: 100px;
    }

    /* Addresses */
    .address-card {
        border-radius: 0.85rem;
        padding: 1.15rem;
    }

    /* Notifications */
    .notification-item {
        padding: 0.85rem 1rem;
        border-radius: 0.6rem;
    }
    .notification-item .small {
        font-size: 0.78rem;
    }

    /* Deal requests */
    .deal-request-card {
        border-radius: 0.85rem;
        padding: 1rem;
    }

    /* Order tracking timeline */
    .gbc-order-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    /* Timeline steps */
    .timeline-step {
        padding: 0.65rem;
        border-radius: 0.6rem;
    }
    .timeline-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   22. CATEGORIES PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Category listing — 2-column grid */
    .categories-grid .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Category page — filter + deals */
    .category-filter-bar {
        padding: 0.85rem 1rem;
        border-radius: 0.85rem;
    }
    .category-deals-grid .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   23. HOW IT WORKS PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .how-it-works-page .how-step-card {
        padding: 1.5rem 1.15rem;
        border-radius: 1rem;
    }
    .how-it-works-page .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
    .how-it-works-page h3 {
        font-size: 1.1rem;
    }
    .how-it-works-page p {
        font-size: 0.88rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   24. SITEMAP PAGE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    .sitemap-section .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .sitemap-section .card {
        border-radius: 0.85rem;
        padding: 1rem;
    }
    .sitemap-section .card h5 {
        font-size: 0.95rem;
    }
    .sitemap-section .list-unstyled li {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   25. GLOBAL POLISH — INTERACTIONS & MICRO-DETAILS
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Smooth selection for touch */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Cards hover — subtle lift on tablet */
    .card:not(.dashboard-sidebar-card):not(.gbc-login-card) {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Image aspect ratios for consistent grids */
    .card-img-top {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    /* Scrollbar styling for horizontally scrollable areas */
    .search-filter-chips::-webkit-scrollbar,
    .admin-order-tabs::-webkit-scrollbar {
        display: none;
    }

    /* List group items — touch-friendly */
    .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    /* Toast notifications */
    .toast {
        border-radius: 0.85rem;
        font-size: 0.88rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   26. LANDSCAPE TABLET (Wider tablets & iPad landscape)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {

    .hero-carousel .carousel-item {
        min-height: 420px;
    }
    .hero-carousel .slide-content {
        padding: 1.75rem 0;
    }

    /* Side-by-side layout for hero in landscape */
    .hero-carousel .hero-copy-col {
        text-align: left !important;
    }
    .hero-carousel .deal-card {
        margin-top: 0;
    }

    /* Wider container for landscape */
    .container {
        max-width: 740px;
    }

    /* Footer — 4-columns fit in landscape */
    footer .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   27. PORTRAIT TABLET (Standard portrait iPad / tablets)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait) {

    .hero-carousel .carousel-item {
        min-height: 520px;
    }

    /* Stack hero content vertically in portrait */
    .hero-carousel .row {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   28. HIGH-DPI / RETINA TABLETS
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) and (-webkit-min-device-pixel-ratio: 2),
       (min-width: 768px) and (max-width: 991.98px) and (min-resolution: 192dpi) {

    /* Sharper borders on retina */
    .card {
        border-width: 0.5px;
    }
    .btn {
        border-width: 1px;
    }

    /* Finer separator lines */
    .border,
    .border-top,
    .border-bottom {
        border-width: 0.5px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   29. SMOOTH TRANSITIONS FOR TABLET BREAKPOINT SWITCH
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 700px) and (max-width: 1050px) {

    /* Prevent layout jump when crossing tablet ↔ desktop */
    .container,
    .card,
    .btn,
    .form-control,
    .badge,
    footer,
    .gbc-page-head,
    .hero-carousel .carousel-item {
        transition: padding 0.25s ease,
                    margin 0.25s ease,
                    font-size 0.25s ease,
                    border-radius 0.2s ease;
    }
}
