:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #12824a;
    --accent-dark: #0d6338;
    --accent-soft: #eaf7ef;
    --line: #dbe3ea;
    --line-strong: #c5d2dd;
    --panel: #ffffff;
    --panel-soft: #f8fbfd;
    --navy: #1e293b;
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 14% 20%, #eef7f1 0%, #ffffff 40%, #edf2f7 100%);
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body.verify-page {
    background: radial-gradient(circle at 12% 10%, #f0f8f3 0%, #ffffff 44%, #eff4f8 100%);
}

.verify-container {
    width: min(920px, 94%);
}

.verify-card {
    padding: 1.5rem;
}

.verify-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.verify-logo-wrap {
    width: 170px;
    margin-bottom: 0.15rem;
}

.verify-logo {
    width: 100%;
    height: auto;
    display: block;
}

.verify-search {
    margin-bottom: 1rem;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
}

.verify-status-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.verify-warning {
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #f4caa1;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.verify-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.verify-grid label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5b7063;
    margin-bottom: 0.2rem;
}

.verify-grid p {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.52rem 0.62rem;
}

.verify-linkedin {
    border-top: 1px dashed #cfe0d3;
    padding-top: 0.9rem;
}

.copy-block {
    margin: 0.6rem 0;
    border: 1px solid var(--line);
    background: #f8fbff;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.25;
}

.copy-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0.3rem;
    align-items: start;
    margin-bottom: 0.12rem;
}

.copy-row:last-child {
    margin-bottom: 0;
}

.copy-label {
    color: #334155;
    font-weight: 700;
}

.copy-value {
    color: #0f172a;
    word-break: break-word;
}

.copy-url {
    color: #0a5fbf;
}

.login-shell {
    width: min(980px, 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-card);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-feature {
    background: #0f172a;
    color: #f1f5f9;
    padding: 2rem;
    position: relative;
}

.login-feature::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -80px;
    right: -80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    filter: blur(10px);
}

