:root {
    /* Color Palette - Blood Theme (Updated) */
    /* Dark: #0A0C0C (Deepest) | Surface: #141616 (Primary) */
    --bg-color: #0A0C0C;
    --text-color: #EBEFF3;
    /* Red replacement for #FF5500 (Vibrant) */
    --accent-red: #FF1E1E;
    --accent-red-hover: #D61A1A;
    --accent-color: #EBEFF3;
    /* Using Primary Light as main accent for text/icons if needed, or Red */
    --secondary-text: #8C9399;
    /* Derived from palette grays */
    --card-bg: #141616;
    --border-color: #232828;
    --hover-overlay: rgba(235, 239, 243, 0.05);

    /* Glows */
    --glow-red: 0 0 20px rgba(209, 0, 31, 0.3);
    --glow-red-strong: 0 0 35px rgba(209, 0, 31, 0.5);

    /* Typography */
    --font-main: 'Play', sans-serif;
    --font-display: 'Play', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: #333 #0c0c0c;
}

/* Custom Scrollbar Chrome/Safari/Webkit */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

body {
    background-color: var(--bg-color);
    /* Deep subtle glow effect */
    background-image:
        radial-gradient(circle at 50% -20%, rgba(211, 47, 47, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 120%, rgba(211, 47, 47, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    font-weight: 400;
    /* Regular */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    /* Bold */
    text-transform: uppercase;
    /* Uppercase */
    line-height: 1.2;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1800px;
    /* Responsive / Full HD */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    /* Requested for glow positioning checks */
    z-index: 1;
    /* Ensure content is above background glow */
}

/* Profile Statistics Dashboard */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.stat-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
}

.graph-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    height: 400px;
}

.main-graph {
    flex: 3;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.graph-placeholder {
    flex: 1;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

/* Mock Line Graph */
.mock-line-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    clip-path: polygon(0% 100%, 0% 50%, 10% 40%, 20% 60%, 30% 30%, 40% 45%, 50% 20%, 60% 35%, 70% 10%, 80% 25%, 90% 15%, 100% 40%, 100% 100%);
    background: rgba(255, 107, 0, 0.2);
    border-top: 2px solid #ff6b00;
}

.elo-panel {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.win-loss-display {
    display: flex;
    gap: 0.5rem;
    background: #000;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #222;
}

.wl-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.wl-badge.win {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.wl-badge.loss {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
}

.elo-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.elo-value-pill {
    background: #222;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    border: 1px solid #444;
}

.secondary-graph-area {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.tab-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-pill {
    padding: 4px 12px;
    border-radius: 12px;
    background: #222;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
}

.tab-pill.active {
    background: #ff6b00;
    color: #fff;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .graph-section {
        flex-direction: column;
        height: auto;
    }

    .main-graph {
        height: 300px;
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.section {
    padding: var(--spacing-xl) 0;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 4px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--hover-overlay);
    border-color: var(--accent-color);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Design Match */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 0;
    z-index: 1000;
    background: transparent;
    /* Synced with body */
    border-bottom: none;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 95%;
    /* Wide layout */
    margin: 0 auto;
}

/* Nav Center */
.nav-center {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-center a {
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    text-transform: capitalize;
}

.nav-center a i {
    font-size: 16px;
    /* Slightly larger icons */
}

.nav-center a:hover,
.nav-center a.active {
    color: white;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid #222;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    white-space: nowrap;
    color: #bbb;
    font-size: 13px;
    text-align: left;
    width: 100%;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.flag-icon {
    width: 22px;
    border-radius: 2px;
}

.arrow-icon {
    color: #777;
    font-size: 10px;
}

/* Red User Button */
.btn-user-red {
    background: var(--accent-red);
    color: white;
    padding: 6px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: lowercase;
    /* match "oldmxa" style if that was user name, or normal */
    transition: background 0.2s;
    display: inline-block;
}

.btn-user-red:hover {
    background: var(--accent-red-hover);
    color: white;
}

.exit-link i {
    color: #777;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.exit-link:hover i {
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
}

/* Legacy Nav Links Cleanup */
.nav-links {
    display: none;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Slightly shorter to show content below */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Background is handled by body gradient mostly, but we can add depth */
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-red);
    text-shadow: var(--glow-red);
    letter-spacing: -2px;
    margin-bottom: var(--spacing-xs);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-play {
    background: var(--accent-red);
    color: white;
    padding: 14px 40px;
    font-size: 1.1rem;
    box-shadow: var(--glow-red);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: var(--accent-red-hover);
    box-shadow: var(--glow-red-strong);
    transform: translateY(-2px);
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 14px 40px;
    font-size: 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* Removing old hero-content defs as they are now above slightly modified */

/* Features/About Section */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Glassmorphism & Visual Polish */
.card,
.form-container,
.stat-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-text);
}

.card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Fragmovie Section */
.fragmovie-section {
    text-align: center;
    padding-bottom: 5rem;
}

.fragmovie-section h2 {
    font-size: 2rem;
    color: #444;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
}

/* Footer */
footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #111;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-red);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: var(--spacing-xl) auto;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-footer {
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.form-footer a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-container {
    display: block;
    min-height: 100vh;
    padding-top: 80px;
}

.sidebar {
    width: 250px;
    background: rgba(5, 5, 5, 0.6); /* Transparent Dark */
    backdrop-filter: blur(15px); /* Blur Effect */
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.05); /* Subtler border */
    padding: var(--spacing-md);
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-nav li {
    margin-bottom: var(--spacing-xs);
}

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 4px;
    color: var(--secondary-text);
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--hover-overlay);
    color: var(--accent-color);
}

.main-content {
    margin-left: 250px;
    padding: var(--spacing-md);
    position: relative;
    z-index: 5;
    width: calc(100% - 250px);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
    width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block !important;
    opacity: 1;
}

.dashboard-header {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.stat-card h4 {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-left: var(--spacing-sm);
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0 !important;
}

/* Mobile Menu & Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    /* Partial width for better UX */
    max-width: 300px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    padding: 80px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border-color);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #F44336;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

/* Enhanced Focus States */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}


.btn:active {
    transform: scale(0.98);
}

/* Avatar Styles */
.avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.avatar-upload-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.avatar-preview-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid #1a1a1a;
    /* Match card bg for border effect */
    box-shadow: 0 0 0 2px var(--border-color);
    /* Outer ring */
    position: relative;
    overflow: hidden;
    background-color: #333;
}

.avatar-upload-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: #FF0000;
    /* Red as per reference */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.avatar-preview-wrapper:hover .avatar-upload-icon {
    transform: scale(1.1);
}

.btn-red {
    background-color: #D30000;
    /* Darker red for button */
    color: white;
    font-weight: 700;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-red:hover {
    background-color: #FF0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* Analytics Styles */
.analytics {
    animation: fadeIn 0.5s ease;
}



.period-default {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.period-default:hover,
.period-default:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* YouTube Style Analytics */
.analytics-container {
    padding: 1rem 0;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.badge-pill {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-color);
}

.analytics-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    position: relative;
    gap: 2rem;
}

.analytics-tabs a {
    padding: 1rem 0;
    font-weight: 500;
    color: var(--secondary-text);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.analytics-tabs a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}


/* Dropdown Menu */
.date-range-display {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    text-align: right;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.date-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
    margin-top: 0.5rem;
}

.date-dropdown.show {
    display: block;
    animation: fadeIn 0.1s ease;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--secondary-text);
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}


.yt-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .yt-layout {
        grid-template-columns: 1fr;
    }
}

.metric-toggles {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.metric-card {
    flex: 1;
    min-width: 200px;
    padding: 1rem 0 1rem 0;
    cursor: pointer;
    border-top: 4px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

/* User Badges */
.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 0.9rem;
}

.user-badge i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.badge-verified {
    color: #3EA6FF;
    /* Verified Blue */
}

.badge-admin {
    color: #ff4757;
    /* Admin Red */
}

.badge-admin i {
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6));
}

/* Tickets & Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--secondary-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    font-size: 0.9rem;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.menu-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
    padding: 0 1rem;
    font-weight: 600;
    margin-top: 2rem;
    /* Increased spacing */
    margin-bottom: 0.5rem;
}

