/* common/css/special.css - Underground Theme + Modern Enhancements */

/* === UNDERGROUND THEME SPECIAL VARIABLES === */
:root {
    /* Primary Colors - Underground Music Theme */
    --special_primary: rgba(168, 85, 247, 1);         /* Punk purple */
    --special_primary_rgb: 168, 85, 247;
    --special_secondary: rgba(14, 165, 233, 1);       /* Ska blue */
    --special_secondary_rgb: 14, 165, 233;
    --special_accent: rgba(239, 68, 68, 1);           /* Rebellious red */
    --special_accent_rgb: 239, 68, 68;
    --special_success: rgba(34, 197, 94, 1);          /* Electric green */
    --special_success_rgb: 34, 197, 94;
    
    /* Text and background colors */
    --special_light: rgba(248, 250, 252, 1);
    --special_dark: rgba(15, 23, 42, 1);
    --special_dark_rgb: 15, 23, 42;
    --special_text_on_light: rgba(15, 23, 42, 1);
    --special_text_on_dark: rgba(248, 250, 252, 1);
    --special_text_muted: rgba(100, 116, 139, 1);
    
    /* Border colors */
    --special_border_light: rgba(226, 232, 240, 1);
    --special_border_dark: rgba(51, 65, 85, 1);
    
    /* Shadows */
    --special_shadow_sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --special_shadow_md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --special_shadow_lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    
    /* Border radius */
    --special_radius_sm: 6px;
    --special_radius_md: 10px;
    --special_radius_lg: 15px;
    --special_radius_xl: 20px;
    
    /* Mobile-optimized spacing */
    --special_pad_xs: 2px;
    --special_pad_sm: 4px;
    --special_pad_md: 8px;
    --special_pad_lg: 12px;
    --special_pad_xl: 16px;
    
    --special_gap_xs: 2px;
    --special_gap_sm: 4px;
    --special_gap_md: 8px;
    --special_gap_lg: 12px;
    --special_gap_xl: 16px;
    
    /* Typography */
    --text_xs: 0.75rem;
    --text_sm: 0.875rem;
    --text_base: 1rem;
    --text_lg: 1.125rem;
    
    /* Component specific */
    --special_primary_hover: rgba(147, 51, 234, 1);
    --special_nav_hover_bg: rgba(237, 233, 254, 1);
    --special_nav_text: var(--special_text_on_light);
    
    /* Stat box colors */
    --special_stat_bg: rgba(255, 255, 255, 0.1);
    --special_stat_number: rgba(168, 85, 247, 1);
    --special_stat_label: rgba(51, 65, 85, 1);
    
    /* Password strength colors */
    --special_password_weak: rgba(239, 68, 68, 1);
    --special_password_medium: rgba(251, 146, 60, 1);
    --special_password_strong: rgba(34, 197, 94, 1);
    
    /* Notification colors */
    --special_notification_info: var(--special_secondary);
    --special_notification_success: var(--special_success);
    --special_notification_warning: rgba(251, 146, 60, 1);
    --special_notification_error: var(--special_accent);
}

/* === DARK MODE VARIABLE OVERRIDES === */
@media (prefers-color-scheme: dark) {
    :root {
        --special_light: rgba(30, 41, 59, 1);
        --special_dark: rgba(15, 23, 42, 1);
        --special_text_on_light: rgba(248, 250, 252, 1);
        --special_border_light: rgba(51, 65, 85, 1);
        --special_border_dark: rgba(71, 85, 105, 1);
        --special_nav_hover_bg: rgba(76, 29, 149, 1);
        --special_stat_bg: rgba(51, 65, 85, 0.3);
        --special_stat_number: rgba(196, 141, 255, 1);
        --special_stat_label: rgba(203, 213, 224, 1);
        --special_shadow_sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --special_shadow_md: 0 4px 6px rgba(0, 0, 0, 0.2);
        --special_shadow_lg: 0 10px 15px rgba(0, 0, 0, 0.25);
    }
}

/* Mobile-first responsive adjustments */
@media (max-width: 480px) {
    :root {
        --special_pad_md: 10px;
        --special_pad_lg: 12px;
        --special_gap_md: 12px;
        --special_gap_lg: 16px;
    }
}

/* === CUSTOM SCROLLBAR === */
.custom_scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--special_primary) transparent;
}

