* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.portal-container {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

/* Card Container */
.verification-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
}

/* School Header */
.school-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}

.school-badge {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.school-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.school-address {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Verification Badge Strip */
.verified-strip {
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-icon {
    width: 28px;
    height: 28px;
    background: #16a34a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.verified-text {
    flex: 1;
}

.verified-title {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-subtitle {
    font-size: 11px;
    color: #166534;
}

/* Card Body */
.card-body {
    padding: 20px;
}

/* Student Hero Section */
.student-hero {
    text-align: center;
    padding: 14px 0 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.student-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.class-pill {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 18px;
}

.detail-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 12px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

/* Footer Section */
.portal-footer {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #64748b;
}

.portal-footer strong {
    color: #334155;
}

/* Status Loading & Error states */
.loading-box {
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.error-box h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.error-box p {
    font-size: 13px;
    line-height: 1.5;
    color: #7f1d1d;
}

.hidden {
    display: none !important;
}
