.cv-wrapper {
    max-width: 640px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cv-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 36px 32px;
    border: 1px solid #eef0f4;
}

.cv-login { max-width: 460px; margin-left: auto; margin-right: auto; }

.cv-header { text-align: center; margin-bottom: 28px; }
.cv-icon { font-size: 44px; margin-bottom: 8px; }
.cv-header h2 { margin: 0 0 6px; font-size: 24px; color: #1a1f36; }
.cv-header p { margin: 0; color: #6b7280; font-size: 14px; }

.cv-field { margin-bottom: 18px; }
.cv-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.cv-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.cv-field input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.cv-btn {
    width: 100%;
    padding: 13px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .05s;
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.cv-btn:hover { background: #4338ca; }
.cv-btn:active { transform: scale(.99); }
.cv-btn:disabled { opacity: .6; cursor: not-allowed; }

.cv-error {
    margin-top: 14px;
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    min-height: 18px;
}

/* RESULT — dark green gradient card */
.cv-result {
    background: linear-gradient(150deg, #1f3a34 0%, #16302b 55%, #122824 100%);
    border: 1px solid #2c4f47;
    color: #e8f0ee;
}

.cv-result-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.cv-check {
    width: 52px;
    height: 52px;
    min-width: 52px;
    line-height: 52px;
    text-align: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.cv-result-title h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}
.cv-result-title p {
    margin: 0;
    font-size: 14px;
    color: #b6c8c3;
}
.cv-result-title p span { color: #d7e6e2; font-weight: 600; }

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}
.cv-cell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 18px;
}
.cv-cell .cv-label {
    display: block;
    color: #9bb1ab;
    font-size: 12px;
    margin-bottom: 6px;
}
.cv-cell .cv-value {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    word-break: break-word;
}
.cv-status-text { color: #34d399 !important; }

.cv-result .cv-download {
    background: #22c55e;
    margin-bottom: 12px;
}
.cv-result .cv-download:hover { background: #16a34a; }
.cv-result .cv-link { color: #9bd6c4; }

@media (max-width: 420px) {
    .cv-grid { grid-template-columns: 1fr; }
}

/* ===== FULL MARKSHEET VIEW ===== */
.cv-marksheet { max-width: 920px; margin: 0 auto; }

.cv-verified-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 18px;
}
.cv-vb-check {
    width: 26px; height: 26px; line-height: 26px;
    text-align: center; border-radius: 50%;
    background: #22c55e; color: #fff; font-size: 14px;
}

.cv-sheet {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    color: #1f2937;
}

.cv-board h2 {
    margin: 0;
    color: #1e6091;
    font-size: 20px;
    letter-spacing: .5px;
}
.cv-session {
    color: #1e6091;
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
}

.cv-photo-wrap { margin: 16px 0; }
.cv-photo-wrap img {
    width: 110px;
    height: 130px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.cv-info-table, .cv-marks-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 13px;
}
.cv-info-table th, .cv-info-table td,
.cv-marks-table th, .cv-marks-table td {
    border: 1px solid #94a3b8;
    padding: 9px 10px;
    text-align: left;
    vertical-align: middle;
}
.cv-info-table th {
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    background: #f8fafc;
}
.cv-info-table td { color: #111827; font-weight: 600; }

.cv-marks-table th {
    background: #f1f5f9;
    color: #334155;
    text-align: center;
    font-weight: 700;
}
.cv-marks-table td { text-align: center; }
.cv-marks-table td.cv-subj { text-align: left; font-weight: 600; }
.cv-total-label { text-align: center !important; font-weight: 700; }
.cv-total-val { text-align: center; font-weight: 700; }

.cv-disclaimer {
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.5;
    margin: 6px 0 20px;
    max-width: 360px;
}

.cv-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cv-actions .cv-download {
    width: auto;
    display: inline-block;
    padding: 11px 28px;
    background: #1e6091;
}
.cv-actions .cv-download:hover { background: #174e75; }
.cv-actions .cv-link { width: auto; }

@media (max-width: 600px) {
    .cv-sheet { padding: 16px; }
    .cv-info-table, .cv-marks-table { font-size: 11px; }
    .cv-info-table th, .cv-info-table td,
    .cv-marks-table th, .cv-marks-table td { padding: 6px; }
}
