
    :root {
      --navy:        #0a1628;
      --blue:        #1565c0;
      --blue-mid:    #1976d2;
      --blue-light:  #e3f0fc;
      --cyan:        #0097a7;
      --cyan-light:  #e0f7fa;
      --page-bg:     #f0f4f8;
      --surface:     #ffffff;
      --surface-2:   #f7fafc;
      --border:      #dde4ed;
      --text-body:   #2d3a4a;
      --text-muted:  #6b7c93;
      --text-faint:  #a0aec0;
      --green:       #2e7d32;
      --green-bg:    #e8f5e9;
      --green-border:#a5d6a7;
      --amber:       #e65100;
      --amber-bg:    #fff3e0;
      --amber-border:#ffcc80;
      --red:         #c62828;
      --red-bg:      #ffebee;
      --red-border:  #ef9a9a;
    }

    * { box-sizing: border-box; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--page-bg);
      color: var(--text-body);
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* ─── NAV ─── */
    .navbar {
      background: var(--surface) !important;
      border-bottom: 1px solid var(--border);
      padding: 0.85rem 0;
      box-shadow: 0 1px 8px rgba(21,101,192,0.07);
    }
    .navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
    .navbar-brand img { height: 44px; width: 44px; object-fit: contain; }
    .brand-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.1;
    }
    .brand-sub { font-size: 0.62rem; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; display: block; }
    .nav-link { color: var(--text-muted) !important; font-size: .85rem; font-weight: 500; transition: color .2s; }
    .nav-link:hover { color: var(--blue) !important; }
    .btn-nav-login {
      border: 1.5px solid var(--blue); color: var(--blue) !important;
      border-radius: 4px; padding: .35rem 1.1rem !important;
      font-size: .78rem; font-weight: 600; letter-spacing: .06em;
      text-transform: uppercase; transition: background .2s, color .2s;
    }
    .btn-nav-login:hover { background: var(--blue); color: #fff !important; }
    .navbar-toggler { border-color: var(--border); }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231565c0' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* ─── PAGE WRAPPER ─── */
    .page-wrap { padding: 90px 0 80px; min-height: 100vh; background: var(--page-bg); }

    /* ─── META ROW ─── */
    .meta-row {
      display: flex; flex-wrap: wrap; align-items: center;
      justify-content: space-between; gap: 1rem; margin-bottom: 2rem;
    }
    .breadcrumb-custom {
      display: flex; align-items: center; gap: 0.4rem;
      font-size: 0.78rem; color: var(--text-faint);
    }
    .breadcrumb-custom a { color: var(--blue); text-decoration: none; font-weight: 500; }
    .breadcrumb-custom a:hover { text-decoration: underline; }
    .breadcrumb-custom i { font-size: 0.55rem; }
    .search-again { display: flex; align-items: center; gap: 0.5rem; }
    .search-again input {
      background: var(--surface); border: 1px solid var(--border);
      color: var(--text-body); border-radius: 4px;
      padding: .45rem 1rem; font-size: .8rem; width: 220px;
      transition: border-color .2s, box-shadow .2s;
      font-family: 'DM Sans', sans-serif;
    }
    .search-again input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
    .search-again input::placeholder { color: var(--text-faint); }
    .btn-search-sm {
      background: var(--blue); border: none; color: #fff;
      font-size: .78rem; font-weight: 600; padding: .45rem 1rem;
      border-radius: 4px; display: flex; align-items: center; gap: .35rem;
      transition: background .2s; cursor: pointer;
    }
    .btn-search-sm:hover { background: var(--blue-mid); }

    /* ─── STATUS BANNER ─── */
    .status-banner {
      border-radius: 10px; padding: 1.5rem 1.75rem; margin-bottom: 1.75rem;
      display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
      animation: fadeUp .5s ease both;
    }
    .status-banner.verified { background: var(--green-bg); border: 1px solid var(--green-border); }
    .status-banner.expired  { background: var(--amber-bg); border: 1px solid var(--amber-border); }
    .status-banner.revoked  { background: var(--red-bg);   border: 1px solid var(--red-border); }
    .status-icon-wrap {
      width: 54px; height: 54px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; flex-shrink: 0;
    }
    .verified .status-icon-wrap { background: #c8e6c9; color: var(--green); }
    .expired  .status-icon-wrap { background: #ffe0b2; color: var(--amber); }
    .revoked  .status-icon-wrap { background: #ffcdd2; color: var(--red);   }
    .status-banner-body h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 .2rem; }
    .verified .status-banner-body h3 { color: #1b5e20; }
    .expired  .status-banner-body h3 { color: #bf360c; }
    .revoked  .status-banner-body h3 { color: var(--red); }
    .status-banner-body p { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
    .status-pill {
      display: inline-flex; align-items: center; gap: .35rem;
      font-size: .68rem; font-weight: 700; letter-spacing: .1em;
      text-transform: uppercase; padding: .3rem .9rem;
      border-radius: 100px; margin-left: auto; flex-shrink: 0;
    }
    .verified .status-pill { background: #c8e6c9; border: 1px solid #81c784; color: #1b5e20; }
    .expired  .status-pill { background: #ffe0b2; border: 1px solid #ffb74d; color: #bf360c; }
    .revoked  .status-pill { background: #ffcdd2; border: 1px solid #ef9a9a; color: var(--red); }

    /* ─── CARDS ─── */
    .result-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; overflow: hidden;
      box-shadow: 0 2px 12px rgba(21,101,192,0.05);
      animation: fadeUp .55s .1s ease both;
    }
    .result-card-header {
      background: var(--surface-2); border-bottom: 1px solid var(--border);
      padding: 1rem 1.5rem; display: flex; align-items: center; gap: .7rem;
    }
    .result-card-header h5 { font-size: .85rem; font-weight: 600; margin: 0; color: var(--text-body); }
    .header-icon {
      width: 30px; height: 30px; background: var(--blue-light); border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      color: var(--blue); font-size: .9rem;
    }
    .result-card-body { padding: 1.5rem; }

    /* ─── CERTIFICATE ─── */
    .credential-cert {
      background: linear-gradient(150deg, #f0f7ff 0%, #e8f4fd 60%, #ddeeff 100%);
      border: 1px solid #bcd4f0; border-radius: 10px;
      padding: 2rem 1.75rem 1.75rem; text-align: center;
      position: relative; overflow: hidden;
    }
    .credential-cert::before {
      content: ''; position: absolute; inset: 0; pointer-events: none;
      background-image: radial-gradient(circle at 15% 15%, rgba(21,101,192,.05) 0%, transparent 45%),
                        radial-gradient(circle at 85% 85%, rgba(0,151,167,.05) 0%, transparent 45%);
    }
    .cert-watermark {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
      font-family: 'Playfair Display', serif; font-size: 5.5rem; font-weight: 900;
      color: rgba(21,101,192,.04); letter-spacing: .2em; pointer-events: none; white-space: nowrap;
    }
    .cert-top-bar {
      display: flex; align-items: center; justify-content: space-between;
      padding-bottom: 1.25rem; border-bottom: 1px solid #c9ddf0;
      margin-bottom: 1.5rem; position: relative;
    }
    .cert-logo-area { display: flex; align-items: center; gap: .6rem; }
    .cert-logo-area img { height: 36px; width: 36px; object-fit: contain; }
    .cert-logo-text { font-family: 'Playfair Display', serif; font-size: .85rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
    .cert-logo-sub { font-size: .55rem; color: var(--cyan); letter-spacing: .12em; text-transform: uppercase; }
    .cert-id-badge {
      font-size: .68rem; font-weight: 600; letter-spacing: .08em;
      color: var(--text-muted); font-family: 'Courier New', monospace;
      background: #fff; border: 1px solid var(--border);
      padding: .28rem .7rem; border-radius: 4px;
    }
    .cert-avatar {
      width: 68px; height: 68px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.65rem; margin: 0 auto .9rem;
      border: 3px solid rgba(21,101,192,.2); position: relative;
    }
    .cert-avatar .verified-tick {
      position: absolute; bottom: 0; right: 0;
      width: 20px; height: 20px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: .55rem; border: 2px solid #fff; color: #fff;
    }
    .cert-holder-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: .2rem; color: var(--navy); }
    .cert-holder-title { font-size: .75rem; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem; }
    .cert-qualification {
      background: rgba(21,101,192,.06); border: 1px solid rgba(21,101,192,.15);
      border-radius: 6px; padding: .75rem 1rem; margin-bottom: 1.25rem;
    }
    .cert-qualification-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: .2rem; }
    .cert-qualification-value { font-size: .9rem; font-weight: 600; color: var(--navy); }
    .cert-divider { border-color: #c9ddf0; margin: 1.1rem 0; }
    .cert-meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .85rem; text-align: left; }
    .cert-meta-item .meta-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: .18rem; }
    .cert-meta-item .meta-value { font-size: .85rem; font-weight: 600; color: var(--text-body); }
    .cert-meta-item .meta-value.mono { font-family: 'Courier New', monospace; font-size: .78rem; color: var(--cyan); }
    .cert-footer-bar {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 1.5rem; padding-top: 1.1rem;
      border-top: 1px solid #c9ddf0; flex-wrap: wrap; gap: .7rem;
    }
    .cert-seal { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(21,101,192,.25); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: #fff; }
    .cert-footer-text { font-size: .65rem; color: var(--text-muted); line-height: 1.5; }
    .cert-qr { width: 48px; height: 48px; background: #fff; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--text-faint); }

    /* ─── DETAIL FIELDS ─── */
    .detail-field { padding: .9rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: .9rem; }
    .detail-field:last-child { border-bottom: none; }
    .detail-field-icon { width: 34px; height: 34px; flex-shrink: 0; background: var(--blue-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: .9rem; }
    .detail-field-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: .15rem; }
    .detail-field-value { font-size: .88rem; font-weight: 500; color: var(--text-body); }

    /* ─── TIMELINE ─── */
    .timeline { position: relative; padding-left: 1.5rem; }
    .timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
    .timeline-item { position: relative; padding-bottom: 1.1rem; }
    .timeline-item:last-child { padding-bottom: 0; }
    .timeline-dot { position: absolute; left: -1.5rem; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; background: var(--surface); }
    .timeline-dot.done   { border-color: var(--green); background: #c8e6c9; }
    .timeline-dot.active { border-color: var(--blue);  background: var(--blue-light); }
    .timeline-dot.future { border-color: var(--border); }
    .timeline-dot i { font-size: .42rem; }
    .timeline-dot.done   i { color: var(--green); }
    .timeline-dot.active i { color: var(--blue); }
    .timeline-title { font-size: .85rem; font-weight: 600; color: var(--text-body); line-height: 1; }
    .timeline-title.active-step { color: var(--blue); }
    .timeline-title.future-step { color: var(--text-faint); font-weight: 400; }
    .timeline-date { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }
    .timeline-date.future-step { color: var(--text-faint); }

    /* ─── STAT MINI ─── */
    .stat-mini { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .85rem; text-align: center; }
    .stat-mini-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; line-height: 1; }
    .stat-mini-label { font-size: .62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }
    .validity-track { background: var(--border); border-radius: 100px; height: 7px; overflow: hidden; }
    .validity-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 100px; transition: width 1.2s ease; }

    /* ─── ACTION BUTTONS ─── */
    .action-btn {
      display: inline-flex; align-items: center; gap: .4rem;
      font-size: .82rem; font-weight: 600; letter-spacing: .04em;
      padding: .65rem 1.25rem; border-radius: 6px;
      text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
      border: none; cursor: pointer; width: 100%; justify-content: center;
    }
    .action-btn.primary { background: var(--blue); color: #fff; }
    .action-btn.primary:hover { background: var(--blue-mid); color: #fff; box-shadow: 0 6px 20px rgba(21,101,192,.25); transform: translateY(-1px); }
    .action-btn.outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-body); }
    .action-btn.outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
    .action-btn.ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
    .action-btn.ghost:hover { background: var(--blue-light); color: var(--blue); border-color: rgba(21,101,192,.25); }

    /* ─── VERIFY AGAIN STRIP ─── */
    .verify-again-strip {
      background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
      padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center;
      justify-content: space-between; gap: 1rem; margin-top: 1.5rem;
      animation: fadeUp .6s .25s ease both;
      box-shadow: 0 2px 8px rgba(21,101,192,.04);
    }
    .verify-again-strip p { margin: 0; font-size: .82rem; color: var(--text-muted); }
    .strip-input {
      background: var(--surface-2); border: 1px solid var(--border);
      color: var(--text-body); border-radius: 4px; padding: .5rem 1rem;
      font-size: .8rem; min-width: 200px; font-family: 'DM Sans', sans-serif;
      transition: border-color .2s, box-shadow .2s;
    }
    .strip-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
    .strip-input::placeholder { color: var(--text-faint); }

    /* ─── FOOTER ─── */
    footer { background: var(--navy); padding: 28px 0; border-top: 1px solid rgba(255,255,255,.06); margin-top: 3rem; }
    footer .copy { font-size: .75rem; color: rgba(255,255,255,.3); }
    footer a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .75rem; }
    footer a:hover { color: rgba(255,255,255,.7); }

    /* ─── TOAST ─── */
    #toast {
      position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9999;
      background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
      padding: .9rem 1.25rem; max-width: 290px;
      transform: translateY(100px); opacity: 0; transition: all .35s ease;
      display: flex; gap: .7rem; align-items: flex-start;
      box-shadow: 0 10px 36px rgba(0,0,0,.1);
    }
    #toastTitle { font-size: .85rem; font-weight: 600; color: var(--text-body); }
    #toastMsg   { font-size: .75rem; color: var(--text-muted); margin-top: .12rem; }

    /* ─── ANIMATIONS ─── */
    @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(46,125,50,0); } 50% { box-shadow: 0 0 0 6px rgba(46,125,50,.1); } }
    .status-banner.verified { animation: pulseGlow 3s 1s ease infinite, fadeUp .5s ease both; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      .cert-meta-grid { grid-template-columns: 1fr; }
      .cert-top-bar { flex-direction: column; align-items: flex-start; gap: .5rem; }
      .status-pill { margin-left: 0; }
      .verify-again-strip { flex-direction: column; }
    }
    @media (max-width: 576px) { .search-again input { width: 140px; } }
