/* ===================================================================
   AI ESSENTIALS DARK THEME DESIGN SYSTEM
   Modern obsidian dark aesthetic with electric blue/cyan glow,
   subtle glassmorphism, and responsive typography.
=================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700 800;
  font-style: normal;
  font-display: block;
}

:root {
  /* Color Palette */
  --bg-main: #070913;
  --bg-surface: #0c1020;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(23, 34, 60, 0.85);
  --bg-input: rgba(10, 16, 32, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.35);
  --border-focus: #3b82f6;

  /* AI Essentials Electric Accents */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-on-primary: #ffffff;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Shadows & Glass */
  --glass-blur: blur(16px);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  --shadow-neon: 0 0 35px rgba(6, 182, 212, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #2563eb 0%, #1e1b4b 70%, transparent 100%);
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  bottom: 50px;
  left: -120px;
  background: radial-gradient(circle, #0284c7 0%, #064e3b 80%, transparent 100%);
}

.glow-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

/* App Container Layout */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: var(--glass-blur);
  z-index: 100;
}

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

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-cyan);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  backdrop-filter: var(--glass-blur);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 18px var(--primary-glow);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-dot.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Content Views */
.main-content {
  flex: 1;
  padding: 32px 0 60px;
}

.view-tab {
  display: none;
}

