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

/* Reset i zmienne Gaming Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* DARKSIDE Theme Colors - bazowane na logo */
    --bg-primary: #1A1A1A;
    --bg-secondary: #363F44;
    --bg-tertiary: #2C3236;
    --bg-floating: #404850;
    --bg-hover: rgba(231, 47, 47, 0.1);
    --bg-active: #E72F2F;

    /* Text Colors */
    --text-primary: #E8E0C9;
    --text-secondary: #D9D9D9;
    --text-muted: #A0A0A0;
    --text-link: #E72F2F;

    /* DARKSIDE Accent Colors */
    --accent-primary: #E72F2F;
    --accent-hover: #C62828;
    --accent-active: #B71C1C;
    --accent-light: #FF5252;

    /* Status Colors - zachowane dla czytelności */
    --success: #4ade80;
    --success-hover: #22c55e;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #fb9724;
    --warningg: #fbb024;
    --warning-hover: #f5970b;
    --info: #3b82f6;
    --info-hover: #2563eb;
    --online: #22c55e;

    /* DARKSIDE Accents */
    --neon-red: #E72F2F;
    --neon-terracotta: #8C3D3D;
    --neon-green: #4ade80;
    --neon-orange: #ff6b35;
    --neon-blue: #00bfff;

    /* Border Colors */
    --border-primary: #E72F2F;
    --border-secondary: #8C3D3D;
    --border-tertiary: #6B2C2C;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(231, 47, 47, 0.12);
    --shadow-md: 0 4px 6px rgba(231, 47, 47, 0.15);
    --shadow-lg: 0 10px 25px rgba(231, 47, 47, 0.2);
    --shadow-glow: 0 0 20px rgba(231, 47, 47, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* DARKSIDE background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(231, 47, 47, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(140, 61, 61, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(44, 50, 54, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* ================================================
   ULTRA-NOWOCZESNY HEADER CYBERPUNK
   ================================================ */

.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(231, 47, 47, 0.2);
}

/* Top Bar */
.header-topbar {
    background: linear-gradient(90deg, rgba(231, 47, 47, 0.1), rgba(140, 61, 61, 0.1));
    border-bottom: 1px solid rgba(231, 47, 47, 0.3);
    padding: 8px 0;
}

.topbar-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    color: #4ade80;
    font-weight: 700;
}

.divider {
    color: rgba(255, 255, 255, 0.2);
}

.server-time {
    color: var(--accent-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.topbar-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.topbar-link:hover {
    color: var(--accent-primary);
}

.link-icon {
    font-size: 12px;
}

/* Main Header */
.header-main {
    padding: 16px 0;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, transparent, rgba(231, 47, 47, 0.1), transparent) bottom / 100% 2px no-repeat;
}

.header-content-modern {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Logo Section */
.header-logo-section {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    background: rgba(231, 47, 47, 0.05);
    border: 1px solid rgba(231, 47, 47, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
}

.logo-container:hover {
    background: rgba(231, 47, 47, 0.1);
    border-color: rgba(231, 47, 47, 0.4);
    box-shadow: 0 0 20px rgba(231, 47, 47, 0.2);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate360 20s linear infinite;
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(231, 47, 47, 0.5);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.header-nav {
    justify-self: center;
}

.nav-menu-modern {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 47, 47, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(231, 47, 47, 0.05);
    border-color: rgba(231, 47, 47, 0.3);
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(231, 47, 47, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: white;
    box-shadow: 0 0 10px white;
}

.nav-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 5px currentColor);
}

.nav-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* User Section */
.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(231, 47, 47, 0.03);
    border: 1px solid rgba(231, 47, 47, 0.2);
    border-radius: 50px;
    transition: all 0.3s;
}

.header-user:hover {
    background: rgba(231, 47, 47, 0.08);
    border-color: rgba(231, 47, 47, 0.4);
    box-shadow: 0 0 20px rgba(231, 47, 47, 0.15);
}

.user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(231, 47, 47, 0.5);
    box-shadow: 0 0 20px rgba(231, 47, 47, 0.3);
}

.avatar-letter {
    font-size: 20px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px #4ade80;
}

.user-info-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
}

.role-badge-header {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(231, 47, 47, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(231, 47, 47, 0.3);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge-header.super {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.2));
    color: #FF4500;
    border-color: #FF4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(231, 47, 47, 0.3);
    background: rgba(231, 47, 47, 0.05);
    color: var(--accent-primary);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 15px rgba(231, 47, 47, 0.4);
    transform: translateY(-2px);
}

.admin-btn svg {
    animation: rotate360 20s linear infinite;
}

/* Glow Line Effect */
.header-glow-line {
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-primary),
            var(--neon-terracotta),
            var(--accent-primary),
            transparent);
    animation: glow-slide 3s linear infinite;
}

