:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --bg: #e8e8e8;
    --bg-card: #ffffff;
    --bg-sidebar: #1a1a2e;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #d1d5db;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.18);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

body.bg-gray {
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-brand .logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-brand .logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg);
}

.btn-nav {
    background: linear-gradient(180deg, #a78bfa, var(--primary));
    color: white !important;
    font-weight: 900;
    border-radius: 12px;
    box-shadow: 0 4px 0 #5b21b6, 0 6px 16px rgba(139, 92, 246, 0.3);
    border: 2px solid #7c3aed;
}

.btn-nav:hover {
    background: linear-gradient(180deg, #c4b5fd, var(--primary-light));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #5b21b6, 0 10px 20px rgba(139, 92, 246, 0.4);
}

/* ========== TORN PAPER EDGES ========== */

/* ========== HERO / HOME ========== */
.hero-section {
    background: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    max-width: 100%;
}


.hero-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.95;
    color: var(--text);
    text-transform: uppercase;
}

.title-accent {
    background: linear-gradient(135deg, var(--primary), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 4px solid #d1d5db;
    border-radius: 4px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.feature-card:nth-child(2) {
    transform: rotate(1.5deg);
}

.feature-card:nth-child(3) {
    transform: rotate(-1deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 45px;
    height: 18px;
    background: rgba(200, 200, 200, 0.5);
    border-radius: 2px;
    border: 1px solid rgba(180, 180, 180, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
}

.feature-icon-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    gap: 0.5rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(180deg, #a78bfa, var(--primary));
    color: white;
    border-color: #6d28d9;
    box-shadow: 0 4px 0 #4c1d95, 0 6px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #c4b5fd, var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #4c1d95, 0 10px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4c1d95;
}

.btn-secondary {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    color: var(--text);
    border-color: #d1d5db;
    box-shadow: 0 4px 0 #9ca3af;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #9ca3af;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 0 #6d28d9;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(180deg, #f87171, var(--danger));
    color: white;
    border-color: #b91c1c;
    box-shadow: 0 4px 0 #7f1d1d;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #7f1d1d;
}

.btn-success {
    background: linear-gradient(180deg, #34d399, var(--success));
    color: white;
    border-color: #047857;
    box-shadow: 0 4px 0 #064e3b;
}

.btn-warning {
    background: linear-gradient(180deg, #fbbf24, var(--warning));
    color: white;
    border-color: #b45309;
    box-shadow: 0 4px 0 #78350f;
}

.btn-large {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-small {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
    letter-spacing: 0;
}

.btn-full {
    width: 100%;
}

/* ========== LAYOUT WITH SIDEBAR ========== */
.app-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    color: white;
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-team-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.sidebar-team-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.sidebar-team-name {
    font-size: 1rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.sidebar-team-stats {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
}

.sidebar-nav {
    list-style: none;
    padding: 0 0.75rem;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    color: rgba(255,255,255,0.65);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.4);
}

.sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-section-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    padding: 1rem 0.9rem 0.5rem;
    font-weight: 900;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1100px;
    position: relative;
    overflow: visible;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('../img/icon-1.png'),
        url('../img/icon-2.png'),
        url('../img/icon-3.png'),
        url('../img/icon-1.png'),
        url('../img/icon-2.png'),
        url('../img/icon-3.png');
    background-repeat: no-repeat;
    background-size:
        90px, 85px, 95px,
        80px, 90px, 85px;
    background-position:
        5% 8%,
        92% 15%,
        8% 40%,
        90% 50%,
        6% 70%,
        88% 82%;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
    position: relative;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1.5rem;
}

/* ========== FORMS ========== */
.page-content {
    min-height: calc(100vh - 70px);
    padding: 2rem;
}

.form-container {
    max-width: 500px;
    margin: 2rem auto;
}

.form-card {
    background: var(--bg-card);
    border: 4px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-0.5deg);
}

.form-card::before {
    content: '';
    position: absolute;
    top: -14px;
    right: 30px;
    width: 60px;
    height: 22px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 2px;
    transform: rotate(2deg);
}

.title-glow {
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 3px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: white;
}

.input-field::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

textarea.input-field {
    resize: vertical;
    min-height: 80px;
}

select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 3px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--primary);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
}

small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ========== ALERTS ========== */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 3px solid;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
}

.alert-error {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border-color: #34d399;
    color: #166534;
}

.alert-info {
    background: #eff6ff;
    border-color: #60a5fa;
    color: #1e40af;
}

/* ========== DASHBOARD ========== */
.dashboard-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title-section h1 {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.page-title-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.2rem;
    font-weight: 600;
}

.overview-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overview-team-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.stat-card .stat-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    margin-top: 0.2rem;
    letter-spacing: -1px;
}

/* Members */
.members-list {
    display: flex;
    flex-direction: column;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid #f1f5f9;
    transition: var(--transition);
}

.member-item:last-child { border-bottom: none; }
.member-item:hover { background: #f8f9fa; }

.member-rank {
    font-weight: 900;
    color: var(--text-muted);
    min-width: 28px;
    font-size: 0.85rem;
}

.member-avatar {
    border-radius: 8px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
}

.member-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-name {
    font-weight: 800;
    font-size: 0.875rem;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-owner {
    background: #ede9fe;
    color: var(--primary-dark);
    border: 1px solid #c4b5fd;
}

.member-points {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.875rem;
}

/* Requests */
.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid #f1f5f9;
}

.request-actions {
    display: flex;
    gap: 0.4rem;
}

.inline-form { display: inline; }

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    padding: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
    border-left: 5px solid;
}

.notif-info { border-left-color: var(--info); }
.notif-warning { border-left-color: var(--warning); }
.notif-success { border-left-color: var(--success); }
.notif-admin { border-left-color: var(--primary); }

.notif-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.notif-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notif-item small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========== CLASSEMENT ========== */
.classement-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.podium-place {
    border-radius: 4px;
    padding: 2rem 1.5rem;
    text-align: center;
    width: 220px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 4px solid;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.12);
}

.podium-place:hover {
    transform: translateY(-10px) rotate(-1deg);
}

.podium-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6);
    margin: 0 auto 0.5rem;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.podium-logo-gold {
    border-color: #92400e;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5);
}

