/* ==========================================
   WEB DEVELOPMENT SERVICE - MOCKUP STYLES
   網站開發服務 - 展示範例樣式
   ========================================== */

/* === LAW FIRM THEME (Corporate Website) === */
.law-demo { background: #f9fafb; }

.law-topbar {
    background: #1e293b;
    color: white;
    padding: 8px 20px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
}

.law-nav {
    background: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.law-logo { display: flex; align-items: center; gap: 12px; }
.law-icon { font-size: 28px; }
.firm-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.firm-subtitle { font-size: 10px; color: #64748b; }

.law-menu { display: flex; align-items: center; gap: 24px; }
.law-menu-item { font-size: 12px; color: #475569; font-weight: 500; cursor: pointer; position: relative; }
.law-menu-item.active { color: #c29958; font-weight: 600; }
.law-menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: #c29958;
}

.law-cta-btn {
    background: linear-gradient(135deg, #c29958, #d4a76a);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.law-hero { padding: 48px 36px; background: linear-gradient(135deg, #f8fafc, #fff); }

.law-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1e293b;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(194, 153, 88, 0.15);
}

.badge-pulse {
    width: 9px;
    height: 9px;
    background: #c29958;
    border-radius: 50%;
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(194, 153, 88, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(194, 153, 88, 0); }
}

.law-hero-title { font-size: 32px; color: #0f172a; margin-bottom: 18px; font-weight: 900; line-height: 1.2; }

.law-gradient-text {
    background: linear-gradient(135deg, #c29958, #d4a76a, #c29958);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 3s linear infinite;
}

@keyframes gold-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.law-hero-desc { font-size: 14px; color: #64748b; line-height: 1.7; margin-bottom: 28px; }
.law-buttons { display: flex; gap: 14px; }
.law-btn-primary,
.law-btn-secondary {
    padding: 12px 24px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.law-btn-primary { background: linear-gradient(135deg, #c29958, #d4a76a); color: white; border: none; }
.law-btn-secondary { background: white; color: #1e293b; border: 2px solid #e2e8f0; }

.law-services { padding: 48px 36px; background: white; }
.law-section-label { text-align: center; font-size: 10px; font-weight: 700; color: #c29958; letter-spacing: 0.18em; margin-bottom: 12px; }
.law-section-title { text-align: center; font-size: 26px; color: #0f172a; margin-bottom: 36px; font-weight: 800; }

.law-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.law-service-card {
    background: #f8fafc;
    padding: 28px 22px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.law-service-card:hover { transform: translateY(-6px); border-color: #c29958; }
.law-service-card.highlighted-law {
    background: linear-gradient(135deg, rgba(194, 153, 88, 0.06), rgba(212, 167, 106, 0.04));
    border-color: #c29958;
}

.popular-tag { position: absolute; top: -11px; right: 18px; background: #c29958; color: white; padding: 5px 12px; border-radius: 18px; font-size: 9px; font-weight: 700; }
.law-service-num { position: absolute; top: 18px; right: 18px; font-size: 36px; font-weight: 900; color: rgba(194, 153, 88, 0.1); }
.law-service-icon { font-size: 42px; margin-bottom: 16px; }
.law-service-card h4 { font-size: 16px; color: #0f172a; margin-bottom: 14px; font-weight: 700; }
.law-service-desc { margin-bottom: 16px; }
.desc-item { font-size: 12px; color: #475569; line-height: 1.75; padding: 4px 0; }
.law-service-link { color: #c29958; font-size: 11px; font-weight: 600; }

.law-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px 28px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 14px;
}

.law-stat {
    text-align: center;
    padding: 24px 16px;
    border-radius: 11px;
    background: rgba(194, 153, 88, 0.12);
    cursor: pointer;
}

.stat-value { font-size: 28px; font-weight: 900; color: #c29958; margin-bottom: 6px; white-space: nowrap; }
.stat-label { font-size: 11px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }


/* === E-COMMERCE THEME (Fashion Shop) === */
.shop-demo { background: #fafafa; }

.shop-promo-bar {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
}

.shop-nav { background: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; }
.shop-logo { display: flex; align-items: center; gap: 12px; }
.shop-logo-icon { font-size: 28px; }
.brand-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.brand-tagline { font-size: 9px; color: #64748b; font-style: italic; }

.shop-search-bar {
    flex: 1;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 8px;
}

.shop-search-bar input { flex: 1; border: none; background: transparent; font-size: 12px; outline: none; }

.shop-actions { display: flex; align-items: center; gap: 16px; }
.shop-icon { font-size: 22px; cursor: pointer; }

.shop-cart-btn {
    background: #ec4899;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f97316;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.shop-category-nav { background: white; padding: 14px 24px; display: flex; gap: 28px; border-bottom: 1px solid #e5e7eb; }
.shop-cat { font-size: 12px; color: #64748b; font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.3s; }
.shop-cat.active { color: #ec4899; font-weight: 600; border-bottom-color: #ec4899; }

.shop-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 24px; background: #fafafa; }
.shop-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    cursor: pointer;
}

.shop-product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }

.product-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    z-index: 10;
}

.product-label.hot { background: #ef4444; color: white; }
.product-label.new { background: #10b981; color: white; }

.product-image { position: relative; height: 200px; overflow: hidden; }
.product-img-gradient { width: 100%; height: 100%; }

.quick-view {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.shop-product-card:hover .quick-view { transform: translateX(-50%) translateY(0); }

.product-details { padding: 18px; }
.product-brand { font-size: 8.5px; color: #ec4899; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 6px; }
.product-title { font-size: 13px; color: #1e293b; font-weight: 600; margin-bottom: 8px; }
.product-rating { font-size: 10px; color: #64748b; margin-bottom: 12px; }
.product-rating span { font-size: 9px; }

.product-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price-original { font-size: 11px; color: #94a3b8; text-decoration: line-through; }
.price-sale { font-size: 16px; color: #ec4899; font-weight: 800; }
.price-save { font-size: 9px; background: #fef3c7; color: #f59e0b; padding: 3px 8px; border-radius: 4px; font-weight: 600; }

.product-colors { display: flex; gap: 8px; margin-bottom: 14px; }
.color-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); cursor: pointer; transition: all 0.3s; }
.color-dot:hover { transform: scale(1.15); }

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3); }

.shop-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.shop-feature { text-align: center; padding: 16px; }
.feature-icon-shop { font-size: 28px; margin-bottom: 8px; }
.shop-feature span { display: block; font-size: 10px; color: #64748b; font-weight: 500; }
.feature-desc { font-size: 8px; color: #94a3b8; margin-top: 4px; }

.shop-testimonial {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    padding: 24px;
    border-top: 1px solid #fce7f3;
}

.testimonial-header { text-align: center; margin-bottom: 18px; }
.testimonial-stars { font-size: 16px; margin-bottom: 6px; }
.testimonial-count { font-size: 11px; color: #64748b; font-weight: 600; }

.testimonial-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.testimonial-item {
    display: flex;
    align-items: start;
    gap: 12px;
    background: white;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.t-avatar { font-size: 28px; flex-shrink: 0; }
.t-name { font-size: 11px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.t-comment { font-size: 10px; color: #64748b; line-height: 1.5; }

.shop-footer-bar { background: #f8fafc; padding: 18px 24px; border-top: 1px solid #e5e7eb; }
.payment-methods { display: flex; align-items: center; justify-content: center; gap: 14px; }
.payment-label { font-size: 10px; color: #64748b; font-weight: 500; }
.payment-icons { display: flex; gap: 10px; }
.payment-icon {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    color: #475569;
}

.payment-icon.visa { color: #1a1f71; }
.payment-icon.master { color: #eb001b; }
.payment-icon.fps { color: #6366f1; }
.payment-icon.alipay { color: #1677ff; }


/* === CMS THEME (Food Blog) === */
.cms-demo { 
    background: #f5f5f5; 
    display: flex; 
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
}

.cms-top-bar {
    background: #f97316;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cms-logo { display: flex; align-items: center; gap: 10px; }
.cms-logo-icon { font-size: 24px; }
.cms-logo span { font-size: 13px; font-weight: 700; }

.cms-actions { display: flex; align-items: center; gap: 16px; }

.cms-notif {
    font-size: 18px;
    position: relative;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cms-user { display: flex; align-items: center; gap: 8px; }
.user-avatar { font-size: 22px; }
.user-name { font-size: 11px; font-weight: 600; }

.cms-body { 
    display: flex; 
    flex: 1;
    max-width: 100%;
    overflow: hidden;
}

.cms-sidebar {
    width: 90px;
    background: linear-gradient(180deg, #2d2d2d, #1e1e1e);
    color: white;
    padding: 14px 0;
    flex-shrink: 0;
}

.cms-nav-section { margin-bottom: 24px; }

.cms-nav-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cms-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
}

.cms-menu-item:hover { background: rgba(255, 255, 255, 0.05); color: white; }

.cms-menu-item.active {
    background: rgba(249, 115, 22, 0.2);
    color: white;
    font-weight: 600;
}

.menu-icon { font-size: 14px; }

.menu-count {
    margin-left: auto;
    background: rgba(249, 115, 22, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}

.cms-main-content {
    flex: 1;
    padding: 28px;
    background: white;
    overflow-y: auto;
}

.cms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.cms-header h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 800;
}

.cms-new-post-btn {
    background: #f97316;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cms-new-post-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3); }

.cms-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.cms-stat-card {
    background: linear-gradient(135deg, #fff5f0, #ffffff);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
}

.cms-stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15); }

.cms-stat-card .stat-icon { font-size: 32px; }

.stat-info { flex: 1; }
.stat-number { font-size: 22px; font-weight: 900; color: #1e293b; margin-bottom: 4px; }
.cms-stat-card .stat-label { font-size: 10px; color: #64748b; }

.stat-trend {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.stat-trend.up { background: #dcfce7; color: #16a34a; }

.cms-recent-section { margin-top: 12px; }

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.cms-post-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cms-post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
}

.cms-post-item:hover { background: white; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }

.post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
}

.post-info { flex: 1; }

.post-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.post-meta {
    font-size: 9px;
    color: #64748b;
    display: flex;
    gap: 6px;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.post-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.post-btn.edit { background: #f97316; color: white; border: none; }
.post-btn.view { background: white; color: #f97316; border: 1px solid #f97316; }
.post-btn:hover { transform: translateY(-1px); }


/* === LAPTOP RESPONSIVE (1024px+) === */
@media (min-width: 1024px) {
    /* Law Theme */
    .law-demo { font-size: 9px; }
    .law-demo .law-topbar { font-size: 8px; padding: 6px 16px; }
    .law-demo .law-topbar span { font-size: 8px; white-space: nowrap; }
    .law-demo .law-nav { padding: 10px 16px; }
    .law-demo .law-icon { font-size: 20px; }
    .law-demo .firm-name { font-size: 10px; white-space: nowrap; }
    .law-demo .firm-subtitle { font-size: 7px; white-space: nowrap; }
    .law-demo .law-menu { gap: 12px; }
    .law-demo .law-menu-item { font-size: 8.5px; white-space: nowrap; }
    .law-demo .law-cta-btn { font-size: 8px; padding: 7px 13px; white-space: nowrap; }
    .law-demo .law-hero { padding: 24px 20px; }
    .law-demo .law-badge { font-size: 7.5px; padding: 6px 11px; }
    .law-demo .badge-pulse { width: 7px; height: 7px; }
    .law-demo .law-hero-title { font-size: 18px; }
    .law-demo .law-hero-desc { font-size: 10px; }
    .law-demo .law-btn-primary,
    .law-demo .law-btn-secondary { font-size: 9px; padding: 9px 16px; }
    .law-demo .law-services { padding: 24px 20px; }
    .law-demo .law-section-label { font-size: 7.5px; }
    .law-demo .law-section-title { font-size: 16px; margin-bottom: 20px; }
    .law-demo .law-services-grid { gap: 14px; }
    .law-demo .law-service-card { padding: 18px 15px; }
    .law-demo .law-service-num { font-size: 24px; top: 12px; right: 12px; }
    .law-demo .law-service-icon { font-size: 28px; margin-bottom: 10px; }
    .law-demo .law-service-card h4 { font-size: 12px; margin-bottom: 10px; }
    .law-demo .desc-item { font-size: 9px; padding: 3px 0; }
    .law-demo .law-service-link { font-size: 8.5px; }
    .law-demo .popular-tag { font-size: 7.5px; padding: 4px 10px; }
    .law-demo .law-stats-bar { padding: 20px 16px; gap: 12px; }
    .law-demo .law-stat { padding: 16px 12px; }
    .law-demo .stat-value { font-size: 20px; }
    .law-demo .stat-label { font-size: 8.5px; }
    
    /* Shop Theme */
    .shop-demo { font-size: 9px; }
    .shop-demo .shop-promo-bar { font-size: 8.5px; padding: 8px 18px; }
    .shop-demo .shop-nav { padding: 12px 18px; }
    .shop-demo .shop-logo-icon { font-size: 22px; }
    .shop-demo .brand-name { font-size: 11px; }
    .shop-demo .brand-tagline { font-size: 7.5px; }
    .shop-demo .shop-search-bar { max-width: 300px; padding: 8px 13px; }
    .shop-demo .shop-search-bar input { font-size: 9.5px; }
    .shop-demo .shop-icon { font-size: 18px; }
    .shop-demo .shop-cart-btn { font-size: 9px; padding: 8px 14px; }
    .shop-demo .cart-badge { width: 16px; height: 16px; font-size: 8px; }
    .shop-demo .shop-category-nav { padding: 11px 18px; gap: 20px; }
    .shop-demo .shop-cat { font-size: 9.5px; }
    .shop-demo .shop-products-grid { padding: 22px 18px; gap: 16px; }
    .shop-demo .product-image { height: 160px; }
    .shop-demo .quick-view { font-size: 8.5px; padding: 6px 14px; }
    .shop-demo .product-details { padding: 14px; }
    .shop-demo .product-brand { font-size: 7.5px; }
    .shop-demo .product-title { font-size: 11px; }
    .shop-demo .product-rating { font-size: 8.5px; }
    .shop-demo .product-rating span { font-size: 7.5px; }
    .shop-demo .price-original { font-size: 9px; }
    .shop-demo .price-sale { font-size: 14px; }
    .shop-demo .price-save { font-size: 7.5px; }
    .shop-demo .color-dot { width: 16px; height: 16px; }
    .shop-demo .add-to-cart-btn { font-size: 9px; padding: 9px; }
    .shop-demo .shop-features { padding: 18px; gap: 13px; }
    .shop-demo .feature-icon-shop { font-size: 22px; }
    .shop-demo .shop-feature span { font-size: 8.5px; }
    .shop-demo .feature-desc { font-size: 7px; }
    .shop-demo .shop-testimonial { padding: 18px; }
    .shop-demo .testimonial-stars { font-size: 13px; }
    .shop-demo .testimonial-count { font-size: 8.5px; }
    .shop-demo .testimonial-item { padding: 11px; }
    .shop-demo .t-avatar { font-size: 22px; }
    .shop-demo .t-name { font-size: 9px; }
    .shop-demo .t-comment { font-size: 8px; }
    .shop-demo .shop-footer-bar { padding: 14px 18px; }
    .shop-demo .payment-label { font-size: 8px; }
    .shop-demo .payment-icon { font-size: 7px; padding: 5px 10px; }
    
    /* CMS Theme */
    .cms-demo { font-size: 9px; }
    .cms-demo .cms-top-bar { padding: 10px 16px; }
    .cms-demo .cms-logo-icon { font-size: 20px; }
    .cms-demo .cms-logo span { font-size: 11px; }
    .cms-demo .cms-notif { font-size: 15px; }
    .cms-demo .notif-badge { width: 12px; height: 12px; font-size: 7px; }
    .cms-demo .user-avatar { font-size: 18px; }
    .cms-demo .user-name { font-size: 9px; }
    .cms-demo .cms-nav-label { font-size: 7.5px; padding: 0 13px; }
    .cms-demo .cms-menu-item { padding: 8px 13px; font-size: 9px; }
    .cms-demo .menu-icon { font-size: 12px; }
    .cms-demo .menu-count { font-size: 7.5px; padding: 2px 6px; }
    .cms-demo .cms-main-content { padding: 22px; }
    .cms-demo .cms-header h2 { font-size: 18px; }
    .cms-demo .cms-new-post-btn { font-size: 9px; padding: 8px 16px; }
    .cms-demo .cms-stats-grid { gap: 14px; margin-bottom: 22px; }
    .cms-demo .cms-stat-card { padding: 16px; }
    .cms-demo .cms-stat-card .stat-icon { font-size: 26px; }
    .cms-demo .stat-number { font-size: 18px; }
    .cms-demo .cms-stat-card .stat-label { font-size: 8.5px; }
    .cms-demo .stat-trend { font-size: 9px; padding: 3px 8px; }
    .cms-demo .section-title { font-size: 13px; margin-bottom: 13px; }
    .cms-demo .cms-post-item { padding: 13px; }
    .cms-demo .post-thumb { width: 70px; height: 52px; }
    .cms-demo .post-title { font-size: 10px; margin-bottom: 5px; }
    .cms-demo .post-meta { font-size: 7.5px; }
    .cms-demo .post-btn { padding: 5px 12px; font-size: 8px; }
}

/* Mobile */
@media (max-width: 767px) {
    .law-demo .law-topbar { flex-direction: column; text-align: center; padding: 10px; font-size: 9px; }
    .law-demo .law-nav { flex-direction: column; padding: 12px; }
    .law-demo .law-menu { display: none; }
    .law-demo .law-cta-btn { width: 100%; }
    .law-demo .law-services-grid { grid-template-columns: 1fr; }
    .law-demo .law-stats-bar { grid-template-columns: 1fr; }
    
    .shop-demo .shop-search-bar { display: none; }
    .shop-demo .shop-products-grid { grid-template-columns: 1fr; }
    .shop-demo .shop-features { grid-template-columns: repeat(2, 1fr); }
    .shop-demo .testimonial-content { grid-template-columns: 1fr; }
    
    .cms-demo .cms-menu-item span:not(.menu-icon) { display: none; }
    .cms-demo .cms-stats-grid { grid-template-columns: 1fr; }
}


/* === ENHANCED CMS DETAILS === */

.post-status {
    display: inline-block;
    font-size: 9px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.post-status.published {
    background: #dcfce7;
    color: #16a34a;
}

.cms-quick-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.qa-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.qa-btn {
    background: linear-gradient(135deg, #fff5eb, #ffffff);
    border: 2px solid #fed7aa;
    padding: 16px 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.qa-btn:hover {
    background: #fff5eb;
    border-color: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.15);
}

.qa-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.qa-btn span:last-child {
    font-size: 10px;
    font-weight: 600;
    color: #1e293b;
}

/* === LAPTOP SIZING FOR CMS === */
@media (min-width: 1024px) {
    .cms-demo .post-status { font-size: 7.5px; padding: 3px 8px; }
    .cms-demo .cms-quick-actions { margin-top: 22px; padding-top: 20px; }
    .cms-demo .qa-title { font-size: 13px; margin-bottom: 13px; }
    .cms-demo .qa-grid { gap: 10px; }
    .cms-demo .qa-btn { padding: 13px 10px; }
    .cms-demo .qa-icon { font-size: 20px; margin-bottom: 6px; }
    .cms-demo .qa-btn span:last-child { font-size: 8.5px; }
    .cms-demo .post-meta span { font-size: 7.5px; }
}

/* === MOBILE RESPONSIVE FOR ALL THEMES === */
@media (max-width: 767px) {
    /* Law Firm Mobile */
    .law-demo .law-topbar { 
        flex-direction: column; 
        text-align: center; 
        padding: 10px; 
        font-size: 9px; 
        gap: 6px;
    }
    .law-demo .law-nav { flex-direction: column; padding: 12px; gap: 10px; }
    .law-demo .law-menu { display: none; }
    .law-demo .law-cta-btn { width: 100%; }
    .law-demo .law-hero { padding: 28px 16px; }
    .law-demo .law-hero-title { font-size: 22px; }
    .law-demo .law-buttons { flex-direction: column; gap: 10px; }
    .law-demo .law-btn-primary,
    .law-demo .law-btn-secondary { width: 100%; justify-content: center; }
    .law-demo .law-services-grid { grid-template-columns: 1fr; }
    .law-demo .law-stats-bar { grid-template-columns: 1fr; padding: 24px 16px; }
    
    /* E-commerce Mobile */
    .shop-demo .shop-promo-bar { font-size: 9px; padding: 8px 12px; }
    .shop-demo .shop-nav { flex-direction: column; padding: 12px; gap: 10px; }
    .shop-demo .shop-search-bar { display: none; }
    .shop-demo .shop-actions { width: 100%; justify-content: space-between; }
    .shop-demo .shop-cart-btn { flex: 1; justify-content: center; }
    .shop-demo .shop-category-nav { 
        overflow-x: auto; 
        padding: 11px 12px; 
        gap: 16px;
        -webkit-overflow-scrolling: touch;
    }
    .shop-demo .shop-products-grid { grid-template-columns: 1fr; padding: 18px 12px; }
    .shop-demo .shop-features { grid-template-columns: repeat(2, 1fr); padding: 18px 12px; }
    .shop-demo .testimonial-content { grid-template-columns: 1fr; }
    .shop-demo .payment-methods { flex-direction: column; gap: 10px; }
    .shop-demo .payment-icons { justify-content: center; }
    
    /* CMS Mobile */
    .cms-demo .cms-top-bar { padding: 10px 12px; flex-direction: column; gap: 8px; }
    .cms-demo .cms-sidebar .cms-nav-label { display: none; }
    .cms-demo .cms-menu-item span:not(.menu-icon) { display: none; }
    .cms-demo .cms-menu-item { padding: 10px; justify-content: center; }
    .cms-demo .cms-main-content { padding: 16px 12px; }
    .cms-demo .cms-header { flex-direction: column; gap: 12px; align-items: start; }
    .cms-demo .cms-new-post-btn { width: 100%; }
    .cms-demo .cms-stats-grid { grid-template-columns: 1fr; }
    .cms-demo .qa-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .cms-demo .cms-menu-item span:not(.menu-icon) { display: none; }
    .cms-demo .cms-stats-grid { grid-template-columns: 1fr; }
    .cms-demo .qa-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Fix CMS width on laptop to match others */
@media (min-width: 1024px) {
    .cms-demo .cms-nav-label { font-size: 7px; padding: 0 11px; }
    .cms-demo .cms-menu-item { padding: 7px 11px; font-size: 8.5px; }
    .cms-demo .menu-icon { font-size: 11px; }
    .cms-demo .menu-count { font-size: 7px; padding: 2px 5px; }
}

/* ==========================================
   FIX: EQUAL MOCKUP WIDTHS ON LAPTOP
   ========================================== */

@media (min-width: 1024px) {
    /* Force CMS sidebar to be compact so total width matches others */
    .cms-demo .cms-sidebar {
        width: 140px !important;
    }
    
    .cms-demo .cms-nav-label {
        font-size: 6.5px !important;
        padding: 0 10px !important;
    }
    
    .cms-demo .cms-menu-item {
        padding: 6px 10px !important;
        font-size: 8px !important;
        gap: 8px !important;
    }
    
    .cms-demo .menu-icon {
        font-size: 10px !important;
    }
    
    .cms-demo .menu-count {
        font-size: 6.5px !important;
        padding: 2px 5px !important;
    }
    
    /* Make all browser contents same max-width */
    .category-mockup-wrapper .browser-content {
        max-width: 100% !important;
    }
    
    /* Fix background glitch */
    .browser-content {
        position: relative !important;
        will-change: auto !important;
    }
    
    .cms-body {
        min-width: 0 !important;
    }
}

/* ==========================================
   FIX BACKGROUND GLITCHES
   ========================================== */

/* Prevent background flickering */
.browser-content * {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
}

/* Ensure smooth rendering */
.cms-demo,
.law-demo,
.shop-demo {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix any overflow issues */
.cms-body {
    overflow: hidden;
}

.cms-main-content {
    overflow-y: auto;
    overflow-x: hidden;
}


/* ==========================================
   PWA THEME (Health & Fitness App)
   ========================================== */

.pwa-demo {
    background: linear-gradient(180deg, #10b981, #059669);
    color: white;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.pwa-splash {
    text-align: center;
    padding: 60px 24px 40px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.pwa-icon-gradient { font-size: 72px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3)); }
.pwa-app-name { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.pwa-tagline { font-size: 14px; color: rgba(255, 255, 255, 0.9); margin-bottom: 28px; }

.pwa-install-prompt {
    background: white;
    color: #10b981;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pwa-badges { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.badge-item { background: rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 20px; font-size: 10px; font-weight: 600; }

.pwa-main-screen { background: #f8fafc; padding: 24px; }
.pwa-header { display: flex; justify-content: space-between; margin-bottom: 24px; }
.greeting-time { font-size: 11px; color: #64748b; }
.greeting-name { font-size: 20px; font-weight: 800; color: #1e293b; }
.pwa-notif-icon { font-size: 22px; position: relative; }
.pwa-notif-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }

.pwa-stats-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.pwa-stat-card { background: white; padding: 18px; border-radius: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.pwa-stat-card.steps { border-left: 4px solid #10b981; }
.pwa-stat-card.calories { border-left: 4px solid #f97316; }

.stat-icon-pwa { font-size: 28px; margin-bottom: 10px; }
.stat-value-pwa { font-size: 28px; font-weight: 900; color: #1e293b; }
.stat-label-pwa { font-size: 11px; color: #64748b; margin-bottom: 10px; }
.stat-progress { background: #e5e7eb; height: 6px; border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #10b981, #059669); }

.section-header-pwa { display: flex; justify-content: space-between; margin-bottom: 16px; }
.section-header-pwa h3 { font-size: 16px; font-weight: 700; color: #1e293b; }
.see-all { font-size: 11px; color: #10b981; font-weight: 600; text-decoration: none; }

.pwa-workout-list { display: flex; flex-direction: column; gap: 12px; }
.workout-item { background: white; padding: 16px; border-radius: 12px; display: flex; align-items: center; gap: 14px; }
.workout-icon { font-size: 28px; }
.workout-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.workout-time { font-size: 10px; color: #64748b; }
.workout-status.done { background: #dcfce7; color: #16a34a; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.start-btn { background: #10b981; color: white; border: none; padding: 8px 18px; border-radius: 8px; font-size: 11px; font-weight: 600; }

.achievement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.achievement-card { background: white; padding: 18px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.achievement-icon { font-size: 32px; }
.achievement-text { font-size: 10px; color: #64748b; }
.achievement-value { font-size: 18px; font-weight: 900; color: #10b981; margin-top: 4px; }

.pwa-course-scroll { display: flex; gap: 12px; overflow-x: auto; }
.course-card { background: white; border-radius: 12px; overflow: hidden; min-width: 140px; }
.course-img { height: 80px; }
.course-info { padding: 12px; }
.course-name { font-size: 12px; font-weight: 600; color: #1e293b; }
.course-duration { font-size: 9px; color: #64748b; }

.pwa-bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-top: 1px solid #e5e7eb; padding: 12px 0; }
.nav-item { text-align: center; }
.nav-icon { font-size: 22px; opacity: 0.5; }
.nav-label { font-size: 9px; color: #94a3b8; font-weight: 500; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-item.active .nav-label { color: #10b981; font-weight: 700; }


/* ==========================================
   BRAND SHOWCASE THEME (Luxury Jewelry)
   ========================================== */

.brand-demo {
    background: linear-gradient(180deg, #1e1e2e, #2a2a3a);
    color: white;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.brand-nav-minimal { position: absolute; top: 20px; left: 0; right: 0; padding: 0 36px; display: flex; justify-content: space-between; z-index: 10; }
.brand-logo-text { font-size: 20px; font-weight: 900; letter-spacing: 0.2em; background: linear-gradient(135deg, #f3e8ff, #e9d5ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-menu-minimal { display: flex; gap: 28px; }
.brand-menu-minimal span { font-size: 11px; color: rgba(255, 255, 255, 0.7); cursor: pointer; }

.brand-hero-full {
    height: 480px;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15), transparent), linear-gradient(180deg, #1e1e2e, #2a2a3a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.brand-subtitle-small { font-size: 10px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.brand-main-title { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }

.brand-gradient {
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brand-shimmer 4s linear infinite;
}

@keyframes brand-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.brand-description { font-size: 15px; color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; line-height: 1.6; }
.brand-cta-btn { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; border: none; padding: 14px 32px; border-radius: 10px; font-size: 12px; font-weight: 700; }

.brand-scroll-hint { position: absolute; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5)); animation: scroll-bounce 2s ease-in-out infinite; }

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

.brand-collection { background: #fafafa; padding: 60px 36px; }
.collection-header { text-align: center; margin-bottom: 40px; }
.collection-label { font-size: 9px; letter-spacing: 0.2em; color: #8b5cf6; font-weight: 700; margin-bottom: 12px; }
.collection-header h2 { font-size: 28px; font-weight: 900; color: #1e293b; }
.collection-desc { font-size: 13px; color: #64748b; max-width: 500px; margin: 16px auto 0; }

.brand-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-product-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); transition: all 0.4s; }
.brand-product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2); }

.product-hover-badge { position: absolute; top: 16px; right: 16px; background: rgba(139, 92, 246, 0.95); color: white; padding: 6px 14px; border-radius: 20px; font-size: 9px; font-weight: 700; opacity: 0; transition: all 0.4s; z-index: 10; }
.brand-product-card:hover .product-hover-badge { opacity: 1; }

.product-shimmer { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer-effect 3s ease-in-out infinite; }

@keyframes shimmer-effect {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.brand-product-img { height: 200px; position: relative; }
.brand-product-info { padding: 24px; }
.product-code { font-size: 9px; color: #8b5cf6; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 8px; }
.brand-product-name { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.brand-product-desc { font-size: 11px; color: #64748b; margin-bottom: 14px; }

.product-features-mini { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.product-features-mini span { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; padding: 4px 10px; border-radius: 12px; font-size: 9px; font-weight: 600; }

.brand-price { font-size: 20px; font-weight: 900; color: #8b5cf6; margin-bottom: 16px; }
.brand-inquiry-btn { width: 100%; background: transparent; color: #8b5cf6; border: 2px solid #8b5cf6; padding: 12px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.brand-inquiry-btn:hover { background: #8b5cf6; color: white; }

.brand-craftsmanship { background: white; padding: 60px 36px; }
.craft-badge { font-size: 9px; letter-spacing: 0.2em; color: #8b5cf6; font-weight: 700; margin-bottom: 12px; }
.brand-craftsmanship h3 { font-size: 28px; font-weight: 900; color: #1e293b; margin-bottom: 16px; }
.brand-craftsmanship p { font-size: 14px; color: #64748b; margin-bottom: 36px; }

.craft-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.craft-step { text-align: center; padding: 24px 16px; background: #fafafa; border-radius: 12px; }
.craft-step-num { background: linear-gradient(135deg, #8b5cf6, #ec4899); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: white; margin: 0 auto 16px; }
.craft-step-title { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.craft-step-desc { font-size: 11px; color: #64748b; }

.brand-experience { background: linear-gradient(135deg, #1e1e2e, #2a2a3a); padding: 60px 36px; text-align: center; }
.experience-icon { font-size: 48px; margin-bottom: 20px; }
.brand-experience h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.brand-experience p { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; }

.experience-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 600px; margin: 0 auto; }
.exp-item { background: rgba(255, 255, 255, 0.05); padding: 14px 18px; border-radius: 10px; font-size: 12px; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.1); }

.brand-footer { background: #1a1a2a; padding: 36px; text-align: center; }
.contact-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.contact-info { display: flex; justify-content: center; gap: 28px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }


/* === LAPTOP SIZING === */
@media (min-width: 1024px) {
    .pwa-demo { font-size: 9px; }
    .pwa-demo .pwa-splash { padding: 48px 20px 32px; }
    .pwa-demo .pwa-icon-gradient { font-size: 56px; }
    .pwa-demo .pwa-app-name { font-size: 28px; }
    .pwa-demo .pwa-tagline { font-size: 11px; }
    .pwa-demo .pwa-install-prompt { padding: 11px 22px; font-size: 10px; }
    .pwa-demo .badge-item { padding: 6px 13px; font-size: 8px; }
    .pwa-demo .pwa-main-screen { padding: 20px; }
    .pwa-demo .greeting-name { font-size: 16px; }
    .pwa-demo .pwa-stats-cards { gap: 11px; }
    .pwa-demo .pwa-stat-card { padding: 14px; }
    .pwa-demo .stat-icon-pwa { font-size: 22px; }
    .pwa-demo .stat-value-pwa { font-size: 22px; }
    .pwa-demo .stat-label-pwa { font-size: 9px; }
    .pwa-demo .section-header-pwa h3 { font-size: 13px; }
    .pwa-demo .achievement-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .pwa-demo .achievement-card { padding: 14px 12px; }
    .pwa-demo .achievement-icon { font-size: 24px; }
    .pwa-demo .achievement-value { font-size: 14px; }
    
    .brand-demo { font-size: 9px; }
    .brand-demo .brand-nav-minimal { padding: 0 28px; }
    .brand-demo .brand-logo-text { font-size: 16px; }
    .brand-demo .brand-menu-minimal span { font-size: 9px; }
    .brand-demo .brand-hero-full { height: 380px; }
    .brand-demo .brand-main-title { font-size: 36px; }
    .brand-demo .brand-description { font-size: 12px; }
    .brand-demo .brand-cta-btn { padding: 11px 26px; font-size: 10px; }
    .brand-demo .brand-collection { padding: 48px 28px; }
    .brand-demo .collection-header h2 { font-size: 22px; }
    .brand-demo .brand-products-grid { gap: 20px; }
    .brand-demo .brand-product-img { height: 160px; }
    .brand-demo .brand-product-info { padding: 18px; }
    .brand-demo .brand-product-name { font-size: 13px; }
    .brand-demo .brand-price { font-size: 16px; }
    .brand-demo .brand-craftsmanship { padding: 48px 28px; }
    .brand-demo .brand-craftsmanship h3 { font-size: 22px; }
    .brand-demo .craft-steps { gap: 16px; }
    .brand-demo .craft-step { padding: 18px 13px; }
    .brand-demo .craft-step-num { width: 30px; height: 30px; font-size: 11px; }
    .brand-demo .craft-step-title { font-size: 10px; }
    .brand-demo .craft-step-desc { font-size: 9px; }
}

/* === MOBILE === */
@media (max-width: 767px) {
    .pwa-demo .pwa-stats-cards { grid-template-columns: 1fr; }
    .pwa-demo .achievement-grid { grid-template-columns: repeat(2, 1fr); }
    
    .brand-demo .brand-nav-minimal { padding: 0 20px; }
    .brand-demo .brand-menu-minimal { display: none; }
    .brand-demo .brand-hero-full { height: 360px; }
    .brand-demo .brand-main-title { font-size: 32px; }
    .brand-demo .brand-products-grid { grid-template-columns: 1fr; }
    .brand-demo .craft-steps { grid-template-columns: repeat(2, 1fr); }
    .brand-demo .experience-features { grid-template-columns: 1fr; }
    .brand-demo .contact-info { flex-direction: column; gap: 10px; }
}

/* ==========================================
   SCALE CMS MOCKUP TO MATCH OTHERS
   ========================================== */

/* Scale entire CMS content to compensate for sidebar width */
@media (min-width: 1024px) {
    .cms-demo {
        transform: scale(0.88) !important;
        transform-origin: top left !important;
    }
    
    /* Adjust heights to compensate for scaling */
    .cms-demo .cms-body {
        min-height: 550px !important;
    }
}

/* Mobile: No scaling needed */
@media (max-width: 1023px) {
    .cms-demo {
        transform: none !important;
    }
}

/* ==========================================
   FIX CMS BROWSER WINDOW (OUTER FRAME)
   ========================================== */

@media (min-width: 1024px) {
    /* Scale the entire browser mockup container for CMS */
    .cms-theme.browser-mockup {
        transform: scale(0.88) !important;
        transform-origin: top left !important;
    }
    
    /* Remove inner scaling since we're scaling the whole thing */
    .cms-theme .cms-demo {
        transform: none !important;
    }
    
    /* Ensure consistent height */
    .cms-theme .browser-content {
        min-height: 600px !important;
    }
}

/* Mobile: No scaling */
@media (max-width: 1023px) {
    .cms-theme.browser-mockup {
        transform: none !important;
    }
}

/* ==========================================
   FIX CMS SPACING - MATCH OTHER MOCKUPS
   ========================================== */

@media (min-width: 1024px) {
    /* Override scaling - use padding adjustment instead */
    .cms-theme.browser-mockup {
        transform: none !important;
    }
    
    .cms-theme .cms-demo {
        transform: none !important;
    }
    
    /* Adjust wrapper padding to match */
    .category-showcase:has(.cms-theme) .category-mockup-wrapper {
        padding: 24px !important;
    }
    
    .category-showcase:has(.cms-theme) .category-info-redesign {
        padding: 28px !important;
    }
    
    /* Make CMS fit by using tiny sidebar */
    .cms-demo .cms-sidebar {
        width: 70px !important;
        padding: 12px 0 !important;
    }
    
    .cms-demo .cms-logo-icon {
        font-size: 16px !important;
    }
    
    .cms-demo .cms-logo span {
        font-size: 9px !important;
    }
    
    .cms-demo .cms-nav-label {
        display: none !important;
    }
    
    .cms-demo .cms-menu-item {
        padding: 6px 5px !important;
        justify-content: center !important;
    }
    
    .cms-demo .cms-menu-item span:not(.menu-icon) {
        display: none !important;
    }
    
    .cms-demo .menu-icon {
        font-size: 14px !important;
    }
}
/* ==========================================
   FINAL CMS WIDTH FIX - PROPER CALCULATION
   ========================================== */

/* On Laptop: Hide sidebar to match width OR scale entire mockup properly */
@media (min-width: 1024px) {
    /* Option 1: Hide sidebar completely on laptop */
    .cms-demo .cms-sidebar {
        display: none !important;
    }
    
    .cms-demo .cms-body {
        display: block !important;
    }
    
    .cms-demo .cms-main-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* OR Option 2: Scale entire CMS browser window to match */
    /* Uncomment if you prefer scaling instead */
    /*
    .cms-theme .browser-mockup {
        transform: scale(0.82) !important;
        transform-origin: top left !important;
    }
    
    .cms-theme .browser-content {
        min-height: 700px !important;
    }
    */
}

/* Mobile: Show icon-only sidebar */
@media (max-width: 1023px) {
    .cms-demo .cms-sidebar {
        display: flex !important;
        width: 50px !important;
        flex-direction: column !important;
    }
    
    .cms-demo .cms-nav-label {
        display: none !important;
    }
    
    .cms-demo .cms-menu-item span:not(.menu-icon) {
        display: none !important;
    }
    
    .cms-demo .cms-menu-item {
        padding: 10px 5px !important;
        justify-content: center !important;
    }
}

/* ==========================================
   FIX CMS AUTO-SCROLL - ENABLE OVERFLOW
   ========================================== */

/* Ensure CMS browser-content is scrollable */
.cms-demo.browser-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
}

/* Fix CMS body to allow proper scroll */
.cms-demo .cms-body {
    overflow: visible !important;
    min-height: fit-content !important;
}

.cms-demo .cms-main-content {
    overflow: visible !important;
}

/* Ensure content is tall enough to scroll */
.cms-demo {
    min-height: 600px !important;
}

@media (min-width: 1024px) {
    .cms-demo {
        min-height: 700px !important;
    }
}

/* ==========================================
   FIX SCROLLBARS FOR PWA & BRAND
   ========================================== */

/* Show scrollbars for PWA and Brand */
.pwa-demo::-webkit-scrollbar,
.brand-demo::-webkit-scrollbar {
    width: 6px !important;
}

.pwa-demo::-webkit-scrollbar-track,
.brand-demo::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

.pwa-demo::-webkit-scrollbar-thumb {
    background: #10b981 !important;
    border-radius: 3px !important;
}

.brand-demo::-webkit-scrollbar-thumb {
    background: #8b5cf6 !important;
    border-radius: 3px !important;
}

/* Ensure they're scrollable */
.pwa-demo,
.brand-demo {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* === PWA DESIGN ENHANCEMENTS === */

.pwa-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid white;
}

.pwa-progress-ring {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.ring-content {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: conic-gradient(#10b981 0% 78%, #e5e7eb 78% 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ring-content::before {
    content: '';
    position: absolute;
    inset: 12px;
    background: white;
    border-radius: 50%;
}

.ring-label,
.ring-value {
    position: relative;
    z-index: 1;
}

.ring-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.ring-value {
    font-size: 28px;
    font-weight: 900;
    color: #10b981;
}

/* Responsive PWA */
@media (min-width: 1024px) {
    .pwa-demo .pwa-user-avatar { width: 30px; height: 30px; font-size: 14px; }
    .pwa-demo .pwa-progress-ring { padding: 18px; margin-bottom: 18px; }
    .pwa-demo .ring-content { width: 100px; height: 100px; }
    .pwa-demo .ring-content::before { inset: 10px; }
    .pwa-demo .ring-label { font-size: 9px; }
    .pwa-demo .ring-value { font-size: 22px; }
}

@media (max-width: 767px) {
    .pwa-demo .pwa-progress-ring { padding: 20px; }
    .pwa-demo .ring-content { width: 110px; height: 110px; }
    .pwa-demo .ring-value { font-size: 26px; }
}
