@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary:   #09091a;
    --bg-secondary: #10102a;
    --bg-card:      #181832;
    --accent:       #7c6bff;
    --accent-hover: #6a59ee;
    --text:         #ffffff;
    --text-muted:   rgba(255,255,255,0.55);
    --border:       rgba(124,107,255,0.15);
    --green:        #4ade80;
    --radius:       12px;
}

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

svg:not([width]):not([height]) { max-width: 100%; }

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── NAVBAR ── */
.erc-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 32px;
    background: rgba(9,9,26,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.erc-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.erc-nav__logo img { width: 36px; height: 36px; border-radius: 8px; }

.erc-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
}
.erc-nav__links a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .2s, background .2s;
}
.erc-nav__links a:hover,
.erc-nav__links a.active {
    color: var(--text);
    background: rgba(255,255,255,0.07);
}

.erc-nav__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.erc-nav__balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(124,107,255,0.1);
    border: 1px solid rgba(124,107,255,0.25);
    padding: 5px 12px;
    border-radius: 20px;
}
.erc-nav__balance svg { width: 14px; height: 14px; }
.erc-nav__topup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-left: 4px;
    transition: background .2s, transform .1s;
    flex-shrink: 0;
}
.erc-nav__topup:hover { background: var(--accent-hover); transform: scale(1.15); }

/* Avatar dropdown */
.erc-user {
    position: relative;
}
.erc-user__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    transition: background .2s;
}
.erc-user__trigger:hover { background: rgba(255,255,255,0.1); }
.erc-user__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    image-rendering: pixelated;
}
.erc-user__name {
    font-size: 13px;
    font-weight: 600;
}
.erc-user__chevron {
    width: 14px; height: 14px;
    opacity: .6;
    transition: transform .2s;
}
.erc-user.open .erc-user__chevron { transform: rotate(180deg); }

.erc-user__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    display: none;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.erc-user.open .erc-user__dropdown { display: block; }

.erc-user__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background .15s, color .15s;
}
.erc-user__dropdown a:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.erc-user__dropdown a svg { width: 15px; height: 15px; flex-shrink: 0; }
.erc-user__dropdown .divider { height: 1px; background: var(--border); margin: 4px 0; }
.erc-user__dropdown .logout { color: #ff6b6b; }
.erc-user__dropdown .logout:hover { background: rgba(255,107,107,0.1); color: #ff6b6b; }

.btn-login {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: color .2s, border-color .2s;
}
.btn-login:hover { color: var(--text); border-color: rgba(124,107,255,0.4); }

.btn-register {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    transition: background .2s;
}
.btn-register:hover { background: var(--accent-hover); }

.btn-login-solo {
    padding: 9px 28px;
    font-size: 14px;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,107,255,0.18) 0%, transparent 70%),
                linear-gradient(180deg, #10102a 0%, #09091a 100%);
}

.hero__glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,107,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero__image {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
    position: relative;
}
.hero__image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 30px;
    background: rgba(124,107,255,0.35);
    filter: blur(18px);
    border-radius: 50%;
    pointer-events: none;
}
.hero__image img {
    width: 380px;
    will-change: transform;
    transform: translateZ(0);
    animation: float 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes float {
    0%   { transform: translateZ(0) translateY(0); }
    50%  { transform: translateZ(0) translateY(-16px); }
    100% { transform: translateZ(0) translateY(0); }
}

.hero__content { flex: 1; }

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.hero__status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.hero__title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}
.hero__title span { color: var(--accent); }

.hero__subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; }

.hero__ip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .2s;
}
.hero__ip:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.hero__ip svg { width: 16px; height: 16px; }

