:root {
  --primary: #2681ff;
  --primary-dark: #1463d4;
  --primary-soft: #e6f0ff;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f4f8ff;
  --card: #ffffff;
  --border: #dbe4ef;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 8px 24px rgba(38, 129, 255, 0.25);
  --shadow-success: 0 8px 24px rgba(16, 185, 129, 0.25);
  --shadow-danger: 0 8px 24px rgba(239, 68, 68, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* SVG Icon Sizes */
.page-header-icon svg { width: 28px; height: 28px; color: var(--primary); }
.form-section-icon svg { width: 20px; height: 20px; color: var(--primary); }
.form-group label svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.form-group label i { font-size: 18px; color: var(--muted); flex-shrink: 0; width: 18px; text-align: center; }

/* Admin Page Header */
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-title { display: flex; align-items: center; gap: 1rem; }
.admin-title h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.admin-title p { margin: .2rem 0 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Admin Produtos Page - Vertical Spacing */
.content .admin-header { margin-top: 1rem; }
.prod-form-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); margin: 1.5rem 0; }
.prod-table-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); margin-top: 1.5rem; }
.prod-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.prod-form-col { display: flex; flex-direction: column; gap: 1.5rem; }
.prod-form-col--right { display: flex; flex-direction: column; gap: 1.5rem; }
.form-section { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; transition: border-color .2s ease, box-shadow .2s ease; }
.form-section:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 129, 255, 0.08); }
.form-section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-section-header h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.form-section-header span { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.form-section-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); border-radius: 10px; flex-shrink: 0; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #475569; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border); font-family: inherit; font-size: .95rem; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 129, 255, 0.12); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 129, 255, 0.12); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }
.form-group input:disabled, .form-group textarea:disabled, .form-group select:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; opacity: 0.7; }
.form-group input:read-only, .form-group textarea:read-only { background: #f8fafc; }
.form-group input.error, .form-group textarea.error, .form-group select.error { border-color: #ef4444; background: #fef2f2; }
.form-group input.error:focus, .form-group textarea.error:focus, .form-group select.error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-group .form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.form-group .form-hint.error { color: #ef4444; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.form-actions .btn { flex: 1; min-width: 140px; }
.input-with-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.input-with-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 129, 255, 0.12); }
.input-prefix { padding: .85rem .75rem .85rem 1rem; background: var(--bg); color: var(--muted); font-size: .9rem; border-right: 1px solid var(--border); }
.input-with-prefix input { border: none; border-radius: 0; margin: 0; box-shadow: none; }
.input-with-prefix input:focus { box-shadow: none; }

/* Toggle Switches */
.toggle-group { display: flex; flex-direction: column; gap: .75rem; }
.toggle-label { display: flex; align-items: flex-start; gap: .85rem; cursor: pointer; padding: .85rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: background .2s ease; }
.toggle-label:hover { background: var(--primary-soft); }
.toggle-label input { display: none; }
.toggle-switch { width: 44px; height: 24px; background: #cbd5e1; border-radius: 999px; position: relative; transition: background .2s ease; flex-shrink: 0; margin-top: 2px; }
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.toggle-label input:checked + .toggle-switch { background: var(--primary); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(20px); }
.toggle-text { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; color: var(--text); line-height: 1.4; }
.toggle-text strong { font-weight: 600; color: var(--text); }
.toggle-text small { color: var(--muted); font-size: .8rem; }
.toggle-desc { font-size: .8rem; color: var(--muted); margin-left: auto; }

/* Image Upload */
.image-upload-area { border: 2px dashed var(--border); border-radius: 16px; padding: 2rem; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; background: var(--bg); }
.image-upload-area:hover, .image-upload-area.drag-over { border-color: var(--primary); background: var(--primary-soft); }
.image-upload-area i { font-size: 2.5rem; color: var(--muted); margin-bottom: .75rem; display: block; }
.image-upload-area p { margin: 0; font-size: .9rem; color: var(--muted); }
.image-upload-area span { color: var(--primary); font-weight: 600; }
.image-preview { display: block; position: relative; }
.image-preview.hidden { display: none !important; }
.image-preview img { width: 100%; border-radius: 12px; max-height: 200px; object-fit: cover; }
.remove-image { position: absolute; top: .5rem; right: .5rem; width: 32px; height: 32px; border-radius: 50%; background: #ef4444; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Product Table */
.prod-table-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); }
.prod-table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.prod-table-header h3 { margin: 0; font-size: 1.2rem; }
.prod-table-header span { color: var(--muted); font-size: .9rem; }
.prod-table { width: 100%; border-collapse: collapse; }
.prod-table thead { background: var(--bg); }
.prod-table th { padding: 1rem 1.25rem; text-align: left; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.prod-table td { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(15, 23, 42, 0.06); vertical-align: middle; }
.prod-table tbody tr:hover { background: var(--bg); }
.prod-table-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.prod-table-info { display: flex; align-items: center; gap: .75rem; }
.prod-table-name { font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.prod-table-desc { font-size: .85rem; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-table-price { font-weight: 700; color: var(--text); }
.prod-table-price-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-bottom: .2rem; }
/* Badges - Modern Design */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-ativo { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.badge-inativo { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-promo { background: rgba(251, 146, 60, 0.1); color: #f97316; }
.badge-destaque { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.badge-info { background: rgba(59, 130, 246, 0.1); color: #2563eb; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--border); }
.empty-state h4 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--text); }
.empty-state p { margin: 0; font-size: .9rem; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: radial-gradient(circle at top, rgba(38, 129, 255, 0.12), transparent 34%), linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.page-content { padding: 2rem 0; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
.topbar { background: rgba(255,255,255,0.8); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(32, 63, 123, 0.08); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.15rem; font-weight: 800; color: #10263a; letter-spacing: -0.03em; }
.brand-icon { width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(38, 129, 255, 0.18); background: #fff; box-shadow: 0 12px 32px rgba(38, 129, 255, 0.12); }
.nav-links { display: flex; align-items: center; gap: .75rem; }
.nav-links a { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1rem; border-radius: 999px; color: var(--text); font-weight: 600; transition: transform .15s ease, background .2s ease, color .2s ease; }
.nav-links a:hover { transform: translateY(-1px); background: rgba(38, 129, 255, 0.08); color: var(--primary); }
.nav-links .nav-cta { background: var(--primary); color: #fff; }
.nav-links .nav-cta:hover { background: var(--primary-dark); color: #fff; }
.nav-icon, .chip-icon { width: 18px; height: 18px; display: inline-block; color: currentColor; flex-shrink: 0; }
.nav-links .nav-cta .nav-icon { filter: invert(1); }
.mobile-toggle { display: none; border: 0; background: transparent; padding: .35rem; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px auto; transition: .2s ease; }


.footer { background: linear-gradient(180deg, #0f172a 0%, #0a1024 100%); color: #f8fbff; padding: 2.5rem 0 0; margin-top: 2.5rem; position: relative; }
.footer-inner {
    display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    align-items: start;
}
.footer-brand h3 { margin: 0 0 .6rem; font-size: 1.2rem; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.footer-desc { margin: 0; color: #94a3b8; line-height: 1.6; font-size: .9rem; max-width: 320px; }
.footer h4 { margin: 0 0 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #64748b; font-weight: 600; }
.footer-nav ul,
.footer-contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-nav a { color: #cbd5e1; text-decoration: none; transition: color .2s ease; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
    font-size: .92rem;
}
.footer-contact-item:hover { color: #fff; transform: translateX(2px); }
.footer-contact-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: .8; flex-shrink: 0; }
.footer-whatsapp { color: #4ade80; }
.footer-whatsapp:hover { color: #86efac; }
.footer-address { align-items: flex-start; }
.footer-address.has-geo { color: #93c5fd; }
.footer-address.has-geo:hover { color: #bfdbfe; }
.footer-geo-badge {
    display: inline-flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .15rem .4rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
    margin-left: .35rem;
    line-height: 1;
}
.footer-social .footer-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-social-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); border-color: rgba(255,255,255,0.16); }
.footer-social-whatsapp { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.3); }
.footer-social-whatsapp:hover { background: rgba(34, 197, 94, 0.28); }
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: .85rem;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.footer-cta:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); border-color: rgba(255,255,255,0.2); }
.footer-cta-icon { width: 14px; height: 14px; filter: invert(1); opacity: .85; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 0;
    background: rgba(0,0,0,0.15);
  overflow: hidden;
}
.footer-bottom p { margin: 0; text-align: center; color: #64748b; font-size: .82rem; }
.footer a { color: #cbd5e1; transition: color .2s ease; }
.footer a:hover { color: #fff; }
.social-icon { width: 18px; height: 18px; display: inline-block; color: #fff; filter: brightness(0) invert(1); opacity: .9; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; background: radial-gradient(circle at top left, rgba(38, 129, 255, 0.18), transparent 28%), linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%); }
.login-panel { width: min(520px, 100%); display: grid; gap: 1.5rem; }
.login-brand { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,0.9); border: 1px solid rgba(38, 129, 255, 0.16); border-radius: 22px; padding: 1.25rem 1.4rem; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07); }
.login-brand h1 { margin: 0; font-size: 1.5rem; }
.login-brand p { margin: .35rem 0 0; color: var(--muted); line-height: 1.6; }
.login-brand .brand-icon { width: 48px; height: 48px; border-radius: 18px; background: linear-gradient(135deg, #2681ff, #1463d4); box-shadow: 0 18px 40px rgba(38, 129, 255, 0.24); }
.form-card { max-width: 640px; margin: 0; background: #fff; padding: 2.25rem; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-card h2 { margin-top: 0; margin-bottom: 1rem; font-size: clamp(1.7rem, 2.7vw, 2.1rem); }
.form-card p.error { margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; background: radial-gradient(circle at top left, rgba(38, 129, 255, 0.18), transparent 28%), linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%); }
.login-panel { width: min(520px, 100%); display: grid; gap: 1.5rem; }
.login-brand { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,0.92); border: 1px solid rgba(38, 129, 255, 0.16); border-radius: 22px; padding: 1.25rem 1.4rem; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07); }
.login-brand h1 { margin: 0; font-size: 1.5rem; }
.login-brand p { margin: .35rem 0 0; color: var(--muted); line-height: 1.6; }
.login-brand .brand-icon { width: 48px; height: 48px; border-radius: 18px; background: linear-gradient(135deg, #2681ff, #1463d4); box-shadow: 0 18px 40px rgba(38, 129, 255, 0.24); }
.login-brand .brand-image { width: 56px; height: 56px; border-radius: 18px; overflow: hidden; background: #f8fbff; display: grid; place-items: center; }
.login-brand .brand-image img { width: 100%; height: 100%; object-fit: contain; }
.form-field { margin-bottom: 1rem; }
.password-input-wrapper { position: relative; width: 100%; }
.password-input-wrapper input { width: 100%; padding-right: 5rem; box-sizing: border-box; }
.password-toggle { position: absolute; top: 50%; right: 0.75rem; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.password-toggle svg { width: 1.25rem; height: 1.25rem; }
.password-toggle:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); transform: translateY(-50%) !important; }
.password-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(38, 129, 255, 0.16); }
input, textarea, select, button:not(.password-toggle) { width: 100%; padding: .95rem 1rem; border-radius: 14px; border: 1px solid var(--border); margin-bottom: .9rem; font-family: inherit; font-size: 1rem; box-sizing: border-box; }
textarea { min-height: 120px; resize: vertical; }
button { background: var(--primary); color: #fff; border: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
button:not(.password-toggle):hover { transform: translateY(-1px); background: var(--primary-dark); }
button.password-toggle { width: 2.4rem; height: 2.4rem; padding: 0; }
button.password-toggle:hover { transform: none; }
.table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06); }
.table thead { background: rgba(38, 129, 255, 0.08); }
.table th, .table td { padding: 1rem 1.1rem; border-bottom: 1px solid rgba(15, 23, 42, 0.08); text-align: left; }
.table tbody tr:hover { background: #f8fbff; }
@media (max-width: 640px) {
    .login-page { padding: 2rem .75rem; }
    .login-brand { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .login-brand .brand-image { width: 50px; height: 50px; }
    .form-card { padding: 1.75rem; }
    .password-input-wrapper input { padding-right: 4.75rem; }
    .password-toggle { right: 0.75rem; width: 2.2rem; height: 2.2rem; }
}
.table button, .table a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .85rem; border-radius: 999px; border: 1px solid rgba(38, 129, 255, 0.16); color: var(--primary); background: rgba(38, 129, 255, 0.08); text-decoration: none; font-weight: 600; }
.table button:hover, .table a:hover { background: var(--primary); color: #fff; border-color: var(--primary-dark); }
.admin-shell { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; padding: 1.5rem 0; align-items: start; }
.sidebar-wrapper { position: sticky; top: 1.5rem; height: fit-content; max-height: calc(100vh - 3rem); overflow: visible; }
.sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 30;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 3rem);
}

/* Header */
.sidebar-header {
    padding: 1.25rem 1.25rem 0;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(38, 129, 255, 0.08);
}
.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.1rem; color: #10263a; line-height: 1.2; }
.brand-text span { font-size: .75rem; color: #64748b; }
.brand-logo {
    max-width: 180px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Profile */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(38, 129, 255, 0.04), rgba(38, 129, 255, 0.08));
    border-bottom: 1px solid rgba(38, 129, 255, 0.08);
}
.profile-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.profile-info { display: flex; flex-direction: column; min-width: 0; }
.profile-name { font-weight: 600; font-size: .875rem; color: #10263a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-role { font-size: .75rem; color: #64748b; text-transform: capitalize; }

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: .75rem .75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.nav-section { margin-bottom: .5rem; }
.nav-section-title {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    padding: .5rem .75rem .25rem;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 12px;
    color: #475569;
    margin-bottom: .15rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    font-size: .9rem;
}
.sidebar-nav a:last-child { margin-bottom: 0; }
.sidebar-nav a:hover { background: rgba(38, 129, 255, 0.08); color: var(--primary); transform: translateX(2px); }
.sidebar-nav a.active { background: rgba(38, 129, 255, 0.12); color: var(--primary); font-weight: 600; }
.sidebar-nav a.active .sidebar-icon { color: var(--primary); }
.sidebar-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; transition: color .2s ease; flex-shrink: 0; }
.sidebar-icon svg { width: 20px; height: 20px; }

/* Footer */
.sidebar-footer {
    padding: .75rem .75rem 1rem;
    border-top: 1px solid rgba(38, 129, 255, 0.08);
}
.logout-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 12px;
    color: #ef4444;
    transition: background .2s ease, transform .2s ease;
    font-size: .9rem;
}
.logout-link:hover { background: rgba(239, 68, 68, 0.08); transform: translateX(2px); }
.logout-link .sidebar-icon { color: #ef4444; }
.content { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 0 2rem 2rem; box-shadow: var(--shadow); max-width: 100%; min-width: 0; overflow: hidden; }
.content h2 { margin-top: 0; margin-bottom: 1.2rem; font-size: clamp(1.9rem, 2.8vw, 2.4rem); }
.content form { display: grid; gap: 1rem; }
.content form label { display: flex; align-items: center; gap: .65rem; font-size: .95rem; color: #475569; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-top: 1.5rem; }

/* Premium product admin experience */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
/* ============================================
   DASHBOARD PROFESSIONAL STYLES
   ============================================ */

/* Dashboard Hero */
.dashboard-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}
.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.dashboard-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}
.dashboard-hero-text h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.dashboard-hero-badge {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.hero-badge i { font-size: 1rem; }

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    min-width: 0;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    min-width: 0;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
}
.stat-card--blue::before { background: linear-gradient(90deg, var(--primary), #60a5fa); }
.stat-card--green::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card--purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card--orange::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(38, 129, 255, 0.2);
}
.stat-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.75rem;
}
.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.stat-card--blue .stat-icon { background: rgba(38, 129, 255, 0.12); color: var(--primary); }
.stat-card--green .stat-icon { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.stat-card--purple .stat-icon { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.stat-card--orange .stat-icon { background: rgba(245, 158, 11, 0.12); color: var(--warning); }

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    margin-top: 0.5rem;
    align-self: flex-start;
}
.stat-trend--up {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}
.stat-trend--down {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: .35rem;
    letter-spacing: -0.02em;
}
.stat-label {
    margin: 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}
.top-products-card,
.quick-actions-card,
.activity-card,
.chart-card {
    min-width: 0;
}

/* Top Products Card */
.top-products-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.top-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.top-products-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.top-products-title i { font-size: 1.4rem; color: var(--warning); }
.top-products-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.top-products-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.top-products-list { display: flex; flex-direction: column; gap: .75rem; }
.top-product-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
    background: #f8fbff;
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    transition: all .25s ease;
}
.top-product-item:hover {
    background: #fff;
    border-color: rgba(38, 129, 255, 0.15);
    box-shadow: 0 8px 24px rgba(38, 129, 255, 0.08);
    transform: translateX(4px);
}
.product-rank {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}
.product-rank--gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35); }
.product-rank--silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; box-shadow: 0 4px 12px rgba(148, 163, 184, 0.35); }
.product-rank--bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35); }
.product-rank--default { background: rgba(38, 129, 255, 0.1); color: var(--primary); }
.product-info { flex: 1; min-width: 0; }
.product-name {
    margin: 0 0 .5rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-bar-wrapper { display: flex; align-items: center; gap: .5rem; }
.product-bar {
    flex: 1;
    height: 6px;
    background: rgba(38, 129, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}
.product-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 999px;
    transition: width .6s ease;
}
.product-clicks {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .65rem;
    background: rgba(38, 129, 255, 0.08);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.product-clicks i { font-size: .85rem; }

/* Quick Actions Card */
.quick-actions-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.quick-actions-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
}
.quick-actions-header i { font-size: 1.4rem; color: var(--primary); }
.quick-actions-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem 1rem;
    background: #f8fbff;
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    transition: all .25s ease;
}
.quick-action-btn i { font-size: 1.6rem; color: var(--primary); }
.quick-action-btn span { font-size: .82rem; font-weight: 600; color: var(--text); }
.quick-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 129, 255, 0.25);
}
.quick-action-btn:hover i,
.quick-action-btn:hover span { color: #fff; }

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
}
.empty-state i { font-size: 3rem; color: var(--muted); opacity: .5; margin-bottom: 1rem; }
.empty-state p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ============================================
   ADVANCED METRICS SECTION
   ============================================ */
.metrics-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Activity Card */
.activity-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.activity-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.activity-title i { font-size: 1.4rem; color: var(--success); }
.activity-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.activity-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.activity-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem;
    background: #f8fbff;
    border-radius: 12px;
    transition: all .25s ease;
}
.activity-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.activity-icon--blue { background: rgba(38, 129, 255, 0.12); color: var(--primary); }
.activity-icon--green { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.activity-icon--orange { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.activity-icon--purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.activity-content { flex: 1; min-width: 0; }
.activity-text {
    margin: 0 0 .2rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.activity-time {
    font-size: .72rem;
    color: var(--muted);
}

/* Chart Card */
.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.chart-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.chart-title i { font-size: 1.4rem; color: #8b5cf6; }
.chart-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.chart-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    height: 140px;
    padding: .5rem 0;
}
.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.chart-bar {
    width: 100%;
    max-width: 50px;
    background: linear-gradient(180deg, var(--primary), #60a5fa);
    border-radius: 8px 8px 0 0;
    transition: all .4s ease;
    position: relative;
    cursor: pointer;
}
.chart-bar:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    transform: scaleY(1.05);
    transform-origin: bottom;
}
.chart-bar-value {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    transition: opacity .2s ease;
}
.chart-bar:hover .chart-bar-value { opacity: 1; }
.chart-bar-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-indicator--online { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.status-indicator--online::before { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-indicator--offline { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.status-indicator--offline::before { background: var(--danger); }
.status-indicator--pending { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.status-indicator--pending::before { background: var(--warning); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.stat-card, .top-products-card, .quick-actions-card, .activity-card, .chart-card {
    animation: fadeInUp .5s ease forwards;
}
.stat-card:nth-child(1) { animation-delay: .1s; }
.stat-card:nth-child(2) { animation-delay: .15s; }
.stat-card:nth-child(3) { animation-delay: .2s; }
.stat-card:nth-child(4) { animation-delay: .25s; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .metrics-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-hero-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .quick-actions-grid { grid-template-columns: 1fr; }
}
.search-premium {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.search-premium i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}
.search-premium input,
.filter-dropdown {
  width: 100%;
  padding: .8rem .95rem .8rem 2.5rem;
  border: 1px solid rgba(38, 129, 255, 0.16);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-premium input:focus,
.filter-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(38, 129, 255, 0.1);
}
.filter-dropdown {
  min-width: 150px;
  padding-left: .95rem;
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.prod-form {
  display: grid;
  gap: 1.25rem;
}
.prod-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}
.prod-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
  border: 1px solid rgba(38, 129, 255, 0.12);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}
.form-section--highlight {
  background: linear-gradient(135deg, rgba(38, 129, 255, 0.07), rgba(255,255,255,0.98));
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.form-section-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.form-section-header span {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .8rem;
}
.form-section-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.toggle-label {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(38, 129, 255, 0.12);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.toggle-label:hover {
  border-color: rgba(38, 129, 255, 0.25);
  box-shadow: 0 10px 24px rgba(38, 129, 255, 0.08);
  transform: translateY(-1px);
}
.image-upload-area {
  border: 2px dashed rgba(38, 129, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(38, 129, 255, 0.05), rgba(255,255,255,0.96));
  padding: 1.25rem;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.image-upload-area:hover,
.image-upload-area.drag-over {
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(38, 129, 255, 0.08);
}
.upload-placeholder,
.current-image-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-align: center;
}
.upload-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(38, 129, 255, 0.12);
  color: var(--primary);
  font-size: 1.6rem;
}
.upload-text {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}
.upload-browse {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.upload-hint {
  color: var(--muted);
  font-size: .8rem;
}
.current-image-preview img {
  width: 100%;
  max-width: 260px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}
.current-image-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
}
.product-preview-card {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(38, 129, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.product-preview-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.product-preview-pill {
  display: inline-flex;
  align-items: center;
  padding: .32rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(38, 129, 255, 0.12);
  color: var(--primary);
}
.product-preview-pill--soft {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.product-preview-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}
.product-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}
.product-preview-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.product-preview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.prod-table-title {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.prod-table-title .page-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}
.prod-table-title .page-header-icon i {
  font-size: 1.2rem;
}

/* Responsive container */
@media (max-width: 1400px) {
  .content {
    padding: 0 1.5rem 1.75rem;
  }
}

@media (max-width: 1200px) {
  .content {
    padding: 0 1.25rem 1.5rem;
  }
}
.admin-title h2 { margin: 0; font-size: clamp(1.9rem, 2.8vw, 2.4rem); }
.admin-title p { margin: .35rem 0 0; color: var(--muted); line-height: 1.6; }
.dashboard-overview { display: grid; gap: 1.5rem; margin-bottom: 2rem; min-width: 0; }
.overview-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.overview-intro p { max-width: 62ch; color: #475569; }
.overview-badge { display: inline-flex; flex-direction: column; gap: .35rem; padding: 1rem 1.2rem; border-radius: 22px; background: rgba(38, 129, 255, 0.08); border: 1px solid rgba(38, 129, 255, 0.16); color: #10263a; }
.overview-badge span { font-size: .95rem; color: #334155; }
.overview-badge p { margin: 0; font-size: .97rem; color: #475569; }
.dashboard-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
/* Metric Cards - Premium Design */
.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #5b9fff);
  opacity: 0;
  transition: opacity .25s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.metric-card:hover::before {
  opacity: 1;
}
.metric-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.metric-icon i {
  font-size: 1.5rem;
}
.metric-card h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-card p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
}
.metric-card--blue .metric-icon { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.metric-card--blue::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.metric-card--green .metric-icon { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.metric-card--green::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.metric-card--purple .metric-icon { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.metric-card--purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.metric-card--orange .metric-icon { background: rgba(251, 146, 60, 0.1); color: #f97316; }
.metric-card--orange::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.metric-card--red .metric-icon { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.metric-card--red::before { background: linear-gradient(90deg, #dc2626, #ef4444); }
.top-products-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.top-products-header h3 { margin: 0; }
.top-products-header span { color: var(--muted); font-size: .95rem; }
.sidebar-overlay { display: none; }
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { 
    position: fixed; 
    inset: 0 auto auto 0; 
    width: min(280px, 80%); 
    max-width: 320px; 
    height: 100vh; 
    transform: translateX(-110%); 
    transition: transform .3s ease; 
    border-radius: 0 24px 24px 0; 
    margin: 0;
    padding: 0;
    flex-direction: column;
  }
  .sidebar-wrapper.show-sidebar .sidebar { transform: translateX(0); }
  .sidebar-overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.35); 
    z-index: 20; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity .2s ease, visibility .2s ease; 
  }
  .sidebar-wrapper.show-sidebar .sidebar-overlay { 
    display: block; 
    opacity: 1; 
    visibility: visible; 
  }
  .sidebar-nav a { font-size: .9rem; }
  .sidebar-header { padding: 1.25rem 1.25rem 0; }
  .sidebar-profile { padding: 1rem 1.25rem; }
  .sidebar-nav { padding: .75rem; }
  .sidebar-footer { padding: .75rem; }
  .mobile-toggle { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 48px; 
    height: 48px; 
    border-radius: 16px; 
    border: 1px solid rgba(38, 129, 255, 0.16); 
    background: #fff; 
    cursor: pointer; 
  }
  .mobile-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 999px; transition: transform .2s ease, opacity .2s ease; }
  .mobile-toggle span + span { margin-top: 5px; }
  .admin-header { flex-wrap: wrap; }
}
.breadcrumb { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .95rem; }
.breadcrumb a { color: var(--primary); }
.product-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.product-media { position: relative; }
.product-main-image { width: 100%; border-radius: 24px; box-shadow: var(--shadow); display: block; }
.product-gallery-thumbs { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.product-gallery-thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); transition: border-color .2s ease, transform .2s ease; background: #fff; padding: 0; cursor: pointer; display: block; }
.product-gallery-thumb:hover { border-color: var(--primary); transform: translateY(-1px); }
.product-gallery-thumb.active { border-color: var(--primary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-info { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); }
.product-header { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.product-header h1 { margin: .2rem 0 .6rem; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.3; }
.product-category { color: var(--muted); margin: 0 0 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.product-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.product-price .price-old { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.product-price .price { font-size: 2rem; font-weight: 700; color: var(--text); }
.product-price .price-promo { font-size: 2rem; font-weight: 700; color: var(--danger); }
.product-description { background: var(--bg); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.75rem; }
.product-description h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.product-description h3::before { content: ''; width: 4px; height: 1em; background: var(--primary); border-radius: 2px; }
.product-description p { line-height: 1.8; color: #334155; margin: 0; }
.product-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.product-actions .btn { width: auto; flex: 1; min-width: 200px; }
.section-eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); background: var(--primary-soft); padding: .35rem .75rem; border-radius: 6px; margin-bottom: .5rem; }
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .banner-layout {
    grid-template-columns: 1fr;
  }
  .banner-summary-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-row-inline {
    grid-template-columns: 1fr;
  }
  .banner-upload-grid {
    grid-template-columns: 1fr;
  }
  .cell-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cell-actions > * {
    width: 100%;
  }
  .form-delete {
    width: 100%;
  }
  .form-delete .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .card-premium-body,
  .card-premium-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .form-section,
  .image-upload-area {
    padding: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 0 1rem 1.5rem;
  }
}

@media (max-width: 920px) {
  .product-card { grid-template-columns: 1fr; }
  .product-price { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-form-grid { grid-template-columns: 1fr; }
}

/* Product detail responsive */
@media (max-width: 768px) {
  .product-info {
    padding: 1.25rem;
    border-radius: 16px;
  }
  .product-header {
    flex-direction: column;
    gap: 1rem;
  }
  .product-header h1 {
    font-size: 1.5rem;
  }
  .product-price {
    text-align: left;
    align-items: flex-start;
  }
  .product-price .price,
  .product-price .price-promo {
    font-size: 1.5rem;
  }
  .product-actions .btn {
    min-width: 0;
    width: 100%;
  }
  .share-icon {
    width: 36px;
    height: 36px;
  }
  .share-icon img,
  .share-icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .product-media img {
    border-radius: 16px;
  }
  .product-info {
    padding: 1rem;
  }
  .product-description {
    padding: 1rem;
  }
  .product-description h3 {
    font-size: 0.9rem;
  }
  .product-description p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: auto; }
  .mobile-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .admin-header,
  .admin-header-actions {
    align-items: stretch;
  }
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-premium,
  .filter-dropdown {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
  .view-toggle {
    width: 100%;
    justify-content: flex-start;
  }
  .view-toggle .view-toggle-btn {
    flex: 1;
  }
  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bulk-actions .bulk-btn {
    width: 100%;
  }
  .nav-links { display: none; position: absolute; top: calc(100% + .5rem); right: 1rem; left: 1rem; flex-direction: column; align-items: stretch; background: #fff; padding: .75rem; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { justify-content: flex-start; }
  .hero { padding: 3.2rem 0 2.8rem; }

/* =============================================
   PREMIUM BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn i { font-size: 1.1rem; }
.btn img { width: 20px; height: 20px; }

/* Share buttons */
.share-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.share-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.share-icon:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.share-icon img,
.share-icon svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5b9fff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(38, 129, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 129, 255, 0.45);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.btn-primary:active { transform: translateY(0); }
.btn-success {
  background: linear-gradient(135deg, var(--success), #34d399);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

/* =============================================
   PREMIUM ALERTS & NOTIFICATIONS
   ============================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 1px solid;
  animation: slideIn 0.3s ease;
}
.alert i { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.alert-success {
  background: var(--success-soft);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065f46;
}
.alert-warning {
  background: var(--warning-soft);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}
.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.3);
  color: #991b1b;
}
.alert-info {
  background: var(--primary-soft);
  border-color: rgba(38, 129, 255, 0.3);
  color: #1e40af;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--border);
  min-width: 300px;
  max-width: 420px;
  animation: slideInRight 0.3s ease;
}
.toast i { font-size: 1.25rem; }
.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--primary); }
.toast-warning i { color: var(--warning); }

/* =============================================
   PREMIUM LOADING STATES
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-text { height: 1rem; margin-bottom: .5rem; }
.skeleton-title { height: 1.5rem; width: 60%; margin-bottom: .75rem; }
.skeleton-image { height: 200px; border-radius: 12px; }
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-dark {
  border-color: rgba(38, 129, 255, 0.2);
  border-top-color: var(--primary);
}

/* =============================================
   PREMIUM ANIMATIONS
   ============================================= */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================================
   PREMIUM CARDS
   ============================================= */
.card-premium {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(38, 129, 255, 0.2);
}
.card-premium-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-premium-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.card-premium-body { padding: 1.5rem; }
.card-premium-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* =============================================
   PREMIUM TABLE
   ============================================= */
.table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-premium thead th {
  background: linear-gradient(135deg, rgba(38, 129, 255, 0.08), rgba(38, 129, 255, 0.04));
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
.table-premium thead th:first-child { border-radius: 12px 0 0 0; }
.table-premium thead th:last-child { border-radius: 0 12px 0 0; }
.table-premium tbody tr {
  transition: var(--transition-fast);
}
.table-premium tbody tr:hover {
  background: rgba(38, 129, 255, 0.04);
}
.table-premium tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-premium tbody tr:last-child td {
  border-bottom: none;
}
.table-premium tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.table-premium tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }
.table-premium-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Admin Products List */
/* =============================================
   PREMIUM FORMS
   ============================================= */
.form-group-premium {
  margin-bottom: 1.25rem;
}
.form-group-premium label {
  display: block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group-premium label i {
  margin-right: .35rem;
  color: var(--muted);
}
.form-control-premium {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .95rem;
  transition: var(--transition);
  background: var(--card);
}
.form-control-premium:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(38, 129, 255, 0.1);
}
.form-control-premium::placeholder { color: #94a3b8; }
.form-control-premium:disabled {
  background: var(--bg);
  cursor: not-allowed;
  opacity: 0.7;
}

/* =============================================
   PREMIUM BADGES
   ============================================= */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-premium i { font-size: .85rem; }
.badge-success { background: var(--success-soft); color: #059669; }
.badge-warning { background: var(--warning-soft); color: #d97706; }
.badge-danger { background: var(--danger-soft); color: #dc2626; }
.badge-info { background: var(--primary-soft); color: #2563eb; }

/* =============================================
   PREMIUM MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
  padding: 1rem;
}
.modal-premium {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: scaleIn 0.3s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 1.25rem; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover { background: var(--danger-soft); color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 20px 20px;
}

/* =============================================
   PREMIUM PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition-fast);
}
.pagination a {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================
   PREMIUM SEARCH
   ============================================= */
.search-premium {
  position: relative;
  max-width: 320px;
}
.search-premium input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .9rem;
  transition: var(--transition);
  background: var(--card);
}
.search-premium input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(38, 129, 255, 0.1);
}
.search-premium i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* =============================================
   PREMIUM FILTER DROPDOWN
   ============================================= */
.filter-dropdown {
  position: relative;
}
.filter-dropdown select {
  appearance: none;
  padding: .75rem 2.5rem .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .9rem;
  background: var(--card);
  cursor: pointer;
  transition: var(--transition);
}
.filter-dropdown select:focus {
  outline: none;
  border-color: var(--primary);
}
.filter-dropdown::after {
  content: '\f282';
  font-family: 'Boxicons';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

/* =============================================
   PREMIUM STATS CARDS
   ============================================= */
.stats-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.stats-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(38, 129, 255, 0.1);
  transform: translateY(-2px);
}
.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stats-icon i { font-size: 1.35rem; }
.stats-icon-blue { background: var(--primary-soft); color: var(--primary); }
.stats-icon-green { background: var(--success-soft); color: var(--success); }
.stats-icon-orange { background: var(--warning-soft); color: var(--warning); }
.stats-icon-red { background: var(--danger-soft); color: var(--danger); }
.stats-info { min-width: 0; }
.stats-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stats-label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}

/* =============================================
   GLASS MORPHISM EFFECTS
   ============================================= */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: .5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Responsive - Produtos Admin */
@media (max-width: 1100px) {
  .prod-form-grid {
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .prod-form-grid {
    grid-template-columns: 1fr;
  }
  .prod-form-col--right {
    position: static;
  }
  .prod-form {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 0 1.25rem 1.5rem;
    border-radius: 16px;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1rem;
  }
  .admin-title h2 {
    font-size: 1.4rem;
  }
  .prod-form-card,
  .prod-table-card {
    padding: 1rem;
    border-radius: 16px;
    margin: 1rem 0;
  }
  .form-section {
    padding: 1rem;
    border-radius: 12px;
  }
  .form-section-header {
    margin-bottom: 1rem;
    padding-bottom: .75rem;
  }
  .prod-table-card {
    overflow-x: auto;
  }
  .table {
    min-width: 600px;
    font-size: .85rem;
  }
  .table th, .table td {
    padding: .75rem .85rem;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 0 1rem 1.25rem;
  }
  .prod-form {
    padding: 1rem;
  }
  .form-section {
    padding: .85rem;
  }
  .form-section-icon {
    width: 30px;
    height: 30px;
  }
  .form-section-icon i {
    font-size: 1rem;
  }
  .admin-title {
    gap: .75rem;
  }
  .page-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* Form Sections */
.form-section {
  background: var(--bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.form-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.form-section-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.form-section-header h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.form-section-header span {
  font-size: .8rem;
  color: var(--muted);
}

/* Form Groups */
.form-group {
  margin-bottom: 1rem;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group label svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 129, 255, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Input with prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.input-with-prefix input {
  padding-left: 2.5rem !important;
}

/* Toggle Switches */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: .85rem;
  cursor: pointer;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  transition: border-color .2s ease, background .2s ease;
}
.toggle-label:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.toggle-label input[type="checkbox"] {
  display: none;
}
.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background .25s ease;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.toggle-label input:checked + .toggle-switch {
  background: var(--primary);
}
.toggle-label input:checked + .toggle-switch::after {
  transform: translateX(20px);
}
.toggle-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.toggle-text strong {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.toggle-text small {
  font-size: .78rem;
  color: var(--muted);
}

/* Image Upload Area */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
  cursor: pointer;
  position: relative;
}
.image-upload-area:hover,
.image-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}
.upload-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}
.upload-text {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
}
.upload-browse {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.upload-hint {
  font-size: .75rem;
  color: var(--muted);
  opacity: .7;
}
.current-image-preview {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.current-image-preview img {
  max-width: 100%;
  max-height: 200px;
  display: block;
  border-radius: 12px;
}
.current-image-label {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .4rem;
  justify-content: center;
}
.image-preview {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.image-preview img {
  max-width: 100%;
  max-height: 200px;
  display: block;
}
.remove-image {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.remove-image:hover {
  background: rgba(220, 38, 38, 0.85);
}
.remove-image svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* Buttons - Premium, Elegant */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(38, 129, 255, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(38, 129, 255, 0.32);
}
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
  border-color: #c4cdd8;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.32);
}
.btn-sm {
  padding: .45rem .9rem;
  font-size: .8rem;
  border-radius: 8px;
}
.btn-lg {
  padding: .8rem 1.5rem;
  font-size: .95rem;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 1rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-icon.btn-icon--sm {
  width: 30px;
  height: 30px;
  font-size: .875rem;
  border-radius: 8px;
}
.btn-icon.btn-icon--danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* Action Buttons - Table/Grid Actions */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.action-btn i { font-size: .9rem; }
.action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 129, 255, 0.2);
}
.action-btn--edit { color: var(--primary); border-color: rgba(38, 129, 255, 0.25); background: var(--primary-soft); }
.action-btn--edit:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.action-btn--delete { color: #ef4444; border-color: rgba(239, 68, 68, 0.2); background: rgba(239, 68, 68, 0.04); }
.action-btn--delete:hover { background: #ef4444; color: #fff; border-color: #ef4444; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25); }
.action-btn--view { color: var(--muted); }
.action-btn--view:hover { background: var(--bg); color: var(--text); border-color: var(--border); }

/* Product Table Card */
.prod-table-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prod-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.prod-table-title {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.prod-table-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.prod-table-title span {
  font-size: .82rem;
  color: var(--muted);
}

/* Table */
.table-responsive {
  overflow-x: auto;
}
.prod-table {
  width: 100%;
  border-collapse: collapse;
}
.prod-table thead tr {
  background: var(--bg);
}
.prod-table th {
  padding: .85rem 1.25rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.prod-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.prod-table tbody tr:last-child {
  border-bottom: none;
}
.prod-table tbody tr:hover {
  background: rgba(38, 129, 255, 0.03);
}
.prod-table td {
  padding: 1rem 1.25rem;
  font-size: .9rem;
  vertical-align: middle;
}

/* Product Row */
.prod-row .td-product {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 260px;
}
.prod-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-thumb--placeholder {
  display: grid;
  place-items: center;
}
.prod-thumb--placeholder svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  opacity: .4;
}
.prod-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.prod-name {
  font-weight: 600;
  color: var(--text);
  font-size: .92rem;
}
.prod-desc {
  font-size: .78rem;
  color: var(--muted);
  max-width: 280px;
}

/* Price Cell */
.td-price {
  white-space: nowrap;
}
.price-main {
  font-weight: 700;
  color: var(--text);
  font-size: .95rem;
}
.price-old {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: .1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-category {
  background: var(--primary-soft);
  color: var(--primary);
}
.badge-muted {
  background: var(--bg);
  color: var(--muted);
}
.badge-success {
  background: #dcfce7;
  color: #16a34a;
}
.badge-inactive {
  background: #f1f5f9;
  color: #94a3b8;
}
.badge-highlight {
  background: #fef9c3;
  color: #ca8a04;
}
.badge-sale {
  background: #fee2e2;
  color: #dc2626;
}
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

/* Action Buttons */
.td-actions {
  white-space: nowrap;
}
.action-form {
  display: inline;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--bg);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.empty-state-icon svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
  opacity: .5;
}
.empty-state h4 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.empty-state p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
  max-width: 320px;
}

/* Responsive */
@media (max-width: 1024px) {
  .prod-form-grid {
    grid-template-columns: 1fr;
  }
  .prod-form-col--right {
    position: relative;
    top: auto;
  }
}
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .prod-form {
    padding: 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .prod-table-header {
    padding: 1.25rem;
  }
  .prod-table th,
  .prod-table td {
    padding: .75rem 1rem;
  }
  .th-actions {
    display: none;
  }
  .td-actions {
    display: flex;
    gap: .5rem;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN (Shopee-like)
   ============================================ */

/* Mobile Bottom Navigation Bar - Shopee Style */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
  flex: 1;
}

.bottom-nav-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
}

/* Mobile Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(38, 129, 255, 0.3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
}

.brand span {
  display: none;
}

.nav-links {
  display: none;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Search Bar */
.mobile-search {
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.6rem 1rem;
  margin: 0 1rem 0.75rem;
  align-items: center;
  gap: 0.5rem;
}

.mobile-search img {
  width: 18px;
  height: 18px;
  filter: invert(1) opacity(0.7);
}

.mobile-search input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.mobile-search input::placeholder {
  color: rgba(255,255,255,0.7);
}

/* Mobile Footer */
.footer {
  padding: 2.25rem 1.25rem 2rem;
  background: #0a1024;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  grid-template-columns: 1fr;
  text-align: left;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}

.footer-brand {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand h3 {
  font-size: 1.1rem;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  font-weight: 700;
}

.footer-desc {
  font-size: .82rem;
  max-width: 320px;
  margin: .35rem 0 0;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-contact,
.footer-social {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.footer-contact h4,
.footer-social h4 {
  font-size: .7rem;
  margin-bottom: .65rem;
  color: #64748b;
  letter-spacing: .1em;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .5rem;
  align-items: flex-start;
}

.footer-contact-item {
  justify-content: flex-start;
  width: auto;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: none;
  border-radius: 0;
  border: none;
  color: #cbd5e1;
  font-size: .88rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-contact-item:hover {
  background: none;
  border: none;
  color: #fff;
  transform: translateX(2px);
}

.footer-contact-icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
  opacity: .8;
  flex-shrink: 0;
}

.footer-address {
  background: none !important;
}

.footer-social .footer-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: .75rem;
  gap: .5rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
}

.footer-cta {
  margin: 0;
  padding: .45rem .9rem;
  font-size: .82rem;
  width: auto;
  max-width: none;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.footer-cta:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}

.footer-bottom {
  margin: 0;
  padding: .85rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom .container {
  width: 100%;
}

.footer-bottom p {
  font-size: .75rem;
  color: #64748b;
}

/* ============================================
   TABLET RESPONSIVE (768px+)
   ============================================ */
@media (min-width: 768px) {
  .brand span {
    display: inline;
  }
  
  .bottom-nav {
    display: none !important;
  }
  
  .mobile-search {
    display: none;
  }
  
  .footer {
    padding: 2.5rem 0 0;
  }

  .footer-inner {
    grid-template-columns: 1.45fr 1fr 1fr;
    text-align: left;
    gap: 1.75rem;
  }

  .footer-nav ul,
  .footer-contact ul {
    justify-items: start;
    align-items: flex-start;
  }

  .footer-contact-item {
    justify-content: flex-start;
  }

  .footer-social .footer-links {
    justify-content: flex-start;
  }

  .footer-cta {
    margin: 0;
  }
}

/* ============================================
   DESKTOP RESPONSIVE (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
  }
  
  .nav-links a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
  }
  
  .nav-links .nav-cta {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
  }
  
  .nav-links .nav-cta:hover {
    background: var(--primary-soft);
  }
  
  .nav-icon {
    width: 18px;
    height: 18px;
  }
  
  .topbar-inner {
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   NEW HEADER - LOGO + ADDRESS + SEARCH + WHATSAPP
   ============================================ */
.site-header {
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 1px 12px rgba(15,23,42,0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  background: transparent;
  padding: 0.75rem 1rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(160px, 260px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Store Location */
.header-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 360px;
  height: 48px;
  align-self: stretch;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-location:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.header-location:active {
  transform: translateY(0);
}

.location-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #fff;
  opacity: 0.9;
  flex-shrink: 0;
}

.location-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.location-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.location-value {
  font-size: 0.78rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search Bar */
.header-search {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  min-height: 48px;
  height: 100%;
  position: relative;
}

.header-search textarea {
  width: auto;
  margin: 0;
  border-radius: 0;
}

/* Search Filter Wrapper - contains filter button and search form */
.search-filter-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: visible;
  position: relative;
  min-height: 48px;
  height: 48px;
  flex: 1;
}

/* Category Filter Dropdown */
.search-filter {
  position: relative;
  flex-shrink: 0;
  z-index: 100;
  height: 100%;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  background: #fff;
  border: none;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s ease;
  height: 100%;
  width: auto;
  margin: 0;
}

.filter-btn:hover {
  background: rgba(246, 248, 252, 0.95);
}

.filter-label {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-arrow {
  width: 14px;
  height: 14px;
  min-width: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.filter-btn.active .filter-arrow {
  transform: rotate(180deg);
}

/* Filter Dropdown */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 9999;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.filter-dropdown.show {
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.filter-option:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.filter-option.selected {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* Search Input */
.search-input-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0 0.75rem 0 1rem;
  min-height: 100%;
  height: 100%;
  min-width: 0;
}

.search-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 0.4rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5rem 0.5rem;
  line-height: 1.2;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  width: 100%;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  width: 48px;
  max-width: 48px;
  min-width: 48px;
  flex: 0 0 48px;
  padding: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 48px;
  min-height: 0;
  align-self: stretch;
  margin: 0;
  border-radius: 0 14px 14px 0;
  box-sizing: border-box;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.search-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  vertical-align: middle;
  transform: translateY(0);
  margin: 0;
}

/* WhatsApp Button */
.header-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.header-whatsapp:hover {
  background: #20ba5a;
  color: #fff;
  transform: translateY(-1px);
}

.header-whatsapp svg {
  width: 18px;
  height: 18px;
}

/* Mobile Search Bar (below header on mobile) */
.mobile-search-bar {
  display: none !important;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: visible;
  transition: max-height 0.3s ease, padding 0.3s ease;
  position: relative;
  z-index: 20;
}

.mobile-search-bar.open {
  display: block;
  max-height: 320px;
  padding: 0.75rem 1rem;
}

.mobile-search-bar form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  position: relative;
  z-index: 21;
}

.mobile-search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.mobile-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  padding: 0.4rem 0;
  width: auto;
  margin: 0;
  min-width: 0;
}

.mobile-search-bar input::placeholder {
  color: var(--muted);
}

/* Mobile Filter Button */
.mobile-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mobile-filter-btn:hover,
.mobile-filter-btn.active {
  background: rgba(26, 115, 232, 0.1);
}

.mobile-filter-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-filter-label {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Filter Dropdown */
.mobile-filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 1000;
  margin: 0.5rem 1rem;
  padding: 0;
}

.mobile-filter-dropdown.show {
  max-height: 400px;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.mobile-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.mobile-filter-option:hover {
  background: var(--bg);
}

.mobile-filter-option.selected {
  color: var(--primary);
  font-weight: 500;
}

.mobile-filter-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile Search Toggle Button (header) */
.header-search-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 0.2s ease;
}

.header-search-toggle:hover {
  background: rgba(255,255,255,0.25);
}

.header-search-toggle svg {
  width: 18px;
  height: 18px;
}

/* Mobile header responsiveness */
@media (max-width: 980px) {
  .header-main { padding: 0.75rem 0.85rem; }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }

  .header-logo {
    justify-content: flex-start;
  }

  .header-location,
  .search-filter-wrapper,
  .header-whatsapp,
  .header-search-toggle {
    width: 100%;
  }

  .header-location {
    display: none;
  }

  .search-filter-wrapper {
    padding: 0;
    border-radius: 16px;
    height: 48px;
    min-height: 48px;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .search-filter {
    width: auto;
    min-width: 0;
  }

  .filter-btn {
    width: auto;
    justify-content: space-between;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px 0 0 14px;
    padding: 0 0.9rem;
  }

  .search-input-wrap {
    padding: 0 0.75rem 0 0.9rem;
  }

  .search-btn {
    border-radius: 0 14px 14px 0;
    width: 48px;
  }

  .header-search {
    display: flex;
    width: 100%;
  }

  .header-search-toggle {
    display: flex;
  }

  .header-whatsapp {
    justify-content: center;
  }

  .mobile-search-submit {
    width: 42px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 601px) and (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Filter Icon (novo ícone de filtro no botão) */
.filter-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Filter Dropdown Options - alinhamento de ícone + texto */
.filter-option svg {
  flex-shrink: 0;
  color: var(--muted);
}

.filter-option.selected svg,
.filter-option:hover svg {
  color: var(--primary);
}

/* ============================================
   SHARE BUTTONS (Product Page)
   ============================================ */
.share-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 1rem;
}

.share-actions .share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.25rem;
}

.share-actions .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
}

.share-actions .share-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.share-actions .share-btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-actions .share-btn-wa:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0d6e61 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.share-actions .share-btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.share-actions .share-btn-ig:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.4);
}

.share-actions .share-btn-copy {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.share-actions .share-btn-copy:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.share-actions .share-btn-copy.copied {
  background: #10b981;
  color: #fff;
}

/* ============================================
   BANNERS ADMIN PAGE
   ============================================ */

/* Active Banners List */
.banner-active-list {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.08);
}

.banner-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.banner-active-list h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #0369a1;
}

.banner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.banner-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.banner-summary-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.banner-summary-header h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.banner-summary-header h3 i { color: var(--primary); }

.banner-summary-body {
  display: grid;
  gap: .9rem;
  padding: 1.25rem 1.5rem;
}

.banner-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: .85rem 1rem;
}

.banner-summary-item span {
  font-size: .85rem;
  color: var(--muted);
}

.banner-summary-item strong {
  font-size: .9rem;
  color: var(--text);
}

.banner-summary-tip {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
  color: #1d4ed8;
  font-size: .85rem;
  border: 1px solid rgba(38, 129, 255, 0.2);
}

.banner-summary-tip i {
  font-size: 1rem;
  margin-top: .05rem;
}

.banner-active-list h3 i { font-size: 1.1rem; }

.active-banners-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.active-banner-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.active-banner-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.active-banner-info strong {
  color: var(--text);
  font-size: .9rem;
}

/* Form Card */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.form-card-header h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.form-card-header h3 i { color: var(--primary); }

.banner-form {
  padding: 1.5rem;
}

.form-row-inline {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.form-row-inline .form-group {
  flex: 1;
}

.form-group-toggle {
  flex: 0 0 auto !important;
}

.form-group-toggle label:first-child {
  margin-bottom: .5rem;
}

/* Toggle Switch */
.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  align-items: end;
}

.form-group-toggle {
  flex: 0 0 auto !important;
}

.form-group-toggle label:first-child {
  margin-bottom: .5rem;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 999px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
  background-color: var(--success);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* File Input */
.banner-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}

.banner-upload-panel {
  border: 1px solid rgba(38, 129, 255, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(38, 129, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.banner-upload-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(38, 129, 255, 0.2));
}

.banner-upload-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: .8rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid rgba(38, 129, 255, 0.12);
}

.banner-upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.banner-upload-icon i { font-size: 1.25rem; }

.banner-upload-icon-mobile {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.banner-upload-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.banner-upload-copy span {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

.banner-upload-copy small {
  color: var(--muted);
  font-size: .75rem;
}

.banner-upload-panel .badge {
  margin-top: .2rem;
  margin-bottom: .5rem;
}

.file-input-wrapper {
  margin-top: .5rem;
}

.file-input-wrapper input[type="file"] {
  padding: .6rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  background: #fff;
  cursor: pointer;
}

.file-input-wrapper input[type="file"]::file-selector-button {
  margin-right: .75rem;
  padding: .4rem .75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  transition: background .2s;
}

.file-input-wrapper input[type="file"]::file-selector-button:hover {
  background: var(--primary-dark);
}

/* Current Image Preview */
.current-image {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(38, 129, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.current-image p {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--muted);
}

.current-image img {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Table Card */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: visible;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.table-card-header h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.table-card-header h3 i { color: var(--primary); }

.table-count {
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg);
  padding: .3rem .75rem;
  border-radius: 999px;
}

/* Table Improvements */
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table thead { background: var(--bg); }
.table th {
  padding: .85rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfc; }

.row-active td { background: rgba(16, 185, 129, 0.02); }
.row-inactive td { opacity: 0.6; }

/* Cell Thumb */
.cell-thumb { width: 80px; }
.cell-thumb img {
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.thumb-placeholder {
  width: 70px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1.2rem;
}

/* Cell Order */
.cell-order {
  font-weight: 600;
  color: var(--muted);
  font-size: .9rem;
}

/* Cell Actions */
.cell-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
}
.badge i { font-size: .8rem; }
.badge-green { background: var(--success-soft); color: #059669; }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-gray { background: var(--bg); color: var(--muted); }

/* Share Toast Notification */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-toast::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.badge-yellow { background: var(--warning-soft); color: #d97706; }

/* Link External */
.link-external {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--primary);
  font-size: .85rem;
  text-decoration: none;
}
.link-external:hover { text-decoration: underline; }

/* Text Muted */
.text-muted { color: var(--muted); font-size: .85rem; }

/* Empty State */
.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: .75rem;
  opacity: 0.4;
}
.empty-state p { margin: 0; font-size: .95rem; }

/* Form Delete */
.form-delete { display: inline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.btn i { font-size: 1rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg); border-color: var(--muted); }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-sm i { font-size: .9rem; }

/* ============================================
   RESPONSIVE - NEW HEADER
   ============================================ */

/* Tablet: esconde endereço, mantém busca */
@media (max-width: 980px) {
  .header-location {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.75rem;
  }

  .logo-tagline {
    display: none;
  }
}

/* Mobile: layout reorganizado - logo+whatsapp topo, endereço abaixo, busca+filtro abaixo */
@media (max-width: 768px) {
  .header-main {
    padding: 0.6rem 0.75rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo whatsapp"
      "location location"
      "search search";
    gap: 0.5rem;
    align-items: center;
  }

  .header-logo {
    grid-area: logo;
  }

  .header-logo .logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .header-whatsapp {
    grid-area: whatsapp;
    padding: 0.55rem 0.75rem;
    font-size: 0;
    border-radius: 10px;
    gap: 0;
  }

  .header-whatsapp svg {
    width: 20px;
    height: 20px;
  }

  .header-location {
    grid-area: location;
    display: flex;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
  }

  .header-location:hover {
    background: rgba(255,255,255,0.15);
  }

  .header-location .location-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .search-filter-wrapper {
    grid-area: search;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: visible;
    align-self: start;
    position: relative;
    z-index: 30;
  }

  .header-search {
    display: flex;
    justify-content: center;
    min-height: 48px;
    height: 48px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    align-items: stretch;
  }

  .header-search-toggle {
    display: none;
  }

  .header-search .search-input-wrap {
    flex: 1;
    max-width: 100%;
    margin: 0;
    padding: 0 0.5rem 0 0.7rem;
    min-height: 48px;
    height: 48px;
  }

  .filter-btn {
    height: 48px;
    min-width: 92px;
  }

  .search-btn {
    width: 42px;
    max-width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    height: 48px;
    border-radius: 0 12px 12px 0;
  }

  .search-input {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }


  .logo-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header-main {
    padding: 0.5rem 0.65rem;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .logo-name {
    font-size: 0.9rem;
  }

  .logo-text {
    display: none;
  }

  .header-location {
    padding: 0.4rem 0.65rem;
    min-height: 36px;
  }

  .header-location .location-value {
    font-size: 0.72rem;
  }

  .header-search {
    min-height: 42px;
  }

  .filter-btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    min-height: 42px;
  }

  .filter-label {
    max-width: 50px;
  }
}

/* ============================================
   PREMIUM DASHBOARD STYLES - ELEGANT & MODERN
   ============================================ */

/* Dashboard Hero Header (Compact) */
.dashboard-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 50%, #0a1929 100%);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 25, 41, 0.25);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(38, 129, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dashboard-hero-text h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-hero-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.6;
}

.dashboard-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-badge i {
  font-size: 1rem;
}

.hero-badge--success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
}

.hero-badge--warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Dashboard Stats Grid - Premium Cards (Compact) */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #5b9fff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: transparent;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card--blue::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.stat-card--green::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.stat-card--purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.stat-card--orange::before { background: linear-gradient(90deg, #f97316, #fb923c); }

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-card--blue .stat-icon { background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05)); color: #2563eb; }
.stat-card--green .stat-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)); color: #16a34a; }
.stat-card--purple .stat-icon { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05)); color: #7c3aed; }
.stat-card--orange .stat-icon { background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.05)); color: #f97316; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Top Products Card */
.top-products-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* ============================================
   METRICS SECTION - Dashboard Grid
   ============================================ */
.metrics-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   ACTIVITY CARD - Recent Activity Feed
   ============================================ */
.activity-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.activity-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.activity-title i {
  font-size: 1.25rem;
  color: var(--primary);
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(38, 129, 255, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.activity-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(38, 129, 255, 0.05);
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-icon--blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.activity-icon--green { background: rgba(16, 185, 129, 0.1); color: #16a34a; }
.activity-icon--purple { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.activity-icon--orange { background: rgba(251, 146, 60, 0.1); color: #f97316; }

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.25rem;
}

.activity-text strong {
  font-weight: 700;
}

.activity-time {
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.activity-time i {
  font-size: 0.85rem;
}

/* ============================================
   CHART CARD - Bar Chart Visualization
   ============================================ */
.chart-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.chart-title i {
  font-size: 1.25rem;
  color: var(--primary);
}

.chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  color: #16a34a;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chart-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chart-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-bar {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.6rem;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 45px;
  max-width: 85%;
}

.chart-bar--blue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.chart-bar--green { background: linear-gradient(90deg, #16a34a, #22c55e); }
.chart-bar--purple { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.chart-bar--orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.chart-bar--cyan { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.chart-bar--pink { background: linear-gradient(90deg, #db2777, #ec4899); }

.chart-bar-value {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.chart-bar-label {
  width: 55px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  text-align: right;
}

/* ============================================
   STAT TREND INDICATORS
   ============================================ */
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.stat-trend--up {
  background: rgba(16, 185, 129, 0.1);
  color: #16a34a;
}

.stat-trend--down {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.stat-trend i {
  font-size: 0.85rem;
}

/* ============================================
   QUICK ACTIONS CARD
   ============================================ */
.quick-actions-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.quick-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quick-actions-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.quick-actions-title i {
  font-size: 1.25rem;
  color: var(--primary);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.quick-action-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(38, 129, 255, 0.15);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.quick-action-btn:hover .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-icon--blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.quick-action-icon--green { background: rgba(16, 185, 129, 0.1); color: #16a34a; }
.quick-action-icon--purple { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.quick-action-icon--orange { background: rgba(251, 146, 60, 0.1); color: #f97316; }

.quick-action-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ============================================
   STATUS INDICATORS
   ============================================ */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-indicator--online {
  background: rgba(16, 185, 129, 0.1);
  color: #16a34a;
}

.status-indicator--online::before {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-indicator--offline {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.status-indicator--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-section {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-hero-badge {
    align-items: flex-start;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-bar-label {
    width: 80px;
    font-size: 0.75rem;
  }
}

.top-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.top-products-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-products-title h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.top-products-title i {
  font-size: 1.25rem;
  color: var(--primary);
}

.top-products-badge {
  padding: 0.4rem 0.85rem;
  background: rgba(38, 129, 255, 0.08);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.top-product-item:hover {
  background: rgba(38, 129, 255, 0.05);
  transform: translateX(4px);
}

.product-rank {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.product-rank--gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.product-rank--silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.product-rank--bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.product-rank--default { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.product-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #5b9fff);
  transition: width 0.8s ease;
}

.product-clicks {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Quick Actions Card */
.quick-actions-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.quick-actions-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quick-actions-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.quick-actions-header i {
  font-size: 1.25rem;
  color: var(--primary);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-action-btn:hover {
  background: var(--primary-soft);
  border-color: rgba(38, 129, 255, 0.2);
  transform: translateY(-2px);
}

.quick-action-btn i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.quick-action-btn:hover i {
  transform: scale(1.1);
}

.quick-action-btn span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Activity Chart Card */
.activity-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 2rem;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.activity-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.activity-title h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.activity-title i {
  font-size: 1.25rem;
  color: var(--primary);
}

.activity-period {
  display: flex;
  gap: 0.5rem;
}

.period-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.period-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* CSS-only Activity Chart */
.activity-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding: 1rem 0;
  gap: 0.75rem;
}

.activity-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.activity-bar-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.activity-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(38, 129, 255, 0.4) 100%);
  border-radius: 6px 6px 0 0;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
}

.activity-bar:hover {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.activity-bar::before {
  content: attr(data-value);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.activity-bar:hover::before {
  opacity: 1;
}

.activity-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-hero {
    padding: 1.75rem 1.25rem;
  }
  
  .dashboard-hero-content {
    flex-direction: column;
  }
  
  .dashboard-hero-badge {
    align-items: flex-start;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-chart {
    height: 150px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}