/* Fragujemy.com • Profile Page Styles v3.0 (Glass & Antigravity Edition) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&family=Unbounded:wght@400;700;900&display=swap');

:root {
    /* Theme: Midnight Galaxy - Dark Premium (Simplified) */
    --bg-base: #020408;
    --glass-color-rgb: 10, 15, 25;
    --glass-opacity: 0.85;
    --bg-card: rgba(var(--glass-color-rgb), var(--glass-opacity));
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    --accent-primary: #00d2ff;
    --accent-secondary: #8b5cf6;
    --glow-primary: rgba(0, 210, 255, 0.2);
    --glow-secondary: rgba(139, 92, 246, 0.2);

    /* Component Overrides (Elite) */
    --clr-nick: #ffffff;
    --clr-title: var(--accent-primary);
    --clr-bio: var(--text-dim);
    --clr-stats: var(--accent-primary);
    --clr-socials: var(--text-dim);
    --frame-color: var(--accent-primary);
    --clr-activity-bars: var(--accent-primary);
    --clr-tabs: var(--accent-primary);
    --clr-scrollbar: var(--accent-primary);
    --clr-badges: var(--accent-primary);

    --text-main: #ffffff;
    --text-dim: #a1a1aa;

    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-stats: 'Poppins', sans-serif;

    --transition: 0.3s ease-in-out;
}

body {
    background: radial-gradient(circle at 50% 0%, #0d2a45 0%, #020610 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    height: 100%;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

.custom-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #020408;
    pointer-events: none;
    transition: background 0.7s ease;
}

.scanlines {
    display: none;
}

.cat-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

body.bg-preset-cat .cat-pattern-overlay {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ctext x='10' y='60' font-size='40'%3E%F0%9F%90%B1%3C/text%3E%3C/svg%3E");
    background-size: 140px 140px;
    background-repeat: repeat;
}

body.bg-preset-space #prf-custom-bg.active,
body.bg-preset-space {
    background: radial-gradient(ellipse at 30% 20%, #1a3a5c 0%, #0a1020 45%, #020408 100%) fixed;
}

body.bg-preset-blue #prf-custom-bg.active,
body.bg-preset-blue {
    background: radial-gradient(ellipse at 70% 30%, #0d4a8a 0%, #061428 50%, #020408 100%) fixed;
}

.app-shell {
    position: relative;
    z-index: 10;
}

.profile-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeIn 0.4s ease-out;
}

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

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

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Elite Inner Glow */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Iconsax Aesthetic Utility (Elite) */
.isax {
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24 !important;
    vertical-align: middle;
}

/* Hero Section Refined */
.profile-hero-v2 {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: visible;
    transition: var(--transition);
}

.ph-banner-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    border-radius: 32px;
    z-index: 0;
}

.ph-avatar-v2,
.ph-details-v2 {
    position: relative;
    z-index: 2;
}

.ph-avatar-v2 {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: #000;
    border-radius: 36px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ph-avatar-v2 img {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: #0a0f19;
}

.ph-avatar-frame {
    position: absolute;
    inset: -6px;
    border-radius: 40px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
}

.ph-avatar-v2.has-frame .ph-avatar-frame {
    opacity: 1;
}

.ph-top-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.ph-name-group-v2 {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ph-name-v2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff, var(--clr-nick));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--clr-nick));
}



.ps-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--clr-title);
    font-weight: 700;
}

/* Tabs Visibility */
.tab-content-v2 {
    display: none;
}

.tab-content-v2.active {
    display: block;
    animation: tabEnter 0.4s ease-out;
}

@keyframes tabEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.premium-stat b {
    font-size: 28px;
    font-family: 'Unbounded', sans-serif;
    color: var(--clr-title);
    line-height: 1.1;
}

.ph-desc-v2 {
    font-size: 1.1rem;
    color: var(--clr-bio);
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.8;
}

.ps-unit {
    font-size: 10px;
    opacity: 0.5;
}

.ph-badges-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 5;
    margin-top: 25px;
}