.data-table tbody tr:hover {
    background: var(--hover-overlay);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-open {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-closed {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.badge-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Badges Hierarchy */
.badge-owner {
    background: linear-gradient(45deg, #000000, #3a0000);
    color: #ff0000;
    border: 1px solid #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.badge-developer {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.badge-manager {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    text-shadow: 0 0 2px rgba(231, 76, 60, 0.5);
}

.badge-head_admin {
    background: rgba(142, 68, 173, 0.15);
    color: #9b59b6;
    border: 1px solid #9b59b6;
}

.badge-admin {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
    border: 1px solid #e67e22;
}

.badge-moderator {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid #3498db;
}

.badge-mobile_staff {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.badge-vip {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.badge-default {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid #444;
}

.badge-high {
    color: #F44336;
}

.badge-medium {
    color: #FFC107;
}

.badge-low {
    color: #4CAF50;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 9999;
    /* Ensure on top of everything */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    /* Flex is crucial for centering */
    opacity: 1;
}

.modal-content {
    background: #121212;
    /* Darker background like reference */
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    margin-left: 1rem;
}

.close-modal:hover {
    color: #fff;
}

/* Updated Video Grid Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.video-card {
    background: #181818;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.video-card:hover .video-thumbnail img {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    /* Hidden by default like reference usually implies hover interaction or clean look, but let's keep it clean */
    transition: opacity 0.2s;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.video-info {
    padding: 0.75rem;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-author {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 0.5rem;
    margin-top: auto;
    /* Push to bottom */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Support Dashboard Styles */
.support-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.action-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.action-card p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-primary {
    background-color: #3EA6FF;
    /* Blue like Ref */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* Chat View Styles */
.ticket-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .ticket-layout {
        grid-template-columns: 1fr;
    }
}

.ticket-sidebar-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ticket-sidebar-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 0.25rem;
}

.ticket-sidebar-value {
    font-weight: 500;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
}

.chat-header {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.user-tag {
    background: #3EA6FF;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.admin-tag {
    background: #9C27B0;
    /* Purple like ref */
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.chat-date {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.chat-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.admin-alert {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Profile Layout Grid */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
    /* Fix: Ensure content starts at top */
}

.profile-main-content {
    min-width: 0;
    /* Fix: Prevent grid blowout from wide content like charts */
    display: flex;
    flex-direction: column;
}

/* Ensure Charts don't break layout */
.profile-main-content canvas {
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 900px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styles */
.profile-sidebar {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 2rem;
    height: fit-content;
    text-align: center;
}

.profile-avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #222;
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-meta {
    color: #666;
    font-size: 0.9rem;
}

.profile-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Heatmap Styles */
.recent-activity-section {
    background: #0d0d0d;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #222;
}

.activity-heatmap-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.activity-heatmap {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    /* 7 days a week */
    grid-auto-flow: column;
    gap: 4px;
}

.heatmap-day {
    width: 10px;
    height: 10px;
    background-color: #161b22;
    /* Default dark */
    border-radius: 2px;
}

/* Heatmap Colors (Pink/Purple Theme) */
.heatmap-day.l0 {
    background-color: #161b22;
}

.heatmap-day.l1 {
    background-color: #5d1a55;
}

/* Dark purple */
.heatmap-day.l2 {
    background-color: #8c267f;
}

/* Purple */
.heatmap-day.l3 {
    background-color: #bc36a9;
}

/* Pink */
.heatmap-day.l4 {
    background-color: #eb46d3;
}

/* Bright Pink */

.heatmap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: #888;
    font-size: 0.8rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-squares {
    display: flex;
    gap: 3px;
}

.legend-squares .square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.square.l1 {
    background-color: #161b22;
}

.square.l2 {
    background-color: #5d1a55;
}

.square.l3 {
    background-color: #bc36a9;
}

.square.l4 {
    background-color: #eb46d3;
}



/* ========================================= */
/* GLOBAL GLOW EFFECTS (APPENDED)            */
/* ========================================= */

/* Neon Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2) !important;
    filter: brightness(1.1);
    z-index: 10;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(226, 88, 34, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(226, 88, 34, 0.6), 0 0 10px rgba(255, 255, 255, 0.4) !important;
}

.btn-outline:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(226, 88, 34, 0.5) !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    border-color: transparent;
}

/* Neon Inputs */
.form-control {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 0 15px rgba(226, 88, 34, 0.3) !important;
}

/* Glowing Cards */
.card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(20, 20, 20, 0.8);
    /* Darker base */
}

.card:hover,
.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(226, 88, 34, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Text Glows */
h1,
h2,
h3 {
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    /* Depth shadow */
}

.stat-value {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.profile-avatar-container {
    box-shadow: 0 0 20px rgba(226, 88, 34, 0.2);
    transition: box-shadow 0.3s ease;
}

.profile-avatar-container:hover {
    box-shadow: 0 0 30px rgba(226, 88, 34, 0.5);
}

/* User Requested Styles */
.glow-effect {
    display: none;
}

.card-glow {
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.dark .card-glow:hover {
    transform: translateY(-2px);
    border-color: #333;
}

.light .card-glow:hover {
    transform: translateY(-2px);
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.button-glow {
    transition: all 0.2s ease;
}

.dark .button-glow:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.light .button-glow:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.pagination-btn.active {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}

.faq-toggle-icon {
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(45deg);
}

.aspect-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.aspect-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ucp-nav-link.active {
    background-color: #dc2626;
    color: white;
}


/* =========================================
   FLASH UI - Advanced Visual Effects
   ========================================= */

/* 1. Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn {
    position: relative;
    overflow: hidden;
    /* Needed for ripple containment */
}

/* 2. Shimmer Effect (Premium Shine) */
.flash-shimmer {
    position: relative;
    overflow: hidden;
}

.flash-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shimmer 6s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    /* Fast pass */
    100% {
        left: 100%;
    }

    /* Long delay */
}

/* 3. Glitch Effect (Text) */
.flash-glitch {
    position: relative;
    color: var(--accent-red);
}

.flash-glitch::before,
.flash-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Match bg to hide real text below partially */
}

.flash-glitch::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.flash-glitch::after {
    left: -2px;
    text-shadow: -1px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(32px, 9999px, 18px, 0);
    }

    5% {
        clip: rect(65px, 9999px, 89px, 0);
    }

    10% {
        clip: rect(12px, 9999px, 6px, 0);
    }

    /* Pause */
    11% {
        clip: rect(0, 0, 0, 0);
    }

    100% {
        clip: rect(0, 0, 0, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(2px, 9999px, 81px, 0);
    }

    5% {
        clip: rect(14px, 9999px, 44px, 0);
    }

    10% {
        clip: rect(52px, 9999px, 11px, 0);
    }

    /* Pause */
    11% {
        clip: rect(0, 0, 0, 0);
    }

    100% {
        clip: rect(0, 0, 0, 0);
    }
}

/* 4. Flashy Toast */
.toast.flash-toast {
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.4);
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Boucy entance */
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Role Badges */
.user-badge {
    padding: 4px 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-vip {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.badge-support {
    background: rgba(0, 255, 127, 0.15);
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.1);
}

.badge-moderator {
    background: rgba(30, 144, 255, 0.15);
    color: #1e90ff;
    border: 1px solid rgba(30, 144, 255, 0.4);
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.1);
}

.badge-admin {
    background: rgba(220, 20, 60, 0.15);
    color: #dc143c;
    border: 1px solid rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.1);
}

.badge-owner {
    background: linear-gradient(45deg, #ff0000, #800000);
    color: white;
    border: 1px solid #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    animation: pulse-badge 2s infinite;
}

.badge-verified {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }
}

/* Fix for Tab Content Rendering */
.tab-content {
    width: 100%;
    position: relative;
    clear: both;
    /* Ensure min-height so it doesn't collapse */
    min-height: 200px;
}
/* Global Dropdown Styles (Moved from dashboard.php) */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    right: 0;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content button {
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: var(--font-main);
}

.dropdown-content button:hover {
    background-color: var(--hover-overlay);
}

/* =========================================
   TAILWIND-INSPIRED DESIGN SYSTEM (ADAPTED TO BLOOD THEME)
   ========================================= */

/* T-Classes (Theme Components) */

/* Layout & Grid */
.t-grid {
    display: grid;
    gap: 1.5rem;
}

.t-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.t-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.t-flex { display: flex; }
.t-flex-col { flex-direction: column; }
.t-items-center { align-items: center; }
.t-justify-between { justify-content: space-between; }
.t-justify-end { justify-content: flex-end; }
.t-gap-2 { gap: 0.5rem; }
.t-gap-4 { gap: 1rem; }
.t-mb-4 { margin-bottom: 1rem; }
.t-mb-6 { margin-bottom: 1.5rem; }
.t-mt-4 { margin-top: 1rem; }
.t-p-6 { padding: 1.5rem; }

/* Cards */
.t-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.t-card-hover:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Typography */
.t-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.t-subtitle {
    font-size: 0.875rem; /* text-sm */
    color: var(--secondary-text);
}

.t-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Inputs */
.t-input, .t-textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.625rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    font-family: var(--font-main);
}

.t-input:focus, .t-textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(255, 30, 30, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
}

.t-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.t-btn-primary {
    background-color: var(--accent-red);
    color: white;
    box-shadow: var(--glow-red);
}
.t-btn-primary:hover { 
    background-color: var(--accent-red-hover);
    box-shadow: var(--glow-red-strong);
}

.t-btn-danger {
    background-color: rgba(255, 30, 30, 0.1); 
    color: var(--accent-red);
    border: 1px solid rgba(255, 30, 30, 0.3);
}
.t-btn-danger:hover { 
    background-color: rgba(255, 30, 30, 0.2); 
    color: white;
    border-color: var(--accent-red);
}

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

.t-btn-text {
    background: transparent;
    color: var(--secondary-text);
    padding: 0.5rem;
}
.t-btn-text:hover { color: var(--accent-color); }

/* Badges */
.t-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 4px; 
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.t-badge-green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.t-badge-amber { background: rgba(241, 196, 15, 0.15); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.3); }
.t-badge-gray { background: rgba(149, 165, 166, 0.15); color: #95a5a6; border: 1px solid rgba(149, 165, 166, 0.3); }
.t-badge-red { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }

/* Table */
.t-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.t-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.t-table th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--secondary-text);
    font-weight: 700;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.t-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover { background-color: rgba(255, 255, 255, 0.02); }

/* Utility Specifics */
.t-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.t-chat-bubble {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}
