:root {
    --sidebar-width: 300px;

    --bg-light: #f9f8f3;
    --bg-white: #ffffff;
    --bg-alt: #f1efe8;

    --bg-parchment: linear-gradient(135deg, #ffffff 0%, #f4f1ea 100%);
    --bg-stone: linear-gradient(to bottom, #f0eee4 0%, #e6e3d8 100%);

    --text-dark: #1a1f24;
    --text-muted: #5a6470;

    --gold-primary: #d4af37;
    --gold-bright: #fcd96a;
    --gold-dark: #b5952f;
    --gold-glow: rgba(212, 175, 55, 0.5);

    --bronze-glow: rgba(88, 101, 242, 0.35);

    --aegean-blue: #142a45;
    --aegean-light: #2c5a8e;

    --hero-bg: #05070a;
    --nav-bg: #080b10;

    --success-soft: rgba(46, 204, 113, 0.12);
    --success-border: rgba(46, 204, 113, 0.28);
    --success-text: #168447;

    --font-epic: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 20%, transparent 100%),
        linear-gradient(180deg, #0a0f16 0%, #080b10 100%);
    border-right: 2px solid rgba(212, 175, 55, 0.25);
    box-shadow: 8px 0 35px rgba(0, 0, 0, 0.35);
    z-index: 1035;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 22px 22px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.sidebar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand .brand-title {
    font-family: var(--font-epic);
    font-size: 1.12rem;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 1.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-brand .brand-title span {
    color: var(--gold-primary);
}

.sidebar-mini-text {
    font-size: 0.78rem;
    color: #9ca3af;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.sidebar-menu-label {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.95;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d5d9e0;
    
    border-radius: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid transparent;
    background: transparent;
}

.sidebar-nav .nav-link i {
    width: 18px;
    text-align: center;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(44, 90, 142, 0.12));
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
    transform: translateX(2px);
}

.sidebar-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 42, 69, 0.92), rgba(8, 11, 16, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-status .title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 12px;
}

.sidebar-status .status-meta {
    display: grid;
    gap: 10px;
}

.sidebar-status .status-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
    color: #cfd6e1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.sidebar-status .status-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-status .status-meta-item strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.sidebar-actions {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-text-nav {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    color: #fff;
    transition: color 0.3s ease;
    cursor: pointer;
}

.btn-text-nav:hover {
    color: var(--gold-primary);
}

.btn-glow-gold,
.btn-glow-bronze,
.btn-nav-register,
.btn-outline-myth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.28s ease;
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-nav-register {
    background: linear-gradient(to bottom, #1f4269, var(--aegean-blue));
    color: var(--gold-bright);
    border: 1px solid var(--gold-dark);
    padding: 10px 18px;
    font-size: 0.88rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.btn-nav-register:hover {
    background: linear-gradient(to bottom, #2a588c, #1f4269);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 15px rgba(28, 59, 94, 0.6);
    border-color: var(--gold-bright);
}

.btn-glow-gold {
    background: linear-gradient(to bottom, var(--gold-bright), var(--gold-dark));
    color: #111;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 5px 15px var(--gold-glow);
    border: 1px solid #7a631c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glow-bronze {
    background: #5865f2;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 15px var(--bronze-glow);
    border: 1px solid #283192;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-outline-myth {
    color: var(--gold-dark);
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.btn-outline-myth:hover,
.btn-glow-gold:hover,
.btn-glow-bronze:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
}

.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1030;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.05), transparent 60%),
        linear-gradient(180deg, #0a0f16 0%, #080b10 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mobile-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mobile-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-brand-text {
    font-family: var(--font-epic);
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-brand-text span {
    color: var(--gold-primary);
}

.mobile-menu-btn {
    border: 1px solid var(--gold-dark);
    color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.03);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
}

.offcanvas.offcanvas-start.sidebar-mobile {
    width: min(88vw, 320px);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 20%, transparent 100%),
        linear-gradient(180deg, #0a0f16 0%, #080b10 100%);
    border-right: 2px solid rgba(212, 175, 55, 0.25);
    color: #fff;
}

.offcanvas.sidebar-mobile .offcanvas-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding: 18px 18px 14px;
}

.offcanvas.sidebar-mobile .offcanvas-body {
    padding: 0 18px 22px;
}

.offcanvas.sidebar-mobile .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.85;
}

