/* ========== Global ========== */
:root {
    --primary: #4f46e5;
    --sidebar-bg: #1e293b;
    --sidebar-link: #cbd5e1;
}

* { font-family: 'Sarabun', 'Prompt', 'Segoe UI', sans-serif; }
body { background: #f4f6fb; }

code { color: #d63384; background: #fdf2f8; padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }

/* ========== Hero / Search ========== */
.hero-search {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}
.search-box .input-group-text { padding: 0 18px; font-size: 1.4rem; color: #6366f1; }
.search-box .form-control { padding: 14px 12px; font-size: 1.1rem; }
.search-box .form-control:focus { box-shadow: none; }

.project-card { transition: transform .15s ease, box-shadow .15s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important; }
.project-thumb { height: 160px; object-fit: cover; }

/* ========== Auth ========== */
.bg-gradient-auth {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    min-height: 100vh;
}
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-card { width: 100%; max-width: 440px; border: none; border-radius: 20px; }
.login-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ========== Editor sidebar — sticky + internal scroll ========== */
@media (min-width: 992px) {
    .editor-sidebar {
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        overflow-x: visible;       /* ให้ dropdown โผล่ออกข้างได้ */
        padding-right: 4px;        /* เผื่อ scrollbar */
        scrollbar-width: thin;
    }
    .editor-sidebar::-webkit-scrollbar { width: 8px; }
    .editor-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    .editor-sidebar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    /* dropdown menu ของ "เพิ่มตัวแปร" ต้องลอยอยู่บนสุด */
    .editor-sidebar .dropdown-menu { z-index: 1060; }
}

/* ========== Admin Layout ========== */
.admin-body { background: #f4f6fb; min-height: 100vh; margin: 0; }
.admin-shell { display: flex; min-height: 100vh; position: relative; }

.admin-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--sidebar-bg); color: #fff;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    transition: width 0.25s ease, transform 0.25s ease;
    z-index: 1040;
}
.admin-sidebar .brand {
    padding: 18px 20px; display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.5rem; white-space: nowrap;
}
.admin-sidebar .brand strong { display:block; font-size: 1rem; }
.admin-sidebar .brand small { display:block; font-size: 0.75rem; color: #94a3b8; }
.admin-sidebar .nav-link { color: var(--sidebar-link); padding: 12px 20px; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; border-left-color: #6366f1; }
.admin-sidebar .nav-link i { margin-right: 8px; min-width: 20px; display: inline-block; }

.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px; background: #fff;
    position: sticky; top: 0; z-index: 1030;
    border-bottom: 1px solid #e5e7eb;
}
.admin-topbar .topbar-title { font-weight: 600; color: #1f2937; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-main { flex: 1; padding: 24px; min-width: 0; }

.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 1035; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ===== Desktop: collapsed (เหลือแต่ icon) ===== */
@media (min-width: 992px) {
    .sidebar-collapsed .admin-sidebar { width: 64px; }
    .sidebar-collapsed .admin-sidebar .brand strong,
    .sidebar-collapsed .admin-sidebar .brand small,
    .sidebar-collapsed .admin-sidebar .nav-link span,
    .sidebar-collapsed .admin-sidebar hr,
    .sidebar-collapsed .admin-sidebar .sidebar-footer { display: none; }
    .sidebar-collapsed .admin-sidebar .brand { justify-content: center; padding: 18px 10px; }
    .sidebar-collapsed .admin-sidebar .nav-link { padding: 14px; text-align: center; }
    .sidebar-collapsed .admin-sidebar .nav-link i { margin: 0; font-size: 1.1rem; }
}

/* ===== Mobile: off-canvas ===== */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed; top: 0; left: 0; height: 100vh;
        transform: translateX(-100%);
    }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .admin-main { padding: 16px; }
}

/* ========== Dashboard ========== */
.stat-card .h3 { font-size: 1.6rem; }

/* ========== Editor ========== */
#cert-canvas { background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.05); }

/* ========== Verify Page ========== */
.content img { max-width: 100%; }

/* ========================================================== *
 * Guest Home Page (redesigned)
 * ========================================================== */

/* ---------- HERO ---------- */
.guest-hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 80% -20%, rgba(236,72,153,.45), transparent 60%),
        radial-gradient(900px 400px at -10% 20%, rgba(99,102,241,.55), transparent 60%),
        linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
    color: #fff;
    padding: 70px 0 90px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden;
    isolation: isolate;
}
.guest-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35; pointer-events: none;
}
.guest-hero__shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.guest-hero__shapes .shape {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: .35;
}
.guest-hero__shapes .shape-1 { width: 320px; height: 320px; background: #f472b6; top: -80px; left: -60px; }
.guest-hero__shapes .shape-2 { width: 260px; height: 260px; background: #38bdf8; bottom: -60px; right: 10%; opacity: .3; }
.guest-hero__shapes .shape-3 { width: 200px; height: 200px; background: #fbbf24; top: 30%; right: -40px; opacity: .25; }

.guest-hero__head { max-width: 760px; margin: 0 auto; }
.guest-hero__badge {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    color: #fff; padding: 8px 16px; font-weight: 500;
    border: 1px solid rgba(255,255,255,.25);
}
.guest-hero__title {
    font-size: clamp(1.85rem, 4vw + 1rem, 3.4rem);
    font-weight: 700; line-height: 1.15;
    letter-spacing: -.5px;
    text-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.text-gradient-light {
    background: linear-gradient(90deg, #fde68a, #fbcfe8, #c7d2fe);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guest-hero__sub {
    font-size: clamp(.95rem, .4vw + .85rem, 1.15rem);
    opacity: .92;
}

/* ---------- SEARCH ---------- */
.guest-search { max-width: 720px; }
.guest-search__field {
    position: relative;
    background: #fff;
    border-radius: 999px;
    box-shadow:
        0 20px 50px rgba(15,23,42,.18),
        0 6px 12px rgba(15,23,42,.08);
    padding: 6px 6px 6px 56px;
    display: flex; align-items: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.guest-search__field:focus-within {
    transform: translateY(-2px);
    box-shadow:
        0 26px 60px rgba(15,23,42,.22),
        0 0 0 4px rgba(255,255,255,.35);
}
.guest-search__icon {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    font-size: 1.25rem; color: #6366f1;
}
.guest-search__field .form-control {
    border: 0; background: transparent;
    padding: 16px 12px; font-size: 1.05rem;
    box-shadow: none;
}
.guest-search__field .form-control::placeholder { color: #94a3b8; }
/* ซ่อนปุ่ม clear (X) ของ browser native บน input[type=search] */
.guest-search__field .form-control::-webkit-search-cancel-button,
.guest-search__field .form-control::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.parts-search .form-control::-webkit-search-cancel-button,
.parts-search .form-control::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.guest-search__clear {
    border: 0; background: #f1f5f9; color: #475569;
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.guest-search__clear:hover { background: #e0e7ff; color: #4338ca; }

.guest-search__hint {
    margin-top: 14px; text-align: center;
    color: rgba(255,255,255,.85); font-size: .9rem;
}
.guest-search__hint i { color: #fde68a; margin-right: 4px; }

/* ---------- HERO STATS ---------- */
.guest-hero__stats {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 12px; margin-top: 34px;
}
.stat-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff; padding: 9px 16px; border-radius: 999px;
    font-size: .92rem;
}
.stat-pill i { font-size: 1.05rem; color: #fde68a; }
.stat-pill strong { font-weight: 700; }

/* ---------- MAIN CONTAINER ---------- */
.guest-main {
    margin-top: -36px;
    position: relative; z-index: 5;
    background: #f4f6fb;
    border-radius: 24px 24px 0 0;
    padding: 32px 16px 60px;
}
@media (min-width: 768px) { .guest-main { padding: 44px 24px 70px; } }

/* ---------- PROJECT CARDS ---------- */
.project-card {
    display: block;
    background: #fff; color: #0f172a;
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(99,102,241,.08), 0 18px 40px rgba(99,102,241,.18);
    color: #0f172a;
}
.project-card__media {
    position: relative; aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef2ff, #ddd6fe);
    overflow: hidden;
}
.project-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #6366f1; font-size: 3rem;
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
}
.project-card__chip {
    position: absolute; left: 12px; bottom: 12px;
    background: rgba(15,23,42,.78); color: #fff;
    padding: 6px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 500;
    backdrop-filter: blur(6px);
    transform: translateY(8px); opacity: 0;
    transition: transform .22s, opacity .22s;
}
.project-card__chip i { color: #fde68a; }
.project-card:hover .project-card__chip { transform: translateY(0); opacity: 1; }

.project-card__body { padding: 14px 16px 18px; }
.project-card__title {
    font-size: 1rem; font-weight: 600; margin: 0 0 8px;
    color: #0f172a; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-card__meta {
    display: inline-flex; align-items: center; gap: 6px;
    color: #64748b; font-size: .85rem;
}
.project-card__meta i { color: #6366f1; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
    background: #fff; border-radius: 18px;
    padding: 48px 24px; text-align: center;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04);
}
.empty-state__icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    color: #6366f1; font-size: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.empty-state__icon--warn {
    background: linear-gradient(135deg, #fef3c7, #fee2e2);
    color: #d97706;
}

/* ---------- SEARCH RESULTS ---------- */
.result-header {
    background: #fff; padding: 12px 18px; border-radius: 14px;
    margin-bottom: 16px; color: #475569;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    display: flex; align-items: center; justify-content: space-between;
}
.result-header__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: #eef2ff; color: #4f46e5; margin-right: 8px;
}
.result-header em { color: #4f46e5; font-style: normal; font-weight: 600; }

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.result-card {
    background: #fff; border-radius: 16px;
    padding: 16px; text-decoration: none; color: #0f172a;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 18px rgba(15,23,42,.06);
    transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid rgba(99,102,241,.06);
}
.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(99,102,241,.1), 0 14px 32px rgba(99,102,241,.18);
    color: #0f172a;
    border-color: rgba(99,102,241,.18);
}
.result-card__top {
    display: flex; justify-content: space-between; align-items: center;
}
.result-card__avatar {
    width: 38px; height: 38px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    color: #4f46e5; font-size: 1.1rem;
}
.result-card__name { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.result-card__project, .result-card__date {
    color: #64748b; font-size: .85rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.result-card__project i, .result-card__date i { color: #6366f1; }
.result-card__cta {
    margin-top: 6px; padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    color: #4f46e5; font-weight: 600; font-size: .9rem;
}
.result-card__cta i { transition: transform .18s; }
.result-card:hover .result-card__cta i { transform: translateX(4px); }

/* skeleton */
.result-card--skeleton {
    height: 170px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.2s ease-in-out infinite;
    border: 0;
}
@keyframes skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* status pill */
.status-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
}
.status-pill--ok  { background: #dcfce7; color: #15803d; }
.status-pill--bad { background: #fee2e2; color: #b91c1c; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575.98px) {
    .guest-hero { padding: 50px 0 70px; border-radius: 0 0 24px 24px; }
    .guest-search__field { padding-left: 48px; }
    .guest-search__icon { left: 16px; }
    .guest-search__field .form-control { padding: 12px 8px; font-size: 1rem; }
    .stat-pill { font-size: .82rem; padding: 7px 12px; }
}

/* ========================================================== *
 * Project Detail page
 * ========================================================== */
.project-hero {
    position: relative; isolation: isolate;
    color: #fff;
    padding: 60px 0 90px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
}
.project-hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: -2; opacity: .5;
}
.project-hero__overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(800px 400px at 80% -20%, rgba(236,72,153,.45), transparent 60%),
        linear-gradient(135deg, rgba(79,70,229,.85) 0%, rgba(124,58,237,.82) 50%, rgba(99,102,241,.85) 100%);
}
.project-hero__back {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.92); text-decoration: none;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.22);
    padding: 6px 14px; border-radius: 999px; font-size: .9rem;
    transition: background .15s, transform .15s;
}
.project-hero__back:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateX(-2px); }
.project-hero__inner { max-width: 880px; margin: 28px auto 0; text-align: center; }
.project-hero__title {
    font-size: clamp(1.6rem, 3vw + 1rem, 2.6rem);
    font-weight: 700; line-height: 1.2;
    letter-spacing: -.5px; margin-bottom: 18px;
    text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.project-hero__meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}

/* ---------- INFO CARD (project description, participants list) ---------- */
.info-card {
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
}
.info-card__head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fbfbff, #fff);
}
.info-card__head--toolbar { gap: 12px; flex-wrap: wrap; }
.info-card__icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    color: #4f46e5; font-size: 1rem;
    flex-shrink: 0;
}
.info-card__body { padding: 18px 22px; }

/* ---------- PARTICIPANTS TOOLBAR ---------- */
.parts-toolbar {
    display: flex; gap: 8px; align-items: center;
    margin-left: auto; flex-wrap: wrap;
}
.parts-search { position: relative; }
.parts-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: .95rem; pointer-events: none;
}
.parts-search .form-control {
    padding: 8px 14px 8px 36px; min-width: 220px;
    border-radius: 999px; border-color: #e2e8f0;
    background: #f8fafc;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.parts-search .form-control:focus {
    background: #fff; border-color: #c7d2fe;
    box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
#parts-pagesize {
    width: auto; min-width: 120px;
    border-radius: 999px; border-color: #e2e8f0;
    background-color: #f8fafc;
    padding: 8px 36px 8px 14px;
}

/* ---------- PARTICIPANTS TABLE ---------- */
.parts-table { margin: 0; }
.parts-table thead th {
    background: #f8fafc; color: #475569;
    font-weight: 600; font-size: .85rem;
    border-bottom: 1px solid #e2e8f0; padding: 12px 16px;
}
.parts-table tbody td {
    padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.parts-table tbody tr:last-child td { border-bottom: 0; }
.parts-table tbody tr:hover { background: #f8fafc; }

/* soft button */
.btn-primary-soft {
    background: #eef2ff; color: #4338ca; border: 0;
    padding: 6px 14px; border-radius: 999px; font-weight: 500;
    transition: background .15s, color .15s, transform .15s;
}
.btn-primary-soft:hover { background: #4f46e5; color: #fff; transform: translateY(-1px); }

/* ---------- FOOTER (info + pagination) ---------- */
.parts-footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 14px 18px;
    border-top: 1px solid #eef2f7;
    background: #fbfbff; flex-wrap: wrap;
}
.parts-footer__info { color: #64748b; font-size: .85rem; }
.parts-pagination {
    display: inline-flex; gap: 4px; flex-wrap: wrap;
}
.page-btn {
    border: 1px solid #e2e8f0; background: #fff;
    color: #475569; min-width: 36px; height: 36px;
    padding: 0 10px; border-radius: 10px; font-size: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.page-btn:hover:not(:disabled) {
    background: #eef2ff; color: #4338ca; border-color: #c7d2fe;
}
.page-btn.active {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.page-btn:disabled, .page-btn.disabled { opacity: .45; cursor: not-allowed; }
.page-dots { padding: 0 6px; color: #94a3b8; align-self: center; }

@media (max-width: 575.98px) {
    .parts-toolbar { width: 100%; }
    .parts-search { flex: 1; }
    .parts-search .form-control { min-width: 0; width: 100%; }
    .parts-footer { justify-content: center; }
}

/* ========================================================== *
 * Verify Page
 * ========================================================== */
.verify-hero {
    position: relative; isolation: isolate;
    color: #fff;
    padding: 60px 0 80px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden;
}
.verify-hero--ok {
    background:
        radial-gradient(900px 400px at -10% 20%, rgba(34,197,94,.35), transparent 60%),
        linear-gradient(135deg, #059669 0%, #16a34a 50%, #10b981 100%);
}
.verify-hero--bad {
    background:
        radial-gradient(900px 400px at -10% 20%, rgba(239,68,68,.45), transparent 60%),
        linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #ef4444 100%);
}
.verify-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .4; pointer-events: none;
}
.verify-hero .project-hero__back { position: relative; z-index: 2; }
.verify-hero__icon {
    width: 96px; height: 96px; margin: 28px auto 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,.32);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 3rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    animation: pop-in .5s cubic-bezier(.18,1.35,.6,1) both;
}
@keyframes pop-in {
    0%   { transform: scale(.4); opacity: 0; }
    100% { transform: scale(1);  opacity: 1; }
}

.verify-card {
    background: #fff; border-radius: 22px;
    padding: 36px 28px;
    box-shadow: 0 4px 8px rgba(15,23,42,.04), 0 24px 48px rgba(15,23,42,.08);
    text-align: center;
    max-width: 720px; margin: 0 auto;
}
.verify-card__label { color: #64748b; font-size: .9rem; }
.verify-card__name {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
    font-weight: 700;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 6px 0 18px;
    letter-spacing: -.3px;
    /* เพิ่มพื้นที่บน-ล่าง ให้วรรณยุกต์/สระบน-ล่างไทยแสดงครบ ไม่ถูกตัด */
    line-height: 1.55;
    padding: .15em 0 .25em;
}
.verify-card__project {
    color: #334155; font-size: 1.05rem; font-weight: 500;
}
.verify-card__project i { color: #6366f1; margin-right: 4px; }
.verify-card__meta {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin: 18px 0 28px;
}

.stat-pill--solid {
    background: #f1f5f9; color: #334155;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
}
.stat-pill--solid i { color: #6366f1; }

.verify-card__actions {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
    margin-top: 8px;
}
.btn-primary-grad {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border: 0; border-radius: 999px;
    padding: 10px 24px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
    transition: transform .15s, box-shadow .15s;
}
.btn-primary-grad:hover {
    transform: translateY(-2px); color: #fff;
    box-shadow: 0 14px 32px rgba(99,102,241,.45);
}
.btn-soft {
    background: #f1f5f9; color: #334155; border: 0;
    border-radius: 999px; padding: 10px 22px; font-weight: 500;
    transition: background .15s, color .15s, transform .15s;
}
.btn-soft:hover { background: #e0e7ff; color: #4338ca; transform: translateY(-2px); }

.verify-card__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-top: 28px; padding-top: 22px;
    border-top: 1px dashed #e2e8f0;
}
.vstat {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc; border-radius: 14px; padding: 12px;
    text-align: left;
}
.vstat > i {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    color: #4f46e5; font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.vstat__num { display: block; font-weight: 700; color: #0f172a; line-height: 1.1; }
.vstat__label { display: block; color: #64748b; font-size: .8rem; }

.verify-card__alert {
    margin-top: 24px;
    background: linear-gradient(180deg, #fff1f2, #fef2f2);
    border: 1px solid #fecaca; border-radius: 14px;
    padding: 16px 18px; text-align: left;
    color: #7f1d1d;
}
.verify-card__alert-head {
    display: inline-flex; align-items: center; gap: 8px;
    color: #b91c1c; margin-bottom: 6px;
}

@media (max-width: 575.98px) {
    .verify-card { padding: 26px 18px; border-radius: 18px; }
    .verify-card__stats { grid-template-columns: 1fr; }
}
