:root {
    --orange: #FB7605;
    --orange-light: #FFF4E6;
    --green: #2E7D32;
    --red: #C62828;
    --amber: #EF6C00;
    --dark: #1a1a1a;
    --gray: #666;
    --light: #f5f5f5;
    --border: #DDDDDD;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--dark);
    background: #fafafa;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== Topbar ===== */
.topbar {
    background: white;
    border-bottom: 4px solid var(--orange);
    padding: 20px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chevrons {
    display: flex;
    gap: 2px;
}
.chevrons span {
    display: inline-block;
    width: 14px;
    height: 28px;
    background: var(--orange);
    clip-path: polygon(0% 0%, 60% 0%, 100% 100%, 40% 100%);
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--dark);
}
.brand-subtitle {
    font-size: 13px;
    color: var(--gray);
}

/* ===== Main ===== */
.main {
    flex: 1;
    padding: 48px 24px;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.lead {
    font-size: 17px;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 32px;
}

/* ===== Form ===== */
.verify-form {
    display: flex;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto 16px;
}

.verify-form input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    font-family: "Courier New", monospace;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
    text-transform: uppercase;
}

.verify-form input:focus {
    outline: none;
    border-color: var(--orange);
}

.verify-form button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.verify-form button:hover {
    background: #e16904;
}

.verify-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

.hint code {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* ===== Result panels ===== */
.result {
    margin: 24px auto;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.result.hidden {
    display: none;
}

.result-header {
    padding: 20px 24px;
    color: white;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.result.authentic .result-header { background: var(--green); }
.result.notfound  .result-header { background: var(--red); }
.result.revoked   .result-header { background: var(--amber); }

.result-icon {
    width: 32px;
    height: 32px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-body {
    background: white;
    padding: 24px;
}

.result-details {
    list-style: none;
}

.result-details li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.result-details li:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray);
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    font-family: "Courier New", monospace;
}

.verified-at {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--gray);
    text-align: center;
}

/* ===== Info section ===== */
.info {
    background: white;
    padding: 32px;
    border-radius: 12px;
    margin-top: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--orange);
}

.info p {
    margin-bottom: 12px;
    color: var(--gray);
}

/* ===== Footer ===== */
.footer {
    background: white;
    border-top: 4px solid var(--orange);
    padding: 32px 0;
    margin-top: 64px;
    font-size: 13px;
    color: var(--gray);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-right {
    text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero h1 { font-size: 24px; }
    .lead { font-size: 15px; }
    .verify-form { flex-direction: column; }
    .footer-grid { flex-direction: column; }
    .footer-right { text-align: left; }
    .info { padding: 20px; }
}
