/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #6c3bff;
    --primary-dark: #5028cb;
    --primary-light: #8b5cf6;
    --secondary: #f59e0b;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --dark: #0f0f1a;
    --dark-2: #1a1a2e;
    --dark-3: #16213e;
    --card-bg: #1e1e35;
    --card-border: rgba(108, 59, 255, 0.2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ====== NAVBAR ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-light);
}

.brand-icon { font-size: 1.5rem; }
.brand-accent { color: var(--primary-light); }
.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links li a {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--text-light);
    background: rgba(108, 59, 255, 0.2);
}

.nav-btn-outline {
    border: 1.5px solid var(--primary-light) !important;
    color: var(--primary-light) !important;
    padding: 7px 18px !important;
    border-radius: 50px !important;
}
.nav-btn-outline:hover { background: var(--primary) !important; color: white !important; }

.nav-btn-solid {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}
.nav-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(108,59,255,0.4) !important; }

.nav-admin-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-username { font-size: 0.85rem; color: var(--text-muted); }
.nav-logout-btn {
    background: none;
    border: 1.5px solid rgba(239,68,68,0.4);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.nav-logout-btn:hover { background: #ef4444; color: white; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ====== ALERTS ====== */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.5s ease;
}
.alert-success { background: rgba(16, 185, 129, 0.15); border-bottom: 2px solid var(--success); color: #6ee7b7; }
.alert-error { background: rgba(239, 68, 68, 0.15); border-bottom: 2px solid var(--danger); color: #fca5a5; }
.alert button { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; opacity: 0.7; }

/* ====== HERO ====== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(108,59,255,0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(245,158,11,0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 59, 255, 0.2);
    border: 1px solid rgba(108, 59, 255, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-family: inherit;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,59,255,0.5); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-family: inherit;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ====== SECTION STYLES ====== */
.section { padding: 80px 0; }
.section-alt { background: var(--dark-2); }

.section-header { text-align: center; margin-bottom: 50px; }

.section-label {
    display: inline-block;
    background: rgba(108,59,255,0.15);
    border: 1px solid rgba(108,59,255,0.3);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ====== CARDS ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.competition-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.competition-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.competition-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108,59,255,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(108,59,255,0.1);
}

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

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }

.card-icon {
    width: 52px; height: 52px;
    background: rgba(108,59,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-yarisma { background: rgba(108,59,255,0.2); color: var(--primary-light); border: 1px solid rgba(108,59,255,0.3); }
.badge-turnuva { background: rgba(245,158,11,0.2); color: var(--secondary); border: 1px solid rgba(245,158,11,0.3); }
.badge-active { background: rgba(16,185,129,0.15); color: var(--accent); border: 1px solid rgba(16,185,129,0.3); }
.badge-completed { background: rgba(148,163,184,0.15); color: var(--text-muted); border: 1px solid rgba(148,163,184,0.2); }
.badge-team { background: rgba(6,182,212,0.15); color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }
.badge-featured { background: rgba(245,158,11,0.15); color: var(--secondary); }

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-meta-icon { font-size: 0.9rem; }

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

.progress-bar-wrap { flex: 1; margin-right: 16px; }
.progress-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 3px; transition: width 0.5s ease; }

.card-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    transition: var(--transition);
}
.card-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(108,59,255,0.4); }

/* ====== PAGE HEADER ====== */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.page-subtitle { color: var(--text-muted); }

/* ====== FILTER BAR ====== */
.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.form-control {
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); background: rgba(108,59,255,0.08); }
.form-control option { background: var(--dark-2); }

.filter-bar .btn-primary { align-self: flex-end; padding: 10px 24px; }

