:root {
    --ep-bg: #050609;
    --ep-bg-elevated: #0b0e14;
    --ep-bg-glass: rgba(15, 20, 35, 0.85);
    --ep-border-subtle: rgba(255, 255, 255, 0.06);
    --ep-border-strong: rgba(255, 255, 255, 0.12);
    --ep-text: #f7f7ff;
    --ep-text-muted: #a5a9b8;
    --ep-accent: #46bcee;
    --ep-accent-soft: rgba(70, 188, 238, 0.12);
    --ep-accent-strong: #00e0ff;
    --ep-danger: #ff4b6a;
    --ep-success: #46e39b;
    --ep-radius-card: 16px;
    --ep-radius-pill: 999px;
    --ep-radius-button: 999px;
    --ep-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --ep-header-height: 72px;
    --ep-max-width: 1120px;
    --ep-font: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

.ep-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #253047 0, transparent 55%),
        radial-gradient(circle at bottom right, #101826 0, transparent 55%),
        var(--ep-bg);
    color: var(--ep-text);
    font-family: var(--ep-font);
    -webkit-font-smoothing: antialiased;
}

/* Layout */

.ep-main {
    max-width: var(--ep-max-width);
    margin: 0 auto;
    padding: calc(var(--ep-header-height) + 24px) 20px 40px;
}

.ep-section {
    margin-top: 40px;
}

.ep-section-tight {
    margin-top: 24px;
}

.ep-section-narrow {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */

.ep-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ep-header-height);
    backdrop-filter: blur(16px);
    background: linear-gradient(
        to right,
        rgba(5, 8, 16, 0.94),
        rgba(9, 12, 22, 0.96)
    );
    border-bottom: 1px solid var(--ep-border-subtle);
    z-index: 50;
}

.ep-header-inner {
    max-width: var(--ep-max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ep-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ep-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: radial-gradient(circle at 25% 0%, var(--ep-accent-strong), var(--ep-accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #020308;
    box-shadow: 0 8px 20px rgba(0, 224, 255, 0.4);
}

.ep-logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--ep-text);
}

.ep-nav {
    display: flex;
    gap: 14px;
    flex: 1;
}

.ep-nav-link {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ep-text-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ep-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ep-text);
}

.ep-nav-link.is-active {
    background: rgba(70, 188, 238, 0.16);
    color: var(--ep-accent-strong);
}

.ep-header-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */

.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--ep-radius-button);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-text);
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

.ep-btn-primary {
    background: linear-gradient(135deg, var(--ep-accent-strong), var(--ep-accent));
    border-color: rgba(0, 224, 255, 0.55);
    box-shadow: 0 14px 30px rgba(0, 224, 255, 0.25);
}

.ep-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 224, 255, 0.35);
}

.ep-btn-ghost {
    background: transparent;
    border-color: var(--ep-border-subtle);
    color: var(--ep-text-muted);
}

.ep-btn-ghost:hover {
    border-color: var(--ep-border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ep-text);
}

.ep-btn-lg {
    padding: 10px 22px;
    font-size: 14px;
}

.ep-btn-full {
    width: 100%;
}

/* Hero */

.ep-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.ep-hero-content {
    max-width: 620px;
}

.ep-hero-title {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.ep-gradient-text {
    background: linear-gradient(135deg, var(--ep-accent-strong), var(--ep-success));
    -webkit-background-clip: text;
    color: transparent;
}

.ep-hero-subtitle {
    margin: 0 0 18px;
    color: var(--ep-text-muted);
    font-size: 15px;
    max-width: 480px;
}

.ep-hero-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ep-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ep-text-muted);
}

.ep-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ep-success);
    box-shadow: 0 0 8px rgba(70, 227, 155, 0.8);
}

.ep-hero-panel {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

/* Cards */

.ep-card {
    background: var(--ep-bg-elevated);
    border-radius: var(--ep-radius-card);
    border: 1px solid var(--ep-border-subtle);
    box-shadow: var(--ep-shadow-soft);
    padding: 18px 18px 16px;
}

.ep-card-glass {
    background: var(--ep-bg-glass);
}

.ep-card-narrow {
    max-width: 460px;
    margin: 0 auto;
}

.ep-card-auth {
    max-width: 720px;
    margin: 0 auto;
}

.ep-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.ep-card-title {
    font-size: 16px;
    margin: 0 0 6px;
}

.ep-card-text {
    margin: 0;
    font-size: 14px;
    color: var(--ep-text-muted);
}

/* Pills & badges */

.ep-pill, .ep-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ep-radius-pill);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
}

