:root {
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --bg-elevated: #121212;

    --glass-bg: rgba(18, 18, 18, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --accent-glow: rgba(139, 92, 246, 0.25);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;

    --status-positive: #10b981;
    --status-negative: #ef4444;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-elegant: 0 10px 40px -10px rgba(0, 0, 0, 0.8);

    --sidebar-width: 260px;
    --header-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar - Elegant & Unobtrusive */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Atmospheric Background Effects */
.bg-atmos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
    opacity: 0.8;
}

#app-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.brand-name span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-link i {
    width: 18px;
    height: 18px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-highlight);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--glass-highlight);
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

.nav-link.active i {
    color: var(--accent-primary);
}

/* Layout Centering Architecture */
.layout-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--header-height);
    width: 100%;
    position: relative;
    flex: 1;
}

.content-area {
    flex: 1;
    padding: 3rem 2rem 6rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.layout-wrapper.has-sidebar {
    justify-content: flex-start;
}

.layout-wrapper.has-sidebar .content-area {
    margin-left: var(--sidebar-width);
    max-width: calc(100% - var(--sidebar-width));
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Sidebar Redesign */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    position: fixed;
    left: 0;
    top: var(--header-height);
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 900;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.kit-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kit-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.kit-nav-item i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.kit-nav-item:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
}

.kit-nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
}

.kit-nav-item.active i {
    opacity: 1;
}

/* Typography & Headings */
.dash-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.layout-wrapper.has-sidebar .dash-header {
    text-align: left;
}

.dash-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.dash-header h1 span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.layout-wrapper.has-sidebar .dash-header p {
    margin: 0;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.stat-card .label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.stat-card .value {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-card .muted {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* Filter Section Rethink */
.filter-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

@media (min-width: 1024px) {
    .filter-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-wrap {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-wrap i,
.search-wrap svg {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    width: 18px;
    height: 18px;
}

.search-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-weight: 500;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.tier-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tier-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-pill:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
}

.tier-pill.active {
    background: var(--text-primary);
    color: var(--bg-base);
    border-color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* Data Table */
.table-wrapper {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 1.5rem 2rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.player-row {
    transition: var(--transition-smooth);
}

.player-row:hover {
    background: var(--glass-highlight);
}

.player-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
}

.avatar-box-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
}

.meta-box .mc-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: block;
}

.meta-box .discord-tag {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.rank-box {
    width: 70px;
}

.rank-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-tertiary);
}

.rank-num.gold {
    color: #fbbf24;
    font-size: 1.5rem;
}

.rank-num.silver {
    color: #94a3b8;
    font-size: 1.35rem;
}

.rank-num.bronze {
    color: #b45309;
    font-size: 1.2rem;
}

/* Tier Plates */
.tier-plate {
    display: inline-flex;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    min-width: 80px;
    justify-content: center;
}

.tier-ht1,
.tier-ht2,
.tier-ht3,
.tier-ht4,
.tier-ht5 {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tier-lt1,
.tier-lt2,
.tier-lt3,
.tier-lt4,
.tier-lt5 {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Utilities */
.muted {
    color: var(--text-tertiary);
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .layout-wrapper.has-sidebar .sidebar {
        display: none;
    }

    .layout-wrapper.has-sidebar .content-area {
        margin-left: 0;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-header h1 {
        font-size: 2.25rem;
    }
}

/* Loaders and Footer */
.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-highlight);
    border-bottom-color: var(--accent-primary);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

.loader-sm {
    width: 24px;
    height: 24px;
    border: 2px solid var(--glass-highlight);
    border-bottom-color: var(--accent-primary);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 0 auto;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.main-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-content p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.footer-discord-link i {
    width: 14px;
    height: 14px;
}

.footer-discord-link:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.65);
    background: rgba(139, 92, 246, 0.28);
}

/* Premium Layout & Form Components */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    border: none !important;
    font-weight: 800 !important;
    padding: 1rem !important;
    text-align: center;
    border-radius: var(--radius-md) !important;
}

.ghost-btn {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    font-weight: 800 !important;
    padding: 1rem !important;
    text-align: center;
    border-radius: var(--radius-md) !important;
}

.highlight-btn {
    background: var(--glass-highlight) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    padding: 1rem !important;
    text-align: center;
    border-radius: var(--radius-md) !important;
}

.premium-btn:hover,
.ghost-btn:hover,
.highlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#profile-content .stats-grid {
    margin-bottom: 3rem;
}

#profile-content .stat-card {
    padding: 2rem;
}

#profile-content .stat-card .value {
    font-size: 2.5rem;
}

