:root {
    --er-black: #07060b;
    --er-deep-grey: #0e0d14;
    --er-dark-grey: #15131d;
    --er-grey: #25222f;
    --er-border: #302b3d;

    --er-purple-dark: #4c1d95;
    --er-purple: #7c3aed;
    --er-purple-bright: #a855f7;
    --er-purple-light: #c4a7ff;

    --er-silver: #e1deea;
    --er-muted: #9d98aa;
    --er-white: #f8f7fb;

    --er-purple-glow: rgba(139, 92, 246, 0.45);
}

/* Entire header */
.ether-header {
    position: relative;
    z-index: 1030;
    background: var(--er-black);
    border-bottom: 1px solid var(--er-border);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 1px 20px rgba(124, 58, 237, 0.08);
}

/* Account bar */
.ether-account-bar {
    min-height: 34px;
    display: flex;
    align-items: center;
    background: #09080e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ether-account-links {
    min-height: 34px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.ether-account-link,
.ether-signup-link {
    color: var(--er-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.ether-account-link:hover,
.ether-account-link:focus {
    color: var(--er-white);
}

.ether-signup-link {
    color: var(--er-purple-light);
}

.ether-signup-link:hover,
.ether-signup-link:focus {
    color: var(--er-white);
    text-shadow: 0 0 12px var(--er-purple-glow);
}

.ether-account-divider {
    width: 1px;
    height: 13px;
    background: var(--er-border);
}

/* Main navbar */
.ether-navbar {
    min-height: 78px;
    padding: 0;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(124, 58, 237, 0.12),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            var(--er-dark-grey) 0%,
            var(--er-deep-grey) 100%
        );
}

/* Brand */
.ether-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    color: var(--er-white);
    text-decoration: none;
}

.ether-brand:hover,
.ether-brand:focus {
    color: var(--er-white);
}

.ether-brand-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    position: relative;
}

.ether-brand-icon::before {
    content: "";
    position: absolute;
    inset: 3px;
    transform: rotate(45deg);
    background:
        linear-gradient(
            135deg,
            rgba(196, 167, 255, 0.2),
            rgba(76, 29, 149, 0.35)
        );
    border: 1px solid rgba(196, 167, 255, 0.6);
    box-shadow:
        0 0 15px rgba(124, 58, 237, 0.35),
        inset 0 0 12px rgba(168, 85, 247, 0.15);
}

.ether-brand-icon img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.ether-brand-placeholder {
    position: relative;
    z-index: 2;
    color: var(--er-white);
    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 0 10px var(--er-purple-glow);
}

.ether-brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ether-brand-first {
    color: var(--er-silver);
}

.ether-brand-second {
    color: var(--er-purple-light);
    text-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
}

/* Main navigation links */
.ether-navbar .navbar-nav {
    gap: 5px;
}

.ether-nav-link {
    position: relative;
    padding: 27px 17px !important;
    color: var(--er-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        text-shadow 0.2s ease;
}

.ether-nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--er-purple),
        var(--er-purple-bright)
    );
    box-shadow: 0 0 12px var(--er-purple-glow);
    transition:
        left 0.2s ease,
        right 0.2s ease;
}

.ether-nav-link:hover,
.ether-nav-link:focus,
.ether-nav-link.active {
    color: var(--er-white);
    text-shadow: 0 0 13px rgba(168, 85, 247, 0.28);
}

.ether-nav-link:hover::after,
.ether-nav-link:focus::after,
.ether-nav-link.active::after {
    left: 17px;
    right: 17px;
}

.ether-store-link {
    color: var(--er-purple-light);
}

/* Mobile toggle */
.ether-toggler {
    padding: 7px 9px;
    border: 1px solid var(--er-border);
    border-radius: 2px;
    box-shadow: none !important;
}

.ether-toggler:hover,
.ether-toggler:focus {
    border-color: var(--er-purple);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.2) !important;
}

/* Mobile layout */
@media (max-width: 991.98px) {
    .ether-navbar {
        min-height: 68px;
    }

    .ether-brand-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .ether-brand-name {
        font-size: 1.25rem;
    }

    .ether-navbar .navbar-collapse {
        margin-top: 8px;
        padding: 8px 0 14px;
        border-top: 1px solid var(--er-border);
    }

    .ether-navbar .navbar-nav {
        gap: 0;
    }

    .ether-nav-link {
        padding: 13px 6px !important;
    }

    .ether-nav-link::after {
        left: 0;
        right: auto;
        bottom: 8px;
        width: 2px;
        height: calc(100% - 16px);
    }

    .ether-nav-link:hover::after,
    .ether-nav-link:focus::after,
    .ether-nav-link.active::after {
        left: 0;
        right: auto;
    }
}

@media (max-width: 420px) {
    .ether-brand-name {
        font-size: 1.08rem;
    }

    .ether-account-link,
    .ether-signup-link {
        font-size: 0.7rem;
    }
}