.ep-pill-green {
    background: rgba(70, 227, 155, 0.15);
    color: var(--ep-success);
    border: 1px solid rgba(70, 227, 155, 0.35);
}

.ep-pill-soft {
    background: rgba(255, 255, 255, 0.02);
    color: var(--ep-text-muted);
    border: 1px dashed var(--ep-border-subtle);
}

.ep-badge-green {
    background: rgba(70, 227, 155, 0.12);
    color: var(--ep-success);
}

.ep-badge-neutral {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ep-text-muted);
}

/* Stats & lists */

.ep-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ep-stat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ep-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.ep-stat-label {
    color: var(--ep-text-muted);
}

.ep-stat-value {
    font-weight: 500;
}

.ep-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.ep-list-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ep-list-label {
    font-weight: 500;
}

.ep-list-meta {
    color: var(--ep-text-muted);
}

/* Sections & typography */

.ep-section-header {
    margin-bottom: 18px;
}

.ep-section-title {
    margin: 0 0 4px;
    font-size: 20px;
}

.ep-section-subtitle,
.ep-page-text {
    margin: 0;
    font-size: 14px;
    color: var(--ep-text-muted);
}

.ep-page-title {
    margin: 0 0 8px;
    font-size: 22px;
}

.ep-page-subtext {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ep-text-muted);
}

.ep-subtitle {
    margin: 0 0 8px;
    font-size: 15px;
}

/* Grid */

.ep-grid {
    display: grid;
    gap: 16px;
}

.ep-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ep-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Product cards */

.ep-card-product {
    position: relative;
}

.ep-card-product.ep-card-muted {
    opacity: 0.7;
}

.ep-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ep-radius-pill);
    padding: 3px 9px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ep-text-muted);
    margin-bottom: 6px;
}

.ep-product-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.ep-product-price {
    color: var(--ep-text-muted);
}

/* Links */

.ep-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ep-accent-strong);
    text-decoration: none;
}

.ep-card-link::after {
    content: '→';
    font-size: 12px;
}

/* Auth */

.ep-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 14px;
    margin-top: 16px;
}

.ep-auth-method {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--ep-border-subtle);
    background: rgba(12, 16, 25, 0.96);
}

.ep-auth-method.is-emphasised {
    border-color: rgba(0, 224, 255, 0.45);
    box-shadow: 0 14px 35px rgba(0, 224, 255, 0.18);
}

.ep-auth-method-muted {
    opacity: 0.7;
}

.ep-auth-title {
    margin: 0 0 6px;
    font-size: 15px;
}

.ep-auth-text {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ep-text-muted);
}

.ep-auth-footnote {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--ep-text-muted);
}

/* Footer */

.ep-footer {
    border-top: 1px solid var(--ep-border-subtle);
    margin-top: 40px;
    padding: 16px 20px 22px;
}

.ep-footer-inner {
    max-width: var(--ep-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
}

.ep-footer-brand {
    font-weight: 500;
}

.ep-footer-meta {
    color: var(--ep-text-muted);
    margin-left: 8px;
}

.ep-footer-links {
    display: flex;
    gap: 10px;
}

.ep-footer-link {
    color: var(--ep-text-muted);
    text-decoration: none;
}

.ep-footer-link:hover {
    color: var(--ep-text);
}

/* Utility layouts */

.ep-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--ep-header-height) - 60px);
}

/* Actions */

.ep-page-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.ep-page-actions-space {
    justify-content: space-between;
}

/* Loader */

.ep-loader {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--ep-accent-strong);
    animation: ep-spin 0.8s linear infinite;
    margin: 14px 0;
}

@keyframes ep-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Icons (placeholder visual blocks) */

.ep-icon-company,
.ep-icon-store,
.ep-icon-auth {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(70, 188, 238, 0.16), rgba(70, 227, 155, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 8px;
}

/* Responsive */

@media (max-width: 900px) {
    .ep-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ep-header-inner {
        gap: 14px;
    }

    .ep-header-actions {
        display: none;
    }

    .ep-auth-grid,
    .ep-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ep-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ep-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
