/* ============================================
   ITFiller Certificate Generator - Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #060d1f;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030b20; }
::-webkit-scrollbar-thumb { background: rgba(197,163,82,0.4); border-radius: 3px; }

::placeholder { color: rgba(255,255,255,0.3) !important; }

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px,20px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px,16px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12px,-24px); } }
@keyframes float4 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-16px,12px); } }
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197,163,82,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(197,163,82,0); }
}

/* ============= NAVBAR ============= */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(4,10,28,0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(197,163,82,0.12);
    transition: all 0.35s ease;
}
#navbar.scrolled {
    background: rgba(4,10,28,0.97);
    border-bottom-color: rgba(197,163,82,0.22);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C5A352, #E8C96A);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(197,163,82,0.3);
}
.nav-logo-circle.small {
    width: 36px; height: 36px;
}
.nav-logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 13px;
    color: #0a1628;
}
.nav-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.nav-brand-sub {
    font-size: 9px;
    color: #C5A352;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}
.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.nav-link {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 6px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #C5A352;
    border-color: rgba(197,163,82,0.35);
}

/* ============= HERO ============= */
#hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #030b20 0%, #081740 55%, #0a1d55 100%);
    display: flex;
    align-items: center;
    padding: 120px 5vw 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
}
.shape1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(197,163,82,0.045) 0%, transparent 70%);
    left: 8%; top: 20%;
    animation: float1 8s ease-in-out infinite;
}
.shape2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(197,163,82,0.03) 0%, transparent 70%);
    left: 63%; top: 10%;
    animation: float2 12s ease-in-out infinite;
}
.shape3 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(197,163,82,0.02) 0%, transparent 70%);
    left: 78%; top: 55%;
    animation: float3 10s ease-in-out infinite;
}
.shape4 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(197,163,82,0.025) 0%, transparent 70%);
    left: 5%; top: 68%;
    animation: float4 14s ease-in-out infinite;
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(197,163,82,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}
.hero-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease forwards;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197,163,82,0.1);
    border: 1px solid rgba(197,163,82,0.25);
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 28px;
}
.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #C5A352;
    box-shadow: 0 0 8px #C5A352;
    animation: pulse 2s infinite;
}
.hero-badge span {
    font-size: 11px;
    color: #C5A352;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title-gold {
    background: linear-gradient(90deg, #C5A352, #E8C96A, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 42px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-gold {
    background: linear-gradient(135deg, #C5A352, #E8C96A);
    color: #0a1628;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 28px rgba(197,163,82,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(197,163,82,0.5);
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 52px;
    justify-content: center;
}
.hero-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #C5A352;
}
.hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.4px;
    margin-top: 3px;
}

/* ============= FORM SECTION ============= */
#generate {
    padding: 110px 5vw;
    background: #060d1f;
}
.section-inner {
    max-width: 860px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-badge {
    display: inline-block;
    font-size: 10px;
    color: #C5A352;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
    background: rgba(197,163,82,0.08);
    padding: 6px 18px;
    border-radius: 100px;
    border: 1px solid rgba(197,163,82,0.2);
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}
.section-desc {
    color: rgba(255,255,255,0.48);
    font-size: 15px;
}
.form-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(197,163,82,0.16);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-group {
    margin-bottom: 20px;
}
.form-grid .form-group {
    margin-bottom: 0;
}
.form-group label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(197,163,82,0.18);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: rgba(197,163,82,0.55);
    box-shadow: 0 0 0 3px rgba(197,163,82,0.08);
}
.form-group select {
    background: #0d1e4a;
    cursor: pointer;
}
.form-group select option {
    background: #0d1e4a;
}
.form-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 13px;
    margin-bottom: 20px;
}
.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #C5A352, #E8C96A);
    color: #0a1628;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 28px rgba(197,163,82,0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    margin-top: 8px;
}
.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(197,163,82,0.5);
}
.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============= CERTIFICATE PREVIEW SECTION ============= */
#preview-section {
    padding: 90px 5vw 110px;
    background: linear-gradient(180deg, #050c1e 0%, #07112b 100%);
}

