/* Discord-like Theme for GameMatch */

:root {
    /* Discord Color Palette */
    --discord-dark: #2c2f33;
    --discord-darker: #23272a;
    --discord-darkest: #1e2124;
    --discord-blurple: #5865f2;
    --discord-green: #57f287;
    --discord-yellow: #fee75c;
    --discord-red: #ed4245;
    --discord-white: #ffffff;
    --discord-light-gray: #99aab5;
    --discord-gray: #72767d;
    --discord-text-light: #dcddde;
    --discord-text-muted: #b5bac1;
    --discord-hover: #40444b;
    --discord-active: #393c43;
    --discord-input: #40444b;
    --discord-border: #202225;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Text colors for specific backgrounds */
    --discord-text-on-blurple: #ffffff;
    --discord-text-on-dark: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--discord-darkest);
    color: var(--discord-text-light);
    overflow-x: hidden;
    line-height: 1.4;
}

/* When using the Discord UI layout, keep scrolling inside main content/sidebar only */
body.discord-ui {
    overflow: hidden !important;
}

.discord-ui .discord-layout {
    height: 100vh !important;
}

/* Reset link styles */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

/* Main Layout Container */
.discord-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar Navigation */
.discord-sidebar {
    width: 240px;
    background-color: var(--discord-darker);
    border-right: 1px solid var(--discord-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobile close button hidden by default (shown only in mobile-open state via media query) */
#mobile-close-btn { display: none; }

.discord-sidebar::-webkit-scrollbar {
    width: 8px;
}

.discord-sidebar::-webkit-scrollbar-track {
    background: var(--discord-darker);
}

.discord-sidebar::-webkit-scrollbar-thumb {
    background: var(--discord-gray);
    border-radius: 4px;
}

.discord-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--discord-light-gray);
}

/* Sidebar Header */
.discord-sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--discord-border);
    background-color: var(--discord-darkest);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discord-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    gap: 10px;
    position: relative;
}

.discord-logo i {
    color: #4c8bf5;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-shadow: 0 2px 8px rgba(76, 139, 245, 0.3);
    transition: all 0.3s ease;
}

.discord-logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.discord-logo:hover i {
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(76, 139, 245, 0.5);
}

/* Sidebar Navigation Items */
.discord-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
    overflow-y: auto;
}

.discord-nav-section {
    margin-bottom: var(--spacing-lg);
}

.discord-nav-title {
    padding: 0 var(--spacing-md) var(--spacing-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--discord-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.discord-nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 2px var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--discord-light-gray);
    transition: all 0.15s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    min-height: 36px;
}

.discord-nav-item:hover {
    background-color: var(--discord-hover);
    color: var(--discord-white);
    text-decoration: none;
}

.discord-nav-item.active {
    background-color: var(--discord-blurple);
    color: var(--discord-white);
}