.profile-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(8, 11, 16, 0.2), rgba(8, 11, 16, 0.88)),
        radial-gradient(circle at top center, rgba(44, 90, 142, 0.55) 0%, rgba(5, 7, 10, 0.85) 70%),
        url('/resources/images/Interface/slider-1.jpg') center/cover;
    border-bottom: 4px solid var(--gold-dark);
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent 24%, transparent 76%, rgba(212, 175, 55, 0.08)),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.profile-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 38px 0 26px;
}

.hero-stack {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-copy h1 {
    font-family: var(--font-epic);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-bright);
    letter-spacing: 2px;
    text-shadow: 0 0 22px rgba(28, 59, 94, 0.8), 2px 2px 0 #000;
    margin-bottom: 10px;
}

.hero-copy p {
    color: #e5e7eb;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 1px;
}

.hero-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-stat-chip {
    min-width: 130px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.hero-stat-chip .label {
    display: block;
    font-size: 0.68rem;
    color: #cfd6e1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
    font-weight: 700;
}

.hero-stat-chip .value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    color: #fff;
    font-weight: 700;
}

.section-padding {
    padding: 2rem 0 2.5rem;
}

.compact-container {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.myth-panel {
    background: var(--bg-parchment);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: 4px solid var(--gold-primary);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09), inset 0 0 18px rgba(212, 175, 55, 0.03);
    overflow: hidden;
    height: 100%;
}

.myth-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 239, 232, 0.9));
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.myth-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.myth-panel-title .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1f4269, #142a45);
    color: var(--gold-primary);
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.08);
    flex-shrink: 0;
}

.myth-panel-title h2,
.myth-panel-title h3 {
    font-size: 1rem;
    letter-spacing: 1.3px;
    color: var(--aegean-blue);
}

.myth-panel-body {
    padding: 16px 18px 18px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-dark);
    white-space: nowrap;
}

.mini-badge.success {
    background: var(--success-soft);
    border-color: var(--success-border);
    color: var(--success-text);
}

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

.info-item {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.info-item .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-item .value {
    display: block;
    font-weight: 700;
    color: var(--aegean-blue);
    font-size: 0.96rem;
    word-break: break-word;
}

.info-item.full {
    grid-column: 1 / -1;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 14px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    min-width: 0;
}

.resource-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.resource-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1d3859, #142a45);
    color: var(--gold-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.resource-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    line-height: 1.25;
}

.resource-value {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    color: var(--aegean-blue);
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.earning-card {
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    min-width: 0;
}

.earning-card .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-weight: 700;
    margin-bottom: 6px;
}

.earning-card .value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--aegean-blue);
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

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

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 12px;
    color: var(--aegean-blue);
    font-weight: 600;
    min-width: 0;
}

.achievement-item i {
    color: var(--gold-dark);
    flex-shrink: 0;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

footer {
    background-color: var(--nav-bg);
    border-top: 3px solid var(--gold-primary);
    padding-top: 52px;
    padding-bottom: 40px;
    color: #d1d5db;
    margin-top: 26px;
}

.footer-brand .logo {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 18px;
}

.footer-brand .logo img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    color: #9ca3af !important;
}

.footer-title {
    color: var(--gold-primary);
    margin-bottom: 22px;
    font-size: 1.12rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 12px;
    display: inline-block;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gold-bright);
    transform: translateX(6px);
    display: inline-block;
    text-shadow: 0 0 8px var(--gold-glow);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-primary);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-right: 10px;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.footer-bottom {
    background-color: #05070a;
    padding: 22px 0;
    margin-top: 44px;
    text-align: center;
    color: #6b7280;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1199.98px) {
    :root {
        --sidebar-width: 270px;
    }

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

@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .mobile-topbar {
        display: block;
    }

    .section-padding {
        padding: 1.5rem 0 2rem;
    }

    .compact-container {
        margin-top: -34px;
    }

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

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

@media (max-width: 767.98px) {
    .hero-stack {
        align-items: stretch;
    }

    .hero-quick-stats {
        width: 100%;
    }

    .hero-stat-chip {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .info-grid,
    .resource-grid,
    .earnings-grid,
    .achievement-list {
        grid-template-columns: 1fr;
    }

    .myth-panel-header {
        padding: 14px 16px;
    }

    .myth-panel-body {
        padding: 14px 16px 16px;
    }

    .profile-hero-inner {
        padding: 34px 0 22px;
    }
}

@media (max-width: 575.98px) {
    .mobile-topbar-inner {
        padding: 12px 14px;
    }

    .mobile-brand-text {
        font-size: 0.86rem;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .hero-copy p {
        font-size: 0.92rem;
    }

    .hero-stat-chip {
        width: 100%;
        flex: 1 1 100%;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar a {
        width: 100%;
    }
}