.custom_scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom_scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom_scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    border-radius: 20px;
    border: 2px solid transparent;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom_scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--special_primary_hover), var(--special_secondary));
}

/* === DIVIDERS === */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--special_border_light), transparent);
    margin: var(--special_gap_md) 0;
}

.divider_vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--special_border_light), transparent);
    margin: 0 var(--special_gap_md);
}

.divider_dashed {
    border-top: 1px dashed var(--special_border_light);
    background-color: transparent;
}

.divider_with_text {
    display: flex;
    align-items: center;
    margin: var(--special_gap_sm) 0;
    text-align: center;
}

.divider_with_text::before,
.divider_with_text::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--special_border_light), transparent);
}

.divider_text {
    padding: 0 var(--special_pad_md);
    color: var(--special_text_muted);
    font-size: var(--text_sm);
    font-weight: 600;
    background-color: var(--special_light);
    border-radius: var(--special_radius_sm);
}

/* === TOOLTIPS === */
.tooltip_container {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.tooltip {
    position: absolute;
    visibility: hidden;
    max-width: 250px;
    background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_dark_rgb), 0.95));
    color: var(--special_text_on_dark);
    text-align: center;
    border-radius: var(--special_radius_md);
    padding: var(--special_pad_sm) var(--special_pad_md);
    font-size: var(--text_xs);
    z-index: 1010;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--special_shadow_lg);
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid rgba(var(--special_primary_rgb), 0.2);
}

.tooltip_container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip_top {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    margin-bottom: 8px;
}

.tooltip_container:hover .tooltip_top {
    transform: translateX(-50%) translateY(-8px);
}

.tooltip_bottom {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    margin-top: 8px;
}

.tooltip_container:hover .tooltip_bottom {
    transform: translateX(-50%) translateY(8px);
}

.tooltip_left {
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    margin-right: 8px;
}

.tooltip_container:hover .tooltip_left {
    transform: translateY(-50%) translateX(-8px);
}

.tooltip_right {
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    margin-left: 8px;
}

.tooltip_container:hover .tooltip_right {
    transform: translateY(-50%) translateX(8px);
}

.tooltip::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.tooltip_top::after {
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-top-color: var(--special_dark);
}

.tooltip_bottom::after {
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-bottom-color: var(--special_dark);
}

.tooltip_left::after {
    left: 100%;
    top: 50%;
    margin-top: -6px;
    border-left-color: var(--special_dark);
}

.tooltip_right::after {
    right: 100%;
    top: 50%;
    margin-top: -6px;
    border-right-color: var(--special_dark);
}

/* === PROGRESS INDICATORS === */
.progress {
    height: 10px;
    width: 100%;
    background-color: var(--special_nav_hover_bg);
    border-radius: var(--special_radius_sm);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress_bar {
    height: 100%;
    background: linear-gradient(90deg, var(--special_primary), var(--special_secondary));
    border-radius: var(--special_radius_sm);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress_bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 75%);
    background-size: 1rem 1rem;
    animation: progress_shimmer 2s linear infinite;
}

@keyframes progress_shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress_striped .progress_bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.progress_animated .progress_bar {
    animation: progress_bar_stripes 1s linear infinite;
}

@keyframes progress_bar_stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* === LOADING SPINNERS === */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(var(--special_primary_rgb), 0.2);
    border-radius: 50%;
    border-top-color: var(--special_primary);
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

.spinner_sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner_lg {
    width: 36px;
    height: 36px;
    border-width: 4px;
}