/* ── STATS BAR ── */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.stats-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-item__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(124,107,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.stat-item__icon svg { width: 20px; height: 20px; }
.stat-item__label { font-size: 12px; color: var(--text-muted); }
.stat-item__value { font-size: 18px; font-weight: 700; }

/* ── SECTIONS ── */
.section {
    padding: 80px 0;
}
.section--dark { background: var(--bg-primary); }
.section--light { background: var(--bg-secondary); }

.section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}
.section__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section__title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}
.section__title span { color: var(--accent); }
.section__subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ── NEWS ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(124,107,255,0.35); }
.news-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-secondary);
}
.news-card__body { padding: 20px; }
.news-card__date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.news-card__title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.news-card__excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.news-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── SHOP PREVIEW ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.shop-card:hover { transform: translateY(-4px); border-color: rgba(124,107,255,0.35); }
.shop-card__icon {
    width: 64px; height: 64px;
    border-radius: 12px;
    background: rgba(124,107,255,0.1);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-card__icon img { width: 40px; height: 40px; }
.shop-card__name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.shop-card__price { font-size: 18px; font-weight: 800; color: var(--accent); }
.shop-card__currency { font-size: 12px; color: var(--text-muted); }

/* ── FOOTER ── */
.erc-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}
.erc-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
.erc-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.erc-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}
.erc-footer__logo img { width: 32px; height: 32px; border-radius: 7px; }
.erc-footer__desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.erc-footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.erc-footer__social {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background .2s, color .2s;
}
.erc-footer__social:hover { background: rgba(124,107,255,0.15); color: var(--accent); }
.erc-footer__social svg { width: 16px; height: 16px; }

.erc-footer__col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.erc-footer__col ul { list-style: none; }
.erc-footer__col ul li { margin-bottom: 10px; }
.erc-footer__col ul a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.erc-footer__col ul a:hover { color: var(--text); }

.erc-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── UTILS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── SHOP ── */
.shop-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.shop-header {
    text-align: center;
    margin-bottom: 36px;
}
.shop-header__title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 8px;
}
.shop-header__title span { color: var(--accent); }

.shop-guest-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(124,107,255,0.08);
    border: 1px solid rgba(124,107,255,0.25);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}
.shop-guest-banner__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(124,107,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.shop-guest-banner__icon svg { width: 22px; height: 22px; }
.shop-guest-banner__title { font-size: 15px; font-weight: 700; }
.shop-guest-banner__sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.shop-guest-banner .btn-primary { margin-left: auto; flex-shrink: 0; padding: 10px 22px; font-size: 14px; }

.shop-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.shop-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all .2s;
}
.shop-tab:hover, .shop-tab.active {
    color: var(--text);
    background: rgba(124,107,255,0.15);
    border-color: rgba(124,107,255,0.4);
}
.shop-tab--topup {
    color: var(--accent);
    border-color: rgba(124,107,255,0.3);
    background: rgba(124,107,255,0.07);
}
.shop-tab--topup:hover {
    background: rgba(124,107,255,0.18);
    border-color: rgba(124,107,255,0.5);
    color: var(--accent);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.shop-card:hover { transform: translateY(-4px); border-color: rgba(124,107,255,0.4); }

.shop-card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.shop-card__img--empty {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}
.shop-card__img--empty svg { width: 40px; height: 40px; }

.shop-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shop-card__name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.shop-card__desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }

.shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.shop-card__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}
.shop-card__price span { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.shop-card__original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

.shop-card__btn {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}
.shop-card__btn:hover { background: var(--accent-hover); }

.shop-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── AUTH PAGES ── */
.auth-body {
    overflow: hidden;
}

.auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(124,107,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 50%, rgba(124,107,255,0.08) 0%, transparent 60%),
        var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    margin: 16px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color .2s;
}
.auth-back:hover { color: var(--text); }
.auth-back svg { width: 14px; height: 14px; }

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
}
.auth-logo img { width: 32px; height: 32px; border-radius: 7px; }

.auth-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.auth-subtitle a { color: var(--accent); }
.auth-subtitle a:hover { text-decoration: underline; }

.auth-alert {
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
}
.auth-field input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.auth-field input::placeholder { color: var(--text-muted); }
.auth-field input:focus { border-color: var(--accent); }

