/* Custom Variables for easy maintenance */
:root {
    --primary-blue: #3d5afe;
    --primary-blue-l: #3d5afe7a;
    --primary-blue-d: #2035ac77;
    --accent-blue: #00d2ff;
    --bg-dark: #0a0e17;
    --bg-card: #161e2d;
    --bg-navbar: rgba(13, 17, 23, 0.85);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 20px rgba(61, 90, 254, 0.2);
}

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

/* Анимация за движение на градиентите */
@keyframes fluidBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Анимация за пулсиране на светещите петна */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Анимация за движение на мрежата от точки */
@keyframes moveGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 60px 60px; /* Трябва да съвпада с размера на патерна */
    }
}

@keyframes moveRight {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 90px 0; /* Мести се точно с една клетка надясно */
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    /* Правим фоновите петна по-големи и по-наситени за движението */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(61, 90, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 210, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(13, 17, 23, 1) 0%, var(--bg-dark) 100%);
    
    background-size: 200% 200%; /* Важно за движението */
    animation: fluidBg 15s ease infinite; /* Движи градиента плавно */
    
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before, body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

body::before {
    background: radial-gradient(circle at 10% 10%, var(--primary-blue-l) 0%, transparent 18%);
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

body::after {
    background: radial-gradient(circle at 90% 90%, var(--primary-blue-d) 0%, transparent 18%);
    animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

.navbar-logo {
    height: 55px;
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(61, 90, 254, 0.5));
}

/* Navigation */
.navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px var(--primary-blue));
}

/* Rule Footer - Blue Style with Hover Effects */
.rule-footer {
    margin-top: 3rem;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

/* Принципът - изпъква при ховър */
.principle-card {
    background: rgba(0, 114, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-left: 4px solid #0084ff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.principle-card:hover {
    transform: translateX(10px); /* Леко напред/надясно като другите правила */
    background: rgba(0, 140, 255, 0.07);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 149, 255, 0.5);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #0099ff;
    font-weight: 800;
    letter-spacing: 2px;
}

.warning-icon {
    width: 22px;
    height: 22px;
    fill: #0091ff;
}

/* Кредити със заграждение (капсула) */
.dev-credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 2rem;
    background: rgba(0, 210, 255, 0.05); /* Леко синьо заграждение */
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 50px; /* Заоблено заграждение */
    transition: all 0.3s ease;
}

.dev-credits:hover {
    transform: scale(1.05); /* Леко изпъкване на цялата капсула */
    border-color: #00a2ff;
    box-shadow: 0 0 15px rgba(0, 157, 255, 0.2);
}

.credit-item .label {
    color: #718096;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.credit-item .name {
    color: #ffffff;
    font-weight: 700;
    margin-left: 0.4rem;
    transition: color 0.2s ease;
}

.credit-item:hover .name {
    color: #0099ff; /* Името светва в синьо при ховър */
}

.divider {
    width: 1px;
    height: 18px;
    background: rgba(0, 210, 255, 0.3);
}

.server-name {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.438);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.nav-link.discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.nav-link.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
    filter: brightness(1.1);
}

.nav-link.discord-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-link.discord-btn2 {
    background: linear-gradient(135deg, #f25858, #c44747);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(242, 88, 88, 0.3);
}

.nav-link.discord-btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 88, 88, 0.5);
    filter: brightness(1.1);
}

