/**
 * GDMMO MODERN PREMIUM UI - VERSION 2.0
 * Design System for Modern Marketplace & Fintech
 */

:root {
    /* Color Palette - Premium Tech */
    --mmo-primary: #2563eb;
    --mmo-primary-dark: #1e40af;
    --mmo-primary-light: #eff6ff;
    --mmo-secondary: #0f172a;
    --mmo-accent: #10b981;
    --mmo-warning: #f59e0b;
    --mmo-danger: #ef4444;
    --mmo-info: #06b6d4;
    
    /* Neutral Colors */
    --mmo-bg: #f8fafc;
    --mmo-card-bg: #ffffff;
    --mmo-text-main: #1e293b;
    --mmo-text-muted: #64748b;
    --mmo-border: #e2e8f0;
    --mmo-border-light: #f1f5f9;
    
    /* Gradients */
    --mmo-grad-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --mmo-grad-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --mmo-grad-surface: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
    
    /* Shadows - Multi-layered for depth */
    --mmo-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mmo-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mmo-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mmo-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mmo-shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    
    /* Spacing & Radius */
    --mmo-radius-sm: 8px;
    --mmo-radius: 12px;
    --mmo-radius-lg: 20px;
    --mmo-radius-xl: 28px;
}

/* Global Reset & Typography */
body {
    background-color: var(--mmo-bg);
    color: var(--mmo-text-main);
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.fw-800 { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }

/* Premium Components */

/* 1. Modern Card */
.mmo-card {
    background: var(--mmo-card-bg);
    border: 1px solid var(--mmo-border);
    border-radius: var(--mmo-radius);
    box-shadow: var(--mmo-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mmo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mmo-shadow-premium);
    border-color: rgba(37, 99, 235, 0.2);
}

/* 2. Premium Buttons */
.btn-mmo-primary {
    background: var(--mmo-grad-primary);
    color: white;
    border: none;
    border-radius: var(--mmo-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.2s;
}

.btn-mmo-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: white;
}

/* 3. Glassmorphism Elements */
.mmo-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 4. Product Card V2 */
.product-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: var(--mmo-radius-lg);
    border: 1px solid var(--mmo-border-light);
    padding: 1rem;
    transition: all 0.4s ease;
}

.product-card-v2:hover {
    border-color: var(--mmo-primary);
    box-shadow: var(--mmo-shadow-premium);
}

.product-card-v2 .badge-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.product-card-v2 .product-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--mmo-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f1f5f9;
}

.product-card-v2 .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-v2:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-card-v2 .product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mmo-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-card-v2 .product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--mmo-text-muted);
}

.product-card-v2 .product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--mmo-border-light);
}

.product-card-v2 .price-tag {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mmo-danger);
}

/* 5. Trust Badges & Indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: #ecfdf5;
    color: #059669;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.seller-verified {
    color: var(--mmo-primary);
    font-size: 0.8rem;
}

/* 6. Hero Section V2 */
.hero-v2 {
    position: relative;
    padding: 6rem 0;
    background: var(--mmo-grad-dark);
    border-radius: 0 0 var(--mmo-radius-xl) var(--mmo-radius-xl);
    color: white;
    overflow: hidden;
}

.hero-v2::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-v2 .hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff 30%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-v2 .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-v2 .search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: var(--mmo-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
    max-width: 700px;
}

.hero-v2 .search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
}

.hero-v2 .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-v2 .search-input:focus {
    outline: none;
}

/* 7. Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--mmo-radius);
    box-shadow: var(--mmo-shadow-lg);
    text-align: center;
    border: 1px solid var(--mmo-border-light);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mmo-primary);
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--mmo-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.telegram-link-notice-wrap {
    position: relative;
    z-index: 20;
    margin-top: 18px;
    margin-bottom: 16px;
}

.telegram-link-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: #fff4bf;
    border: 1px solid #f4d35e;
    color: #1f2937;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.telegram-link-notice__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.telegram-link-notice__body {
    min-width: 0;
    flex: 1 1 auto;
}

.telegram-link-notice__title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 3px;
}

.telegram-link-notice__text {
    font-size: 14px;
    line-height: 1.45;
    color: #1f2937;
}

.telegram-link-notice__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.telegram-link-notice__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.22);
}

.telegram-link-notice__cta:hover {
    color: #fff;
    transform: translateY(-1px);
}

.telegram-link-notice__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stats-grid.has-telegram-notice {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .telegram-link-notice-wrap {
        margin-top: 10px;
        margin-bottom: 12px;
    }
    .telegram-link-notice {
        display: block;
        padding: 14px;
        border-radius: 18px;
    }
    .telegram-link-notice__icon {
        margin-bottom: 10px;
    }
    .telegram-link-notice__title {
        margin-bottom: 6px;
    }
    .telegram-link-notice__actions {
        margin-top: 12px;
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .page-home .hero-v2 {
        margin-bottom: 0;
    }
}

/* 8. Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-header .badge-mmo {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--mmo-primary-light);
    color: var(--mmo-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--mmo-secondary);
    margin-bottom: 1rem;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-v2 { padding: 4rem 0; text-align: center; }
    .hero-v2 .search-container { flex-direction: column; padding: 1rem; }
    .hero-v2 .hero-subtitle { margin-left: auto; margin-right: auto; }
    .section-header h2 { font-size: 1.75rem; }
}


/* ===== GDMMO FINAL SAFE UI PATCH: user/admin/community/product ===== */
body.gdmmo-app .app-shell {
    min-height: calc(100vh - 170px);
    padding-top: 24px;
}

