:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.12);

  --bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  
  /* Clean & Elegant Sidebar Tokens */
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-text: #64748b;
  --sidebar-text-hover: #0f172a;
  --sidebar-hover-bg: #f8fafc;
  --sidebar-active-bg: #eef2ff;
  --sidebar-active-text: #4f46e5;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #0ea5e9;
  --info-bg: #f0f9ff;

  --fb-color: #1877f2;
  --ig-color: #e1306c;
  --tt-color: #010101;
  --th-color: #000000;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Container */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   CLEAN & ELEGANT SIDEBAR
   ============================================================ */
.app-sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02);
}

/* Brand Header */
.sidebar-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.brand-name span {
  color: #4f46e5;
}

.brand-badge {
  font-size: 10px;
  background: var(--sidebar-active-bg);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

/* Navigation Scroll Area */
.sidebar-menu {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.menu-group {
  margin-bottom: 20px;
}

.menu-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  padding: 0 10px;
  margin-bottom: 6px;
}

/* Menu Items */
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.15s ease;
  position: relative;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.menu-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item:hover {
  background-color: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.menu-item:hover .menu-icon {
  color: var(--sidebar-text-hover);
}

.menu-item.active {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.menu-item.active .menu-icon {
  color: var(--sidebar-active-text);
}

/* Sub Menu: Platform Channels */
.sub-menu-nav {
  margin: 4px 0 6px 14px;
  padding-left: 12px;
  border-left: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sub-menu-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding: 4px 8px;
}

.sub-menu-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sub-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.sub-menu-link:hover {
  background-color: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.sub-menu-link:hover .sub-icon {
  color: var(--sidebar-text-hover);
}

.sub-menu-link.active {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.sub-menu-link.active .sub-icon {
  color: var(--sidebar-active-text);
}

/* Sidebar Footer Profile Area */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafbfc;
  gap: 8px;
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--sidebar-active-bg);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.user-meta {
  min-width: 0;
  overflow: hidden;
}

.user-info-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.user-info-role {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

.logout-form {
  margin: 0;
}

.btn-logout-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--sidebar-border);
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout-icon:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* ============================================================
   MAIN CONTENT AREA & TOPBAR
   ============================================================ */
.app-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.app-header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--card-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.btn-menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: #64748b;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-menu-toggle:hover {
  background: #f8fafc;
  color: #0f172a;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

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

.token-balance-widget {
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.token-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-weight: 500;
}

.token-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
}

.btn-topup-sm {
  background: #f59e0b;
  color: white;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.15s;
}

.btn-topup-sm:hover {
  background: #d97706;
}

.header-profile-link {
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.header-profile-link:hover {
  opacity: 0.85;
}

.user-avatar-header {
  width: 36px;
  height: 36px;
  font-size: 13px;
  border-radius: 9px;
}

/* Page Content */
.app-content {
  padding: 32px;
  flex: 1;
}

/* ============================================================
   CARDS, TABLES, BUTTONS, ALERTS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.metric-info h3 {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-top: 2px;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: white;
  border-color: var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover {
  background: #d97706;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tables */
.table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
}

.table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table tr:hover td {
  background-color: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background: var(--success-bg);
  color: #065f46;
}

.badge-warning {
  background: var(--warning-bg);
  color: #92400e;
}

.badge-danger {
  background: var(--danger-bg);
  color: #991b1b;
}

.badge-info {
  background: var(--info-bg);
  color: #075985;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-danger {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background: var(--info-bg);
  border: 1px solid #bae6fd;
  color: #0369a1;
}

/* Code block */
.code-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  overflow-x: auto;
  line-height: 1.6;
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
  font-size: 12px;
  color: #94a3b8;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: white;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.price-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.price-tokens {
  font-size: 14px;
  color: #4f46e5;
  font-weight: 700;
  margin-top: 4px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin: 18px 0 12px;
}

.price-features {
  list-style: none;
  margin: 20px 0;
  flex: 1;
}

.price-features li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .btn-menu-toggle {
    display: inline-flex;
  }

  .app-header {
    padding: 0 16px;
  }

  .app-content {
    padding: 20px 16px;
  }
}

/* ============================================================
   RESPONSIVE DESIGN SUITE (TABLET & MOBILE)
   ============================================================ */

/* Channel Header Component */
.channel-header-card {
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.channel-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.channel-details {
  flex: 1;
  min-width: 0;
}

.channel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.channel-title-row h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.channel-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  word-break: break-word;
}

.channel-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action-main {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-fb-primary {
  background: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}

.btn-fb-primary:hover {
  background: #166fe5 !important;
  transform: translateY(-1px);
}

.btn-ig-primary {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(220, 39, 67, 0.25);
}

.btn-ig-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-fb-primary {
  background: var(--fb-color);
  color: #ffffff;
  border: none;
}
.btn-fb-primary:hover {
  background: #166fe5;
}

.btn-ig-primary {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
}
.btn-ig-primary:hover {
  opacity: 0.95;
}

.btn-tt-primary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}
.btn-tt-primary:hover {
  background: #000000;
}

.btn-th-primary {
  background: #18181b;
  color: #ffffff;
  border: 1px solid #27272a;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25);
}
.btn-th-primary:hover {
  background: #09090b;
}

.channel-actions-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-sub {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Modals Modern Touch-Friendly Style */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .app-header {
    height: 58px;
    padding: 0 12px;
  }

  .header-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .page-title {
    font-size: 14.5px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .token-label {
    display: none;
  }

  .token-balance-widget {
    padding: 4px 8px;
    font-size: 11.5px;
    gap: 5px;
  }

  .btn-topup-sm {
    padding: 2px 6px;
    font-size: 10px;
  }

  .user-avatar-header {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 6px;
  }

  .app-content {
    padding: 14px 12px;
  }

  /* Channel Header on Mobile */
  .channel-header-card {
    padding: 16px 14px;
    gap: 14px;
    border-radius: 16px;
  }

  .channel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .channel-avatar svg {
    width: 22px;
    height: 22px;
  }

  .channel-title-row h2 {
    font-size: 17px;
  }

  .channel-subtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  .channel-actions-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-action-main {
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
    justify-content: center;
  }

  .channel-actions-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }

  .btn-action-sub {
    width: 100%;
    padding: 9px 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Accounts Grid */
  .accounts-grid {
    grid-template-columns: 1fr !important;
  }

  /* Omnichannel Creation */
  .create-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .platform-select-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .ai-assist-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Dashboard Metrics */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 14px 12px !important;
    gap: 10px !important;
  }

  .metric-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .metric-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .metric-info h3 {
    font-size: 12px !important;
  }

  .metric-value {
    font-size: 18px !important;
  }

  .metric-sub {
    font-size: 11px !important;
  }

  /* Filter Pills */
  .filter-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
  }

  .filter-pills-row .btn {
    flex-shrink: 0 !important;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
  }

  /* Modal Dialog on Mobile */
  .modal-dialog-box {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 420px) {
  .page-title {
    max-width: 110px;
    font-size: 14px;
  }

  .channel-actions-secondary {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Strict Layout Containment & Anti-Blowout */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.app-container {
  min-width: 0 !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.app-main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.app-content {
  min-width: 0 !important;
  max-width: 100% !important;
}

.card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}

