/* ═══════════════════════════════════════════════════════════════════
   ONE WAY · DASHBOARD PRO v1.0
   Ultra-modern moderation UI · Glassmorphism · Animations
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --pro-grad-1: linear-gradient(135deg, #5865F2 0%, #8B5CF6 50%, #EC4899 100%);
    --pro-grad-2: linear-gradient(135deg, #06B6D4 0%, #5865F2 100%);
    --pro-grad-warn: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --pro-grad-strike: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    --pro-grad-bl: linear-gradient(135deg, #18181B 0%, #7F1D1D 100%);
    --pro-grad-clan: linear-gradient(135deg, #10B981 0%, #5865F2 100%);
    --pro-grad-success: linear-gradient(135deg, #10B981 0%, #059669 100%);

    --pro-shadow-glow: 0 0 40px rgba(88, 101, 242, 0.35);
    --pro-shadow-card: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
    --pro-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.18);

    --pro-border: 1px solid rgba(255, 255, 255, 0.08);
    --pro-border-hover: 1px solid rgba(88, 101, 242, 0.45);
    --pro-glass: rgba(15, 18, 27, 0.55);
    --pro-glass-hover: rgba(22, 27, 38, 0.75);
}

/* ═════ KEYFRAMES ═════ */
@keyframes pro-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pro-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pro-scale-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pro-shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}
@keyframes pro-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}
@keyframes pro-pulse-danger {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes pro-grad-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes pro-counter {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes pro-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pro-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ═════ PRO HERO BANNER ═════ */
.pro-hero {
    position: relative;
    padding: 36px 38px;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18) 0%, rgba(139, 92, 246, 0.10) 50%, rgba(236, 72, 153, 0.18) 100%);
    background-size: 200% 200%;
    animation: pro-grad-shift 12s ease infinite, pro-fade-up 0.6s ease;
    border: var(--pro-border);
    box-shadow: var(--pro-shadow-card);
    backdrop-filter: blur(20px);
}
.pro-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.40), transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(236, 72, 153, 0.25), transparent 45%);
    pointer-events: none;
    z-index: 0;
}
.pro-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.pro-hero-avatar-wrap {
    position: relative;
    width: 110px; height: 110px;
    border-radius: 28px;
    padding: 4px;
    background: var(--pro-grad-1);
    background-size: 200% 200%;
    animation: pro-grad-shift 8s ease infinite;
    box-shadow: 0 14px 40px rgba(88, 101, 242, 0.45);
    flex-shrink: 0;
}
.pro-hero-avatar {
    width: 100%; height: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid #0a0e17;
}
.pro-hero-status {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 22px; height: 22px;
    background: #10B981;
    border-radius: 50%;
    border: 3px solid #0a0e17;
    animation: pro-pulse-ring 2s infinite;
}
.pro-hero-text { flex: 1; min-width: 280px; }
.pro-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, #C7D2FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.pro-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.pro-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}
.pro-chip:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.pro-chip.danger { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; border-color: rgba(239, 68, 68, 0.35); }
.pro-chip.warn   { background: rgba(245, 158, 11, 0.15); color: #FCD34D; border-color: rgba(245, 158, 11, 0.35); }
.pro-chip.success{ background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border-color: rgba(16, 185, 129, 0.35); }
.pro-chip.primary{ background: rgba(88, 101, 242, 0.18); color: #A5B4FC; border-color: rgba(88, 101, 242, 0.40); }

/* ═════ STAT GRID ═════ */
.pro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.pro-stat {
    position: relative;
    padding: 22px 22px;
    border-radius: 20px;
    background: var(--pro-glass);
    border: var(--pro-border);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: pro-fade-up 0.5s ease both;
    cursor: default;
}
.pro-stat:nth-child(1) { animation-delay: 0.05s; }
.pro-stat:nth-child(2) { animation-delay: 0.1s; }
.pro-stat:nth-child(3) { animation-delay: 0.15s; }
.pro-stat:nth-child(4) { animation-delay: 0.2s; }
.pro-stat:nth-child(5) { animation-delay: 0.25s; }
.pro-stat:nth-child(6) { animation-delay: 0.3s; }
.pro-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pro-grad-2);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}
.pro-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(88, 101, 242, 0.45);
    box-shadow: 0 22px 50px -16px rgba(88, 101, 242, 0.45);
}
.pro-stat > * { position: relative; z-index: 1; }
.pro-stat-icon {
    width: 52px; height: 52px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 14px;
    background: rgba(88, 101, 242, 0.15);
    box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.25);
}
.pro-stat[data-tone="warn"]    .pro-stat-icon { background: rgba(245,158,11,0.15); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.30); }
.pro-stat[data-tone="danger"]  .pro-stat-icon { background: rgba(239,68,68,0.15);  box-shadow: inset 0 0 0 1px rgba(239,68,68,0.30); }
.pro-stat[data-tone="success"] .pro-stat-icon { background: rgba(16,185,129,0.15); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.30); }
.pro-stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pro-counter 0.6s ease;
}
.pro-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 700;
}
.pro-stat-trend {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #6EE7B7;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pro-stat-trend.down { color: #FCA5A5; }

/* ═════ MODERATION CARDS ═════ */
.pro-mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}
.pro-mod-card {
    position: relative;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--pro-glass);
    border: var(--pro-border);
    backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: pro-fade-up 0.5s ease both;
}
.pro-mod-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 18px 50px -10px rgba(0, 0, 0, 0.55);
}
.pro-mod-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pro-mod-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.45);
    object-fit: cover;
}
.pro-mod-name {
    font-weight: 800;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.1;
}
.pro-mod-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
}
.pro-mod-counter {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
}
.pro-mod-counter.warn   { background: rgba(245,158,11,0.18); color: #FCD34D; }
.pro-mod-counter.strike { background: rgba(239,68,68,0.18); color: #FCA5A5; }
.pro-mod-counter.bl     { background: rgba(127,29,29,0.55); color: #FECACA; animation: pro-pulse-danger 2.5s infinite; }
.pro-mod-body { padding: 12px 20px; max-height: 240px; overflow-y: auto; }
.pro-mod-entry {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    margin-bottom: 8px;
    border-left: 3px solid rgba(88,101,242,0.35);
    transition: all 0.2s;
}
.pro-mod-entry:hover { background: rgba(88,101,242,0.10); transform: translateX(2px); }
.pro-mod-entry.warn   { border-left-color: #F59E0B; }
.pro-mod-entry.strike { border-left-color: #EF4444; }
.pro-mod-entry-reason { font-size: 0.86rem; color: var(--text-main); line-height: 1.35; }
.pro-mod-entry-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pro-mod-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ═════ PRO BUTTONS ═════ */
.pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.pro-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.pro-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.20); background: rgba(255,255,255,0.10); }
.pro-btn:hover::after { opacity: 1; }
.pro-btn:active { transform: translateY(0); }
.pro-btn-primary {
    background: var(--pro-grad-1);
    background-size: 200% 200%;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(88, 101, 242, 0.50);
    animation: pro-grad-shift 8s ease infinite;
}
.pro-btn-primary:hover { box-shadow: 0 12px 30px -4px rgba(88, 101, 242, 0.65); }
.pro-btn-warn   { background: var(--pro-grad-warn); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.45); }
.pro-btn-danger { background: var(--pro-grad-strike); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -6px rgba(239, 68, 68, 0.45); }
.pro-btn-success{ background: var(--pro-grad-success); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.45); }
.pro-btn-ghost  { background: transparent; }
.pro-btn-sm     { padding: 7px 12px; font-size: 0.78rem; border-radius: 10px; }
.pro-btn-icon   { padding: 9px; aspect-ratio: 1; }

/* ═════ TOOLBAR ═════ */
.pro-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    background: var(--pro-glass);
    border: var(--pro-border);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    animation: pro-fade-up 0.45s ease;
}
.pro-toolbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pro-toolbar-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--pro-grad-1);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(88,101,242,0.40);
}
.pro-search {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    padding: 9px 14px 9px 38px;
    border-radius: 12px;
    font-size: 0.88rem;
    width: 240px;
    outline: none;
    transition: all 0.25s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.pro-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(88,101,242,0.15); width: 280px; }
