:root {
    --primary-color: #00E5FF;
    --secondary-color: #7C4DFF;
    --bg-dark: #120A26;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top right, #2a1b5e 0%, #120A26 60%, #000000 100%);
    min-height: 100vh;
    color: var(--text-main);
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url('/static/img/bg-main.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: screen;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.orb-1 { top: -50px; right: -50px; width: 300px; height: 300px; background: rgba(124, 77, 255, 0.2); }
.orb-2 { bottom: 100px; left: -100px; width: 200px; height: 200px; background: rgba(0, 229, 255, 0.1); }

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 10, 38, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-hz {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--secondary-color);
    -webkit-text-fill-color: var(--secondary-color);
}

.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
    color: var(--primary-color);
    background: rgba(0, 229, 255, 0.1);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.user-name {
    font-weight: 600;
    font-size: 18px;
}

.user-contact {
    font-size: 12px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #4A148C);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(255, 82, 82, 0.2);
    color: #FF8A80;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tag-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s;
}

.tag-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-3px);
}

.tag-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tag-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.tag-id {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.tag-role {
    background: linear-gradient(135deg, var(--secondary-color), #4A148C);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-role:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.tag-status {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.tag-status strong {
    color: var(--text-main);
}

.tag-actions {
    display: flex;
    gap: 10px;
}

.tag-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state .material-icons {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.status-card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(20px);
}

.status-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.3);
}

.status-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.3), rgba(0, 229, 255, 0.2));
}

.status-card .status-icon {
    font-size: 36px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.status-card.active .status-icon {
    color: var(--primary-color);
}

.status-card .status-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.status-card .status-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content .material-icons {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-content input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-content input::placeholder {
    color: var(--text-muted);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
}

.auth-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.auth-required .material-icons {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.auth-required h2 {
    margin-bottom: 15px;
}

.auth-required p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav {
        display: none;
    }
    .header-actions {
        flex-wrap: wrap;
    }
    .user-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
}