.discord-nav-item i {
    margin-right: var(--spacing-md);
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.discord-nav-item .badge {
    margin-left: auto;
    background-color: var(--discord-red);
    color: var(--discord-white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Notification indicators */
.discord-nav-item .notif-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--discord-red);
    margin-left: 6px;
    box-shadow: 0 0 0 2px var(--discord-darker);
    position: relative;
    top: -1px;
}

.discord-nav-item .notif-badge {
    margin-left: 8px;
    background: var(--discord-red);
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

/* Utility */
.d-none { display: none !important; }

.discord-nav-item.has-notification:not(.active) {
    background: linear-gradient(90deg, rgba(237,66,69,0.18), rgba(237,66,69,0));
}

/* User Panel at bottom of sidebar */
.discord-user-panel {
    padding: var(--spacing-md);
    border-top: 1px solid var(--discord-border);
    background-color: var(--discord-darkest);
    flex-shrink: 0;
}

.discord-user-info {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
    cursor: pointer;
    min-height: 48px;
}

.discord-user-info:hover {
    background-color: var(--discord-hover);
}

.discord-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--discord-blurple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    font-weight: 600;
    color: var(--discord-white);
    font-size: 14px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

/* Ensure any img placed inside discord-avatar is perfectly circular and not distorted */
.discord-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.discord-user-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.discord-username {
    font-weight: 600;
    color: var(--discord-white);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-status {
    font-size: 12px;
    color: var(--discord-text-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content Area */
.discord-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--discord-dark);
    min-width: 0;
}

/* Content Header */
.discord-content-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--discord-border);
    background-color: var(--discord-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    flex-shrink: 0;
}

.discord-content-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.discord-content-title:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.discord-content-title i {
    color: #4c8bf5;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    text-shadow: 0 2px 8px rgba(76, 139, 245, 0.3);
    transition: all 0.3s ease;
}

.discord-content-title:hover i {
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(76, 139, 245, 0.5);
}

.discord-content-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Content Body */
.discord-content-body {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    background-color: var(--discord-dark);
}

.discord-content-body::-webkit-scrollbar {
    width: 8px;
}

.discord-content-body::-webkit-scrollbar-track {
    background: var(--discord-dark);
}

.discord-content-body::-webkit-scrollbar-thumb {
    background: var(--discord-gray);
    border-radius: 4px;
}

.discord-content-body::-webkit-scrollbar-thumb:hover {
    background: var(--discord-light-gray);
}

/* Cards */
.discord-card {
    background-color: var(--discord-darker);
    border: 1px solid var(--discord-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease;
}

.discord-card:hover {
    box-shadow: var(--shadow-md);
}

.discord-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.discord-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--discord-white);
    margin: 0;
    line-height: 1.2;
}

.discord-card-body {
    color: var(--discord-text-light);
    line-height: 1.5;
}

.discord-card-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--discord-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* Buttons */
.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 36px;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.discord-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.discord-btn:active {
    transform: translateY(0);
}

.discord-btn-primary {
    background-color: var(--discord-blurple);
    color: var(--discord-white);
}

.discord-btn-primary:hover {
    background-color: #4752c4;
    color: var(--discord-white);
}

.discord-btn-secondary {
    background-color: var(--discord-gray);
    color: var(--discord-white);
}

.discord-btn-secondary:hover {
    background-color: var(--discord-light-gray);
    color: var(--discord-white);
}

.discord-btn-success {
    background-color: var(--discord-green);
    color: var(--discord-darkest);
}

.discord-btn-success:hover {
    background-color: #4ac776;
    color: var(--discord-darkest);
}

.discord-btn-danger {
    background-color: var(--discord-red);
    color: var(--discord-white);
}

.discord-btn-danger:hover {
    background-color: #d73c3f;
    color: var(--discord-white);
}

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

.discord-btn-outline:hover {
    background-color: var(--discord-hover);
    color: var(--discord-white);
}

.discord-btn i {
    font-size: 14px;
}

/* Form Elements */
.discord-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--discord-input);
    border: 1px solid var(--discord-border);
    border-radius: var(--radius-sm);
    color: var(--discord-text-light);
    font-size: 14px;
    transition: border-color 0.15s ease;
    min-height: 40px;
}

.discord-input:focus {
    outline: none;
    border-color: var(--discord-blurple);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

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

.discord-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--discord-input);
    border: 1px solid var(--discord-border);
    border-radius: var(--radius-sm);
    color: var(--discord-text-light);
    font-size: 14px;
    cursor: pointer;
    min-height: 40px;
}

.discord-select:focus {
    outline: none;
    border-color: var(--discord-blurple);
}

.discord-textarea {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--discord-input);
    border: 1px solid var(--discord-border);
    border-radius: var(--radius-sm);
    color: var(--discord-text-light);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.discord-textarea:focus {
    outline: none;
    border-color: var(--discord-blurple);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

/* Form Groups */
.discord-form-group {
    margin-bottom: var(--spacing-md);
}

.discord-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--discord-text-light);
    font-size: 14px;
}