.pro-filter-chip {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.pro-filter-chip:hover { color: var(--text-main); border-color: rgba(255,255,255,0.20); }
.pro-filter-chip.active {
    background: var(--pro-grad-1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.40);
}

/* ═════ CLAN CARDS ═════ */
.pro-clan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.pro-clan-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--pro-glass);
    border: var(--pro-border);
    backdrop-filter: blur(14px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: pro-fade-up 0.5s ease both;
}
.pro-clan-banner {
    height: 100px;
    background: var(--pro-grad-clan);
    background-size: 200% 200%;
    animation: pro-grad-shift 10s ease infinite;
    position: relative;
    overflow: hidden;
}
.pro-clan-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
}
.pro-clan-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -12px rgba(16, 185, 129, 0.35); border-color: rgba(16,185,129,0.40); }
.pro-clan-logo {
    width: 66px; height: 66px;
    border-radius: 18px;
    border: 3px solid var(--bg-base, #0a0e17);
    box-shadow: 0 6px 18px rgba(0,0,0,0.50);
    object-fit: cover;
    background: #0a0e17;
    margin: -33px 0 0 20px;
    position: relative;
    z-index: 2;
}
.pro-clan-body {
    padding: 10px 22px 18px;
}
.pro-clan-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pro-clan-meta {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pro-clan-meta b { color: var(--text-main); font-weight: 600; }
.pro-clan-actions {
    padding: 12px 22px 20px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ═════ CLAN · botón ⋮ (kebab) + menú contextual (2026-06-30) ═════ */
.clan-kebab {
    flex: none;
    width: 40px; height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.clan-kebab span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-muted, #9ca3af);
    transition: background 0.18s ease, transform 0.22s cubic-bezier(0.2,0.8,0.2,1);
}
.clan-kebab:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.20); }
.clan-kebab:hover span { background: var(--text-main, #fff); }
.clan-kebab:active { transform: scale(0.92); }
.clan-kebab-open { background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.45); }
.clan-kebab-open span { background: #A5B4FC; }
.clan-kebab-open span:nth-child(1) { transform: translateY(3px); }
.clan-kebab-open span:nth-child(3) { transform: translateY(-3px); }

.clan-ctx-menu {
    position: fixed;
    z-index: 9999;
    min-width: 212px;
    max-width: calc(100vw - 16px);
    padding: 7px;
    border-radius: 16px;
    background: var(--pro-glass, rgba(18,22,33,0.94));
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 24px 60px -12px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,0,0,0.30);
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
    transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.2,0.85,0.25,1);
    pointer-events: none;
}
.clan-ctx-menu.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.clan-ctx-sep { height: 1px; margin: 6px 8px; background: rgba(255,255,255,0.08); }
.clan-ctx-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 11px;
    color: var(--text-main, #e8eaed);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease, transform 0.14s ease;
    opacity: 0;
    transform: translateX(-6px);
    animation: clan-ctx-in 0.26s cubic-bezier(0.2,0.8,0.2,1) forwards;
    animation-delay: calc(var(--d, 0) * 28ms + 40ms);
}
.clan-ctx-menu:not(.open) .clan-ctx-item { animation: none; opacity: 1; transform: none; }
.clan-ctx-item:hover { background: rgba(88,101,242,0.16); transform: translateX(2px); }
.clan-ctx-item:active { transform: translateX(2px) scale(0.98); }
.clan-ctx-item.danger { color: #FCA5A5; }
.clan-ctx-item.danger:hover { background: rgba(239,68,68,0.16); }
.clan-ctx-ic { width: 20px; text-align: center; font-size: 1rem; flex: none; }
@keyframes clan-ctx-in { to { opacity: 1; transform: translateX(0); } }
[data-theme="light"] .clan-ctx-menu { background: rgba(255,255,255,0.97); border-color: rgba(15,23,42,0.10); box-shadow: 0 24px 60px -12px rgba(15,23,42,0.28); }
[data-theme="light"] .clan-ctx-item { color: #0f172a; }
[data-theme="light"] .clan-ctx-sep { background: rgba(15,23,42,0.08); }
[data-theme="light"] .clan-kebab { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.10); }
[data-theme="light"] .clan-kebab span { background: #6b7280; }
[data-theme="light"] .clan-kebab:hover span { background: #0f172a; }
@media (prefers-reduced-motion: reduce) {
    .clan-ctx-menu, .clan-ctx-item, .clan-kebab span { transition: opacity 0.12s ease !important; animation: none !important; }
    .clan-ctx-menu.open .clan-ctx-item { opacity: 1; transform: none; }
}
.pro-clan-status {
    position: absolute;
    top: 14px; right: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(10,12,20,0.82);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}

/* ═════ ACTIVITY FEED ═════ */
.pro-feed {
    background: var(--pro-glass);
    border: var(--pro-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(16px);
    animation: pro-fade-up 0.5s ease;
}
.pro-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.pro-feed-title {
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pro-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 12px #10B981;
    animation: pro-pulse-ring 1.6s infinite;
}
.pro-feed-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    animation: pro-fade-up 0.4s ease;
}
.pro-feed-item:last-child { border-bottom: none; }
.pro-feed-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.pro-feed-icon.warn   { background: rgba(245,158,11,0.18); color: #FCD34D; }
.pro-feed-icon.strike { background: rgba(239,68,68,0.18); color: #FCA5A5; }
.pro-feed-icon.bl     { background: rgba(127,29,29,0.45); color: #FECACA; }
.pro-feed-icon.clan   { background: rgba(16,185,129,0.18); color: #6EE7B7; }
.pro-feed-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.35;
}
.pro-feed-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-family: var(--font-mono);
}

/* ═════ EMPTY STATE ═════ */
.pro-empty {
    padding: 72px 24px;
    text-align: center;
    border: 2px dashed rgba(255,255,255,0.08);
    border-radius: 22px;
    background: rgba(0,0,0,0.18);
    animation: pro-fade-in 0.5s ease;
}
.pro-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: pro-float 3s ease-in-out infinite;
    display: inline-block;
}
.pro-empty-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.pro-empty-text  { color: var(--text-muted); font-size: 0.9rem; }

/* ═════ MODAL ENHANCEMENTS ═════ */
.pro-form-grid {
    display: grid;
    gap: 14px;
}
.pro-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pro-input-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.pro-input, .pro-select, .pro-textarea {
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s;
    font-family: var(--font-sans);
    width: 100%;
}
.pro-input:focus, .pro-select:focus, .pro-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(88,101,242,0.18);
    background: rgba(0,0,0,0.45);
}
.pro-textarea { min-height: 80px; resize: vertical; }
.pro-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-radio {
    flex: 1; min-width: 90px;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.pro-radio:hover { background: rgba(255,255,255,0.08); }
.pro-radio.active { background: rgba(88,101,242,0.18); border-color: var(--primary); color: var(--text-main); box-shadow: 0 6px 16px rgba(88,101,242,0.30); }

/* ═════ SEVERITY BADGES ═════ */
.pro-sev {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pro-sev.low  { background: rgba(34,197,94,0.18);  color: #86EFAC; }
.pro-sev.med  { background: rgba(245,158,11,0.18); color: #FCD34D; }
.pro-sev.high { background: rgba(239,68,68,0.18); color: #FCA5A5; }
.pro-sev.perm { background: rgba(127,29,29,0.55); color: #FECACA; }
.pro-sev.temp { background: rgba(88,101,242,0.18); color: #A5B4FC; }

/* ═════ LIVE INDICATOR ═════ */
.pro-realtime {
    position: fixed;
    bottom: 22px; right: 22px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(15, 18, 27, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.35);
    backdrop-filter: blur(18px);
    color: #6EE7B7;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.40);
    animation: pro-fade-up 0.5s ease;
}
.pro-realtime.disconnected { color: #FCA5A5; border-color: rgba(239, 68, 68, 0.35); }

/* ═════ SHIMMER LOADER ═════ */
.pro-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 800px 100%;
    animation: pro-shimmer 1.6s infinite linear;
    border-radius: 12px;
}
.pro-skeleton {
    height: 110px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* ═════ TABS ═════ */
.pro-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0,0,0,0.25);
    border-radius: 14px;
    margin-bottom: 18px;
    width: fit-content;
}
.pro-tab {
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.22s;
    border: none;
    background: transparent;
}
.pro-tab:hover { color: var(--text-main); }
.pro-tab.active {
    background: var(--pro-grad-1);
    color: #fff;
    box-shadow: 0 6px 16px rgba(88,101,242,0.40);
}

/* ═════ OVERVIEW PRO LAYOUT ═════ */
.pro-overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    margin-top: 24px;
}
@media (max-width: 1100px) { .pro-overview-grid { grid-template-columns: 1fr; } }

/* ═════ RESPONSIVE ═════ */
@media (max-width: 700px) {
    .pro-hero { padding: 24px 22px; border-radius: 22px; }
    .pro-hero-avatar-wrap { width: 88px; height: 88px; }
    .pro-toolbar { padding: 12px; }
    .pro-search { width: 100%; }
    .pro-stat { padding: 18px; }
    .pro-stat-value { font-size: 1.7rem; }
}

/* ═════ TICKETS / APPLE CARDS UPGRADE ═════ */
.apple-card,
.tk-panel-left,
.tk-panel-right {
    background: var(--pro-glass) !important;
    border: var(--pro-border) !important;
    backdrop-filter: blur(16px);
    border-radius: 18px !important;
    box-shadow: var(--pro-shadow-soft);
    overflow: hidden;
}
.tk-grid { gap: 14px !important; }
.tk-inbox-item {
    border-radius: 14px !important;
    margin-bottom: 6px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.tk-inbox-item:hover {
    background: rgba(88, 101, 242, 0.10) !important;
    border-left-color: var(--primary) !important;
    transform: translateX(2px);
}
.tk-inbox-item.active {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.20), rgba(88, 101, 242, 0.05)) !important;
    border-left-color: var(--primary) !important;
    box-shadow: inset 0 0 0 1px rgba(88,101,242,0.30);
}
.tk-inbox-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pro-pulse-ring 2s infinite;
}
.imsg-input {
    background: rgba(0,0,0,0.30) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    transition: all 0.25s !important;
}
.imsg-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(88,101,242,0.15) !important;
}
.chat-btn-send {
    background: var(--pro-grad-1) !important;
    background-size: 200% 200% !important;
    animation: pro-grad-shift 8s ease infinite;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 18px rgba(88,101,242,0.40) !important;
}
.chat-btn-close {
    background: var(--pro-grad-strike) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
}

/* Modal upgrade — make modal-card use pro glass */
.modal-card {
    background: rgba(15, 18, 27, 0.85) !important;
    backdrop-filter: blur(28px) saturate(140%) !important;
    border: var(--pro-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 80px -10px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04) !important;
    animation: pro-scale-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.55) !important;
}
/* Z-FIX 2026-06-11: el modal genérico (showModal/_confirmModal) tenía z-index:99999,
   por DEBAJO de los modales propios (torneo z=999999, ally z=2147483000) → la
   confirmación de "Eliminar torneo" salía DETRÁS del card. Que sea top-most siempre. */
#modal-overlay { z-index: 2147483600 !important; }
.modal-title {
    background: linear-gradient(135deg, #FFFFFF 0%, #C7D2FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* SIDEBAR-FLAT-V13 (2026-05-30): el aspecto del nav lo define dashboard-skin.css
   (única fuente, carga último). Acá solo dejamos el radio/margen; SIN gradientes,
   SIN sombras, SIN glow (eliminadas las pills viejas que peleaban con skin). */
.sidebar-nav .nav-item {
    border-radius: 10px !important;
    margin: 2px 8px !important;
}

/* Header polish */
.content-header h2 {
    background: linear-gradient(135deg, #FFFFFF 0%, #C7D2FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Light theme accents */
[data-theme="light"] .pro-hero { background: linear-gradient(135deg, rgba(88,101,242,0.12) 0%, rgba(236,72,153,0.10) 100%); }
[data-theme="light"] .pro-hero-title { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .pro-stat { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .pro-stat-value { background: linear-gradient(135deg, #0f172a 0%, #475569 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .pro-mod-card,
[data-theme="light"] .pro-clan-card,
[data-theme="light"] .pro-feed,
[data-theme="light"] .pro-toolbar { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .pro-mod-entry { background: rgba(0,0,0,0.04); }
/* ═════ PC & HIGH-RES FIXES (Zero Hex Premium) ═════ */
@media (min-width: 1600px) {
    .content-body {
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
    }
    .pro-hero {
        padding: 48px 52px;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        width: 260px; /* Slimmer sidebar for better content focus */
    }
    .main-content {
        padding: 40px 50px;
    }
    .pro-stats {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .sidebar {
        width: 80px; /* Auto-collapse on medium tablets/small laptops */
    }
    .sidebar-brand, .sidebar-user-info, .nav-section-label {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .nav-item-icon {
        margin: 0;
        font-size: 1.4rem;
    }
}

/* Fix for overlapping navbars on PC */
body {
    padding-top: var(--ow-nav-height) !important;
    background-attachment: fixed;
}

.main-content {
    height: calc(100vh - var(--ow-nav-height));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Custom Scrollbar for Premium Feel */
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}

.pro-hero-title {
    text-wrap: balance;
}

.pro-stat-value {
    letter-spacing: -1px;
}

/* UI 2026-06-01 (reporte owner por DM): el indicador .pro-realtime ("🟢 LIVE")
   es position:fixed bottom-right y en celular se solapa con la barra de guardado
   fija → se ve feo. Ocultar el badge LIVE en mobile. (En desktop se mantiene como
   status de conexión realtime.) */
@media (max-width: 768px) {
  .pro-realtime { display: none !important; }
}