@keyframes glow-slide {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* OLD HEADER (fallback) */
.header {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 2px solid var(--accent-primary);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo overlay - floating na wierzchu */
.logo-overlay {
    position: fixed;
    left: 55px;
    top: 0px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(26, 26, 26, 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(231, 47, 47, 0.3);
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(231, 47, 47, 0.5);
}

.header-logo {
    height: 120px;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(231, 47, 47, 0.6));
    transition: all var(--transition-medium);
}

.header-logo:hover {
    filter: drop-shadow(0 0 20px rgba(231, 47, 47, 0.8));
    transform: scale(1.4);
}

/* Responsywność logo overlay */
@media (max-width: 1200px) {
    .logo-overlay {
        left: 20px;
        padding: 15px;
    }

    .header-logo {
        height: 100px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .logo-overlay {
        left: 10px;
        top: 10px;
        padding: 10px;
    }

    .header-logo {
        height: 60px;
        max-width: 150px;
    }

    .header-logo:hover {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .logo-overlay {
        left: 5px;
        top: 5px;
        padding: 8px;
    }

    .header-logo {
        height: 40px;
        max-width: 100px;
    }

    .header-logo:hover {
        transform: scale(1.1);
    }
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.nav-menu a.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-info .username {
    font-weight: 600;
    color: var(--accent-light);
}

/* Container główny */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Karty */
.card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-terracotta), var(--neon-green));
    opacity: 0.8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-secondary);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 0 10px rgba(231, 47, 47, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.2;
    min-height: 38px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(231, 47, 47, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    box-shadow: 0 0 25px rgba(231, 47, 47, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-hover));
    color: white;
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--success-hover), #16a34a);
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-hover));
    color: white;
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--danger-hover), #b91c1c);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), var(--warning-hover));
    color: var(--bg-primary);
    border-color: var(--warning);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--warning-hover), #d97706);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 30px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    min-height: 48px;
}

/* Compact button for payment status */
.btn-paid-sm {
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(231, 47, 47, 0.2);
    background: var(--bg-secondary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238a2be2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Tables */
.table-container {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-secondary);
}

.table th {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    font-weight: 700;
    color: var(--accent-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--accent-primary);
}

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

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

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.badge-success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.badge-info {
    background: rgba(255, 255, 255, .03);
    border-left-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-terracotta));
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-light);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(231, 47, 47, 0.5);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Character Types */
.character-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.character-type.pvm {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.character-type.pvp {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.character-type.hybrid {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

/* Drops System Specific Styles */
.drops-header {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--accent-primary));
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.drops-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(231, 47, 47, 0.7);
}

.session-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.session-badge {
    background: linear-gradient(135deg, var(--neon-terracotta), var(--accent-primary));
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(140, 61, 61, 0.3);
    border: 1px solid var(--neon-terracotta);
}

.editable-title {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.editable-title:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.edit-icon {
    opacity: 0;
    margin-left: 8px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.editable-title:hover .edit-icon {
    opacity: 0.7;
}

.title-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: inherit;
    font-family: inherit;
    text-align: center;
    min-width: 300px;
}

.title-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.3);
}

/* Edytowalny główny tytuł (tylko super admin) */
.editable-main-title {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: -12px -16px;
}

.editable-main-title:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(231, 47, 47, 0.3);
}

.editable-main-title .edit-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--accent-light);
}

.editable-main-title:hover .edit-icon {
    opacity: 0.8;
}

.stats-grid-drops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-drops {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.stat-card-drops::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange));
    opacity: 0.8;
}

.stat-card-drops:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(231, 47, 47, 0.5);
}

.stat-label-drops {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.controls-section {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.mass-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.drops-table {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* original general table header (used poza module news) */
.drops-table-header {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--accent-primary));
    padding: 20px 28px;
    border-bottom: 2px solid var(--accent-primary);
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 2fr 2fr;
    gap: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* generic player-row for other tables */
.player-row {
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-secondary);
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 2fr 2fr;
    gap: 20px;
    align-items: center;
    transition: all var(--transition-fast);
}

.player-row:last-child {
    border-bottom: none;
}

.player-row:hover {
    background: var(--bg-hover);
    box-shadow: inset 0 0 10px rgba(231, 47, 47, 0.1);
}

.player-name {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.points-display {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-buttons .btn {
    min-width: 36px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border-secondary);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9b00, var(--accent-primary));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.action-card {
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(231, 47, 47, 0.3);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-terracotta), var(--accent-primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(231, 47, 47, 0.3);
    border-color: var(--neon-terracotta);
    color: var(--text-primary);
    text-decoration: none;
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-icon {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--neon-terracotta), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--neon-terracotta);
    margin-bottom: 8px;
    font-weight: bold;
}

.action-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.permission-required {
    opacity: 0.5;
    pointer-events: none;
}

.user-info-card {
    background: rgba(44, 50, 54, 0.9);
    border: 1px solid var(--neon-terracotta);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.role-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-primary), var(--neon-terracotta));
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin: 4px;
}

