:root {
  --blue: #306DD6;
  --blue-d: #1A4FA0;
  --blue-l: #E8F0FD;
  --dark: #0F172A;
  --text: #1B2124;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8faff;
  --white: #ffffff;
  --green: #22c55e;
  --green-l: #dcfce7;
  --red: #ef4444;
  --red-l: #fee2e2;
  --shadow: 0 4px 24px rgba(48, 109, 214, 0.12);
  --shadow-h: 0 16px 48px rgba(48, 109, 214, 0.24);
  --r: 20px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--blue) 0%, #1a4fa8 100%);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.hero-text {
  text-align: center;
  color: var(--white);
  margin-bottom: 32px;
}

.hero-text h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 15px;
  opacity: 0.85;
  max-width: 400px;
  margin: 0 auto;
}

h1, h2, h3, h4, .title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
}

.container {
  flex: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-container {
  margin-bottom: 32px;
  text-align: center;
}

.logo {
  height: 48px;
  border-radius: 8px;
}

.view {
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

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

.card {
  background: var(--white);
  border: 1.5px solid #dde6f5;
  border-radius: var(--r);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  width: 100%;
  text-align: center;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-h);
}

/* Typography */
.title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Form Elements */
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s;
  margin-bottom: 16px;
}

input[type="text"]:focus {
  border-color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(48, 109, 214, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue-l);
  transform: translateY(-2px);
}

/* Verified Card Styles */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-l);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.verified-badge i {
  font-size: 16px;
}

.cert-id-chip {
  font-family: 'Inter', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.intern-avatar {
  width: 72px;
  height: 72px;
  background: var(--blue-l);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 8px 16px rgba(48, 109, 214, 0.15);
}

.intern-name {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.role-track {
  font-size: 16px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
  padding: 0 10px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 28px;
  text-align: left;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item:last-child {
  grid-column: span 2;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Error Card */
.error-icon {
  width: 64px;
  height: 64px;
  background: var(--red-l);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.error-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-message {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Skeleton Loader */
.skeleton {
  background: #e2e8f0;
  background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-badge { width: 100px; height: 28px; border-radius: 50px; margin-bottom: 24px; }
.skeleton-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; }
.skeleton-title { width: 70%; height: 32px; margin: 0 auto 16px; }
.skeleton-text { width: 90%; height: 16px; margin: 0 auto 12px; }
.skeleton-text.short { width: 50%; }

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--white);
}

.footer-links {
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-links span {
  margin: 0 8px;
  opacity: 0.4;
}

.footer-credit {
  opacity: 0.8;
}

footer strong {
  font-weight: 700;
  color: var(--white);
}

/* Mobile Adjustments */
@media (max-width: 400px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  .detail-item:last-child {
    grid-column: span 1;
  }
}
