/* ========================================================
   nfqard — Main Stylesheet (Modern Acrylic & Clean Tech)
   Consolidated & Optimized Vanilla CSS — Fast & 100% Responsive
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --midnight-blue: #0d223a;
  --forest-green:  #1b4d3e;
  --amber:         #d97706;
  --crimson:       #991b1b;
  --gradient-acrylic: linear-gradient(135deg, #0d223a 0%, #1b4d3e 35%, #d97706 68%, #991b1b 100%);
  --gradient-btn:     linear-gradient(135deg, #0d223a 0%, #153354 100%);
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-acrylic: rgba(255, 255, 255, 0.88);
  --border-card: rgba(13, 34, 58, 0.12);
  --border-focus: #d97706;
  --text-primary: #0d223a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --shadow-sm: 0 2px 8px rgba(13, 34, 58, 0.05);
  --shadow-card: 0 10px 30px rgba(13, 34, 58, 0.07);
  --shadow-hover: 0 16px 36px rgba(13, 34, 58, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-page);
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(13, 34, 58, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(217, 119, 6, 0.04) 0%, transparent 40%);
}

/* Typography & Links */
h1, h2, h3, h4, .font-heading {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}
a { color: var(--amber); text-decoration: none; font-weight: 600; transition: color 0.15s ease; }
a:hover { color: #b45309; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Signature Acrylic 3-Color Divider */
.acrylic-divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0.75rem auto 1.5rem auto; }
.acrylic-divider span { height: 4px; border-radius: 9999px; display: inline-block; }
.acrylic-divider .seg-green { width: 32px; background: var(--forest-green); }
.acrylic-divider .seg-amber { width: 48px; background: var(--amber); }
.acrylic-divider .seg-red   { width: 32px; background: var(--crimson); }

/* Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky; top: 0; z-index: 100;
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.brand-logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 900;
  color: var(--midnight-blue); text-decoration: none; letter-spacing: -0.02em;
}
.brand-badge {
  background: var(--gradient-acrylic); color: #ffffff;
  font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm); letter-spacing: 0.05em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 1rem; list-style: none; }
.nav-link {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); transition: all 0.18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--midnight-blue); background: rgba(13, 34, 58, 0.05); }

/* Auth Cards & Layouts */
.auth-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--bg-surface);
  border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  padding: 2.25rem 2rem; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-acrylic);
}
.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-header h1 { font-size: 1.55rem; margin-bottom: 0.35rem; color: var(--midnight-blue); }
.auth-header p { color: var(--text-secondary); font-size: 0.88rem; }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.75rem 0.95rem; background: #ffffff;
  border: 1.5px solid #cbd5e1; border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus { outline: none; border-color: var(--midnight-blue); box-shadow: 0 0 0 3px rgba(13, 34, 58, 0.1); }