.discord-help-text {
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--discord-text-muted);
    line-height: 1.3;
}

/* Alerts */
.discord-alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.discord-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.discord-alert-success {
    background-color: rgba(87, 242, 135, 0.1);
    border-left-color: var(--discord-green);
    color: var(--discord-green);
}

.discord-alert-danger {
    background-color: rgba(237, 66, 69, 0.1);
    border-left-color: var(--discord-red);
    color: var(--discord-red);
}

.discord-alert-warning {
    background-color: rgba(254, 231, 92, 0.1);
    border-left-color: var(--discord-yellow);
    color: var(--discord-yellow);
}

.discord-alert-info {
    background-color: rgba(88, 101, 242, 0.1);
    border-left-color: var(--discord-blurple);
    color: var(--discord-blurple);
}

/* Grid System */
.discord-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.discord-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.discord-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.discord-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .discord-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .discord-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .discord-main {
        margin-left: 0;
    }
    
    .discord-content-header {
        padding: var(--spacing-md);
    }
    
    .discord-content-body {
        padding: var(--spacing-md);
    }
    
    .discord-card {
        padding: var(--spacing-md);
    }
    
    .discord-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Close button hidden by default until sidebar open */
    #mobile-close-btn {
        display: none;
        background: none;
        border: none;
        color: var(--discord-text-muted);
        cursor: pointer;
        padding: 6px 10px;
        font-size: 22px;
        line-height: 1;
        border-radius: 6px;
        transition: background-color 0.15s ease, color 0.15s ease, opacity 0.2s ease;
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 10;
    }
    .discord-sidebar.mobile-open #mobile-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--discord-light-gray);
    }
    .discord-sidebar.mobile-open #mobile-close-btn:hover {
        background-color: var(--discord-hover);
        color: var(--discord-white);
    }
}

/* Mobile Menu Toggle */
.discord-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--discord-white);
    font-size: 20px;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1003;
    pointer-events: auto;
}

.discord-mobile-toggle:hover {
    background-color: var(--discord-hover);
}

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

/* Utility Classes */
.text-muted {
    color: var(--discord-text-muted) !important;
}

.text-white {
    color: var(--discord-white) !important;
}

.text-primary {
    color: var(--discord-blurple) !important;
}

.text-success {
    color: var(--discord-green) !important;
}

.text-danger {
    color: var(--discord-red) !important;
}

.text-warning {
    color: var(--discord-yellow) !important;
}

.bg-dark {
    background-color: var(--discord-dark) !important;
}

.bg-darker {
    background-color: var(--discord-darker) !important;
}