.login-feature-logo {
    width: 150px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.login-feature h1 {
    margin: 1.25rem 0 0.7rem;
    font-size: 1.85rem;
    position: relative;
    z-index: 1;
}

.login-feature > p {
    color: #cbd5e1;
    margin: 0;
    position: relative;
    z-index: 1;
}

.login-feature-points {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.7rem;
    position: relative;
    z-index: 1;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.point-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 0.42rem;
    background: #4ade80;
    flex-shrink: 0;
}

.point-item p {
    margin: 0;
    color: #dbe4ef;
    font-size: 0.94rem;
}

.login-card {
    background: #ffffff;
    padding: 2rem;
}

.login-card h2 {
    margin: 0;
    font-size: 1.7rem;
    color: #0f172a;
}

.login-form {
    margin-top: 1.15rem;
}

.login-form input {
    border-color: #cbd5e1;
    border-radius: 12px;
    padding: 0.68rem 0.78rem;
}

.login-form button {
    margin-top: 0.4rem;
    border-radius: 12px;
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.login-form button:hover {
    background: #1e293b;
    border-color: #1e293b;
}

.google-signin-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 1.5rem 0 0 0;
}

.container {
    width: min(1320px, 96%);
    margin: 2rem auto;
    flex: 1;
}

.container.narrow {
    width: min(560px, 92%);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-center {
    display: flex;
    justify-content: center;
    margin: 0 auto 1rem;
}

.brand-logo {
    width: min(150px, 32vw);
    height: auto;
    display: block;
}

.brand-center .brand-logo {
    width: min(180px, 42vw);
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.15rem 0;
}

.topbar h1 {
    margin: 0;
    font-size: 1.4rem;
}

.topbar nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.hero {
    text-align: center;
    padding: 2rem 1.25rem;
}

h1,
h2 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.actions-left {
    justify-content: flex-start;
}

.button-link,
button {
    display: inline-block;
    border: 1px solid var(--accent);
    background: #fff;
    color: var(--accent);
    text-decoration: none;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button-link:hover,
button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.button-link:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(18, 130, 74, 0.2);
    outline-offset: 1px;
    border-color: var(--accent);
}

.button-link.primary {
    background: var(--accent);
    color: #fff;
}

.button-link.primary:hover {
    background: var(--accent-dark);
}

.form-grid {
    display: grid;
    gap: 0.65rem;
}

label {
    font-weight: 600;
}

input {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
}

select,
textarea {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.notice {
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin: 0.8rem 0;
    border: 1px solid;
}

.notice.success {
    background: var(--accent-soft);
    border-color: #9fd4b5;
    color: #145935;
}

.notice.error {
    background: #fff1f1;
    border-color: #e6a6a6;
    color: #8c2c2c;
}

.result-box {
    margin-top: 0.8rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    overflow: auto;
}

.filter-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 0.7rem;
    align-items: end;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.cert-table th,
.cert-table td {
    padding: 0.6rem;
    border-bottom: 1px solid #e9eef3;
    text-align: left;
    vertical-align: top;
    font-size: 0.8rem;
}

.cert-table th {
    position: sticky;
    top: 0;
    background: #f5f9fc;
    color: #334155;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cert-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.cert-table tbody tr:hover {
    background: #f4f9f6;
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 1.2rem;
}

.log-details {
    margin: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.74rem;
    line-height: 1.35;
    white-space: pre-wrap;
    max-width: 340px;
}

.muted-small {
    color: var(--muted);
    font-size: 0.8rem;
}

.table-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.table-actions .button-link,
.table-actions button {
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    font-size: 1rem;
}

.icon-button:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.icon-button:focus {
    outline: 2px solid rgba(18, 130, 74, 0.2);
    outline-offset: 1px;
    border-color: var(--accent);
}

.icon-button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.icon-button-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.readonly-grid {
    margin: 0.5rem 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 0.7rem;
}

.readonly-grid input[readonly] {
    background: #f8fbfd;
    color: #334155;
}

.danger-zone {
    margin-top: 1.2rem;
    border: 1px solid #f2b1b1;
    border-radius: 10px;
    background: #fff5f5;
    padding: 0.9rem;
}

.danger-zone h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #8c2c2c;
}

.button-danger {
    display: inline-block;
    border: 1px solid #b91c1c;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 0.52rem 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.button-danger:hover {
    background: #b91c1c;
    border-color: #991b1b;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-valid {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    font-weight: 800;
}

.status-expired {
    background: #fff7ed;
    border-color: #f4caa1;
    color: #9a3412;
}

.status-neutral {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.status-revoked {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 800;
}

.status-draft {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.button-link.linkedin {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.button-link.linkedin:hover {
    background: #004182;
    border-color: #004182;
    color: #fff;
}

.button-link.linkedin svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-link {
    margin-top: 1.5rem;
    text-align: left;
}

.footer-link a {
    color: #cbd5e1;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-link a:hover {
    color: #94a3b8;
}

.site-footer {
    width: 100%;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.55rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.73rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .verify-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        margin: 1.2rem auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .verify-logo-wrap {
        width: 145px;
    }

    .verify-grid {
        grid-template-columns: 1fr;
    }

    .login-feature,
    .login-card {
        padding: 1.25rem;
    }

    .login-feature h1 {
        font-size: 1.5rem;
    }

    .brand-logo {
        width: min(130px, 42vw);
    }

    .brand-center .brand-logo {
        width: min(150px, 54vw);
    }

    .panel {
        padding: 1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .cert-table {
        min-width: 880px;
    }

    .readonly-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: flex-start;
    }

    .copy-row {
        grid-template-columns: 1fr;
        gap: 0.18rem;
    }

    .site-footer {
        font-size: 0.68rem;
        padding: 0.5rem 0.75rem;
    }
}