.podium-1 {
    background: linear-gradient(180deg, #fef3c7, #fbbf24);
    border-color: #d97706;
    min-height: 310px;
    box-shadow: 5px 5px 0 #92400e, 0 0 60px rgba(251, 191, 36, 0.2);
    order: 2;
    z-index: 2;
    transform: scale(1.08) rotate(-1deg);
}

.podium-1:hover {
    transform: scale(1.1) rotate(0deg) translateY(-8px);
}

.podium-1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.4), transparent, rgba(255,255,255,0.15), transparent);
    animation: rotate-shine 5s linear infinite;
}

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

.podium-1 * { position: relative; z-index: 1; }
.podium-1 .podium-rank { color: #78350f; }
.podium-1 h3 { color: #78350f; }
.podium-1 .podium-points { color: #92400e; }
.podium-1 small { color: #a16207; }

.podium-2 {
    background: linear-gradient(180deg, #f8fafc, #cbd5e1);
    border-color: #6b7280;
    min-height: 240px;
    box-shadow: 5px 5px 0 #4b5563;
    order: 1;
    transform: rotate(1deg);
}

.podium-2:hover { transform: rotate(0deg) translateY(-10px); }
.podium-2 .podium-rank { color: #374151; }
.podium-2 h3 { color: #374151; }
.podium-2 .podium-points { color: #4b5563; }
.podium-2 small { color: #6b7280; }

.podium-3 {
    background: linear-gradient(180deg, #fef3e2, #fdba74);
    border-color: #c2410c;
    min-height: 210px;
    box-shadow: 5px 5px 0 #9a3412;
    order: 3;
    transform: rotate(-1.5deg);
}

.podium-3:hover { transform: rotate(0deg) translateY(-10px); }
.podium-3 .podium-rank { color: #9a3412; }
.podium-3 h3 { color: #78350f; }
.podium-3 .podium-points { color: #92400e; }
.podium-3 small { color: #a16207; }

.podium-crown {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    animation: crown-bounce 2s ease-in-out infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.podium-rank {
    font-size: 3.5rem;
    font-weight: 900;
}

.podium-place h3 {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0.4rem 0 0.2rem;
    text-transform: uppercase;
}

.podium-points {
    font-size: 1.6rem;
    font-weight: 900;
}

.top-player {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    color: inherit;
    transition: var(--transition);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
}

.ranking-item:hover {
    box-shadow: 6px 6px 0 rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    transform: translateX(6px) rotate(-0.3deg);
}

.rank-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-muted);
    min-width: 44px;
    text-align: center;
}

.rank-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.rank-logo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.rank-info { flex: 1; }

.rank-info h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.rank-members, .rank-mvp {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.75rem;
    font-weight: 600;
}

.rank-points {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
}

.rank-points small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Team Detail */
.team-detail {
    background: var(--bg-card);
    border: 4px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.08);
    transform: rotate(-0.3deg);
}

.team-detail-logo {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid var(--border);
    margin: 0 auto 1rem;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.team-detail-name {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.team-detail-points {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 2rem;
}

.back-btn { margin-bottom: 1.5rem; }

.members-3d-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.member-3d-card {
    animation: fadeUp 0.5s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.member-3d-inner {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
}

.member-3d-inner:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 6px 8px 0 rgba(139, 92, 246, 0.12);
    border-color: var(--primary);
}

.member-3d-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.member-3d-skin {
    max-width: 64px;
    margin: 0.5rem auto;
    display: block;
    image-rendering: pixelated;
}

.member-3d-name {
    font-weight: 900;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.member-3d-points {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ========== JOIN PAGE ========== */
.torn-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.teams-list { margin-top: 1.5rem; }

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.6rem;
    transition: var(--transition);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
}

.team-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 5px 5px 0 rgba(139, 92, 246, 0.1);
}

.team-info h3 {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.member-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-weight: 600;
}

.team-mode {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
}

.team-mode.open { background: #dcfce7; color: #166534; }
.team-mode.invite_only { background: #fef3c7; color: #92400e; }

.team-points { font-weight: 900; color: var(--primary); }

/* ========== ADMIN ========== */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.divider {
    border: none;
    border-top: 3px solid #f1f5f9;
    margin: 1.25rem 0;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

.users-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.users-table th, .users-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
}

.users-table th {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    background: #f8f9fa;
}

.role-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 900;
}

.role-player { background: #ede9fe; color: #5b21b6; }
.role-admin { background: #fef3c7; color: #92400e; }

.vps-admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.vps-admin-form .form-group.full-width { grid-column: 1 / -1; }

.vps-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border);
}

.vps-request-info { font-size: 0.85rem; }
.vps-request-info strong { display: block; font-weight: 900; }
.vps-request-info small { color: var(--text-muted); }

.subsection-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--text);
    margin: 1.25rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invite-link-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mc-avatar {
    border-radius: 8px;
    border: 3px solid var(--border);
}

.file-input { padding: 0.4rem; font-size: 0.8rem; }

/* ========== LOGO ========== */
.logo-manage-section { margin-bottom: 0.75rem; }

.form-label-sm {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-manage-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-manage-preview {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
}

.logo-manage-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
}

.logo-upload-area {
    border: 3px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.logo-upload-area:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.03);
}

.file-input-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.logo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.logo-upload-placeholder svg { color: var(--text-light); }
.logo-upload-placeholder span { font-size: 0.875rem; font-weight: 700; }
.logo-upload-placeholder small { font-size: 0.75rem; }

.logo-preview-img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 14px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* ========== SETUP ========== */
.setup-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.setup-card {
    background: var(--bg-card);
    border: 4px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
    transform: rotate(-0.5deg);
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* ========== VPS INLINE TERMINAL ========== */
.vps-full-terminal {
    display: flex;
    gap: 1.5rem;
    min-height: calc(100vh - 70px - 6rem);
}

.vps-terminal-sidebar {
    width: 280px;
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
}

.vps-terminal-sidebar .terminal-info-block {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.vps-terminal-sidebar .terminal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.vps-terminal-sidebar .terminal-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.vps-terminal-sidebar .terminal-info-value {
    font-size: 0.8rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.vps-terminal-sidebar .terminal-ports-block { padding: 1.25rem 1.5rem; flex: 1; }

.vps-terminal-sidebar .terminal-ports-block h4 {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.vps-terminal-sidebar .terminal-ports-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.vps-terminal-sidebar .terminal-port-chip {
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.vps-terminal-sidebar .terminal-ports-note {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-light);
}

.vps-terminal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
    border: 3px solid #2d2d44;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.vps-terminal-main .terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #1a1a2e;
    border-bottom: 2px solid #2d2d44;
    gap: 0.5rem;
}

.vps-terminal-main .terminal-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
}

.vps-terminal-main .terminal-line { color: #e2e8f0; }
.vps-terminal-main .terminal-line.terminal-welcome { color: #64748b; }
.vps-terminal-main .terminal-line.terminal-command { color: #6ee7b7; }
.vps-terminal-main .terminal-line.terminal-error { color: #fca5a5; }
.vps-terminal-main .terminal-line.terminal-info { color: #93c5fd; }

.vps-terminal-main .terminal-prompt { color: #a78bfa; font-weight: 700; }

.vps-terminal-main .terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    caret-color: #a78bfa;
}

/* Terminal shared */
.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #1a1a2e;
    border-bottom: 1px solid #2d2d44;
    gap: 0.5rem;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
    font-size: 0.75rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    margin-left: 0.75rem;
}

.terminal-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}

.terminal-output { flex: 1; }

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    color: #e2e8f0;
    min-height: 1.2em;
}

.terminal-line.terminal-welcome { color: #64748b; }
.terminal-line.terminal-command { color: #6ee7b7; }
.terminal-line.terminal-result { color: #e2e8f0; }
.terminal-line.terminal-error { color: #fca5a5; }
.terminal-line.terminal-info { color: #93c5fd; }
.terminal-line.terminal-loading { color: #f59e0b; animation: blink 1s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.terminal-prompt { color: #10b981; font-weight: 700; white-space: nowrap; }

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    caret-color: #10b981;
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: #0f0f1a; }
.terminal-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* ========== OVERLAYS ========== */
.overlays-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.overlay-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
    transform: rotate(-1deg);
}

.overlay-card:nth-child(2n) { transform: rotate(1deg); }

.overlay-card:hover {
    box-shadow: 6px 6px 0 rgba(139, 92, 246, 0.12);
    transform: rotate(0deg) scale(1.03);
    border-color: var(--primary);
}

.overlay-img-large {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.overlay-card-footer {
    padding: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-type {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Overlay Modal */
.overlay-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.overlay-modal.open { display: flex; }

.overlay-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.overlay-modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    object-fit: contain;
    border: 4px solid white;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.overlay-modal-close {
    position: absolute;
    top: -2rem;
    right: -1rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.overlay-modal-close:hover { background: rgba(255,255,255,0.25); }

/* ========== NOTIF BADGE ========== */
.notif-badge {
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 0.15rem 0.45rem;
    font-size: 0.6rem;
    margin-left: auto;
    font-weight: 900;
    min-width: 18px;
    text-align: center;
}

/* ========== PAGE SECTIONS (SPA) ========== */
.page-section {
    animation: fadeIn 0.25s ease;
}

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

/* ========== REPLAYS ========== */
.replays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.replay-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
    transform: rotate(-0.5deg);
}

.replay-card:nth-child(2n) { transform: rotate(0.5deg); }

.replay-card:hover {
    box-shadow: 6px 6px 0 rgba(139, 92, 246, 0.15);
    transform: rotate(0deg) scale(1.02);
    border-color: var(--primary);
}

.replay-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.replay-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.replay-thumbnail:hover img { transform: scale(1.05); }

.replay-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #a78bfa, var(--primary));
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
    transition: var(--transition);
}

.replay-thumbnail:hover .replay-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
}

.replay-play-btn svg { width: 24px; height: 24px; fill: white; margin-left: 3px; }

.replay-info { padding: 1.25rem; }

.replay-info h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.replay-info p { font-size: 0.8rem; color: var(--text-muted); }

.replay-info .replay-date {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 700;
}

/* Video Player Modal */
.video-player-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 2rem;
}

.video-player-modal.open { display: flex; }

.video-player-container {
    width: 100%;
    max-width: 900px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    position: relative;
    border: 3px solid #333;
}

.video-player-container video { width: 100%; display: block; cursor: pointer; }

.video-player-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-close:hover { background: rgba(255, 255, 255, 0.2); }

.video-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-container:hover .video-controls { opacity: 1; }

.video-progress-container {
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.video-progress-container:hover { height: 7px; }

.video-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    position: relative;
}

.video-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.video-progress-container:hover .video-progress-bar::after { opacity: 1; }

.video-thumbnail-preview {
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    width: 160px;
    height: 90px;
    overflow: hidden;
    display: none;
    pointer-events: none;
}

.video-thumbnail-preview.visible { display: block; }
.video-thumbnail-preview img { width: 100%; height: 100%; object-fit: cover; }

.video-thumbnail-preview .preview-time {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.65rem;
    text-align: center;
    padding: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.video-controls-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.video-btn:hover { background: rgba(255, 255, 255, 0.1); }
.video-btn svg { width: 20px; height: 20px; fill: white; }

.video-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto;
}

.video-volume-container { display: flex; align-items: center; gap: 0.4rem; }

.video-volume-slider {
    width: 60px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.video-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* ========== SIDEBAR SVG ICONS ========== */
.sidebar-nav .nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; height: 60px; }
    .nav-links { gap: 0.2rem; }
    .nav-link { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-logo { width: 150px; }
    .features-section { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem; }
    .feature-card, .feature-card:nth-child(2), .feature-card:nth-child(3) { transform: rotate(0); }

    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; top: 0; padding: 1rem 0; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0 0.75rem; }
    .sidebar-section-title { display: none; }
    .main-content { padding: 1rem; }

    .podium { flex-direction: column; align-items: center; }
    .podium-place { width: 100%; max-width: 260px; min-height: auto !important; transform: none !important; }
    .podium-1 { order: 0; }
    .podium-2 { order: 1; }
    .podium-3 { order: 2; }

    .stats-row { grid-template-columns: 1fr 1fr; }
    .vps-admin-form { grid-template-columns: 1fr; }
    .vps-full-terminal { flex-direction: column; min-height: auto; }
    .vps-terminal-sidebar { width: 100%; }
    .vps-terminal-main { height: 50vh; }
    .overlays-grid-large { grid-template-columns: 1fr 1fr; }
    .replays-grid { grid-template-columns: 1fr; }
}
