@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --tbp-primary: #0A2342;
  --tbp-primary-2: #143567;
  --tbp-accent: #00A6A6;
  --tbp-accent-2: #00D4D4;
  --tbp-alert: #D62828;
  --tbp-success: #16A34A;
  --tbp-warning: #F59E0B;
  --tbp-gray-50: #F8FAFC;
  --tbp-gray-100: #F1F5F9;
  --tbp-gray-200: #E2E8F0;
  --tbp-gray-300: #CBD5E1;
  --tbp-gray-500: #64748B;
  --tbp-gray-700: #334155;
  --tbp-gray-900: #0F172A;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow-sm: 0 1px 2px rgba(10,35,66,0.06);
  --shadow-md: 0 4px 12px rgba(10,35,66,0.08);
  --shadow-lg: 0 20px 40px rgba(10,35,66,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; color: var(--tbp-gray-900); background: var(--tbp-gray-50); -webkit-font-smoothing: antialiased; }
a { color: var(--tbp-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.tbp-header { background: var(--tbp-primary); color: #fff; padding: 18px 0; border-bottom: 3px solid var(--tbp-accent); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-md); }
.tbp-header .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.tbp-logo { display: flex; align-items: center; gap: 14px; color: #fff; }
.tbp-logo-mark { width: 44px; height: 44px; background: linear-gradient(135deg, var(--tbp-accent) 0%, var(--tbp-accent-2) 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--tbp-primary); letter-spacing: -1px; }
.tbp-logo-text { line-height: 1.1; }
.tbp-logo-text .brand { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.tbp-logo-text .sub { font-size: 11px; opacity: 0.75; letter-spacing: 1.2px; text-transform: uppercase; }
.tbp-header-nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.tbp-header-nav a { color: rgba(255,255,255,0.85); }
.tbp-header-nav a:hover { color: #fff; text-decoration: none; }

.tbp-hero { background: radial-gradient(ellipse at top right, rgba(0,166,166,0.15), transparent 50%), linear-gradient(180deg, var(--tbp-primary) 0%, var(--tbp-primary-2) 100%); color: #fff; padding: 80px 24px 100px; position: relative; overflow: hidden; }
.tbp-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.tbp-hero-content { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.tbp-hero-label { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--tbp-accent-2); padding: 6px 14px; border: 1px solid rgba(0,212,212,0.3); border-radius: 100px; margin-bottom: 24px; }
.tbp-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 16px; }
.tbp-hero h1 em { color: var(--tbp-accent-2); font-style: normal; }
.tbp-hero p { font-size: 17px; opacity: 0.85; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }

.tbp-search-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto; position: relative; z-index: 2; }
.tbp-search-card label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--tbp-gray-500); margin-bottom: 8px; }
.tbp-input { width: 100%; padding: 16px 18px; font-size: 18px; font-family: var(--font-mono); color: var(--tbp-gray-900); border: 2px solid var(--tbp-gray-200); border-radius: var(--radius-md); background: var(--tbp-gray-50); transition: all 0.2s; }
.tbp-input:focus { outline: none; border-color: var(--tbp-accent); background: #fff; box-shadow: 0 0 0 4px rgba(0,166,166,0.1); }

.tbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.3px; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; text-decoration: none; }
.tbp-btn-primary { background: var(--tbp-primary); color: #fff; }
.tbp-btn-primary:hover { background: var(--tbp-primary-2); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; color: #fff; }
.tbp-btn-accent { background: var(--tbp-accent); color: #fff; }
.tbp-btn-accent:hover { background: var(--tbp-accent-2); color: var(--tbp-primary); text-decoration: none; }
.tbp-btn-block { width: 100%; }
.tbp-btn-ghost { background: transparent; color: var(--tbp-gray-700); border: 1px solid var(--tbp-gray-300); }
.tbp-btn-ghost:hover { background: var(--tbp-gray-100); text-decoration: none; }
.tbp-btn-danger { background: var(--tbp-alert); color: #fff; }

.tbp-result-wrap { max-width: 780px; margin: -60px auto 60px; padding: 0 24px; position: relative; z-index: 3; }
.tbp-result-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: slideUp 0.5s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.tbp-result-header { padding: 24px 32px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--tbp-gray-200); }
.tbp-result-header.ok { background: linear-gradient(90deg, #F0FDF4, #fff); border-left: 4px solid var(--tbp-success); }
.tbp-result-header.expired { background: linear-gradient(90deg, #FFFBEB, #fff); border-left: 4px solid var(--tbp-warning); }
.tbp-result-header.fail { background: linear-gradient(90deg, #FEF2F2, #fff); border-left: 4px solid var(--tbp-alert); }
.tbp-status-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; flex-shrink: 0; }
.tbp-status-icon.ok { background: var(--tbp-success); }
.tbp-status-icon.expired { background: var(--tbp-warning); }
.tbp-status-icon.fail { background: var(--tbp-alert); }
.tbp-status-text h2 { font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.tbp-status-text p { font-size: 13px; color: var(--tbp-gray-500); }
.tbp-result-body { padding: 28px 32px 32px; }
.tbp-cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-bottom: 28px; }
.tbp-cert-field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--tbp-gray-500); margin-bottom: 4px; }
.tbp-cert-field .value { font-size: 16px; color: var(--tbp-gray-900); font-weight: 500; }
.tbp-cert-field.full { grid-column: 1 / -1; }
.tbp-cert-field .code { font-family: var(--font-mono); font-size: 15px; color: var(--tbp-primary); }
.tbp-result-actions { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid var(--tbp-gray-200); }

.tbp-footer { background: var(--tbp-primary); color: rgba(255,255,255,0.7); padding: 40px 24px 20px; margin-top: auto; font-size: 13px; }
.tbp-footer .container { max-width: 1200px; margin: 0 auto; }
.tbp-footer .footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 18px; }
.tbp-footer .footer-brand strong { color: #fff; font-size: 14px; letter-spacing: 0.5px; }
.tbp-footer .footer-brand span { font-size: 12px; opacity: 0.7; }
.tbp-footer .footer-contact { text-align: right; font-size: 13px; line-height: 1.8; }
.tbp-footer .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; opacity: 0.75; }
.tbp-footer .footer-credit strong { color: var(--tbp-accent-2); font-weight: 600; }
.tbp-footer a { color: var(--tbp-accent-2); }

body.page { display: flex; flex-direction: column; min-height: 100vh; }
main.page-main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.tbp-alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 14px; border-left: 4px solid; }
.tbp-alert.success { background: #F0FDF4; color: #14532D; border-color: var(--tbp-success); }
.tbp-alert.error { background: #FEF2F2; color: #7F1D1D; border-color: var(--tbp-alert); }
.tbp-alert.info { background: #EFF6FF; color: #1E3A8A; border-color: #3B82F6; }

@media (max-width: 640px) {
  .tbp-hero { padding: 60px 20px 80px; }
  .tbp-search-card { padding: 24px 20px; }
  .tbp-cert-grid { grid-template-columns: 1fr; }
  .tbp-result-actions { flex-direction: column; }
  .tbp-result-actions .tbp-btn { width: 100%; }
  .tbp-header-nav { display: none; }
  .tbp-footer .footer-top, .tbp-footer .footer-bottom { flex-direction: column; }
  .tbp-footer .footer-contact { text-align: left; }
}