.role-badge.super-admin {
    background: linear-gradient(45deg, var(--neon-orange), var(--neon-pink));
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

.modal-header {
    padding: 24px 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(231, 47, 47, 0.3);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.modal-body {
    padding: 24px 28px;
}

.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid;
    font-size: 14px;
    font-weight: 600;
    animation: alertSlideIn 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

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

.alert-success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
    border-left-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border-left-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(255, 255, 255, .03);
    border-left-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-glow);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(231, 47, 47, 0.5);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination .btn {
    min-width: 40px;
}

.pagination .btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Search Container */
.search-container {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.search-container .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Loading */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-secondary);
    border-radius: 50%;
    border-top: 3px solid var(--accent-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Responsive Design Modern Header */
@media (max-width: 1200px) {
    .header-content-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-nav {
        justify-self: stretch;
    }

    .nav-menu-modern {
        justify-content: center;
    }

    .header-user {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .topbar-content {
        padding: 0 16px;
        font-size: 10px;
    }

    .header-content-modern {
        padding: 0 16px;
    }

    .logo-container {
        padding: 6px 12px;
        gap: 12px;
    }

    .logo-title {
        font-size: 16px;
    }

    .nav-menu-modern {
        flex-wrap: wrap;
        gap: 4px;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nav-icon {
        font-size: 14px;
    }
}

@media (max-width: 600px) {

    .topbar-left,
    .topbar-right {
        gap: 8px;
        font-size: 9px;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }

    .logo-title {
        font-size: 14px;
    }

    .logo-subtitle {
        font-size: 8px;
    }

    .nav-text {
        display: none;
    }

    .nav-link {
        padding: 10px;
    }

    .header-user {
        padding: 6px 12px;
        gap: 12px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-info-header {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid,
    .stats-grid-drops {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container .form-group {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .drops-table-header,
    .player-row {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 12px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .session-info {
        flex-direction: column;
    }

    .mass-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .mass-controls .btn {
        width: 100%;
    }
}

/* Ładny profil administratora */
.admin-profile-card {
    position: relative;
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    overflow: hidden;
    background: rgb(20 27 53);
    box-shadow: 0 10px 30px rgb(67 18 113 / 30%);
    padding-top: 0px;
}

.admin-profile-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--neon-terracotta), var(--accent-primary));
    border-radius: 16px;
    z-index: -1;
    animation: profileGlow 3s ease-in-out infinite;
}

@keyframes profileGlow {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-terracotta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 28px;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-terracotta));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-status {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-status.online {
    color: var(--success);
}

.profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-left: 24px;
    /* align under avatar */
}

.profile-fullname {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: 8px;
}

.profile-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.role-badge-modern {
    background: linear-gradient(135deg, rgba(231, 47, 47, 0.2), rgba(231, 47, 47, 0.1));
    color: var(--accent-primary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge-modern.super-admin-modern {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.1));
    color: #FF4500;
    border-color: #FF4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.profile-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), #9d4edd);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 47, 47, 0.3);
}

.profile-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 47, 47, 0.4);
}

.profile-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.profile-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.news-card,
.news-card:visited {
    color: var(--text-primary);
    text-decoration: none;
}

.news-card:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.news-title {
    text-decoration: none;
}

.news-card:link,
.news-card:active {
    text-decoration: none;
}

.news-card * {
    text-decoration: none !important;
}

/* === NEWS MODULE TABLE LAYOUT === */
.news-table-header,
.news-table-row {
    display: grid;
    grid-template-columns: 39px auto 160px 261px 210px;
    gap: 20px;
    align-items: center;
}

.news-table-header {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--accent-primary));
    padding: 12px 20px;
    border-bottom: 2px solid var(--accent-primary);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.news-table-row {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-secondary);
    transition: all var(--transition-fast);
}

.news-table-row:last-child {
    border-bottom: none;
}

.news-table-row:hover {
    background: var(--bg-hover);
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-terracotta));
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px 24px;
    margin-top: -60px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(231, 47, 47, 0.4);
}

/* === INACTIVE PLAYER STYLES === */
.inactive-player {
    opacity: 0.4;
    filter: grayscale(60%);
}

.inactive-nick {
    animation: blinkRed 1s steps(1, start) infinite;
    color: var(--danger);
}

@keyframes blinkRed {

    0%,
    50% {
        color: var(--danger);
    }

    50.01%,
    100% {
        color: transparent;
    }
}

/* ================================================
   COMPACT FUNCTION CARDS - Nowoczesne kafelki
   ================================================ */

.compact-functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.compact-function-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(231, 47, 47, 0.2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 85px;
    color: var(--text-primary);
}

.compact-function-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 47, 47, 0.15);
}

.compact-function-card:hover .compact-name {
    color: var(--accent-primary);
}

.compact-icon {
    font-size: 2rem;
    line-height: 1;
}

.compact-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-align: center;
    line-height: 1.2;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .compact-functions-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .compact-function-card {
        padding: 12px 8px;
        min-height: 75px;
    }

    .compact-icon {
        font-size: 1.6rem;
    }

    .compact-name {
        font-size: 0.75rem;
    }
}