body.gdmmo-page-user,
body.gdmmo-page-admin,
body.gdmmo-page-community,
body.gdmmo-page-product {
    background:
        radial-gradient(circle at top, rgba(219,234,254,.85) 0%, rgba(248,250,252,1) 34%, rgba(248,250,252,1) 100%);
}

body.gdmmo-page-user .card,
body.gdmmo-page-admin .card,
body.gdmmo-page-community .community-card,
body.gdmmo-page-community .community-hero,
body.gdmmo-page-community .community-pinned-strip,
body.gdmmo-page-product .related-product-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.gdmmo-page-user .card-header,
body.gdmmo-page-admin .card-header {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    border-bottom: 1px solid rgba(148,163,184,.16) !important;
}

body.gdmmo-page-user .table thead th,
body.gdmmo-page-admin .table thead th {
    color: #64748b;
    font-size: .76rem;
    letter-spacing: .04em;
}

body.gdmmo-page-user .table tbody tr:hover,
body.gdmmo-page-admin .table tbody tr:hover {
    background: rgba(239, 246, 255, 0.65);
}

.user-sidebar-card,
.admin-sidebar-card {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 36px rgba(15,23,42,.08);
    position: sticky;
    top: 92px;
}

.user-sidebar-card .list-group-item,
.admin-sidebar-card .list-group-item {
    border: 0;
    border-bottom: 1px solid rgba(226,232,240,.9);
    padding: .92rem 1rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.user-sidebar-card .list-group-item:last-child,
.admin-sidebar-card .list-group-item:last-child {
    border-bottom: 0;
}

.user-sidebar-card .list-group-item:hover,
.admin-sidebar-card .list-group-item:hover {
    background: linear-gradient(90deg, rgba(239,246,255,.9), rgba(248,250,252,.95));
    color: #0f172a;
}

.user-sidebar-card .list-group-item.active,
.admin-sidebar-card .list-group-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.user-sidebar-card .list-group-item.active i,
.admin-sidebar-card .list-group-item.active i {
    color: rgba(255,255,255,.92);
}

.user-sidebar-section {
    background: linear-gradient(180deg, #eff6ff, #f8fbff) !important;
    color: #1e40af !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
}

.dashboard-profile-card,
.dashboard-recent-card,
.admin-task-card,
.admin-log-card {
    border-radius: 28px;
    overflow: hidden;
}

.dashboard-stat-card,
.admin-stat-card {
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 36px rgba(37,99,235,.18) !important;
}

.dashboard-stat-card::before,
.admin-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,0));
    pointer-events: none;
}

.dashboard-stat-card .card-body,
.admin-stat-card .card-body {
    padding: 1.1rem 1.2rem;
}