.auth-check {
    margin-bottom: 20px;
}
.auth-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}
.auth-check input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.auth-btn:hover { background: var(--accent-hover); }

@media (max-width: 1100px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    /* Hero */
    .hero__container { flex-direction: column; text-align: center; padding: 0 20px; gap: 24px; }
    .hero__image { flex: none; }
    .hero__image img { width: 220px; }
    .hero__title { font-size: 32px; letter-spacing: -1px; }
    .hero__subtitle { font-size: 14px; }
    .hero__actions { justify-content: center; flex-direction: column; gap: 10px; }
    .hero__actions .btn-primary,
    .hero__actions .hero__ip { width: 100%; justify-content: center; }

    /* Stats */
    .stats-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        justify-items: start;
    }

    /* Sections */
    .section { padding: 52px 0; }
    .section__inner { padding: 0 20px; }
    .section__title { font-size: 26px; }

    /* News */
    .news-grid { grid-template-columns: 1fr; }

    /* Navbar */
    .erc-nav { padding: 0 16px; }
    .erc-nav__links { display: none; }
    .erc-nav__balance span, .erc-nav__name { display: none; }
    .erc-user__name { display: none; }

    /* Footer */
    .erc-footer__top { grid-template-columns: 1fr; gap: 28px; }
    .erc-footer { padding: 36px 0 20px; }
    .erc-footer__inner { padding: 0 20px; }

    /* Auth */
    .auth-card { padding: 28px 24px; }

    /* Shop */
    .shop-page { padding: 32px 20px 60px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .shop-guest-banner { flex-wrap: wrap; }
    .shop-guest-banner .btn-primary { margin-left: 0; width: 100%; justify-content: center; }
    .profile-page { grid-template-columns: 1fr; }
    .profile-card { position: static; }
}

/* ── PROFILE ── */
.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.profile-sidebar { }

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.profile-username {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-stats {
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-stat__label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.profile-stat__value {
    font-size: 14px;
    font-weight: 600;
}
.profile-stat__value.text-green { color: var(--green); }

.profile-2fa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(124,107,255,0.1);
    border: 1px solid rgba(124,107,255,0.25);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: background .2s;
    margin-bottom: 8px;
    text-align: center;
}
.profile-2fa-btn:hover { background: rgba(124,107,255,0.2); }

.profile-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(88,101,242,0.1);
    border: 1px solid rgba(88,101,242,0.25);
    font-size: 13px;
    font-weight: 600;
    color: #7289da;
    transition: background .2s;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: inherit;
}
.profile-discord-btn:hover { background: rgba(88,101,242,0.2); }

.profile-delete-btn {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px;
    margin-top: 4px;
    transition: color .2s;
    width: 100%;
}
.profile-delete-btn:hover { color: #ff6b6b; }

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.profile-section__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    margin-top: 16px;
}
.profile-btn:hover { background: var(--accent-hover); }
.profile-btn.danger {
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.25);
}
.profile-btn.danger:hover { background: rgba(255,107,107,0.2); }

.profile-file-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
.profile-file-input::file-selector-button {
    padding: 6px 14px;
    background: rgba(124,107,255,0.15);
    border: 1px solid rgba(124,107,255,0.3);
    border-radius: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-right: 12px;
}

/* Session alerts (themed) */
.profile-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}
.profile-alert.success {
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    color: var(--green);
}
.profile-alert.error {
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.25);
    color: #ff6b6b;
}
.profile-alert.warning {
    background: rgba(250,204,21,0.08);
    border: 1px solid rgba(250,204,21,0.25);
    color: #fde047;
}

/* Validation error highlights */
.auth-field input.input-error { border-color: rgba(255,107,107,0.6); }
.field-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 5px;
}

/* Hide Bootstrap modals that aren't triggered (no Bootstrap JS in theme) */
.modal { display: none !important; }
.modal.show { display: flex !important; }