.spinner_punk {
    border-top-color: var(--special_primary);
    border-right-color: var(--special_secondary);
    border-bottom-color: var(--special_accent);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading_pulse {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* === TAGS/CHIPS === */
.tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 var(--special_pad_sm);
    font-size: var(--text_xs);
    font-weight: 600;
    background: linear-gradient(135deg, var(--special_nav_hover_bg), rgba(var(--special_primary_rgb), 0.1));
    color: var(--special_nav_text);
    border-radius: 20px;
    margin-right: var(--special_gap_xs);
    margin-bottom: var(--special_gap_xs);
    border: 1px solid rgba(var(--special_primary_rgb), 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--special_shadow_sm);
}

.tag_primary {
    background: linear-gradient(135deg, rgba(var(--special_primary_rgb), 0.15), rgba(var(--special_primary_rgb), 0.05));
    color: var(--special_primary);
    border-color: rgba(var(--special_primary_rgb), 0.3);
}

.tag_secondary {
    background: linear-gradient(135deg, rgba(var(--special_secondary_rgb), 0.15), rgba(var(--special_secondary_rgb), 0.05));
    color: var(--special_secondary);
    border-color: rgba(var(--special_secondary_rgb), 0.3);
}

.tag_accent {
    background: linear-gradient(135deg, rgba(var(--special_accent_rgb), 0.15), rgba(var(--special_accent_rgb), 0.05));
    color: var(--special_accent);
    border-color: rgba(var(--special_accent_rgb), 0.3);
}

.tag_success {
    background: linear-gradient(135deg, rgba(var(--special_success_rgb), 0.15), rgba(var(--special_success_rgb), 0.05));
    color: var(--special_success);
    border-color: rgba(var(--special_success_rgb), 0.3);
}

.tag_removable {
    padding-right: 6px;
    cursor: pointer;
}

.tag_remove {
    margin-left: 6px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--text_sm);
    font-weight: 700;
}

.tag_remove:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* === OVERLAY/BACKDROP === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(var(--special_dark_rgb), 0.6));
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* === CODE BLOCKS === */
.code_block {
    background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_dark_rgb), 0.95));
    color: #f8f8f2;
    padding: var(--special_pad_md);
    border-radius: var(--special_radius_md);
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: var(--text_sm);
    line-height: 1.6;
    margin: var(--special_gap_md) 0;
    border: 1px solid rgba(var(--special_primary_rgb), 0.2);
    box-shadow: var(--special_shadow_md);
    position: relative;
}

.code_block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--special_primary), var(--special_secondary), var(--special_accent));
    border-radius: var(--special_radius_md) var(--special_radius_md) 0 0;
}

.code_inline {
    background: linear-gradient(135deg, rgba(var(--special_primary_rgb), 0.1), rgba(var(--special_secondary_rgb), 0.1));
    color: var(--special_primary);
    padding: 0.2em 0.4em;
    border-radius: var(--special_radius_sm);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(var(--special_primary_rgb), 0.2);
}

/* === PRICING TABLES === */
.pricing_card {
    border: 2px solid var(--special_border_light);
    border-radius: var(--special_radius_lg);
    padding: var(--special_pad_lg);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--special_light), rgba(var(--special_primary_rgb), 0.02));
    position: relative;
    overflow: hidden;
}

.pricing_card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--special_primary), var(--special_secondary));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--special_shadow_lg);
    border-color: var(--special_primary);
}

.pricing_card:hover::before {
    transform: scaleX(1);
}

.pricing_header {
    margin-bottom: var(--special_gap_md);
}

.pricing_title {
    font-size: var(--text_lg);
    font-weight: 700;
    margin-bottom: var(--special_gap_xs);
    color: var(--special_primary);
}

.pricing_subtitle {
    color: var(--special_text_muted);
    font-size: var(--text_sm);
    line-height: 1.4;
}

.pricing_price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--special_gap_md) 0;
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing_duration {
    font-size: var(--text_sm);
    color: var(--special_text_muted);
    font-weight: 500;
}

.pricing_features {
    margin: var(--special_gap_lg) 0;
    padding: 0;
    list-style: none;
}

.pricing_feature {
    padding: var(--special_pad_xs) 0;
    font-size: var(--text_sm);
    color: var(--special_text_on_light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--special_gap_xs);
}

.pricing_feature::before {
    content: "?";
    color: var(--special_success);
    font-weight: 700;
    font-size: var(--text_base);
}

.pricing_cta {
    margin-top: var(--special_gap_lg);
}

.pricing_card_featured {
    border-color: var(--special_primary);
    box-shadow: var(--special_shadow_md);
    position: relative;
    transform: scale(1.05);
}

.pricing_card_featured::before {
    transform: scaleX(1);
}

.pricing_badge {
    position: absolute;
    top: -12px;
    right: var(--special_pad_md);
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    color: var(--special_text_on_dark);
    padding: var(--special_pad_xs) var(--special_pad_sm);
    border-radius: var(--special_radius_md);
    font-size: var(--text_xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--special_shadow_sm);
}

