/* ==========================================================
   PAYDOLLER CUSTOMER APP & ADMIN DASHBOARD ENHANCED STYLES
   Ultra-responsive mobile-first fintech & P2P Escrow UI
   ========================================================== */

/* Main Container Frame */
.app-viewport {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Super Admin Impersonation Banner */
.impersonation-banner {
  background: linear-gradient(90deg, #d97706, #dc2626);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  gap: 10px;
  flex-wrap: wrap;
}

.impersonation-banner .imp-text {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.impersonation-banner .imp-btn {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
  border-radius: 6px;
}

/* ==========================================================
   APP HEADER
   ========================================================== */
.app-header {
  padding: 14px 20px;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo i {
  color: var(--accent-cyan);
  font-size: 21px;
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}

.wallet-pill {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.wallet-pill i {
  color: #34d399;
  font-size: 13px;
}

.user-display-name {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* ==========================================================
   APP CONTENT AREA
   ========================================================== */
.app-content {
  flex: 1;
  padding: 20px 20px 80px 20px;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================
   APP NAVIGATION DOCK & TABS
   ========================================================== */
.app-nav-dock {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.app-nav-dock::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.nav-tab .nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-tab i {
  font-size: 15px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-tab .tab-label .label-short {
  display: none;
}

.nav-tab .tab-label .label-full {
  display: inline;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.nav-tab.active i {
  color: #ffffff;
}

.tab-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* ==========================================================
   BALANCE & FX BANNER
   ========================================================== */
.balance-banner {
  background: linear-gradient(135deg, #131d33 0%, #0c1222 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.balance-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.balance-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.balance-val {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.balance-inr {
  font-size: 14px;
  color: #34d399;
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.balance-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* ==========================================================
   ORDER CARDS GRID & ITEM STYLING
   ========================================================== */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  width: 100%;
}

.order-card {
  background: linear-gradient(135deg, rgba(21, 30, 50, 0.85) 0%, rgba(13, 20, 36, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 14px;
}

.order-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(56, 189, 248, 0.2);
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.seller-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.seller-name {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.seller-tags {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  gap: 10px;
}

.price-item .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-item .val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.price-item.inr .val {
  color: #38bdf8;
}

/* Section & Tab Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tab-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.trade-summary-card {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.trade-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 10px;
}

/* Sub-tabs Bar for My Orders */
.orders-subtabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.orders-subtabs-bar .subtab-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.orders-subtabs-bar .subtab-text-short {
  display: none;
}

.orders-subtabs-bar .subtab-text-full {
  display: inline;
}

/* ==========================================================
   FORM & GRID ELEMENTS
   ========================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.callout {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.callout-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #7dd3fc;
}

.callout-info i {
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* Trade Countdown Banner */
.trade-countdown-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #fbbf24;
  gap: 12px;
}

.countdown-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Payment Details Box */
.payment-details-box {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
  flex-wrap: wrap;
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-row .lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-cyan);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
}

/* Admin Dashboard Elements */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
}

.admin-stat-card .title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-card .val {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 6px;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.app-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 14px;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
}

.app-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.app-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================
   NOTIFICATIONS SYSTEM
   ========================================================== */
.notif-bell-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notif-bell-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
  transform: scale(1.05);
}

.notif-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #f43f5e;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.9);
  border: 1.5px solid #0f172a;
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 14px rgba(244, 63, 94, 1); }
}

.notif-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.15);
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
  overflow: hidden;
}

.notif-dropdown.active {
  display: block;
}

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.95);
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.2s ease;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
  background: rgba(37, 99, 235, 0.1);
}

.notif-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.notif-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.notif-msg {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================
   PROOF THUMBNAILS & INSPECTION
   ========================================================== */
.proof-thumbnail-card {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.proof-img-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.proof-img-thumb:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
}

.proof-large-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #020617;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 10px 0;
  cursor: zoom-in;
}

.buyer-credentials-grid {
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.buyer-cred-item .lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.buyer-cred-item .val {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.utr-highlight-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  gap: 10px;
}

.utr-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  word-break: break-all;
}

.verification-checklist {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #fbbf24;
  margin: 12px 0;
  line-height: 1.5;
}

/* ==========================================================
   ENHANCED LIGHTBOX VIEWER & CLICKABLE PREVIEWS
   ========================================================== */
.clickable-preview {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.clickable-preview:hover {
  transform: scale(1.04);
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.lightbox-content-box {
  position: relative;
  max-width: 95vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(13, 20, 36, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(6, 182, 212, 0.25);
  animation: zoomInLight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.lightbox-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #fb7185;
  transform: scale(1.1);
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lightbox-img-wrapper img {
  max-width: 88vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-footer-hint {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

@keyframes zoomInLight {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================
   RESPONSIVE MOBILE BREAKPOINTS (< 768px)
   Native App APK Navigation & Spacing
   ========================================================== */
@media (max-width: 768px) {
  /* Safe viewports & padding */
  .app-viewport {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-header {
    padding: 10px 14px;
    gap: 8px;
  }

  .brand-logo {
    font-size: 16px;
    gap: 7px;
  }

  .brand-logo i {
    font-size: 18px;
  }

  .user-snippet {
    gap: 7px;
  }

  .user-display-name {
    display: none; /* Hide in compact mobile header to prevent horizontal overflow */
  }

  .wallet-pill {
    padding: 5px 9px;
    font-size: 11.5px;
    gap: 5px;
  }

  .btn-logout {
    width: 32px;
    height: 32px;
  }

  .notif-bell-btn {
    width: 32px;
    height: 32px;
  }

  .app-content {
    padding: 14px 12px calc(80px + env(safe-area-inset-bottom, 0px)) 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Bottom Fixed App Navigation Dock */
  .app-nav-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-bottom: 0;
    z-index: 999;
    border-radius: 18px 18px 0 0;
    background: rgba(10, 16, 30, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .nav-tab {
    flex: 1;
    min-width: 0;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    background: transparent;
  }

  .nav-tab .nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-tab i {
    font-size: 17px;
  }

  .nav-tab .tab-label {
    display: block;
    max-width: 100%;
    text-align: center;
  }

  .nav-tab .tab-label .label-full {
    display: none;
  }

  .nav-tab .tab-label .label-short {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-tab.active {
    background: rgba(37, 99, 235, 0.16);
    color: #38bdf8;
    box-shadow: none;
  }

  .nav-tab.active i {
    color: #38bdf8;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
  }

  .nav-tab.active .tab-label .label-short {
    color: #ffffff;
    font-weight: 800;
  }

  .tab-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    font-size: 8.5px;
    padding: 1px 4px;
  }

  /* Balance Banner Responsive Layout */
  .balance-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }

  .balance-val {
    font-size: 26px;
  }

  .balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .balance-actions .btn {
    width: 100%;
    padding: 11px 12px;
    font-size: 12.5px;
    justify-content: center;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-title {
    font-size: 16px;
  }

  .tab-header-flex {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Grids and Cards */
  .orders-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-card {
    padding: 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Orders Sub-tabs bar (3 tabs) */
  .orders-subtabs-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .orders-subtabs-bar .subtab-btn {
    padding: 7px 4px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .orders-subtabs-bar .subtab-btn i {
    font-size: 13px;
  }

  .orders-subtabs-bar .subtab-text-full {
    display: none;
  }

  .orders-subtabs-bar .subtab-text-short {
    display: inline;
  }

  /* Modals on Mobile */
  .modal-container {
    padding: 18px 16px;
    max-width: 95vw;
    border-radius: 16px;
  }

  .buyer-credentials-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  /* Glass cards padding */
  .glass-card {
    padding: 18px 16px !important;
  }

  /* Notifications dropdown positioning */
  .notif-dropdown {
    right: -10px;
    width: 320px;
  }
}

/* Very Small Mobile (< 380px) */
@media (max-width: 380px) {
  .app-header {
    padding: 8px 10px;
  }

  .brand-logo #app-brand-title {
    font-size: 14px;
  }

  .wallet-pill {
    padding: 4px 7px;
    font-size: 11px;
  }

  .nav-tab .tab-label .label-short {
    font-size: 9px;
  }

  .nav-tab i {
    font-size: 15px;
  }
}

/* Micro Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