.ph-badge-v2 {
    background: rgba(var(--glass-color-rgb), 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 22px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Steam Badge Life */
.steam-reveal-btn {
    border-color: rgba(0, 210, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.steam-reveal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.steam-reveal-btn:hover {
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    transform: translateY(-4px) scale(1.02);
}

.steam-reveal-btn:hover::before {
    transform: translateX(100%);
}

.steam-reveal-btn .badge-icon-v2 {
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
    transition: transform 0.4s ease;
}

.steam-reveal-btn:hover .badge-icon-v2 {
    transform: rotate(10deg) scale(1.1);
}

/* Discord Badge Life */
.discord-badge {
    border-color: rgba(88, 101, 242, 0.2);
    background: rgba(88, 101, 242, 0.05);
}

.discord-badge:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.15);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.discord-badge .badge-icon-v2 {
    filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.5));
    transition: all 0.4s ease;
}

.discord-badge:hover .badge-icon-v2 {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.8));
}

/* Developer / Rank Badge Life */
.rank-badge {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 0, 210, 255), 0.1), rgba(var(--accent-primary-rgb, 0, 210, 255), 0.05));
    border-color: rgba(var(--accent-primary-rgb, 0, 210, 255), 0.2);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-developer {
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.15), rgba(255, 42, 109, 0.05)) !important;
    border-color: rgba(255, 42, 109, 0.3) !important;
    color: #ff2a6d !important;
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.1);
}

.rank-developer .material-symbols-outlined {
    animation: pulse-developer 2s infinite;
    color: #ff2a6d;
}

@keyframes pulse-developer {
    0% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 0px #ff2a6d; }
    50% { transform: scale(1.2); opacity: 1; text-shadow: 0 0 15px #ff2a6d; }
    100% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 0px #ff2a6d; }
}

.rank-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    color: #fff;
}

.rank-developer:hover {
    background: rgba(255, 42, 109, 0.2) !important;
    border-color: #ff2a6d !important;
    box-shadow: 0 0 25px rgba(255, 42, 109, 0.4) !important;
}

.badge-borderless {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Avatar Info Area */
.ph-avatar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ph-view-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.ph-view-counter .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent-primary);
}

/* Steam Reveal */
.steam-reveal-btn {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.reveal-panel {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(25px);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.steam-reveal-btn:hover .reveal-panel {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.verified-identity {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--bg-card);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--glow-primary);
    border: 1px solid var(--accent-primary);
}

.verified-identity span {
    font-size: 12px !important;
    color: var(--accent-primary);
    font-variation-settings: 'FILL' 1;
}

.badge-icon-v2 {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.discord-badge {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
}

.discord-badge:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

/* Edit Button */
.ph-edit-btn-v2 {
    background: #4ea5ff;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ph-edit-btn-v2:hover {
    background: #3a8ee6;
    transform: translateY(-1px);
}

.ph-edit-wrap {
    position: relative;
}

.ph-edit-drop-v2 {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #12171f;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    width: 180px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.ph-edit-drop-v2.active {
    display: flex;
}

.ph-edit-item-v2 {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.ph-edit-item-v2:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ph-edit-item-v2.has-submenu {
    position: relative;
}

.ph-bg-picker-v2 {
    display: none;
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    background: #12171f;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1100;
}

.ph-edit-item-v2.has-submenu:hover .ph-bg-picker-v2,
.ph-edit-drop-v2.active .ph-edit-item-v2.has-submenu:focus-within .ph-bg-picker-v2 {
    display: flex;
}

.bg-thumb-v2 {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s, transform 0.2s;
}

.bg-thumb-v2:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.bg-thumb-v2[data-preset="cat"] {
    background: linear-gradient(135deg, #2a2040, #101820), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ctext y='28' font-size='22'%3E%F0%9F%90%B1%3C/text%3E%3C/svg%3E");
}

.bg-thumb-v2[data-preset="space"] {
    background: radial-gradient(circle at 30% 30%, #3a7bd5, #0a1020);
}

.bg-thumb-v2[data-preset="blue"] {
    background: linear-gradient(135deg, #00d2ff, #0044aa);
}

.bg-thumb-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-primary);
}

.ph-name-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ph-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(var(--accent-primary-rgb, 0, 210, 255), 0.12);
    border: 1px solid rgba(var(--accent-primary-rgb, 0, 210, 255), 0.35);
    color: var(--pill-color, var(--accent-primary));
}

.ph-rank-pill.rank-developer {
    background: rgba(255, 42, 109, 0.15);
    border-color: rgba(255, 42, 109, 0.4);
    color: #ff2a6d;
}

.ph-avatar-v2.can-edit {
    cursor: pointer;
}

.ph-avatar-v2.can-edit:hover .ph-avatar-upload-hint {
    opacity: 1;
}

.ph-avatar-upload-hint {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 5;
    pointer-events: none;
}

.ph-avatar-upload-hint .material-symbols-outlined {
    font-size: 36px;
    color: #fff;
}

.inf-icon.discord span {
    color: #5865f2;
}

.ssr-stat.gold b {
    color: #f0c040;
    text-shadow: 0 0 12px rgba(240, 192, 64, 0.35);
}

.ssr-stat.red b {
    color: #ff6b6b;
}

.profile-activity-bottom {
    margin-top: 24px;
}

.prf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prf-modal {
    width: 100%;
    max-width: 480px;
    padding: 28px;
}

.prf-modal-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 700;
}

.prf-modal textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-family: var(--font-main);
    resize: vertical;
    margin-bottom: 16px;
}

.ph-status-v2 {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #00e060;
    border: 3px solid #0a0f19;
    border-radius: 50%;
    z-index: 4;
}

/* Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.inf-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.inf-card.inf-discord {
    cursor: pointer;
}

.inf-card.inf-discord:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

.inf-card.inf-discord::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: url('../sociale/discord.png') no-repeat center/contain;
    opacity: 0.7;
    transition: var(--transition);
}

.inf-card.inf-discord:hover::after {
    transform: translateY(-50%) rotate(10deg) scale(1.2);
    opacity: 1;
}

.inf-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.inf-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.inf-icon span,
.inf-icon i {
    font-size: 24px;
    color: var(--clr-stats);
    filter: drop-shadow(0 0 8px var(--clr-stats));
}

.inf-label {
    font-family: var(--font-stats);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.inf-val {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

/* 🏅 FRAGUJEMY.COM ELITE SKILLS & BADGES */
.prf-skills-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge-elite {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: help;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--badge-color, var(--accent-primary));
}