.dashboard-stat-card.stat-wallet,
.admin-stat-card.stat-users {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.dashboard-stat-card.stat-orders,
.admin-stat-card.stat-products {
    background: linear-gradient(135deg, #059669, #0f9f6e);
}
.dashboard-stat-card.stat-role,
.admin-stat-card.stat-orders {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.admin-stat-card.stat-revenue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dashboard-stat-label {
    opacity: .82;
    letter-spacing: .05em;
    margin-bottom: .2rem;
}
.dashboard-stat-value {
    letter-spacing: -.02em;
}

.dashboard-info-box {
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 22px;
    padding: 1rem 1rem;
    height: 100%;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.admin-mini-stat-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

body.gdmmo-page-admin .list-group-item .btn,
body.gdmmo-page-user .btn-outline-primary,
body.gdmmo-page-user .btn-outline-secondary,
body.gdmmo-page-admin .btn-outline-primary,
body.gdmmo-page-admin .btn-outline-secondary {
    border-radius: 999px;
}

.related-products-section {
    position: relative;
}

.related-products-grid .related-product-card {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.related-products-grid .related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 46px rgba(15,23,42,.14) !important;
    border-color: rgba(37,99,235,.24);
}

.related-products-grid .related-product-image {
    transition: transform .45s ease;
}

.related-products-grid .related-product-card:hover .related-product-image {
    transform: scale(1.06);
}

.related-product-body {
    position: relative;
}

body.gdmmo-page-community .community-shell {
    padding-bottom: 1rem;
}

body.gdmmo-page-community .community-hero {
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 32%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    border-radius: 30px;
}

body.gdmmo-page-community .community-card,
body.gdmmo-page-community .community-pinned-strip {
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

body.gdmmo-page-community .community-post-card {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

body.gdmmo-page-community .community-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(15,23,42,.11);
    border-color: rgba(37,99,235,.2);
}

body.gdmmo-page-community .community-compose-toggle {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #2563eb);
    color: #fff;
    border-radius: 24px;
    border: 0;
    width: 100%;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 18px 36px rgba(37,99,235,.18);
}

body.gdmmo-page-community .community-compose-toggle small {
    color: rgba(255,255,255,.78);
}

body.gdmmo-page-community .community-compose-toggle-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
}

body.gdmmo-page-community .community-notification-summary-card {
    border-radius: 24px;
    padding: 1.2rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 14px 28px rgba(15,23,42,.06);
}

body.gdmmo-page-community .community-pinned-item,
body.gdmmo-page-community .community-featured-item {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.gdmmo-page-community .community-pinned-item:hover,
body.gdmmo-page-community .community-featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15,23,42,.08);
}

@media (max-width: 991.98px) {
    .user-sidebar-card,
    .admin-sidebar-card {
        position: static;
        top: auto;
    }
}

@media (min-width: 992px) {
    .related-products-grid .col-xl-2:nth-child(odd) .related-product-card,
    .related-products-grid .col-md-3:nth-child(odd) .related-product-card {
        margin-top: 10px;
    }
}


/* ===== community comment modal + compact refinements ===== */
body.gdmmo-page-community .community-comment-hint {
    font-size: .92rem;
    color: #64748b;
    border-top: 1px dashed rgba(148,163,184,.26);
    padding-top: .9rem;
}
.community-comment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    z-index: 1040;
}
.community-comment-modal {
    position: fixed;
    inset: 0;
    z-index: 1045;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.community-comment-modal-dialog {
    width: min(860px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .24);
    border: 1px solid rgba(148,163,184,.18);
}
.community-comment-modal-head,
.community-comment-modal-foot {
    padding: 14px 16px;
    background: #fff;
}
.community-comment-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(226,232,240,.9);
}
.community-comment-modal-foot {
    border-top: 1px solid rgba(226,232,240,.9);
}
.community-comment-modal-body {
    padding: 14px 16px;
    overflow: auto;
    background: #f8fafc;
}
.community-comment-item + .community-comment-item {
    margin-top: 12px;
}
.community-comment-card {
    background: #fff;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 8px 22px rgba(15,23,42,.04);
}
.community-comment-children {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid rgba(59,130,246,.15);
}
.community-comment-content {
    color: #1e293b;
    line-height: 1.55;
    word-break: break-word;
}
.community-comment-mention {
    color: #2563eb;
    font-weight: 700;
}
.community-reply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(59,130,246,.18);
    border-radius: 14px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: .92rem;
}
body.community-comment-open,
body.community-notification-open {
    overflow: hidden;
}
body.gdmmo-page-user .card,
body.gdmmo-page-admin .card {
    border-radius: 22px;
}
body.gdmmo-page-user .card-header,
body.gdmmo-page-admin .card-header {
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
}
.user-sidebar-card .list-group-item,
.admin-sidebar-card .list-group-item {
    padding: .82rem .95rem;
    font-size: .96rem;
}
body.gdmmo-page-user .table td,
body.gdmmo-page-admin .table td {
    padding-top: .82rem;
    padding-bottom: .82rem;
}
@media (max-width: 767px) {
    .community-comment-modal {
        padding: 10px;
        align-items: flex-end;
    }
    .community-comment-modal-dialog {
        max-height: calc(100vh - 12px);
        border-radius: 20px 20px 0 0;
    }
    .community-comment-children {
        margin-left: 10px;
        padding-left: 10px;
    }
    .user-sidebar-card,
    .admin-sidebar-card {
        border-radius: 20px;
    }
}


/* Home Deal Hot */
.home-mobile-shortcuts-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-mobile-shortcuts-3 .home-shortcut-card {
    min-width: 0;
}
.home-dealhot-card {
    overflow: hidden;
}
.home-dealhot-list {
    display: grid;
    gap: 0.55rem;
}
.home-dealhot-card .home-dealhot-list {
    max-height: 430px;
    overflow: auto;
    padding-right: 0.2rem;
}
.home-dealhot-card .home-dealhot-list::-webkit-scrollbar,
.home-dealhot-mobile-panel .home-dealhot-list::-webkit-scrollbar {
    width: 6px;
}
.home-dealhot-card .home-dealhot-list::-webkit-scrollbar-thumb,
.home-dealhot-mobile-panel .home-dealhot-list::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.45);
    border-radius: 999px;
}
.home-dealhot-item {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid rgba(226,232,240,.96);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 6px 16px rgba(15,23,42,.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.home-dealhot-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(59,130,246,.04), rgba(239,68,68,.03));
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
.home-dealhot-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,.22);
    box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.home-dealhot-item:hover::after {
    opacity: 1;
}
.home-dealhot-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2ff;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.home-dealhot-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.home-dealhot-content {
    min-width: 0;
    position: relative;
    z-index: 1;
}
.home-dealhot-name {
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.18rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-dealhot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 0.28rem;
}
.home-dealhot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}
.home-dealhot-price {
    color: #ef4444;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.home-dealhot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 20px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(254,226,226,.95), rgba(255,237,213,.95));
    color: #dc2626;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px rgba(248,113,113,.16);
}
.home-dealhot-list-mobile {
    gap: 0.55rem;
    max-height: 360px;
    overflow: auto;
    padding-right: 0.12rem;
}
.home-dealhot-item-mobile {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 0.52rem;
    border-radius: 14px;
}
.home-dealhot-thumb-mobile {
    width: 50px;
    height: 50px;
}
.home-dealhot-mobile-panel {
    overflow: hidden;
}
@media (max-width: 991.98px) {
    .home-mobile-shortcuts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .home-shortcut-card {
        min-width: 0;
        border-radius: 22px;
        box-shadow: 0 8px 24px rgba(15,23,42,.08);
    }
    .shortcut-label {
        font-size: 0.96rem;
    }
}
@media (max-width: 575.98px) {
    .home-mobile-shortcuts {
        gap: 0.55rem;
    }
    .home-shortcut-card {
        padding: 0.9rem 0.85rem;
        border-radius: 18px;
    }
    .home-shortcut-card .shortcut-icon {
        width: 44px;
        height: 44px;
    }
    .shortcut-label {
        font-size: 0.88rem;
    }
    .deal-hot-mobile-grid {
        gap: 0.7rem;
    }
    .deal-hot-tile {
        padding: 0.62rem;
        border-radius: 16px;
    }
    .deal-hot-tile-title {
        font-size: 0.76rem;
        min-height: 2rem;
    }
    .deal-hot-tile-price {
        font-size: 0.84rem;
    }
}