.nav-link.discord-btn2 svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-link.admin-btn {
    background: linear-gradient(135deg, #429ded, #3e90c7);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 160, 237, 0.3);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(61, 90, 254, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%; /* Достатъчно широко */
    height: 100%;
    top: 0;
    left: -50%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d5afe' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    
    /* Анимация: 10 секунди за едно пълно завъртане, безкрайно */
    animation: moveRight 10s linear infinite;

    /* Маска, за да избледняват точките в краищата и да не свършват рязко */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.7rem;
    font-weight: 850;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2a45e2);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(61, 90, 254, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #0a0e17;
}

.btn-success:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(150, 201, 61, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #FFFFFF;
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Stats Section */
.stats-section {
    padding: 5rem 2rem;
    background-color: transparent;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(61, 90, 254, 0.05) 0%, transparent 100%);
    border-radius: 20px;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(61, 90, 254, 0.3);
    box-shadow: var(--glow-shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    fill: #FFFFFF;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background-color: rgba(13, 17, 23, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: #FFFFFF;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 1rem auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: left;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: var(--accent-blue);
    transform: scale(1.02);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    background-color: rgba(61, 90, 254, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 90, 254, 0.2);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-blue);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
}

.card-body {
    padding: 1.75rem;
}

/* Dashboard */
.dashboard-section {
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dashboard-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.status-card {
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, var(--bg-card), #101725);
}

.status-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-icon::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: spin 10s linear infinite;
}

.status-icon.pending { background-color: rgba(254, 231, 92, 0.1); }
.status-icon.approved { background-color: rgba(87, 242, 135, 0.1); }
.status-icon.rejected { background-color: rgba(237, 66, 69, 0.1); }
.status-icon.removed { background-color: rgba(148, 163, 184, 0.1); }

.status-icon svg { width: 44px; height: 44px; }
.status-icon.pending svg { fill: #FEE75C; filter: drop-shadow(0 0 10px #FEE75C); }
.status-icon.approved svg { fill: #57F287; filter: drop-shadow(0 0 10px #57F287); }
.status-icon.rejected svg { fill: #ED4245; filter: drop-shadow(0 0 10px #ED4245); }
.status-icon.removed svg { fill: #94a3b8; }

.status-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.status-message {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.application-details {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid var(--glass-border);
}

.application-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: #ffffff;
}

/* Admin Panel */
.admin-section {
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

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

.admin-stat-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.admin-stat-card .stat-number {
    font-size: 2.2rem;
    color: var(--accent-blue);
}

.admin-table-container {
    overflow-x: auto;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

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

.admin-table th,
.admin-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--glass-border);
}

.admin-table td {
    border-bottom: 1px solid var(--glass-border);
    color: #cbd5e1;
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

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

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending { background: rgba(254, 231, 92, 0.1); color: #FEE75C; border: 1px solid rgba(254, 231, 92, 0.2); }
.status-badge.approved { background: rgba(87, 242, 135, 0.1); color: #57F287; border: 1px solid rgba(87, 242, 135, 0.2); }
.status-badge.rejected { background: rgba(237, 66, 69, 0.1); color: #ED4245; border: 1px solid rgba(237, 66, 69, 0.2); }
.status-badge.removed { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

.action-buttons {
    display: flex;
    gap: 0.6rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background-color: rgba(13, 17, 23, 0.6);
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: rgba(13, 17, 23, 0.9);
    box-shadow: 0 0 15px rgba(61, 90, 254, 0.15);
}

.form-control::placeholder {
    color: #475569;
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* Rules Page */
.rules-section {
    padding: 5rem 2rem;
    max-width: 950px;
    margin: 0 auto;
}

.rules-section h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #ffffff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rule-category {
    margin-bottom: 3.5rem;
}

.rule-category h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-category h2 svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-blue);
    filter: drop-shadow(0 0 5px var(--accent-blue));
}

.rule-list {
    list-style: none;
}

.rule-item {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease;
}

.rule-item:hover {
    transform: translateX(10px);
    border-color: rgba(0, 210, 255, 0.2);
}

.rule-number {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(61, 90, 254, 0.3);
}

.rule-text {
    color: #cbd5e1;
    padding-top: 0.25rem;
    font-size: 1.05rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-card);
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #ED4245;
    color: #FFFFFF;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

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

.alert-success {
    background-color: rgba(87, 242, 135, 0.1);
    color: #57F287;
    border: 1px solid rgba(87, 242, 135, 0.2);
}

.alert-danger {
    background-color: rgba(237, 66, 69, 0.1);
    color: #ED4245;
    border: 1px solid rgba(237, 66, 69, 0.2);
}

.alert-warning {
    background-color: rgba(254, 231, 92, 0.1);
    color: #FEE75C;
    border: 1px solid rgba(254, 231, 92, 0.2);
}

/* Footer */
.footer {
    background-color: #05080f;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 768px) {
.navbar {
        flex-direction: column; /* Подрежда логото над линковете */
        padding: 1rem;
        height: auto;
    }

.navbar-nav {
        display: flex;
        flex-wrap: wrap; /* Позволява на бутоните да минат на нов ред, вместо да излизат от екрана */
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

.nav-link {
        font-size: 0.75rem; /* Намаляваме текста, за да се събере */
        padding: 0.4rem 0.6rem;
    }

.navbar-brand {
        font-size: 1.1rem; /* Малко по-малко лого, за да не заема място */
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 350px;
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
    }

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

    .admin-table th,
    .admin-table td {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
    .footer-links {
        flex-direction: column; /* Подрежда ги вертикално */
        gap: 0.8rem;            /* Сбива ги един до друг */
        margin-bottom: 1.5rem;
    }

    .footer-links a {
        font-size: 0.8rem;      /* Намалява малко текста */
        letter-spacing: 0.5px;  /* Намалява разстоянието между буквите */
    }

    .footer p {
        font-size: 0.75rem;     /* По-малък текст за авторските права */
        opacity: 0.7;
    }
}

/* Search */
.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-box input {
    padding-left: 3rem;
    background-color: rgba(255, 255, 255, 0.03);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(61, 90, 254, 0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    fill: rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.empty-state p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* Try Badge */
.try-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(61, 90, 254, 0.3);
}