/* Custom admin + verification portal (not the main Fomantic UI theme) */
:root {
    --portal-bg: #f4f1ea;
    --portal-card: #faf7f0;
    --portal-teal: #0f766e;
    --portal-teal-dark: #0d5c56;
    --portal-accent: #22c55e;
    --portal-text: #0f172a;
    --portal-muted: #64748b;
    --portal-border: rgba(15, 118, 110, 0.15);
    --portal-danger: #b91c1c;
}

.portal-body {
    margin: 0;
    min-height: 100vh;
    background: var(--portal-bg);
    color: var(--portal-text);
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.portal-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }
    .portal-sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
    }
}

.portal-sidebar {
    background: linear-gradient(180deg, #0f766e 0%, #0b534a 100%);
    color: #ecfeff;
    padding: 1.25rem 1rem 2rem;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.portal-brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.portal-nav a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: #cffafe;
    text-decoration: none;
    margin-bottom: 0.35rem;
    border: 1px solid transparent;
}

.portal-nav a:hover,
.portal-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.portal-main {
    padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
}

.portal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.portal-sub {
    color: var(--portal-muted);
    margin: 0 0 1.5rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.portal-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--portal-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.portal-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.portal-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.portal-tag.ok {
    background: #dcfce7;
    color: #166534;
}

.portal-tag.bad {
    background: #fee2e2;
    color: #991b1b;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.portal-table th,
.portal-table td {
    text-align: left;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}

.portal-table th {
    color: var(--portal-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portal-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--portal-teal);
    color: #fff;
}

.portal-btn:hover {
    background: var(--portal-teal-dark);
}

.portal-btn.secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.portal-btn.secondary:hover {
    background: #cbd5e1;
}

.portal-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.65rem;
    font-size: 0.95rem;
}

.portal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.portal-note {
    font-size: 0.85rem;
    color: var(--portal-muted);
    margin-top: 0.5rem;
}

.portal-error {
    color: var(--portal-danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

/* Verification mobile layout */
.verify-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

.verify-disclaimer {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.verify-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.verify-lang {
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.verify-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--portal-teal-dark);
    margin: 0.25rem 0 1rem;
}

.verify-hero {
    background: var(--portal-card);
    border-radius: 18px;
    border: 1px solid var(--portal-border);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.75rem;
    align-items: stretch;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

@media (max-width: 420px) {
    .verify-hero {
        grid-template-columns: 1fr;
    }
}

.verify-hero-copy {
    font-size: 0.95rem;
    line-height: 1.55;
}

.verify-hero-copy strong {
    color: var(--portal-accent);
}

.verify-phone-mock {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.5rem 0.55rem;
    font-size: 0.68rem;
    color: var(--portal-muted);
}

.verify-phone-mock-title {
    text-align: center;
    font-weight: 700;
    color: var(--portal-text);
    margin-bottom: 0.35rem;
}

.verify-code-row {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.verify-code-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 0.15rem 0.25rem;
    min-width: 1.1rem;
    text-align: center;
}

.verify-mock-btn {
    margin-top: 0.35rem;
    background: #14b8a6;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 0.25rem;
    font-size: 0.65rem;
}

.verify-body-text {
    text-align: center;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
    margin: 1rem 0;
}

.verify-cta {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #0f766e, #0b534a);
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.35);
}

.verify-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.verify-panel {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--portal-border);
    padding: 1rem;
    margin-top: 1rem;
}

.verify-pair {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--portal-teal-dark);
    margin: 0.5rem 0;
}

.verify-steps {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.verify-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}

.verify-step-dot.on {
    background: var(--portal-teal);
}
