:root {
    --pink-glow: rgba(255, 45, 143, 0.35);
    --black: #070709;
    --text: #e8e8f0;
    --text-dim: #7a7a8c;
    --border: rgba(255, 45, 143, 0.2);
    --divider: rgba(255, 45, 143, 0.1);
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--black);
    color: var(--text);
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 100;
}

body::after {
    content: '';
    position: fixed;
    inset: -200%;
    width: 400%;
    height: 400%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.06;
    animation: grain 0.8s steps(1) infinite;
    pointer-events: none;
    z-index: 99;
}

/* ── Hero ── */

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 50% 48%, rgba(255,45,143,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 30% 25% at 50% 48%, rgba(255,45,143,0.06) 0%, transparent 60%),
        var(--black);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,45,143,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,45,143,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

.slash {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--brand) 20%, transparent 80%);
    opacity: 0;
    animation: slashReveal 0.4s ease forwards;
}
.slash:nth-child(1) { top: 18%;    animation-delay: 0.8s; }
.slash:nth-child(2) { bottom: 18%; animation-delay: 1.0s; }

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--brand);
    border-style: solid;
    opacity: 0;
    animation: cornerIn 0.5s ease forwards;
}
.corner--tl { top: 24px;    left: 24px;  border-width: 2px 0 0 2px; animation-delay: 0.6s; }
.corner--tr { top: 24px;    right: 24px; border-width: 2px 2px 0 0; animation-delay: 0.7s; }
.corner--bl { bottom: 24px; left: 24px;  border-width: 0 0 2px 2px; animation-delay: 0.7s; }
.corner--br { bottom: 24px; right: 24px; border-width: 0 2px 2px 0; animation-delay: 0.6s; }

/* ── Hero content ── */

.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.logo-wrap {
    opacity: 0;
    transform: scale(0.88);
    animation: logoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px var(--pink-glow)) drop-shadow(0 0 8px rgba(255,45,143,0.5));
}

.cert-title {
    font-size: clamp(32px, 7vw, 55px);
    text-align: center;
    line-height: 1;
    opacity: 0;
    transform: translateY(12px);
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.cert-title span {
    color: var(--brand);
    text-shadow: 0 0 20px var(--pink-glow), 0 0 40px rgba(255,45,143,0.2);
}

.divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0;
    animation: fadeIn 0.5s ease 0.8s forwards;
}

.sms-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.sms-badge {
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.sms-sep {
    width: 1px;
    height: 10px;
    background: rgba(255,255,255,0.12);
}

.phone {
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.phone:hover {
    color: var(--text);
}

.btn-row {
    display: flex;
    gap: 14px;
    opacity: 0;
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.btn {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 32px;
    border: 1px solid rgba(255,45,143,0.5);
    color: var(--text);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.25s, box-shadow 0.25s;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand);
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::before { transform: translateX(0); }

.btn:hover {
    color: var(--black);
    box-shadow: 0 0 24px rgba(255,45,143,0.4);
}

.btn span {
    position: relative;
    z-index: 1;
}

.status {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    opacity: 0;
    animation: fadeIn 0.5s ease 1.4s forwards;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 8px var(--brand);
    animation: pulse 2s ease-in-out infinite;
}

/* ── Sidebar ── */

.sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--black);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.sidebar-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,45,143,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,45,143,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, black 30%, transparent 100%);
    pointer-events: none;
}

.sidebar-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,45,143,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    z-index: 20;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sidebar-close:hover {
    color: var(--brand);
    border-color: rgba(255,45,143,0.5);
    background: rgba(255,45,143,0.06);
}

.sidebar-header {
    position: relative;
    z-index: 1;
    padding: 48px 36px 28px;
    border-bottom: 1px solid var(--divider);
}

.sidebar-header-label {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 6px;
    opacity: 0.8;
}

.sidebar-header-title {
    font-size: 44px;
    line-height: 1;
}

.sidebar-body {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 0 36px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,45,143,0.2) transparent;
}

.sidebar-body::-webkit-scrollbar       { width: 3px; }
.sidebar-body::-webkit-scrollbar-track { background: transparent; }
.sidebar-body::-webkit-scrollbar-thumb { background: rgba(255,45,143,0.25); border-radius: 2px; }

.sidebar-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--divider);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-subhead {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.sidebar-section p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: #9a9aaa;
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    padding: 20px 36px;
    border-top: 1px solid var(--divider);
    display: flex;
    gap: 12px;
}

.sidebar-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255,45,143,0.5);
    color: var(--text);
    background: transparent;
    transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.sidebar-btn:hover {
    background: var(--brand);
    color: var(--black);
    box-shadow: 0 0 24px rgba(255,45,143,0.4);
}

/* ── Animations ── */

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10%  { transform: translate(-2%, -3%); }
    20%  { transform: translate(3%, 2%); }
    30%  { transform: translate(-1%, 4%); }
    40%  { transform: translate(4%, -1%); }
    50%  { transform: translate(-3%, 1%); }
    60%  { transform: translate(2%, 3%); }
    70%  { transform: translate(-4%, -2%); }
    80%  { transform: translate(1%, -4%); }
    90%  { transform: translate(3%, -3%); }
}

@keyframes slashReveal { to { opacity: 0.25; } }
@keyframes cornerIn   { to { opacity: 0.6; } }
@keyframes logoIn     { to { opacity: 1; transform: scale(1); } }
@keyframes slideUp    { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { to { opacity: 1; } }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* ── Mobile ── */

@media (max-width: 480px) {
    .logo            { width: 90px; height: 90px; }
    .btn-row         { flex-direction: column; align-items: stretch; text-align: center; }
    .corner          { width: 24px; height: 24px; }

    .sidebar-footer {
        flex-direction: column;
    }    
}