.form-control::placeholder { color: var(--text-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1.35rem; font-size: 0.92rem; font-weight: 700; font-family: inherit;
  border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent;
  transition: all 0.18s ease; text-decoration: none;
}
.btn-primary { background: var(--midnight-blue); color: #ffffff; box-shadow: 0 4px 12px rgba(13, 34, 58, 0.18); }
.btn-primary:hover { background: #153354; color: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13, 34, 58, 0.25); }
.btn-secondary { background: #ffffff; border-color: #cbd5e1; color: var(--text-primary); }
.btn-secondary:hover { background: #f1f5f9; border-color: #94a3b8; color: var(--text-primary); }
.btn-amber { background: var(--amber); color: #ffffff; }
.btn-amber:hover { background: #b45309; color: #ffffff; }
.btn-block { width: 100%; }

/* Alerts */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.alert-danger  { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }

/* Dashboard Cards & Layout */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: all 0.2s ease; position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--midnight-blue); }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--midnight-blue); }
.stat-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.35rem; }
.stat-value { font-family: 'Montserrat', sans-serif; font-size: 1.85rem; font-weight: 900; color: var(--midnight-blue); }
.info-box {
  margin-top: 2rem; padding: 1.75rem; background: var(--bg-surface);
  border: 1px solid var(--border-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.info-box h3 { font-size: 1.15rem; color: var(--midnight-blue); margin-bottom: 0.75rem; }

/* Tables & Data Displays */
.table-responsive {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg-surface); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.88rem; }
.data-table th {
  background: #f8fafc; color: var(--midnight-blue); font-weight: 700; text-transform: uppercase;
  font-size: 0.74rem; letter-spacing: 0.05em; padding: 0.85rem 1rem; border-bottom: 2px solid var(--border-card); white-space: nowrap;
}
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-card); color: var(--text-secondary); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background-color: #f8fafc; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 700;
  padding: 0.22rem 0.6rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.03em; border: 1px solid transparent;
}
.badge-available { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-assigned  { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-active    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-inactive  { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.badge-blocked   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge-sold      { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
.badge-returned  { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.badge-damaged   { background: #fff1f2; color: #be123c; border-color: #fecdd3; }

/* Filter & Page Headers */
.filter-bar {
  background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.page-title { font-size: 1.65rem; margin-bottom: 0.25rem; color: var(--midnight-blue); }
.page-subtitle { color: var(--text-secondary); font-size: 0.9rem; }

/* Modals & Footer */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13, 34, 58, 0.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #ffffff; border-radius: var(--radius-md); max-width: 500px; width: 100%;
  padding: 1.75rem; box-shadow: var(--shadow-hover); position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-card); padding-bottom: 0.75rem; }
footer {
  border-top: 1px solid var(--border-card); background: #ffffff; padding: 1.5rem 0;
  text-align: center; color: var(--text-muted); font-size: 0.84rem; margin-top: auto;
}

/* ========================================================
   Public Bio-Link & Digital Card (Acrylic Theme)
   ======================================================== */
.bio-wrapper { width: 100%; max-width: 640px; margin: 0 auto; padding: 2rem 1.25rem 4rem 1.25rem; }
.bio-card {
  background: var(--bg-surface); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 2.25rem 1.75rem; position: relative; overflow: hidden;
}
.bio-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--gradient-acrylic); }
.bio-header { text-align: center; margin-bottom: 1.75rem; }
.bio-avatar-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 1.25rem auto; }
.bio-avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(13, 34, 58, 0.15); background: #f1f5f9;
}
.bio-avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%; background: var(--gradient-btn); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif;
  font-size: 2rem; font-weight: 800; border: 3px solid #ffffff; box-shadow: 0 4px 16px rgba(13, 34, 58, 0.15);
}
.bio-title {
  font-size: 1.55rem; color: var(--midnight-blue); margin-bottom: 0.35rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.bio-verified-badge {
  display: inline-flex; align-items: center; background: #eff6ff; color: #2563eb;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid #bfdbfe;
}
.bio-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; max-width: 480px; margin: 0 auto 1rem auto; }
.bio-meta-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.85rem;
  font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem;
}
.bio-meta-item {
  display: inline-flex; align-items: center; gap: 0.35rem; background: #f8fafc;
  padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid rgba(13, 34, 58, 0.08);
}

