/* ── Variables ───────────────────────────────────────── */
:root {
    --accent-red: #c44536;
    --gradient-red: linear-gradient(135deg, #c44536, #d95f4e);
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --dark-card-border: rgba(255, 255, 255, 0.07);
    --text-secondary: #a0a0a0;
    --text-muted: #5a5a5a;
}

/* ── Base ────────────────────────────────────────────── */
body {
    font-family: 'Raleway', sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    padding: 80px 20px 60px;
}

/* ── Background decorations ──────────────────────────── */
.page-bg-glow {
    position: fixed;
    top: 0;
    right: 0;
    width: 65vw;
    height: 65vh;
    background: radial-gradient(ellipse at 75% 15%, rgba(196, 69, 54, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse at center, black 5%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 5%, transparent 75%);
}

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand { display: flex; align-items: center; }

.navbar-logo-icon {
    height: 40px; width: 40px;
    padding: 5px;
    background: var(--gradient-red);
    border-radius: 10px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.navbar-logo-text { height: 40px; }

/* ── Page container ──────────────────────────────────── */
.account-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Profile hero card ───────────────────────────────── */
.profile-hero {
    background: var(--dark-card);
    border: 1px solid var(--dark-card-border);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.account-avatar {
    width: 72px;
    height: 72px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(196, 69, 54, 0.18);
}

.profile-hero-info {
    flex: 1;
}

.profile-hero-info h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.profile-hero-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.profile-hero-credits {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.workshop-logo-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.workshop-logo-hero img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    border-radius: 4px;
}

.workshop-logo-hero span {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(196, 69, 54, 0.12);
    border: 1px solid rgba(196, 69, 54, 0.28);
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.credits-pill i {
    color: var(--accent-red);
}

.credits-pill-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-align: right;
}

/* ── Content grid ────────────────────────────────────── */
.account-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

/* ── Cards ───────────────────────────────────────────── */
.account-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-card-border);
    border-radius: 20px;
    padding: 1.75rem 2rem;
}

.card-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ── Info grid ───────────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    transition: border-color 0.2s;
}

.info-item:hover {
    border-color: rgba(196, 69, 54, 0.3);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.info-label i {
    color: var(--accent-red);
    font-size: 0.68rem;
}

.info-value {
    color: #fff;
    font-size: 0.97rem;
    font-weight: 500;
}

/* ── Right sidebar ───────────────────────────────────── */
.sidebar-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-card-border);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-credits-big {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(196, 69, 54, 0.06);
    border: 1px solid rgba(196, 69, 54, 0.15);
    border-radius: 14px;
}

.sidebar-credits-big .credits-num {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.sidebar-credits-big .credits-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
    --bs-btn-bg: var(--accent-red);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: #d95f4e;
    --bs-btn-hover-border-color: transparent;
    background: var(--gradient-red);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(196, 69, 54, 0.3);
    transition: all 0.25s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 69, 54, 0.45);
    color: #fff;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline-danger {
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #e07070;
    font-weight: 500;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff8080;
}

/* ── Alerts ──────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.88rem;
}

/* ── Auth Loader ─────────────────────────────────────── */
#authLoader {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

#authLoader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.auth-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(196, 69, 54, 0.15);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-loader-text {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

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

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .sidebar-credits-big {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-left: auto;
    }

    .profile-hero {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero-credits {
        align-items: center;
        width: 100%;
    }

    .credits-pill-label {
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .account-card {
        padding: 1.5rem;
    }
}


.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo-icon {
    height: 40px;
    width: 40px;
    padding: 5px;
    background: linear-gradient(135deg, #c44536, #d95f4e);
    border-radius: 10px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.navbar-logo-text {
    height: 40px;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 80px 20px 40px;
}

.account-container {
    max-width: 800px;
    margin: 0 auto;
}

.account-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.account-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c44536 0%, #d95f4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.account-title h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.account-title p {
    color: #a0a0a0;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: #c44536;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background-color: #0a0a0a;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.info-item:hover {
    border-color: #c44536;
    transform: translateY(-2px);
}

.info-label {
    color: #6a6a6a;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #c44536 0%, #d95f4e 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid white;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #ffffff;
}

.btn-outline-primary {
    background: linear-gradient(135deg, #c44536 0%, #d95f4e 100%);
    border: 1px solid white;
    color: white;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #d95f4e 0%, #c44536 100%);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 69, 54, 0.4);
}

.alert {
    border-radius: 8px;
    border: none;
}

/* Auth Loader */
#authLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#authLoader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.auth-loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2a2a2a;
    border-top-color: #c44536;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.auth-loader-text {
    color: #a0a0a0;
    margin-top: 1rem;
    font-size: 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-left: auto;
    }
    
    .account-card {
        padding: 2rem 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
