/* Certificate Verification System - Admin & Public */

:root {
  --sidebar-bg: #0f172a;
  --sidebar-text: rgba(255,255,255,0.88);
  --sidebar-text-dim: rgba(255,255,255,0.5);
  --sidebar-active-bg: rgba(255,255,255,0.06);
  --sidebar-active-border: #fff;
  --main-bg: #f8fafc;
  --card-bg: #fff;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #ea580c;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; font-size: 14px; color: var(--text); line-height: 1.5; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--main-bg); padding: 1.5rem; box-sizing: border-box; }
.login-box { width: 100%; max-width: 380px; padding: 2rem; background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.login-header { text-align: center; margin-bottom: 1.5rem; }
.login-header .logo-icon { display: inline-block; width: 48px; height: 48px; line-height: 48px; background: var(--primary); color: #fff; font-weight: bold; border-radius: 8px; }
.login-header h1 { margin: 0.5rem 0 0; font-size: 1.25rem; }
.login-header p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.login-form .form-group { margin-bottom: 1rem; }
.login-form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.login-form input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
.login-form .btn-block { width: 100%; margin-top: 0.5rem; }
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Login - modern */
.login-page-modern { position: relative; overflow: hidden; }
.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0f2744 0%, #1a365d 35%, #2c5282 60%, #2b6cb0 85%, #63b3ed 100%);
  opacity: 0.97;
}
.login-page-modern .login-box-modern {
  position: relative; z-index: 1;
  max-width: 400px;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.login-box-modern .login-header { margin-bottom: 1.75rem; }
.login-box-modern .login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, #1a365d, #2c5282);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.35);
}
.login-box-modern .login-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  letter-spacing: -0.02em;
}
.login-box-modern .login-header p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.login-box-modern .login-form .form-group { margin-bottom: 1.25rem; }
.login-box-modern .login-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.login-box-modern .input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-box-modern .input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.login-box-modern .login-math .input-modern { max-width: 120px; }
.login-box-modern .btn-login {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a365d, #2c5282);
  box-shadow: 0 4px 14px rgba(26, 54, 93, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.login-box-modern .btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.45);
}
.login-box-modern .alert-error {
  border-radius: 10px;
  font-size: 0.9rem;
}

/* Admin layout – minimal */
.admin-body { display: flex; min-height: 100vh; background: var(--main-bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; }
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-header {
  padding: 1.5rem 1.25rem 1.25rem;
}
.sidebar-header .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--sidebar-bg);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}
.sidebar-header .logo-text {
  margin-left: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.sidebar-header .logo-tagline {
  margin: 0.2rem 0 0 3.1rem;
  font-size: 0.7rem;
  color: var(--sidebar-text-dim);
  font-weight: 400;
}
.sidebar-nav { flex: 1; padding: 0.75rem 0; }
.nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--sidebar-text-dim);
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  margin: 0 0.5rem 0 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.nav-item.active {
  background: var(--sidebar-active-bg);
  border-left-color: var(--sidebar-active-border);
  color: #fff;
}
.nav-icon {
  margin-right: 0.85rem;
  font-size: 1rem;
  opacity: 0.85;
  width: 1.25em;
  text-align: center;
}
.sidebar-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-signout {
  display: inline-flex;
  align-items: center;
  color: var(--sidebar-text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s;
}
.btn-signout:hover { color: var(--sidebar-text); }

.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-x: auto;
  max-width: 100%;
}