.skill-badge-elite:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--badge-color);
    box-shadow: 0 0 20px var(--badge-color);
}

.skill-badge-elite span {
    font-size: 20px;
    filter: drop-shadow(0 0 5px currentColor);
}

.skill-name-pop {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--badge-color);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 100;
}

.skill-badge-elite:hover .skill-name-pop {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tabs */
.profile-tabs-v2 {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
}

.pt-item {
    background: none;
    border: none;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    user-select: none;
}

.pt-item:hover:not(.inactive) {
    color: #fff;
}

.pt-item.active {
    color: var(--clr-tabs);
}

.pt-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--clr-tabs);
    box-shadow: 0 0 10px var(--clr-tabs);
}

.pt-item.inactive {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Stats Box */
.stats-box-v2 {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 35px;
    margin-top: 10px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.stats-hdr-v2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.theme-cyan {
    color: var(--accent);
}

/* Suma Globalna Dashboard */
.stats-summary-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.05);
}

.ssr-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--glow-primary);
}

.ssr-right {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ssr-stat {
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
    transition: var(--transition);
}

.ssr-stat i {
    font-size: 0.6rem;
    font-style: normal;
    font-family: var(--font-label);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.ssr-stat b {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.ssr-stat.green b {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.ssr-stat.blue b {
    color: #00d2ff;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.ssr-stat:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.05);
    transform: translateY(-3px);
}

/* Server Table: Gamer Strips */
.server-table-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-hdr-v2 {
    display: grid;
    grid-template-columns: 2.2fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
    padding: 15px 30px;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.st-row-v2 {
    display: grid;
    grid-template-columns: 2.2fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.st-row-logo {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 55px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.st-row-v2:hover .st-row-logo {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.st-row-v2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    opacity: 0.5;
    transition: height 0.3s;
}

.st-row-v2:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.st-row-v2:hover::before {
    height: 70%;
    opacity: 1;
    box-shadow: 0 0 15px var(--accent);
}

/* Game Specific Accents */
.st-row-v2.game-cs2::before {
    background: #00d2ff;
}

.st-row-v2.game-csgo::before {
    background: #ff9800;
}

.st-row-v2.game-css::before {
    background: #4caf50;
}

.st-row-v2.game-cs16::before {
    background: #9e9e9e;
}

.st-cell-game {
    display: flex;
    align-items: center;
    gap: 20px;
}

.st-game-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.st-game-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.st-game-nick {
    font-family: var(--font-label);
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
}

.st-rank-pos {
    font-family: var(--font-stats);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.st-rank-total {
    font-family: var(--font-label);
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.st-val {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 0.95rem;
}

.st-val b {
    font-weight: 600;
}

.st-val-cyan {
    color: var(--accent);
}

.st-val-green {
    color: #4ade80;
}

.st-val-red {
    color: #ff5050;
}

/* Activity Box */
.activity-box-v2 {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 35px;
    margin-top: 40px;
}

.act-hdr-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.act-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.act-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1000;
}

.act-toggle {
    pointer-events: all;
    cursor: pointer !important;
}

.act-toggles {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 14px;
    gap: 4px;
    border: 1px solid var(--glass-border);
}

.act-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.act-toggle.active {
    background: var(--accent-primary);
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 20px var(--glow-primary);
}

.act-total {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.act-total span {
    color: var(--accent);
}

.act-avg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-family: var(--font-stats, 'Rajdhani', sans-serif);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.1);
    white-space: nowrap;
}

.act-chart-wrap-v2 {
    height: 180px;
    display: flex;
    flex-direction: column;
}

.act-chart-v2 {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-bottom: 10px;
}

.activity-bar-wrap-v2 {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-bar-wrap-v2:hover {
    z-index: 10;
}

.activity-bar-v2 {
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    background: var(--clr-activity-bars);
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--clr-activity-bars);
    position: relative;
    overflow: hidden;
}

.activity-bar-wrap-v2:hover .activity-bar-v2 {
    box-shadow: 0 0 15px var(--accent-primary);
}

.activity-tooltip-v2 {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.activity-bar-wrap-v2:hover .activity-tooltip-v2 {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.act-labels-v2 {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 700;
}

.activity-top-label {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
    opacity: 0.7;
    font-family: var(--font-stats, 'Rajdhani', sans-serif);
    letter-spacing: 0.5px;
}



/* Utils */
.profile-preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

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

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

    .global-stats-row-v2 {
        grid-template-columns: repeat(3, 1fr);
    }

    .st-hdr-v2,
    .st-row-v2 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .st-hdr-v2 div:nth-child(n+4),
    .st-row-v2 .st-val:nth-child(n+4) {
        display: none;
    }
}

/* ════ MANAGEMENT DRAWER (ELITE) ════ */
.mgmt-drawer-v2 {
    position: fixed;
    right: 0;
    top: 0;
    width: 420px;
    height: 100vh;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(50px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
}

.mgmt-drawer-v2.open {
    transform: translateX(0);
}

.drawer-hdr-v2 {
    padding: 25px 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--glow-primary);
}

.drawer-close-v2 {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
}

.drawer-close-v2:hover {
    color: #fff;
}

.drawer-body-v2 {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.drawer-body-v2::-webkit-scrollbar {
    width: 4px;
}

.drawer-body-v2::-webkit-scrollbar-thumb {
    background: var(--clr-scrollbar);
    border-radius: 10px;
}

.drawer-section {
    margin-bottom: 35px;
}

.ds-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    opacity: 0.6;
    border-left: 3px solid var(--accent-primary);
    padding-left: 10px;
}

.ds-group {
    margin-bottom: 20px;
}

.ds-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ds-group input[type="text"],
.ds-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.ds-group input:focus,
.ds-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 243, 255, 0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.ds-group input[type="color"] {
    width: 100%;
    height: 45px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
}

.ds-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.drawer-footer-v2 {
    padding: 25px 30px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.btn-save-v2 {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: #000;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.2);
}

.btn-save-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.4);
    filter: brightness(1.1);
}

/* Base Variable Fallbacks - unified with :root definitions */

.glass-card {
    background: rgba(var(--glass-color-rgb), var(--glass-opacity)) !important;
}

@media (max-width: 768px) {
    .mgmt-drawer-v2 {
        width: 100%;
    }
}

/* ════ DRAWER COMPONENTS ════ */
.drawer-file-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-file-btn:hover {
    background: var(--accent-primary);
    color: #000;
}

.drawer-select {
    width: 100%;
    background: rgba(5, 8, 15, 0.9);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300f3ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
}

/* ════ PREMIUM ANIMATED FRAMES ════ */
.frame-cyber-pulse {
    animation: cyberPulse 2.5s infinite ease-in-out alternate;
    border: 3px solid var(--frame-color, var(--accent-primary));
}

@keyframes cyberPulse {
    0% {
        box-shadow: 0 0 5px var(--frame-color, var(--accent-primary)), inset 0 0 5px var(--frame-color, var(--accent-primary));
        border-color: rgba(var(--frame-color-rgb, 0, 210, 255), 0.4);
    }

    100% {
        box-shadow: 0 0 25px var(--frame-color, var(--accent-primary)), inset 0 0 10px var(--frame-color, var(--accent-primary));
        border-color: var(--frame-color, var(--accent-primary));
    }
}

.frame-rotating-neon {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.frame-rotating-neon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--frame-color, var(--accent-primary)));
    animation: neonRotate 2.5s linear infinite;
    z-index: -1;
}

@keyframes neonRotate {
    100% {
        transform: rotate(360deg);
    }
}

.frame-rgb-flow {
    border: 4px solid var(--accent-primary);
    animation: rgbFlow 4s linear infinite;
}

@keyframes rgbFlow {

    0%,
    100% {
        filter: hue-rotate(0deg);
        border-color: #ff0000;
        box-shadow: 0 0 15px #ff0000;
    }

    33% {
        filter: hue-rotate(120deg);
        border-color: #00ff00;
        box-shadow: 0 0 15px #00ff00;
    }

    66% {
        filter: hue-rotate(240deg);
        border-color: #0000ff;
        box-shadow: 0 0 15px #0000ff;
    }
}

.frame-glitch {
    border: 2px solid #fff;
}

.frame-glitch::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--frame-color, var(--accent-primary));
    animation: cyberGlitch 0.4s infinite steps(2);
    opacity: 0.8;
}

@keyframes cyberGlitch {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }

    25% {
        transform: translate(-3px, 2px);
        clip-path: inset(10% 0 80% 0);
    }

    50% {
        transform: translate(3px, -2px);
        clip-path: inset(70% 0 15% 0);
    }

    75% {
        transform: translate(-1px, -3px);
        clip-path: inset(30% 0 40% 0);
    }

    100% {
        transform: translate(0);
    }
}

.frame-scanline::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--frame-color, var(--accent-primary)), transparent);
    animation: scanEffect 4s linear infinite;
    opacity: 0.5;
}