/* === AVATAR & BADGES === */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    color: var(--special_text_on_dark);
    font-weight: 700;
    font-size: var(--text_base);
    position: relative;
    border: 2px solid rgba(var(--special_primary_rgb), 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--special_shadow_md);
}

.avatar_sm {
    width: 28px;
    height: 28px;
    font-size: var(--text_xs);
}

.avatar_lg {
    width: 64px;
    height: 64px;
    font-size: var(--text_lg);
}

.avatar_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar_status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--special_light);
    background-color: var(--special_success);
    box-shadow: var(--special_shadow_sm);
}

.avatar_status_sm {
    width: 10px;
    height: 10px;
    border-width: 1px;
}

.avatar_status_lg {
    width: 18px;
    height: 18px;
    border-width: 3px;
}

/* === PASSWORD STRENGTH INDICATOR === */
#password_strength {
    height: 8px;
    border-radius: var(--special_radius_sm);
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--special_nav_hover_bg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#password_strength .progress_bar {
    height: 100%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--special_radius_sm);
}

#password_strength .progress_bar.weak {
    background: linear-gradient(90deg, var(--special_password_weak), rgba(var(--special_accent_rgb), 0.8));
}

#password_strength .progress_bar.medium {
    background: linear-gradient(90deg, var(--special_password_medium), rgba(251, 146, 60, 0.8));
}

#password_strength .progress_bar.strong {
    background: linear-gradient(90deg, var(--special_password_strong), rgba(var(--special_success_rgb), 0.8));
}

/* === CAPTCHA SECTION STYLING === */
#captcha_image {
    height: 60px;
    border-radius: var(--special_radius_sm);
    margin-right: 0.5rem;
    border: 2px solid var(--special_border_light);
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#captcha_image:hover {
    border-color: var(--special_primary);
}

#refresh_captcha {
    padding: var(--special_pad_xs) var(--special_pad_sm);
    font-size: var(--text_lg);
    line-height: 1;
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    color: var(--special_text_on_dark);
    border: none;
    border-radius: var(--special_radius_sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

#refresh_captcha:hover {
    transform: scale(1.1);
    box-shadow: var(--special_shadow_sm);
}

/* === USER STATS === */
.user_stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--special_gap_md);
    margin: var(--special_gap_lg) 0;
}

.stat_box {
    background: linear-gradient(135deg, var(--special_stat_bg), rgba(var(--special_primary_rgb), 0.05));
    border-radius: var(--special_radius_md);
    padding: var(--special_pad_lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--special_primary_rgb), 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat_box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--special_primary), var(--special_secondary));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat_box:hover {
    transform: translateY(-2px);
    box-shadow: var(--special_shadow_md);
    border-color: rgba(var(--special_primary_rgb), 0.3);
}

.stat_box:hover::before {
    transform: scaleX(1);
}

.stat_number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--special_stat_number), var(--special_secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--special_gap_xs);
    line-height: 1.2;
}

.stat_label {
    font-size: var(--text_sm);
    color: var(--special_stat_label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* === MODERN ENHANCEMENTS === */

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass_dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Gradient borders */
.gradient_border {
    position: relative;
    background: var(--special_light);
}

.gradient_border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary), var(--special_accent));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, 
        var(--special_nav_hover_bg) 25%, 
        rgba(var(--special_primary_rgb), 0.1) 50%, 
        var(--special_nav_hover_bg) 75%);
    background-size: 200% 100%;
    animation: skeleton_loading 1.5s infinite;
    border-radius: var(--special_radius_sm);
}

@keyframes skeleton_loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton_text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton_text:last-child {
    margin-bottom: 0;
    width: 75%;
}

.skeleton_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton_button {
    height: 40px;
    width: 120px;
}

/* === NOTIFICATION SYSTEM === */
.notification_container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1020;
    max-width: 400px;
}