.bg-darkest {
    background-color: var(--discord-darkest) !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-sm {
    gap: var(--spacing-sm) !important;
}

.gap-md {
    gap: var(--spacing-md) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-sm {
    margin-bottom: var(--spacing-sm) !important;
}

.mb-md {
    margin-bottom: var(--spacing-md) !important;
}

.mb-lg {
    margin-bottom: var(--spacing-lg) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-sm {
    margin-top: var(--spacing-sm) !important;
}

.mt-md {
    margin-top: var(--spacing-md) !important;
}

.mt-lg {
    margin-top: var(--spacing-lg) !important;
}

.w-100 {
    width: 100% !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.stagger-animation > * {
    animation: fadeIn 0.3s ease;
    animation-fill-mode: both;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   CURRENCY FORMAT - CHILEAN PESO (CLP)
======================================== */
.clp-price {
    font-family: inherit;
    font-weight: inherit;
}

.clp-price sub {
    font-size: 0.6em !important;
    vertical-align: sub !important;
    opacity: 0.8;
    margin-left: 2px;
    font-weight: 500;
    color: inherit;
}

/* Ensure sub tags work in all contexts */
sub {
    font-size: 0.6em !important;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    bottom: -0.25em;
}

/* Price formatting across the app */
.price-display {
    display: inline-block;
}

.price-display sub {
    font-size: 0.6em !important;
    opacity: 0.8;
    margin-left: 2px;
}

/* ========================================
   GAMEMATCH TITLE STYLING - LANDING PAGE LOGO STYLES
======================================== */

/* Logo del sidebar - aplicar estilos exactos de la landing */
.discord-sidebar .discord-logo,
.discord-sidebar-header .discord-logo,
nav.discord-sidebar .discord-logo {
    font-size: 18px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.discord-sidebar .discord-logo:hover,
.discord-sidebar-header .discord-logo:hover,
nav.discord-sidebar .discord-logo:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.1) !important;
    text-decoration: none !important;
}

.discord-sidebar .discord-logo i,
.discord-sidebar-header .discord-logo i,
nav.discord-sidebar .discord-logo i {
    color: #4c8bf5 !important;
    font-size: 24px !important;
    text-shadow: 0 2px 8px rgba(76, 139, 245, 0.3) !important;
    transition: all 0.3s ease !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.discord-sidebar .discord-logo:hover i,
.discord-sidebar-header .discord-logo:hover i,
nav.discord-sidebar .discord-logo:hover i {
    transform: scale(1.1) !important;
    text-shadow: 0 4px 12px rgba(76, 139, 245, 0.5) !important;
}

/* Título del header - aplicar estilos exactos de la landing */
.discord-content-header .discord-content-title,
header.discord-content-header .discord-content-title,
main .discord-content-header .discord-content-title,
h1.discord-content-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
}

.discord-content-header .discord-content-title:hover,
header.discord-content-header .discord-content-title:hover,
main .discord-content-header .discord-content-title:hover,
h1.discord-content-title:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.1) !important;
}

.discord-content-header .discord-content-title i,
header.discord-content-header .discord-content-title i,
main .discord-content-header .discord-content-title i,
h1.discord-content-title i {
    color: #4c8bf5 !important;
    font-size: 20px !important;
    text-shadow: 0 2px 8px rgba(76, 139, 245, 0.3) !important;
    transition: all 0.3s ease !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.discord-content-header .discord-content-title:hover i,
header.discord-content-header .discord-content-title:hover i,
main .discord-content-header .discord-content-title:hover i,
h1.discord-content-title:hover i {
    transform: scale(1.1) !important;
    text-shadow: 0 4px 12px rgba(76, 139, 245, 0.5) !important;
}

/* ASEGURAR que el gradiente se aplique a cualquier texto en el header */
.discord-content-title * {
    background: inherit !important;
    -webkit-background-clip: inherit !important;
    -webkit-text-fill-color: inherit !important;
    background-clip: inherit !important;
}

/* Text Visibility Utilities */
.text-on-blurple {
    color: var(--discord-text-on-blurple) !important;
}

.text-on-dark {
    color: var(--discord-text-on-dark) !important;
}

/* Fix text on Discord colored backgrounds */
.discord-blurple-bg .text-muted,
.discord-blurple-bg .discord-text-muted,
[style*="background: var(--discord-blurple)"] .text-muted,
[style*="background-color: var(--discord-blurple)"] .text-muted,
[style*="background: var(--discord-blurple)"] [style*="color: var(--discord-text-muted)"],
[style*="background-color: var(--discord-blurple)"] [style*="color: var(--discord-text-muted)"] {
    color: var(--discord-white) !important;
    opacity: 0.9;
}

/* System messages and timestamps in chat bubbles */
.message.system .message-content,
.message-time {
    color: var(--discord-white) !important;
    opacity: 0.8;
}

/* Bootstrap text-muted override for Discord contexts */
.discord-container .text-muted,
.discord-main-content .text-muted,
.discord-card .text-muted,
[class*="discord-"] .text-muted {
    color: var(--discord-text-muted) !important;
}

/* Bootstrap text-muted on dark backgrounds should be lighter */
body .text-muted {
    color: var(--discord-text-muted) !important;
}

#mobile-close-btn { display: none; }
@media (max-width: 768px) { /* ensure desktop hidden rule doesn't block when open */ }