/* Page header – minimal */
.page-header {
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}
.page-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-header .subtitle {
  margin: 0.35rem 0 0;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.page-header .btn { margin-left: auto; }

/* Buttons – minimal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: #f1f5f9;
  color: var(--text);
}
.btn-secondary:hover {
  background: #e2e8f0;
}
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-edit {
  background: var(--primary);
  color: #fff;
}
.btn-edit:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* Cards (dashboard) – minimal */
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-icon { font-size: 1.5rem; opacity: 0.75; }
.card-content { flex: 1; }
.card-label { margin: 0; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.card-value { margin: 0.3rem 0 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.card-warning .card-value { color: var(--warning); }

/* Dashboard grid – minimal */
.dashboard-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.panel-header h2 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.panel-header a { font-size: 0.8rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.panel-expiring { background: var(--sidebar-bg); color: var(--sidebar-text); border-color: transparent; }
.panel-expiring h2 { color: inherit; }
.panel-expiring p, .panel-expiring li { font-size: 0.875rem; opacity: 0.95; }
.expiring-list { list-style: none; padding: 0; margin: 0; }
.expiring-list a { color: rgba(255,255,255,0.9); text-decoration: none; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item { padding: 0.65rem 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; font-size: 0.875rem; }
.activity-item:last-child { border-bottom: none; }
.activity-time { opacity: 0.75; }
.activity-date { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }

/* Toolbar – minimal */
.toolbar { margin-bottom: 1.25rem; }
.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-form input[type="search"] {
  min-width: 220px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.search-form.inline { align-items: center; }
.search-form .filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0.25rem 0 0.75rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.search-form .filter-label:first-of-type { margin-left: 0; }
.search-form input[type="date"] {
  min-width: 140px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}
.search-form select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* Table – minimal */
.table-wrap {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th,
.data-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  background: #fafafa;
}
.data-table tbody tr {
  transition: background 0.1s;
}
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.actions { white-space: nowrap; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.actions .btn { margin: 0; }

/* Sabit aksiyon sütunları – kompakt */
.data-table .col-action {
  width: 4rem;
  min-width: 4rem;
  max-width: 4rem;
  text-align: center;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  vertical-align: middle;
}
.data-table .col-action .btn {
  margin: 0 auto;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  white-space: nowrap;
  display: inline-block;
}
.data-table .col-action .action-empty { color: var(--text-muted); font-size: 0.8rem; }

.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: var(--primary); text-decoration: none; margin-right: 0.25rem; }
.btn-icon:hover { background: #edf2f7; }
.btn-icon.btn-danger { color: var(--danger); }
.btn-icon.btn-danger:hover { background: #fed7d7; }
.cert-id-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
.cert-id-link:hover { color: var(--primary-hover); }
.input-readonly { background: #f8fafc; color: var(--text-muted); cursor: not-allowed; border-color: #e2e8f0; }
.detail-dl { margin: 0; }
.detail-dl dt { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.75rem; }
.detail-dl dt:first-child { margin-top: 0; }
.detail-dl dd { margin: 0.25rem 0 0; }
.detail-remarks { white-space: pre-wrap; max-height: 6em; overflow-y: auto; }
.cert-detail-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 600; margin-right: 0.5rem; vertical-align: middle; }
.table-footer { margin-top: 0.6rem; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Badges – minimal */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-secondary { background: #f1f5f9; color: var(--text-muted); }

/* Forms – minimal */
.form-card {
  max-width: 520px;
  background: var(--card-bg);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15,23,42,0.08);
}
.form-row { margin-bottom: 1rem; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; }
.input-with-btn { display: flex; gap: 0.5rem; }
.input-with-btn input { flex: 1; }
.form-hint { display: block; margin-top: 0.3rem; font-size: 0.75rem; color: var(--text-muted); }
.input-file { padding: 0.25rem 0; }

/* Modal – minimal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.35); backdrop-filter: blur(2px); }
.modal-box {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
}
.modal-box-sm { max-width: 360px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.35rem; }
.modal-body.text-center { text-align: center; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--border);
}
.qr-placeholder { margin: 1rem auto; min-height: 200px; }
.qr-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin: 1rem 0;
}
.qr-preview-img {
  max-width: 100%;
  width: 280px;
  height: auto;
  display: none;
}
.qr-cert-id { font-weight: 700; font-size: 1rem; margin: 0.5rem 0; }
.qr-hint { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.qr-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* ========== Public Verify Page - Maritime theme (mobile-first) ========== */
.verify-page {
  min-height: 100vh;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  /* Smooth multi-stop gradient: deep navy → mid blue → soft aqua → light */
  background: linear-gradient(165deg,
    #0a1929 0%,
    #0f2744 15%,
    #1a365d 28%,
    #2c5282 42%,
    #2b6cb0 55%,
    #63b3ed 70%,
    #90cdf4 82%,
    #bee3f8 92%,
    #ebf8ff 100%);
  background-attachment: fixed;
  padding: 0 1rem 2rem;
  -webkit-tap-highlight-color: transparent;
}
.verify-page-result { padding-top: 0; }
.verify-hero {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.verify-hero-inner { text-align: center; padding: 0 0.5rem; }
.verify-hero-title { margin: 0; font-size: clamp(1.15rem, 4.5vw, 1.5rem); font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.verify-hero-tagline { margin: 0.35rem 0 0; font-size: clamp(0.8rem, 2.5vw, 0.9rem); color: rgba(255,255,255,0.9); }
.verify-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}
.verify-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(10,25,41,0.18), 0 4px 16px rgba(0,0,0,0.08);
  padding: clamp(1.25rem, 5vw, 2rem);
  overflow: hidden;
}
.verify-card-head { text-align: center; margin-bottom: 1rem; }
.verify-card-head h1 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.35rem); font-weight: 700; color: #1a365d; }
.verify-tagline { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.verify-message { margin: 0 0 1rem; font-size: clamp(0.875rem, 2.5vw, 0.95rem); color: var(--text); line-height: 1.5; }
.verify-form { display: flex; flex-direction: column; gap: 0.75rem; }
.verify-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  font-size: 16px;
  min-height: 48px;
}
.verify-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,108,176,0.2); }
.btn-verify {
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
@media (min-width: 400px) {
  .verify-form { flex-direction: row; flex-wrap: wrap; }
  .verify-input { flex: 1; min-width: 180px; width: auto; }
  .btn-verify { width: auto; min-width: 120px; }
}
.verify-page-standalone .verify-wrap { margin-top: 0; }
.verify-page-standalone .verify-hero { min-height: 90px; }
.verify-card-error { text-align: center; }
.verify-card-error .verify-message { margin-bottom: 1.25rem; }
.verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.verify-icon-error { background: #fed7d7; color: var(--danger); }
.verify-card-main { position: relative; }
.verify-badge-wrap { text-align: center; margin-bottom: 0.75rem; }
.verify-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.verify-badge.status-active {
  background: #276749;
  color: #fff;
  box-shadow: 0 2px 8px rgba(39,103,73,0.35);
}
.verify-badge.status-expired {
  background: #c53030;
  color: #fff;
  box-shadow: 0 2px 8px rgba(197,48,48,0.35);
}
.verify-badge.status-pending { background: #feebc8; color: #c05621; }
.verify-badge.status-revoked { background: #e2e8f0; color: #4a5568; }
.verify-cert-id {
  text-align: center;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.verify-authentic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  font-weight: 600;
  color: var(--success);
  flex-wrap: wrap;
  text-align: center;
}
.verify-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.75rem;
}
.verify-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 420px) {
  .verify-details-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
}
.verify-detail-item {
  padding: 0.85rem;
  background: #f7fafc;
  border-radius: 10px;
  border-left: 4px solid #1a365d;
  min-height: 2.5rem;
}
.verify-detail-item.verify-detail-full { grid-column: 1 / -1; }
.verify-detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.verify-detail-value { font-size: clamp(0.875rem, 2.5vw, 0.95rem); font-weight: 500; color: var(--text); word-break: break-word; }
.verify-actions { text-align: center; padding-top: 0.5rem; }
.verify-no-pdf { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.verify-actions .btn {
  display: inline-block;
  min-width: 140px;
  width: 100%;
  max-width: 240px;
  box-sizing: border-box;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
}
@media (min-width: 360px) {
  .verify-actions .btn { width: auto; }
}

/* Admin Login link - bottom right, subtle */
.admin-login-link {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: rgba(26, 54, 93, 0.5);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  transition: color 0.15s;
}
.admin-login-link:hover {
  color: rgba(26, 54, 93, 0.85);
}
