/* ==========================================================================
   Proofly — Clean Monochrome Design System & Responsive Stylesheet
   Theme: Obsidian Slate, Indigo Accent & Pure White Surfaces (No Gradients)
   Typography: Plus Jakarta Sans & JetBrains Mono
   ========================================================================== */

:root {
  /* Color Palette — Solid Monochrome & Slate */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-muted: #E2E8F0;

  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-focus: #1E1B4B;

  /* App Brand Identity Colors */
  --primary: #1E1B4B;           /* Proofly Obsidian Slate */
  --primary-hover: #312E81;     /* Dark Indigo on hover */
  --primary-active: #0F172A;
  --accent: #4F46E5;            /* Electric Indigo */
  --accent-subtle: #EEF2FF;
  --accent-border: #C7D2FE;

  /* State Badges */
  --success: #0F766E;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;

  --warning: #B45309;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;

  --danger: #BE123C;
  --danger-bg: #FFF1F2;
  --danger-border: #FECDD3;

  /* Typography Hierarchy */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;

  /* Subtle Crisp Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.07), 0 4px 10px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header & Navigation (Ultra Responsive)
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-name {
  color: var(--text-main);
  font-weight: 800;
}

/* Badges */
.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.amoy-badge {
  background: var(--bg-subtle);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.verified-badge {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot-success {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* Navigation Links */
.nav-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 20px;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.nav-btn.active {
  background: var(--bg-subtle);
  color: var(--primary);
  border-color: var(--border-color);
  font-weight: 700;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-download-btn {
  color: var(--primary) !important;
  font-weight: 700;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background: var(--bg-subtle);
}

/* ==========================================================================
   Buttons & Core Controls (No Gradients — Solid, Crisp Fills)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

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

.btn-primary:active {
  background: var(--primary-active);
  transform: translateY(1px);
}

.btn-outline {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 6px;
}

/* ==========================================================================
   Main Layout & Hero Section
   ========================================================================== */

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-section {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.highlight-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Verification Box & Search Input
   ========================================================================== */

.verification-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 28px;
}

.search-bar {
  display: flex;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  align-items: center;
  transition: all 0.15s ease;
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(30, 27, 75, 0.06);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-left: 10px;
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-sans);
  padding: 6px 0;
}

.search-bar input::placeholder {
  color: var(--text-dim);
}

.btn-search {
  padding: 10px 20px;
  flex-shrink: 0;
}

/* Drag & Drop Zone */
.drop-zone {
  border: 1.5px dashed var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.drop-zone:hover {
  border-color: var(--primary);
  background: var(--bg-subtle);
}

.drop-zone-icon {
  color: var(--primary);
}

.drop-zone-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.drop-zone-text strong {
  font-size: 13.5px;
  color: var(--text-main);
}

.drop-zone-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Live Target QR Card */
.live-target-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.live-target-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-target-qr {
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-target-info {
  text-align: left;
}

.live-target-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 3px 0 2px;
}

.live-target-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.cert-id-tag {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 3px;
}

.btn-copy-target {
  font-size: 12px;
  padding: 6px 12px;
}

/* ==========================================================================
   Verification Result Card (Dynamic)
   ========================================================================== */

.verify-result-card {
  margin-top: 24px;
  text-align: left;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.status-valid {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-invalid {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* ==========================================================================
   Issuer Portal & Shared Cards
   ========================================================================== */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.portal-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.portal-header-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.portal-header-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.org-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.org-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.org-logo-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--primary);
  flex-shrink: 0;
}

.org-profile-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

/* Stats Grid */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.stat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

/* Tables */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  background: var(--bg-subtle);
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-primary);
}

.empty-table-row {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   Claim Portal & App Bridging
   ========================================================================== */

.claim-container {
  max-width: 640px;
  margin: 0 auto;
}

.app-bridge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

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

.app-bridge-icon {
  background: var(--primary);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-bridge-left h4 {
  font-size: 14.5px;
  color: var(--text-main);
  font-weight: 700;
}

.app-bridge-left p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.app-bridge-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.claim-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 6px;
}

.claim-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.claim-input-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.claim-input-group input {
  flex: 1;
}

/* ==========================================================================
   Mobile Download Showcase
   ========================================================================== */

.download-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.download-hero-content {
  max-width: 520px;
}

.download-hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.download-hero-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-download-lg {
  padding: 12px 22px;
  font-size: 14px;
}

.version-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.download-qr-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 22px;
  text-align: center;
  border-radius: var(--radius-lg);
  max-width: 200px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.download-qr-box {
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.qr-sublabel {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.app-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.app-feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.app-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}

.app-feature-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.app-feature-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Modals & Forms
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.modal-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

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

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-main);
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(30, 27, 75, 0.06);
}

.auth-switch-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.footer-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
}

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet Optimization)
   ========================================================================== */

/* Tablets and below (< 960px) */
@media (max-width: 960px) {
  .hero-title {
    font-size: 32px;
  }

  .download-hero-title {
    font-size: 28px;
  }
}

/* Mobile & Small Tablets (< 768px) */
@media (max-width: 768px) {
  .nav-container {
    padding: 10px 16px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 16px;
    margin: 0;
    gap: 14px;
  }

  .nav-collapse.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 14px;
  }

  .nav-auth {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .nav-auth .btn {
    width: 100%;
  }

  .main-container {
    padding: 24px 16px 60px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .verification-box {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .download-hero {
    padding: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .download-actions {
    justify-content: center;
  }

  .portal-header-card,
  .org-profile-card,
  .app-bridge-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-header-card .btn,
  .org-profile-card .btn,
  .app-bridge-card .btn {
    width: 100%;
  }

  .org-profile-actions,
  .app-bridge-actions {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* Small Mobile (< 540px) */
@media (max-width: 540px) {
  .logo .badge {
    display: none;
  }

  .search-bar {
    flex-direction: column;
    padding: 8px;
    gap: 10px;
  }

  .search-input-wrapper {
    width: 100%;
    padding-left: 4px;
  }

  .btn-search {
    width: 100%;
  }

  .claim-input-group {
    flex-direction: column;
  }

  .claim-input-group .btn {
    width: 100%;
  }

  .live-target-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .live-target-left {
    flex-direction: column;
    text-align: center;
  }

  .live-target-info {
    text-align: center;
  }

  .btn-copy-target {
    width: 100%;
  }

  .modal-card {
    padding: 20px;
  }
}