.view-tab.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.badge-dot-green {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Auth Cards (Student Portal) */
.auth-card-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.card-header {
  margin-bottom: 24px;
}

.step-indicator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.05rem;
  pointer-events: none;
  opacity: 0.7;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.input-with-icon input {
  padding-left: 44px;
}

input:focus,
select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.input-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Quick Demo Pills */
.quick-demo-accounts {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
}

.quick-demo-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pills-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-email-btn {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.demo-email-btn:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
  color: #ffffff;
}

/* In-App Dev OTP Banner */
.dev-otp-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px dashed rgba(59, 130, 246, 0.45);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.dev-otp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dev-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.dev-expiry {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dev-otp-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dev-code-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dev-otp-code {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
}

/* OTP Digits Input Group */
.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-digit {
  width: 54px;
  height: 60px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.74rem;
  border-radius: 6px;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Student Dashboard View */
.student-dashboard {
  animation: fadeIn 0.4s ease-out;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.student-profile-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 16px var(--primary-glow);
}

.student-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.student-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-verified {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(37, 99, 235, 0.2);
}

.cert-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1086 / 1448;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-preview-wrap:hover .cert-preview-img {
  transform: scale(1.02);
}

.cert-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cert-preview-wrap:hover .cert-zoom-overlay {
  opacity: 1;
}

.zoom-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-details-wrap {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-program-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cert-program-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.cert-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.cert-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.cert-secondary-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ===================================================================
   TAB 2: PUBLIC BACKGROUND VALIDATOR STYLES
=================================================================== */

.search-card {
  max-width: 720px;
  margin: 0 auto 36px;
}

.validator-search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.search-input-wrapper input {
  padding-left: 44px;
}

.quick-verify-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.pill-sample {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.pill-sample:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
  color: #ffffff;
}

/* Verification Result Container */
.verification-container {
  max-width: 1100px;
  margin: 0 auto;
}

.verification-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.verification-badge-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.verified-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.verified-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.3px;
}

.verified-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.verification-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.verify-details-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-key-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.meta-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.meta-cell.full-width {
  grid-column: span 2;
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.meta-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.meta-val-highlight {
  color: #60a5fa;
  font-family: var(--font-mono);
}

.audit-trail-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.audit-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.verify-preview-pane {
  background: #000000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.verify-preview-pane img {
  width: 100%;
  height: auto;
  display: block;
}

.verify-actions-bar {
  padding: 16px;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ===================================================================
   TAB 3: ADMIN STUDIO STYLES
=================================================================== */

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-heading {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.admin-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.text-accent { color: #34d399; }
.text-warning { color: #fbbf24; }
.text-blue { color: #60a5fa; }

.admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
}

.action-card {
  padding: 24px;
}

.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge-tag {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.card-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-subtext code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* Drag and Drop Zone */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}

.drop-prompt {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.highlight-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
}

.drop-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.upload-options {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.compact-form .form-row {
  display: flex;
  gap: 12px;
}

.compact-form .col-6 {
  flex: 1;
}

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

/* Admin Students Table */
.table-card {
  padding: 20px;
}

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

.table-controls {
  display: flex;
  gap: 10px;
}

.search-input-sm {
  width: 200px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.filter-select-sm {
  width: 140px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.table-responsive {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.modern-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.modern-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.cell-participant {
  display: flex;
  flex-direction: column;
}

.cell-name {
  font-weight: 700;
  color: var(--text-main);
}

.cell-email {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.cell-program-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-fullstack {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-media {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-rendered {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.table-actions {
  display: flex;
  gap: 6px;
}

/* Unique Certificate URL styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

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

.unique-url-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unique-url-link {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  transition: var(--transition);
}

.unique-url-link .cert-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: #38bdf8;
}

.unique-url-link .url-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unique-url-link:hover .cert-code {
  color: #60a5fa;
  text-decoration: underline;
}

.unique-url-link:hover .url-sub {
  color: #94a3b8;
}

.cert-unique-url-box {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cert-unique-url-box .url-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  white-space: nowrap;
}

.cert-unique-url-box .unique-link-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cert-unique-url-box .unique-link-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Calibrator Section */
.calibrator-card {
  padding: 24px;
}

.calibrator-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  margin-top: 16px;
}

.control-group {
  margin-bottom: 18px;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.control-group span {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.range-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.calibrator-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.calibrator-preview-pane {
  background: #000000;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calibrator-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.78rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-badge {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.calibrator-img-container {
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.calibrator-img-container img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

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

.modal-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-cert-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  padding: 3px 8px;
  border-radius: 4px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  background: #000000;
}

.modal-img-wrapper {
  max-width: 680px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.modal-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.9);
}

.modal-links, .modal-downloads {
  display: flex;
  gap: 10px;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-color: rgba(16, 185, 129, 0.5); }
.toast-error { border-color: rgba(239, 68, 68, 0.5); }
.toast-info { border-color: rgba(59, 130, 246, 0.5); }

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.78rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-sep {
  opacity: 0.3;
}

.footer-left a {
  color: #38bdf8;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .verification-content-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calibrator-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .header-left, .header-right {
    justify-content: center;
  }
  .nav-tabs {
    justify-content: center;
  }
  .certificates-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.9rem;
  }
}

/* Admin Access Header & Footer Links */
.btn-admin-header {
  padding: 6px 14px;
  font-size: 0.82rem;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-admin-header:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.btn-admin-logout {
  padding: 6px 14px;
  font-size: 0.82rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-admin-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.footer-admin-link {
  color: #64748b;
  font-size: 0.84rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-admin-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.modal-sm {
  max-width: 440px;
}

/* ===================================================================
   MOBILE-FIRST CERTIFICATE HERO & ACTION SYSTEM
   Certificate displayed FIRST at the top, CTAs immediately below,
   followed by verification & audit ledger.
=================================================================== */

.cert-hero-card {
  max-width: 760px;
  margin: 0 auto 32px auto;
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .cert-hero-card {
    padding: 36px 32px;
  }
}

.cert-header-pill-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 20px;
}

.cert-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cert-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 4px;
}

.cert-recipient-lead {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
}

.cert-recipient-name-highlight {
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SECTION 1: CERTIFICATE STAGE (FIRST) */
.certificate-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 20px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 44px -8px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.12), 0 0 30px rgba(37, 99, 235, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #060914;
}

.certificate-stage-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -6px rgba(0, 0, 0, 0.9), 0 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 40px rgba(37, 99, 235, 0.35);
}

.certificate-stage-wrapper canvas,
.certificate-stage-wrapper img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.cert-tap-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SECTION 2: CTAs IMMEDIATELY BELOW CERTIFICATE */
.cert-cta-section {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 24px auto;
}

.cta-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .cta-action-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-cta:active {
  transform: scale(0.98);
}

/* LinkedIn Hero Button */
.btn-linkedin-hero {
  background: #0a66c2 !important;
  color: #ffffff !important;
  border: 1px solid #004182 !important;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.45);
}

.btn-linkedin-hero:hover {
  background: #004182 !important;
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.6);
  transform: translateY(-1px);
}

.btn-pdf-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-pdf-hero:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.btn-png-hero {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.btn-png-hero:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-copy-hero {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.btn-copy-hero:hover {
  background: rgba(6, 182, 212, 0.22) !important;
  border-color: #06b6d4 !important;
}

/* Unique Public URL Hero Box */
.unique-url-hero-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.unique-url-hero-box .url-label-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  white-space: nowrap;
}

.unique-url-hero-box .url-text-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.unique-url-hero-box .url-text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* SECTION 3: METADATA & CRYPTOGRAPHIC AUDIT LEDGER */
.audit-ledger-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.audit-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .audit-meta-grid {
    grid-template-columns: 1fr;
  }
}

.audit-meta-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.audit-meta-cell .audit-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 2px;
}

.audit-meta-cell .audit-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.audit-meta-cell .audit-value-mono {
  font-family: var(--font-mono);
  color: #38bdf8;
}

.audit-security-row {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
}

.audit-security-row .hash-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-security-row .hash-val {
  font-family: var(--font-mono);
  color: #38bdf8;
}

/* ===================================================================
   ULTRA-RESPONSIVE MOBILE ENHANCEMENTS (< 480px & Touch Devices)
=================================================================== */
@media (max-width: 480px) {
  .app-container {
    padding: 0 12px;
  }

  .cert-hero-card {
    padding: 18px 12px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .cert-header-pill-row {
    margin-bottom: 16px;
  }

  .cert-hero-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .cert-recipient-lead {
    font-size: 0.95rem;
  }

  .certificate-stage-wrapper {
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  }

  .cert-cta-section {
    margin-bottom: 20px;
  }

  .cta-action-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-cta {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .unique-url-hero-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .unique-url-hero-box .url-text-link {
    font-size: 0.74rem;
  }

  .unique-url-hero-box button {
    width: 100%;
    justify-content: center;
    padding: 8px;
  }

  .audit-ledger-wrap {
    padding-top: 16px;
  }

  .audit-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .audit-meta-cell {
    padding: 8px 12px;
  }

  .audit-security-row {
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  /* Student Dashboard Cards on Mobile */
  .cert-dashboard-card {
    border-radius: 12px;
  }

  .cert-dashboard-card .cert-details-wrap {
    padding: 14px;
  }

  .cert-dashboard-card .cta-action-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