/* Bio Buttons (Action Links) */
.bio-links-list { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.bio-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1.25rem; border-radius: var(--radius-md); text-decoration: none;
  font-weight: 700; font-size: 0.95rem; border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: var(--shadow-sm); background: #ffffff;
}
.bio-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.bio-btn-icon-wrap { display: flex; align-items: center; gap: 0.85rem; }
.bio-btn-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.bio-btn-wa      { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.bio-btn-wa .bio-btn-icon { background: #22c55e; color: #ffffff; }
.bio-btn-review  { border-color: #fde68a; color: #854d0e; background: #fefce8; }
.bio-btn-review .bio-btn-icon { background: #eab308; color: #ffffff; }
.bio-btn-ig      { border-color: #fbcfe8; color: #9d174d; background: #fdf2f8; }
.bio-btn-ig .bio-btn-icon { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #ffffff; }
.bio-btn-maps    { border-color: #bfdbfe; color: #1e40af; background: #eff6ff; }
.bio-btn-maps .bio-btn-icon { background: #3b82f6; color: #ffffff; }
.bio-btn-tiktok  { border-color: #e2e8f0; color: #0f172a; background: #f8fafc; }
.bio-btn-tiktok .bio-btn-icon { background: #000000; color: #ffffff; }
.bio-btn-custom  { border-color: rgba(13, 34, 58, 0.15); color: var(--midnight-blue); background: #ffffff; }
.bio-btn-custom .bio-btn-icon { background: var(--midnight-blue); color: #ffffff; }

/* Bio Section Titles & Content Cards */
.bio-section-title {
  font-size: 1.15rem; color: var(--midnight-blue); margin: 1.75rem 0 1rem 0;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #f1f5f9; padding-bottom: 0.6rem;
}
.bio-highlight-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 1rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bio-highlight-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.bio-highlight-img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.bio-highlight-body { padding: 1.25rem; }

.bio-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.bio-product-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.bio-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.bio-product-img { width: 100%; height: 180px; object-fit: cover; background: #f8fafc; }
.bio-product-body { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.bio-product-title { font-size: 1rem; font-weight: 700; color: var(--midnight-blue); margin-bottom: 0.35rem; }
.bio-product-price { font-weight: 800; color: var(--amber); font-size: 1.05rem; margin-bottom: 0.5rem; }

/* Status Fallback Card */
.status-card {
  max-width: 520px; margin: 3.5rem auto; background: #ffffff; border-radius: var(--radius-lg);
  border: 1px solid var(--border-card); box-shadow: var(--shadow-card); padding: 2.5rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.status-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--gradient-acrylic); }
.status-icon {
  width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; margin: 0 auto 1.25rem auto;
}

/* Gateway Feature Cards */
.gateway-cards-grid { display: flex; flex-direction: column; gap: 1rem; margin: 1.75rem 0; }
.gateway-card {
  display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.4rem;
  background: #ffffff; border: 1.5px solid var(--border-card); border-radius: var(--radius-md);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.gateway-card:hover { transform: translateY(-2px); border-color: var(--midnight-blue); box-shadow: var(--shadow-hover); }
.gateway-card.featured-highlight {
  background: linear-gradient(135deg, #0d223a 0%, #1e293b 100%); color: #ffffff;
  border-color: #0d223a; box-shadow: 0 4px 14px rgba(13, 34, 58, 0.16);
}
.gateway-card.featured-highlight .gateway-card-title { color: #ffffff; }
.gateway-card.featured-highlight .gateway-card-subtitle { color: #cbd5e1; }
.gateway-card.featured-highlight .gateway-card-icon { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.gateway-card.featured-highlight .gateway-card-arrow { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.gateway-card.featured-products { background: #ffffff; border: 1.5px solid var(--border-card); color: var(--midnight-blue); }
.gateway-card.featured-products .gateway-card-icon { background: rgba(13, 34, 58, 0.06); color: var(--midnight-blue); }

.gateway-card-badge-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; }
.gateway-pill-label {
  display: inline-block; padding: 0.12rem 0.45rem; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; background: rgba(245, 158, 11, 0.25); color: #fbbf24; letter-spacing: 0.03em;
}
.gateway-card-left { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.gateway-card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: #f1f5f9; color: var(--midnight-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gateway-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.gateway-card-subtitle { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; word-break: break-word; }
.gateway-card-arrow {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(13, 34, 58, 0.05); color: var(--midnight-blue);
  transition: transform 0.2s ease; flex-shrink: 0;
}
.gateway-card.featured .gateway-card-arrow { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.gateway-card:hover .gateway-card-arrow { transform: translateX(4px); }

/* Category Filter Tabs & Search Bar */
.category-filter-bar {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.85rem 0;
  margin-bottom: 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.category-filter-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: #ffffff; border: 1px solid var(--border-card); color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; transition: all 0.18s ease; user-select: none;
}
.cat-pill:hover { background: #f8fafc; color: var(--midnight-blue); border-color: #cbd5e1; }
.cat-pill.active { background: var(--midnight-blue); color: #ffffff; border-color: var(--midnight-blue); box-shadow: 0 2px 8px rgba(13, 34, 58, 0.2); }

.catalog-search-wrap { position: relative; margin-bottom: 1.25rem; }
.catalog-search-input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.6rem; font-size: 0.92rem;
  border: 1.5px solid #cbd5e1; border-radius: 999px; background: #ffffff;
  color: var(--text-primary); font-family: inherit; transition: all 0.2s ease;
}
.catalog-search-input:focus { outline: none; border-color: var(--midnight-blue); box-shadow: 0 0 0 3px rgba(13, 34, 58, 0.1); }
.catalog-search-icon {
  position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none; display: flex;
}

/* Responsiveness */
.nav-brand-row { display: flex; align-items: center; justify-content: space-between; }
.nav-lang-mobile { display: none; }
.nav-lang-desktop { display: inline-flex; }
.nav-menu-row { display: flex; align-items: center; gap: 1rem; }
.edit-device-grid { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 2rem; align-items: start; }
.edit-business-grid { display: grid; grid-template-columns: 2fr 1.2fr; gap: 2rem; align-items: start; }

@media (max-width: 768px) {
  .dashboard-tables { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .edit-device-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .edit-business-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav-container { flex-direction: column; gap: 0.65rem; }
  .nav-brand-row { width: 100%; }
  .nav-lang-mobile { display: inline-flex; }
  .nav-lang-desktop { display: none; }
  .nav-menu-row { width: 100%; justify-content: center; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 0.4rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