.cert-actions-top {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.cert-actions-bottom {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.btn-download, .btn-download-lg {
    background: linear-gradient(135deg, #C5A352, #E8C96A);
    color: #0a1628;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 6px 24px rgba(197,163,82,0.3);
}
.btn-download:hover, .btn-download-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(197,163,82,0.5);
}
.btn-download-lg {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 12px;
}
.btn-another {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}
.btn-another:hover {
    border-color: #C5A352;
    color: #C5A352;
}

/* ===== THE CERTIFICATE ===== */
.cert-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 10px;
}

.certificate {
    width: 1000px;
    height: 710px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

/* Corner gold/navy wave decorations */
.cert-corner-tl,
.cert-corner-tr,
.cert-corner-bl,
.cert-corner-br {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
}
.cert-corner-tl {
    top: 0; left: 0;
    background: linear-gradient(135deg, #1a3a6e 0%, #1a3a6e 20%, transparent 20%, transparent 24%, #C5A352 24%, #C5A352 27%, transparent 27%, transparent 30%, rgba(197,163,82,0.3) 30%, rgba(197,163,82,0.3) 32%, transparent 32%);
}
.cert-corner-tr {
    top: 0; right: 0;
    background: linear-gradient(225deg, #1a3a6e 0%, #1a3a6e 20%, transparent 20%, transparent 24%, #C5A352 24%, #C5A352 27%, transparent 27%, transparent 30%, rgba(197,163,82,0.3) 30%, rgba(197,163,82,0.3) 32%, transparent 32%);
}
.cert-corner-bl {
    bottom: 0; left: 0;
    background: linear-gradient(45deg, #1a3a6e 0%, #1a3a6e 20%, transparent 20%, transparent 24%, #C5A352 24%, #C5A352 27%, transparent 27%, transparent 30%, rgba(197,163,82,0.3) 30%, rgba(197,163,82,0.3) 32%, transparent 32%);
}
.cert-corner-br {
    bottom: 0; right: 0;
    background: linear-gradient(315deg, #1a3a6e 0%, #1a3a6e 20%, transparent 20%, transparent 24%, #C5A352 24%, #C5A352 27%, transparent 27%, transparent 30%, rgba(197,163,82,0.3) 30%, rgba(197,163,82,0.3) 32%, transparent 32%);
}

/* Left and right gold wave stripe */
.cert-wave-left {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #C5A352, transparent);
    z-index: 2;
}
.cert-wave-right {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #C5A352, transparent);
    z-index: 2;
}

/* Inner border */
.cert-inner-border {
    position: absolute;
    top: 22px; left: 22px; right: 22px; bottom: 22px;
    border: 2px solid #1a3a6e;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
}

/* Logo badge */
.cert-logo-area {
    position: absolute;
    top: 12px;
    right: 30px;
}
.cert-logo-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C5A352, #E8C96A, #C5A352);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(197,163,82,0.4);
}
.cert-logo-inner {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a6e, #0d2150);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #C5A352;
}
.cert-logo-itf {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    color: #C5A352;
    letter-spacing: 1px;
}
.cert-logo-sub {
    font-size: 5px;
    color: #C5A352;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Title */
.cert-title-area {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}
.cert-main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 72px;
    color: #1a3a6e;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}
.cert-of-text {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #C5A352;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Presented to */
.cert-presented {
    margin-top: 16px;
    margin-bottom: 4px;
}
.cert-presented p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #555;
    font-style: italic;
}

/* Candidate Name */
.cert-name-area {
    margin-bottom: 6px;
}
.cert-candidate-name {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    color: #0d1e4a;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid #C5A352;
    padding-bottom: 6px;
    min-width: 400px;
    display: inline-block;
}

/* Dept info */
.cert-dept-info {
    margin-bottom: 14px;
}
.cert-dept-info p {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #555;
    text-align: center;
}
.cert-dept-info span {
    font-weight: 600;
    color: #333;
}

/* Completion Badge */
.cert-badge-area {
    margin-bottom: 16px;
}
.cert-completion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 36px;
    background: linear-gradient(135deg, #1a3a6e, #0d2150);
    border-radius: 100px;
    border: 3px solid #C5A352;
    box-shadow: 0 4px 20px rgba(26,58,110,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}
.cert-completion-badge::before,
.cert-completion-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #C5A352;
    border-radius: 50%;
    opacity: 0.5;
}
.cert-completion-badge::before { left: -22px; }
.cert-completion-badge::after { right: -22px; }

.cert-completion-badge span {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Description text */
.cert-description {
    text-align: center;
    margin-bottom: 20px;
}
.cert-description p {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #555;
    line-height: 1.8;
}
.cert-description span {
    font-weight: 600;
    color: #333;
}

/* Bottom section */
.cert-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
    padding: 0 20px;
}
.cert-qr-area {
    display: flex;
    align-items: flex-end;
}
.cert-qr-placeholder {
    width: 90px;
    height: 90px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.cert-qr-placeholder img {
    width: 100%;
    height: 100%;
}
.cert-signature-area {
    text-align: center;
}
.cert-signature-line {
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    margin-bottom: 6px;
    min-width: 200px;
}
.cert-signature-cursive {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: #1a3a6e;
}
.cert-company-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #0d1e4a;
    margin-bottom: 4px;
}
.cert-address {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: #C5A352;
    font-style: italic;
    line-height: 1.5;
}


/* ============= FOOTER ============= */
#footer {
    background: #030a18;
    border-top: 1px solid rgba(197,163,82,0.1);
    padding: 52px 5vw 30px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    line-height: 1.8;
    max-width: 320px;
}
.footer-heading {
    font-size: 11px;
    color: #C5A352;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-item {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom span {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
}

/* ============= OUTLINE BUTTON (Hero) ============= */
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 14px 34px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover {
    border-color: #C5A352;
    color: #C5A352;
}

/* ============= CERTIFICATE ID DISPLAY ============= */
.cert-id-display {
    margin-bottom: 36px;
    animation: fadeUp 0.5s ease forwards;
}
.cert-id-success {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(34,197,94,0.07);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 16px 16px 0 0;
    padding: 22px 28px;
}
.cert-id-icon {
    font-size: 28px;
}
.cert-id-title {
    font-size: 17px;
    font-weight: 800;
    color: #22c55e;
}
.cert-id-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}
.cert-id-box {
    background: rgba(197,163,82,0.08);
    border: 1.5px dashed rgba(197,163,82,0.4);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 22px 28px;
    text-align: center;
}
.cert-id-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.cert-id-value {
    font-family: monospace;
    font-size: clamp(22px, 3vw, 32px);
    color: #C5A352;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 14px;
}
.btn-copy {
    background: transparent;
    border: 1px solid rgba(197,163,82,0.4);
    border-radius: 8px;
    padding: 7px 20px;
    color: #C5A352;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.btn-copy:hover {
    background: rgba(197,163,82,0.1);
    border-color: #C5A352;
}

/* ============= VERIFY SECTION ============= */
#verify {
    padding: 110px 5vw;
    background: linear-gradient(180deg, #050c1e 0%, #07112b 100%);
}
.verify-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.verify-input-wrap {
    flex: 1;
    position: relative;
}
.verify-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}
.verify-input-wrap input,
.records-search-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(197,163,82,0.2);
    border-radius: 10px;
    padding: 14px 14px 14px 44px;
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: monospace;
    letter-spacing: 1px;
    transition: border-color 0.2s;
}
.verify-input-wrap input:focus,
.records-search-wrap input:focus {
    border-color: rgba(197,163,82,0.6);
    box-shadow: 0 0 0 3px rgba(197,163,82,0.08);
}
.btn-verify {
    background: linear-gradient(135deg, #C5A352, #E8C96A);
    color: #0a1628;
    border: none;
    border-radius: 10px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.4px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}
.btn-verify:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(197,163,82,0.4);
}
.btn-verify:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.verify-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
    text-align: center;
    margin-bottom: 24px;
}

/* Verify Loading */
.verify-loading {
    text-align: center;
    padding: 36px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}
.verify-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(197,163,82,0.15);
    border-top: 3px solid #C5A352;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Verify Results */
.verify-result {
    animation: fadeUp 0.4s ease forwards;
    border-radius: 16px;
    padding: 28px;
}
.verify-success {
    background: rgba(34,197,94,0.05);
    border: 1px solid rgba(34,197,94,0.22);
}
.verify-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.verify-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.verify-result-icon.success {
    background: rgba(34,197,94,0.15);
}
.verify-result-title {
    font-size: 16px;
    font-weight: 700;
}
.verify-result-title.success {
    color: #22c55e;
}
.verify-result-id {
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    font-family: monospace;
    margin-top: 2px;
}
.verify-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.verify-detail-card {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
.verify-detail-label {
    font-size: 10px;
    color: rgba(255,255,255,0.33);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.verify-detail-value {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

/* Verify Fail */
.verify-fail {
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.2);
    text-align: center;
    padding: 36px;
}
.verify-fail-emoji {
    font-size: 44px;
    margin-bottom: 14px;
}
.verify-fail-title {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 8px;
}
.verify-fail-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.42);
    line-height: 1.7;
}

/* ============= RECORDS SECTION ============= */
#records {
    padding: 110px 5vw;
    background: #060d1f;
}
.records-search-wrap {
    position: relative;
    margin-bottom: 24px;
}
.records-search-wrap input {
    font-family: 'DM Sans', sans-serif;
    letter-spacing: normal;
}
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}
.records-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: rgba(255,255,255,0.35);
    font-size: 15px;
}
.record-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(197,163,82,0.13);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
    cursor: default;
}
.record-card:hover {
    border-color: rgba(197,163,82,0.35);
    transform: translateY(-3px);
}
.record-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.record-card-id {
    font-size: 10px;
    font-family: monospace;
    color: #C5A352;
    letter-spacing: 1px;
    background: rgba(197,163,82,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(197,163,82,0.2);
}
.record-card-status {
    font-size: 10px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 700;
}
.record-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}
.record-card-course {
    font-size: 13px;
    color: #C5A352;
    margin-bottom: 12px;
}
.record-card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.record-card-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 28px;
    }
    .cert-wrapper {
        padding: 10px 0;
    }
    .certificate {
        transform: scale(0.5);
        transform-origin: top left;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cert-actions-top {
        flex-direction: column;
        align-items: center;
    }
    .verify-input-row {
        flex-direction: column;
    }
    .btn-verify {
        padding: 14px;
    }
    .verify-details-grid {
        grid-template-columns: 1fr;
    }
    .records-grid {
        grid-template-columns: 1fr;
    }
}