.notification {
    background: linear-gradient(135deg, var(--special_light), rgba(255, 255, 255, 0.95));
    border-radius: var(--special_radius_md);
    padding: var(--special_pad_md);
    margin-bottom: var(--special_gap_sm);
    box-shadow: var(--special_shadow_lg);
    display: flex;
    align-items: flex-start;
    gap: var(--special_gap_sm);
    border-left: 4px solid var(--special_primary);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification_info    { border-left-color: var(--special_notification_info); }
.notification_success { border-left-color: var(--special_notification_success); }
.notification_warning { border-left-color: var(--special_notification_warning); }
.notification_error   { border-left-color: var(--special_notification_error); }

.notification_icon {
    font-size: var(--text_lg);
    flex-shrink: 0;
    margin-top: 2px;
}

.notification_body {
    flex: 1;
    min-width: 0;
}

.notification_title {
    font-weight: 700;
    font-size: var(--text_sm);
    color: var(--special_text_on_light);
    margin-bottom: var(--special_gap_xs);
    line-height: 1.3;
}

.notification_message {
    font-size: var(--text_xs);
    color: var(--special_text_muted);
    line-height: 1.4;
}

.notification_close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--special_text_muted);
    font-size: var(--text_lg);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification_close:hover {
    color: var(--special_text_on_light);
}

/* === FLOATING ACTION BUTTON === */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--special_primary), var(--special_secondary));
    color: var(--special_text_on_dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text_lg);
    box-shadow: var(--special_shadow_lg);
    z-index: 1010;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 20px rgba(var(--special_primary_rgb), 0.4);
}

.fab:active {
    transform: scale(0.95);
}

.fab_punk {
    background: linear-gradient(135deg, var(--special_primary), var(--special_accent));
}

/* === CONTENT BOXES === */
.content_box {
    background: var(--special_light);
    border-radius: var(--special_radius_lg);
    padding: var(--special_pad_xl);
    border: 1px solid var(--special_border_light);
    box-shadow: var(--special_shadow_sm);
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content_box:hover {
    box-shadow: var(--special_shadow_md);
}

.content_box_primary {
    border-color: rgba(var(--special_primary_rgb), 0.3);
    background: linear-gradient(135deg, var(--special_light), rgba(var(--special_primary_rgb), 0.03));
}

.content_box_secondary {
    border-color: rgba(var(--special_secondary_rgb), 0.3);
    background: linear-gradient(135deg, var(--special_light), rgba(var(--special_secondary_rgb), 0.03));
}

.content_box_accent {
    border-color: rgba(var(--special_accent_rgb), 0.3);
    background: linear-gradient(135deg, var(--special_light), rgba(var(--special_accent_rgb), 0.03));
}

.content_box_success {
    border-color: rgba(var(--special_success_rgb), 0.3);
    background: linear-gradient(135deg, var(--special_light), rgba(var(--special_success_rgb), 0.03));
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .tooltip {
        max-width: 200px;
        font-size: var(--text_xs);
        padding: var(--special_pad_xs) var(--special_pad_sm);
    }

    .pricing_card {
        padding: var(--special_pad_md);
    }

    .pricing_price {
        font-size: 2rem;
    }

    .user_stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--special_gap_sm);
    }

    .stat_number {
        font-size: 2rem;
    }

    .notification_container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .fab {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: var(--text_base);
    }
}

@media (max-width: 480px) {
    .user_stats {
        grid-template-columns: 1fr;
    }

    .tag {
        height: 24px;
        font-size: var(--text_xs);
        padding: 0 var(--special_pad_xs);
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: var(--text_sm);
    }

    .avatar_lg {
        width: 48px;
        height: 48px;
        font-size: var(--text_base);
    }

    .progress {
        height: 8px;
    }

    .code_block {
        font-size: var(--text_xs);
        padding: var(--special_pad_sm);
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .divider,
    .divider_vertical {
        background: linear-gradient(90deg, transparent, var(--special_border_dark), transparent);
    }

    .divider_with_text::before,
    .divider_with_text::after {
        background: linear-gradient(90deg, transparent, var(--special_border_dark), transparent);
    }

    .divider_text {
        background-color: var(--special_dark);
        color: var(--special_text_on_dark);
    }

    .code_inline {
        background: linear-gradient(135deg, rgba(var(--special_primary_rgb), 0.2), rgba(var(--special_secondary_rgb), 0.2));
        color: rgba(var(--special_primary_rgb), 1.2);
    }

    .pricing_card {
        background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_primary_rgb), 0.05));
        border-color: var(--special_border_dark);
    }

    .avatar {
        border-color: rgba(var(--special_primary_rgb), 0.3);
    }

    .avatar_status {
        border-color: var(--special_dark);
    }

    .tag_remove:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .glass {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .gradient_border {
        background: var(--special_dark);
    }

    #captcha_image {
        border-color: var(--special_border_dark);
    }

    .notification {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    }

    .notification_title {
        color: var(--special_text_on_dark);
    }

    .notification_close:hover {
        color: var(--special_text_on_dark);
    }

    .content_box {
        background: var(--special_dark);
        border-color: var(--special_border_dark);
    }

    .content_box_primary {
        background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_primary_rgb), 0.06));
    }

    .content_box_secondary {
        background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_secondary_rgb), 0.06));
    }

    .content_box_accent {
        background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_accent_rgb), 0.06));
    }

    .content_box_success {
        background: linear-gradient(135deg, var(--special_dark), rgba(var(--special_success_rgb), 0.06));
    }
}