/* DEAL HOT compact hard override */
.home-dealhot-card .home-dealhot-list,
.home-dealhot-mobile-panel .home-dealhot-list {
    display: flex !important;
    flex-direction: column !important;
    gap: .55rem !important;
}
.home-dealhot-card .home-dealhot-item,
.home-dealhot-mobile-panel .home-dealhot-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    min-height: 68px !important;
    border-radius: 14px !important;
}
.home-dealhot-card .home-dealhot-thumb,
.home-dealhot-mobile-panel .home-dealhot-thumb {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 12px !important;
}
.home-dealhot-card .home-dealhot-thumb img,
.home-dealhot-mobile-panel .home-dealhot-thumb img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
}
.home-dealhot-card .home-dealhot-content,
.home-dealhot-mobile-panel .home-dealhot-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.home-dealhot-card .home-dealhot-name,
.home-dealhot-mobile-panel .home-dealhot-name {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin-bottom: 3px !important;
}
.home-dealhot-card .home-dealhot-meta,
.home-dealhot-mobile-panel .home-dealhot-meta {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}
.home-dealhot-card .home-dealhot-price,
.home-dealhot-mobile-panel .home-dealhot-price {
    font-size: 14px !important;
}
.home-dealhot-card .home-dealhot-badge,
.home-dealhot-mobile-panel .home-dealhot-badge {
    height: 18px !important;
    min-width: 34px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
}
.home-dealhot-card {
    overflow: hidden;
}
.home-dealhot-card .home-dealhot-list {
    max-height: 360px !important;
    overflow: auto !important;
}
.home-dealhot-mobile-panel .home-dealhot-list {
    max-height: 300px !important;
    overflow: auto !important;
}
@media (max-width: 575.98px) {
    .home-dealhot-mobile-panel .home-dealhot-item {
        padding: 9px !important;
        min-height: 64px !important;
    }
    .home-dealhot-mobile-panel .home-dealhot-thumb,
    .home-dealhot-mobile-panel .home-dealhot-thumb img {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
    .home-dealhot-mobile-panel .home-dealhot-name {
        font-size: 12.5px !important;
    }
    .home-dealhot-mobile-panel .home-dealhot-meta {
        font-size: 10.5px !important;
    }
}


/* Mobile navigation + drawers stable fix */
@media (max-width: 991.98px) {
  .navbar-collapse { display:none !important; }
  .mobile-nav-toggle { border-radius: 16px; width: 48px; height: 48px; justify-content:center; align-items:center; background:#fff; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
  .mobile-nav-toggle { position:relative; }
  .mobile-nav-toggle-badge {
      position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; line-height:20px;
      padding:0 6px; display:inline-flex; align-items:center; justify-content:center; font-size:11px;
      box-shadow: 0 8px 18px rgba(239,68,68,.28);
  }
  .mobile-nav-backdrop, .mobile-dashboard-backdrop {
      position: fixed; inset: 0; background: rgba(15,23,42,.28); z-index: 1040;
  }
  .mobile-nav-drawer, .mobile-dashboard-drawer { position: fixed; inset: 0; z-index: 1045; pointer-events:none; }
  .mobile-nav-drawer.is-open, .mobile-dashboard-drawer.is-open { pointer-events:auto; }
  .mobile-nav-sheet {
      width: min(92vw, 420px); max-height: calc(100dvh - 24px); overflow: auto; -webkit-overflow-scrolling: touch;
      margin: 12px auto 0; background:#fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(15,23,42,.20); padding: 18px;
  }
  .mobile-nav-head, .mobile-dashboard-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .mobile-nav-close, .mobile-dashboard-close {
      width: 46px; height: 46px; border:0; border-radius: 16px; background:#f8fafc; color:#334155;
  }
  .mobile-nav-body { display:grid; gap:12px; padding-top: 10px; }
  .mobile-nav-link { display:block; padding: 14px 16px; border-radius: 18px; background:#f8fafc; color:#0f172a; text-decoration:none; font-weight:600; }
  .mobile-nav-link.compact { background:#fff; border:1px solid #e2e8f0; padding:12px 14px; }
  .mobile-nav-account-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:22px; padding:14px; }
  .mobile-nav-account-user { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
  .mobile-nav-account-avatar { width:42px; height:42px; border-radius:999px; background:#dbeafe; color:#2563eb; display:flex; align-items:center; justify-content:center; }
  .mobile-nav-account-links { display:grid; gap:10px; }
  .mobile-nav-guest-actions { display:flex; gap:10px; }

  .mobile-dashboard-toggle { width:100%; border:1px solid #e2e8f0; background:#fff; min-height:54px; border-radius:18px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; font-weight:700; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
  .mobile-dashboard-drawer { display:flex; align-items:flex-start; justify-content:center; padding: 12px; }
  .mobile-dashboard-sheet { width:min(94vw, 440px); max-height: calc(100dvh - 24px); background:#fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(15,23,42,.22); overflow:hidden; display:flex; flex-direction:column; }
  .mobile-dashboard-body { overflow:auto; -webkit-overflow-scrolling:touch; max-height: calc(100dvh - 120px); padding: 10px 0 0; }
  .mobile-dashboard-body .list-group-item { border-left:0; border-right:0; }
  .mobile-dashboard-body .list-group-item:first-child { border-top:0; }
  .user-sidebar-card, .admin-sidebar-card { border-radius: 24px; overflow:hidden; }

  .home-panel-collapse.d-none { display:none !important; }
  .home-panel-collapse { display:block; }
  .home-shortcut-card { transition: box-shadow .18s ease, transform .18s ease; }
  .home-shortcut-card.is-open { box-shadow: 0 14px 28px rgba(37,99,235,.14); transform: translateY(-1px); }
  .home-mobile-panel { border-radius: 22px !important; box-shadow: 0 14px 30px rgba(15,23,42,.08) !important; }
}


/* ===== mobile tap stability ===== */
html {
  -webkit-text-size-adjust: 100%;
}
a,
button,
.btn,
.list-group-item,
.mobile-dashboard-toggle,
.mobile-nav-link,
.home-shortcut-card,
.nav-link,
.dropdown-item,
[role="button"],
summary,
label {
  touch-action: manipulation;
}
