:root {
    --bg-main: #0a0a0c;
    --accent-red: #ff003c;
    --accent-red-glow: rgba(255, 0, 60, 0.45);
    --text-white: #ffffff;
    --text-gray: #a8a8b8;
    --font-main: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.portal-gate-body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text-white);
    background: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, #1f0b11 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
}

.glow-1 { width: 320px; height: 320px; background: var(--accent-red); top: -120px; left: -120px; }
.glow-2 { width: 260px; height: 260px; background: #8b0021; bottom: -80px; right: -80px; }

.portal-gate-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    padding: 24px;
}

.portal-gate-card {
    background: rgba(20, 20, 25, 0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 0, 60, 0.28);
    border-radius: 22px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 0 30px rgba(255, 0, 60, 0.05);
}

.portal-gate-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-red);
    margin-bottom: 18px;
}

.portal-gate-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 60, 0.45);
    background: rgba(255, 0, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 24px var(--accent-red-glow);
}

.portal-gate-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-red);
}

.portal-gate-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.portal-gate-subtitle {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.portal-gate-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

.portal-gate-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 60, 0.45);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.portal-gate-user-name {
    font-size: 14px;
    font-weight: 800;
}

.portal-gate-user-status {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
}

.portal-gate-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.portal-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: 0.25s ease;
}

.portal-gate-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.portal-gate-btn--primary {
    background: linear-gradient(90deg, #8b0021, var(--accent-red));
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-red-glow);
}

.portal-gate-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.portal-gate-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.portal-gate-btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.portal-gate-public {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-gate-public-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.portal-gate-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.portal-gate-public-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.portal-gate-public-link:hover {
    border-color: rgba(255, 0, 60, 0.35);
    background: rgba(255, 0, 60, 0.08);
    color: var(--accent-red);
}

.portal-gate-home {
    display: inline-block;
    margin-top: 18px;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.portal-gate-home:hover {
    color: #fff;
}

@media (max-width: 560px) {
    .portal-gate-card { padding: 28px 22px 22px; }
    .portal-gate-title { font-size: 22px; }
    .portal-gate-public-grid { grid-template-columns: 1fr; }
}