@keyframes scanEffect {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* Management Drawer Refinement: Component Groups */
.ds-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

.ds-card:hover {
    border-color: rgba(var(--frame-color-rgb, 0, 210, 255), 0.3);
}

.ds-sub-label {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    opacity: 0.7;
}

.mini-picker {
    height: 38px !important;
    cursor: pointer;
}

.drawer-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.drawer-select:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Visual Polish & V2 Frames --- */
.drawer-select {
    background: #0a111a !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300f3ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
}

.drawer-select option {
    background: #0a111a !important;
    color: #fff !important;
}

.frame-liquid-flow {
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(90deg, var(--frame-color), var(--accent-secondary), var(--frame-color)) border-box;
    background-size: 200% 200%;
    animation: liquidMove 3s linear infinite;
}

@keyframes liquidMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.frame-matrix-rain::before {
    content: '101010101010';
    font-family: monospace;
    font-size: 10px;
    position: absolute;
    inset: -3px;
    color: var(--frame-color);
    overflow: hidden;
    word-break: break-all;
    animation: matrixRain 3s linear infinite;
    opacity: 0.6;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--frame-color);
}

@keyframes matrixRain {
    0% {
        transform: translateY(-10%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(10%);
        opacity: 0;
    }
}

.frame-holy-shine::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid #fff;
    border-radius: inherit;
    animation: holyShine 2.5s infinite ease-out;
    opacity: 0;
}

@keyframes holyShine {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* NEW: Elite V3 Frames */
.frame-rainbow {
    border: 3px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff, #ff0000) border-box !important;
    background-size: 400% 400% !important;
    animation: rainbowMove 4s linear infinite !important;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.frame-hacker {
    border: 2px solid #00ff41 !important;
    box-shadow: 0 0 15px #00ff41, inset 0 0 10px #00ff41 !important;
}

.frame-hacker::after {
    content: "01011001 01101111 01110101";
    position: absolute;
    inset: 0;
    font-family: monospace;
    font-size: 8px;
    color: #00ff41;
    opacity: 0.3;
    animation: matrixText 5s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes matrixText {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.frame-dark-matter {
    background: #000 !important;
    border: 3px solid #330066 !important;
    box-shadow: 0 0 20px #220044, inset 0 0 30px #110022 !important;
}

.frame-dark-matter::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, #5500aa 0%, transparent 70%);
    animation: darkMatterOrbit 6s linear infinite;
}

@keyframes darkMatterOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.frame-crystal {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) saturate(200%) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
}

.frame-crystal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: crystalShine 3s ease-in-out infinite;
}

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

    100% {
        background-position: 200% 200%;
    }
}