/* ====== DETAIL PAGE ====== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding: 48px 0;
    align-items: start;
}

.detail-main { }

.detail-header { margin-bottom: 24px; }

.detail-icon {
    width: 72px; height: 72px;
    background: rgba(108,59,255,0.15);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.detail-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.info-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-value { font-size: 0.95rem; color: white; font-weight: 500; }

.detail-sidebar { }

.apply-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 90px;
}

.apply-card-title { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 20px; }

.apply-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.apply-stat:last-of-type { border-bottom: none; margin-bottom: 20px; }
.apply-stat-label { font-size: 0.85rem; color: var(--text-muted); }
.apply-stat-value { font-size: 0.9rem; color: white; font-weight: 600; }

.btn-apply {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,59,255,0.5); }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-apply-secondary {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 12px;
    transition: var(--transition);
}
.btn-apply-secondary:hover { color: white; border-color: white; }

/* ====== FORM PAGE ====== */
.form-page { min-height: 80vh; display: flex; align-items: center; padding: 60px 0; }

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.form-subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: white;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.form-input:focus { border-color: var(--primary); background: rgba(108,59,255,0.08); }
.form-input::placeholder { color: var(--text-muted); }

textarea.form-input { resize: vertical; min-height: 100px; }

.form-error { font-size: 0.8rem; color: #fca5a5; margin-top: 6px; }

.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.form-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 24px 0; }

.btn-form {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    margin-top: 8px;
}
.btn-form:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,59,255,0.5); }

.form-link { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 20px; }
.form-link a { color: var(--primary-light); font-weight: 600; }

/* ====== MY APPLICATIONS ====== */
.my-apps { padding: 48px 0; }

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
}
.app-card:hover { border-color: rgba(108,59,255,0.4); }

.app-comp-name { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 6px; }
.app-meta { font-size: 0.82rem; color: var(--text-muted); }

.status-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.status-approved { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.status-rejected { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

.app-actions { display: flex; gap: 8px; align-items: center; flex-direction: column; }

.btn-danger-sm {
    background: none;
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.1); }

/* ====== ADMIN ====== */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.admin-sidebar {
    background: var(--dark-2);
    border-right: 1px solid var(--card-border);
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--card-border);
}

.admin-sidebar-title { font-size: 1.1rem; font-weight: 800; color: white; }
.admin-sidebar-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.admin-nav { padding: 16px 12px; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(108,59,255,0.15);
    color: white;
}

.admin-nav-icon { font-size: 1.1rem; }

.admin-content { padding: 40px; background: var(--dark); }

.admin-page-title { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 8px; }
.admin-page-sub { color: var(--text-muted); margin-bottom: 32px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(108,59,255,0.15), transparent);
    border-radius: 50%;
}

.stat-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-value { font-size: 2rem; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ====== TABLE ====== */
.table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.table-title { font-size: 1rem; font-weight: 700; color: white; }

table { width: 100%; border-collapse: collapse; }

th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--card-border);
}

td {
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.btn-sm {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    display: inline-block;
}
.btn-edit { background: rgba(108,59,255,0.2); color: var(--primary-light); border: 1px solid rgba(108,59,255,0.3); }
.btn-edit:hover { background: var(--primary); color: white; }
.btn-delete { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.btn-delete:hover { background: #ef4444; color: white; }
.btn-green { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.btn-green:hover { background: var(--success); color: white; }

/* ====== PAGINATION ====== */
.pagination-wrap { display: flex; justify-content: center; margin-top: 32px; gap: 4px; }
.pagination-wrap .page-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}
.pagination-wrap .page-link:hover, .pagination-wrap .active .page-link { background: var(--primary); color: white; border-color: var(--primary); }

/* ====== EMPTY STATE ====== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-title { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 10px; }
.empty-text { color: var(--text-muted); margin-bottom: 28px; }

/* ====== FOOTER ====== */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo { font-size: 1.2rem; font-weight: 800; color: white; display: block; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary-light); }

.footer-contact p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.83rem;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,20,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links li a { font-size: 1.2rem; padding: 12px 28px; }
    .detail-layout { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 640px) {
    .cards-grid { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; }
    .filter-bar { flex-direction: column; }
    .app-card { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====== PAGINATION ====== */
.pagination-wrap { margin-top: 32px; }

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    align-items: center;
}
.pagination-total { opacity: 0.7; }

.pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    text-decoration: none;
}

a.page-item:hover {
    color: white;
    background: rgba(108,59,255,0.2);
    border-color: rgba(108,59,255,0.5);
}

.page-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(108,59,255,0.4);
}

.page-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