/* === ACCESSIBILITY ENHANCEMENTS === */
@media (prefers-reduced-motion: reduce) {
    .spinner,
    .loading_pulse,
    .skeleton,
    .progress_bar::after {
        animation: none;
    }

    .tooltip,
    .notification,
    .fab,
    .tag,
    .pricing_card,
    .stat_box {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .tooltip {
        background: var(--special_dark);
        border: 2px solid var(--special_primary);
    }

    .tag {
        border-width: 2px;
    }

    .notification {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.5);
    }

    .code_block {
        border-width: 2px;
    }

    .pricing_card {
        border-width: 2px;
    }
}
/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.badge_info      { background: #e3f2fd; color: #1565c0; }
.badge_secondary { background: #f5f5f5; color: #555; }
.badge_warning   { background: #fff3e0; color: #e65100; }
.badge_staged    { background: #fff8e1; color: #f57f17; font-weight: 600; }
.badge_success   { background: #e8f5e9; color: #2e7d32; }
.badge_danger    { background: #ffebee; color: #c62828; }

/* Value-type badges */
.badge_type_string { background: #e8eaf6; color: #3949ab; }
.badge_type_color  { background: #fce4ec; color: #c62828; }
.badge_type_bool   { background: #e8f5e9; color: #2e7d32; }
.badge_type_int    { background: #fff8e1; color: #f57f17; }
.badge_type_url    { background: #e0f7fa; color: #00695c; }
.badge_type_json   { background: #f3e5f5; color: #6a1b9a; }
.badge_type_asset  { background: #ede7f6; color: #4527a0; }
.badge_type_select { background: #e0f2f1; color: #00695c; }

/* Small badge modifier */
.badge_xs { font-size: 0.68rem; vertical-align: middle; margin-left: 4px; }

/* ── Modal dialog box ────────────────────────────────────────────────────── */
.modal_box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.modal_box h3 {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal_desc {
    color: #666;
    font-size: 0.88rem;
    margin: 0 0 18px;
}

/* ── Collapsible section header ──────────────────────────────────────────── */
.section_header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section_header:hover { opacity: 0.85; }
.section_header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section_body { margin-top: 15px; }

/* ── Admin tip box ───────────────────────────────────────────────────────── */
.admin_tip {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #6d4c00;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Config admin helpers ────────────────────────────────────────────────── */
.config_label    { font-weight: 600; color: #333; }
.config_key      { font-size: 0.78rem; color: #888; font-family: monospace; margin-top: 2px; }
.config_desc     { font-size: 0.78rem; color: #aaa; margin-top: 3px; }
.config_value_ro { color: #999; font-style: italic; }
.color_pair      { display: flex; align-items: center; gap: 8px; }
.color_swatch    { width: 40px; height: 36px; border: none; cursor: pointer; padding: 0; }
.admin_token_wrap { max-width: 460px; }

/* ── HR divider variant ──────────────────────────────────────────────────── */
.hr_light { border: none; border-top: 1px solid var(--container_border_light, #e0e0e0); margin: 10px 0; }

/* === Admin Dashboard Nav Links === */
.dashboard_links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard_link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: var(--container_bg, #f8f9fa);
    border: 1px solid var(--container_border_light, #e0e0e0);
    color: var(--text_primary, #333);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.dashboard_link:hover {
    background-color: var(--container_hover, #e9ecef);
    border-color: var(--container_border, #ccc);
    transform: translateX(3px);
    text-decoration: none;
}

.dashboard_link .material-symbols-outlined {
    font-size: 20px;
    color: var(--special_primary, #6c5fc7);
    flex-shrink: 0;
}

/* === Dashboard View-All Footer === */
.view_all_link {
    margin-top: 12px;
    text-align: right;
}