.table-wrapper h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .dash-header h1 {
        font-size: 2.5rem;
    }
}

/* --- Auth & Profile Enhancements --- */

.auth-wizard-container {
    max-width: 600px;
    margin: 2rem auto;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-elevated);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.85rem;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    background: var(--glass-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

.wizard-flow {
    position: relative;
    min-height: 400px;
}

.wizard-step {
    display: none;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Hero - Premium Style */
.profile-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile-hero-card {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(86, 166, 255, 0.08));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary-alt), transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.profile-avatar-xl {
    width: 140px;
    height: 140px;
    border-radius: 40px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-primary);
    border: 2px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.profile-header-text h1 {
    font-size: 3.5rem;
    margin: 0;
    font-family: Outfit;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 92, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(124, 92, 255, 0.2);
    margin-top: 1rem;
}

.profile-discord-meta {
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-discord-user {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.profile-discord-id {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Stats Layout */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-box-modern {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s;
}

.stat-box-modern:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.sb-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.sb-value {
    font-size: 2.2rem;
    font-weight: 800;
}

/* Clean List Improvements */
.modern-sections {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.modern-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-item {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-card {
    border-left: 4px solid var(--accent-primary);
    padding-left: 2rem;
}

@media (max-width: 1000px) {
    .modern-sections {
        grid-template-columns: 1fr;
    }

    .profile-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem;
        gap: 2rem;
    }
}

/* New Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
}

.sync-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sync-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.sync-btn i {
    width: 16px;
    height: 16px;
}

.avatar-pref-form,
.edit-mc-form {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-elevated);
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
}

.avatar-pref-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.02);
}

.avatar-pref-select-wrap i {
    position: absolute;
    right: 0.9rem;
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.avatar-pref-form select,
.edit-mc-form input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-weight: 600;
    outline: none;
    font-family: inherit;
    width: 100%;
}

.avatar-pref-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.4rem;
    cursor: pointer;
}

.avatar-pref-form select option {
    background: #141418;
    color: var(--text-primary);
}

.avatar-pref-form button,
.edit-mc-form button {
    background: var(--accent-secondary);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.avatar-pref-form button:hover,
.edit-mc-form button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.manager-panel-wrap {
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(10, 10, 10, 0.76));
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
}

.manager-workspace {
    display: grid;
    gap: 1.1rem;
    padding: 1.25rem;
}

.manager-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.15rem;
}

.manager-head-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.manager-shortcut-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
}

.manager-role-pill {
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.44);
    background: rgba(139, 92, 246, 0.16);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.manager-intro {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-weight: 600;
    max-width: 820px;
}

.manager-selected-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
}

.manager-selected-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.manager-selected-main {
    margin-top: 0.3rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.manager-selected-sub {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.manager-selected-tiers {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.manager-tabs {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.manager-tab-btn {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.62rem 0.92rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-smooth);
}

.manager-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.45);
}

.manager-tab-btn.active {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.65);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(236, 72, 153, 0.62));
}

.manager-tab-panels {
    display: grid;
}

.manager-card {
    background: rgba(10, 10, 10, 0.62);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.manager-tab-panel {
    display: none;
}

.manager-tab-panel.active {
    display: block;
}

.manager-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.manager-card-disabled {
    opacity: 0.62;
}

.manager-delete-note {
    margin-top: 0.6rem;
}

.manager-target-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    align-items: center;
}

.manager-target-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manager-result-box {
    margin-top: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.manager-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 980px) {
    .manager-panel-head {
        flex-direction: column;
    }

    .manager-head-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {

    .manager-grid-2,
    .manager-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .manager-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .manager-tab-btn {
        justify-content: center;
    }

    .manager-role-pill {
        justify-self: start;
    }
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover .mc-name {
    color: var(--accent-primary);
    text-decoration: underline;
}

.profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Home Waitlist Status */
.waitlist-home-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(8, 8, 8, 0.82));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 3rem;
}

.waitlist-home-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.waitlist-home-head h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.waitlist-home-pills {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wait-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ddd6fe;
}

.waitlist-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.8rem;
}

.waitlist-kit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 0.9rem;
}

.waitlist-kit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

.waitlist-kit-top strong {
    color: var(--text-primary);
}

.waitlist-kit-top span {
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    border: 1px solid currentColor;
}

.waitlist-kit-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.waitlist-kit-stats b {
    color: var(--text-primary);
}

.waitlist-kit-card.is-active .waitlist-kit-top span {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.waitlist-kit-card.is-busy .waitlist-kit-top span {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.waitlist-kit-card.is-passive .waitlist-kit-top span {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
}

.timeline-full-wrap {
    margin-top: 0.4rem;
}

.timeline-full-item {
    align-items: flex-start;
}

@media (max-width: 900px) {
    .content-area {
        padding: 2rem 1rem 5rem;
    }

    .profile-header-text h1 {
        font-size: 2.3rem;
        line-height: 1.15;
    }

    .profile-avatar-xl {
        width: 108px;
        height: 108px;
        font-size: 2.8rem;
        border-radius: 28px;
    }

    .profile-actions {
        width: 100%;
    }

    .avatar-pref-form,
    .edit-mc-form {
        width: 100%;
    }

    .avatar-pref-select-wrap,
    .edit-mc-form input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .waitlist-home-head {
        flex-direction: column;
    }

    .waitlist-home-pills {
        justify-content: flex-start;
    }

    .waitlist-kit-stats {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 760px) {
    .nav-container {
        padding: 0 1rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .content-area {
        padding: 1.5rem 0.9rem 4rem;
    }

    .dash-header {
        margin-bottom: 2rem;
    }

    .dash-header h1 {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1.35rem;
    }

    .stat-card .value {
        font-size: 2.4rem;
    }

    .profile-hero-card {
        padding: 1.4rem;
        border-radius: 14px;
    }

    .profile-badge {
        font-size: 0.78rem;
        padding: 0.42rem 0.8rem;
    }

    .profile-discord-user {
        font-size: 0.88rem;
    }

    .profile-discord-id {
        font-size: 0.75rem;
    }

    .modern-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .timeline-card {
        padding-left: 1rem;
    }

    .manager-workspace {
        padding: 0.85rem;
    }

    .manager-tab-btn,
    .sync-btn,
    .manager-shortcut-btn {
        width: 100%;
        justify-content: center;
    }
}

.auth-verify-card {
    align-items: stretch;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-color: var(--accent-primary);
    padding: 2.25rem;
}

.auth-verify-head {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.auth-verify-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
}

.auth-verify-title {
    margin: 0;
}

.auth-verify-note {
    margin: 0;
}

.auth-verify-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-verify-code {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.5rem;
    height: 5rem;
    padding-left: 1.25rem;
}

.auth-verify-submit,
.auth-verify-back {
    height: 3.5rem;
}

.auth-verify-back {
    width: 100%;
    margin-top: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.auth-verify-back:hover {
    border-color: var(--accent-primary);
    color: #fff;
}

@media (max-width: 760px) {
    .auth-verify-card {
        padding: 1.35rem;
    }

    .auth-verify-code {
        font-size: 1.55rem;
        letter-spacing: 0.35rem;
        height: 4.2rem;
    }
}

/* Transcript Embed Styling - Premium Aesthetics */
.tc-messages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.tc-msg {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.tc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.tc-msg-content {
    flex: 1;
    min-width: 0;
}

.tc-msg-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.tc-author {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.tc-time {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.tc-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tc-mention {
    display: inline-flex;
    align-items: center;
    background: rgba(86, 166, 255, 0.15);
    color: var(--primary-2);
    padding: 0 0.35rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tc-mention:hover {
    background: rgba(86, 166, 255, 0.25);
    color: #fff;
    text-decoration: underline;
}

.tc-inline-code {
    background: var(--bg-elevated);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px solid var(--glass-border);
}

/* Embed Container */
.tc-embeds {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tc-embed {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.25rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tc-embed-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tc-embed-author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.tc-embed-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.tc-embed-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.tc-embed-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tc-embed-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.tc-embed-field {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tc-embed-field-inline {
    flex: 1 1 auto;
    min-width: 150px;
}

.tc-embed-field-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.tc-embed-field-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tc-embed-image,
.tc-embed-thumbnail {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.tc-embed-thumbnail {
    max-width: 80px;
    float: right;
    margin-left: 1rem;
    margin-top: 0;
}

.tc-embed-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.tc-embed-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.tc-command-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tc-command-badge i {
    width: 12px;
    height: 12px;
}

/* Local Attachment Styling */
.tc-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    max-width: 500px;
    gap: 1rem;
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
}

.tc-attachment-item:hover {
    border-color: var(--accent-primary-20);
    background: rgba(124, 92, 255, 0.05);
}

.tc-att-content {
    flex: 1;
    min-width: 0;
}

.tc-att-image-preview {
    max-height: 250px;
    max-width: 100%;
    border-radius: 6px;
    display: block;
    border: 1px solid var(--glass-border);
}

.tc-att-file-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.tc-att-file-link i {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.tc-att-delete-btn {
    background: rgba(255, 93, 122, 0.1);
    border: 1px solid rgba(255, 93, 122, 0.2);
    color: var(--status-negative);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tc-att-delete-btn:hover {
    background: var(--status-negative);
    color: #fff;
    transform: scale(1.05);
}

.tc-att-delete-btn i {
    width: 16px;
    height: 16px;
}

.tc-att-disabled {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    max-width: fit-content;
}

/* User Detail Modal */
.user-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.user-detail-card {
    width: 320px;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.user-card-avatar-main {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 16px rgba(124, 92, 255, 0.3);
}

.user-card-info h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.user-card-info span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.user-card-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 1.25rem 0;
    opacity: 0.5;
}

.user-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.user-card-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.user-card-item .copy-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.user-card-item .copy-field code {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-item .copy-field button {
    background: var(--accent-primary);
    border: none;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
}

.user-card-close {
    width: 100%;
    margin-top: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.user-card-close:hover {
    background: var(--glass-border);
    color: var(--text-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Toast Notification System --- */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.toast.removing {
    animation: toastOut 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.25rem;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast Variants */
.toast-success {
    border-left: 4px solid var(--status-positive);
}

.toast-success .toast-icon {
    color: var(--status-positive);
}

.toast-error {
    border-left: 4px solid var(--status-negative);
}

.toast-error .toast-icon {
    color: var(--status-negative);
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

.toast-info .toast-icon {
    color: var(--accent-primary);
}

.toast-warning {
    border-left: 4px solid var(--status-warning);
}

.toast-warning .toast-icon {
    color: var(--status-warning);
}

@keyframes toastIn {
    from {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

/* Center Back Button */
.auth-verify-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.auth-verify-back {
    width: 100%;
    max-width: 400px;
    margin: 0.35rem auto 0 !important;
    justify-content: center;
    display: flex;
    align-items: center;
}


/* --- Modern Password Management UI --- */
.password-mgmt-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-mgmt-wrap:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.password-tabs-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.password-panels-grid {
    margin-top: 1.5rem;
}

.pw-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.pw-info-box i {
    color: var(--accent-primary);
    width: 20px;
}

.pw-info-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pw-main-action {
    width: 100%;
    justify-content: center;
    padding: 1.25rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.password-form-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.input-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus+i {
    color: var(--accent-primary);
}

.input-wrapper input {
    width: 100%;
    padding-left: 3.25rem !important;
    height: 3.5rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.input-wrapper input:focus {
    border-color: var(--accent-primary) !important;
    background: rgba(var(--accent-primary-rgb), 0.05) !important;
}

.pw-submit-btn {
    width: 100%;
    height: 3.5rem;
    margin-top: 1rem;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    letter-spacing: 1px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Verify Layout Fixes */
.auth-verify-actions {
    margin-top: 2.5rem;
}
.manager-tab-panel:not(.active) {
    display: none !important;
}

.password-panels-grid {
    display: block;
    width: 100%;
}

.copy-btn-modern {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn-modern:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}

.copy-btn-modern.copied {
    background: var(--status-positive-bg) !important;
    border-color: var(--status-positive) !important;
    color: #fff !important;
}

.mention-link:hover {
    color: var(--accent-primary) !important;
    opacity: 0.8;
}

/* Settings Sidebar Layout */
.settings-sidebar {
    background: rgba(8, 11, 20, 0.4) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    width: 280px !important;
    padding: 2rem 1rem !important;
}

.settings-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.settings-view {
    animation: slideUp 0.5s ease;
}

.settings-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-hero-mini {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1) 0%, rgba(86, 166, 255, 0.1) 100%);
}

.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-info-mini h2 { margin: 0; font-size: 1.5rem; }

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* 2FA Styling */
.security-active {
    border-color: rgba(29, 209, 161, 0.4) !important;
    background: rgba(29, 209, 161, 0.03) !important;
}

.status-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-chip.success { background: rgba(29, 209, 161, 0.1); color: var(--success); }
.status-chip.warn { background: rgba(246, 183, 60, 0.1); color: var(--warn); }

.2fa-qr-wrap {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    width: fit-content;
    margin: 1rem 0;
}

.2fa-qr-wrap img { width: 180px; height: 180px; display: block; }

.2fa-code-manual code {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.danger-btn {
    background: rgba(255, 93, 122, 0.1);
    border: 1px solid rgba(255, 93, 122, 0.3);
    color: var(--danger);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.danger-btn:hover { background: rgba(255, 93, 122, 0.2); }

.sidebar-link.danger-link:hover {
    color: var(--danger) !important;
    background: rgba(255, 93, 122, 0.05) !important;
}

