/* ==========================================
   UNL WEB - PREMIUM DARK THEME
   Based on GENWEB Design
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

:root {
    --p-bg: #0b1220;
    --p-surface: rgba(255,255,255,0.04);
    --p-surface-2: rgba(255,255,255,0.06);
    --p-stroke: rgba(255,255,255,0.10);
    --p-text: rgba(255,255,255,0.82);
    --p-muted: rgba(255,255,255,0.62);
    --p-head: rgba(255,255,255,0.92);
    --p-accent: #6ee7ff;
    --p-accent2: #a78bfa;
    --p-shadow: 0 20px 60px rgba(0,0,0,0.45);
    --p-shadow-soft: 0 10px 28px rgba(0,0,0,0.28);
    --p-radius: 16px;
}

/* Hide scrollbar */
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--p-text);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(110,231,255,.16), transparent 60%),
        radial-gradient(900px 500px at 85% 10%, rgba(167,139,250,.14), transparent 55%),
        linear-gradient(180deg, #070b14 0%, #0b1220 60%, #070b14 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid var(--p-stroke);
    z-index: 1000;
    overflow: hidden;
}

.sidebar:hover { overflow-y: auto; }

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--p-stroke);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover { transform: scale(1.02); }

.logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--p-head);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--p-text);
    font-size: 20px;
    cursor: pointer;
}

.sidebar-nav { padding: 16px 0; }

.nav-section { margin-bottom: 24px; }

.nav-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--p-muted);
}

.nav-caption i { font-size: 12px; opacity: 0.8; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--p-muted);
    text-decoration: none;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--p-surface-2);
    color: var(--p-head);
    transform: translateX(2px);
}

.nav-item.active {
    background: rgba(110,231,255,0.08);
    color: var(--p-accent);
    border-left-color: var(--p-accent);
}

.nav-item i { width: 20px; font-size: 16px; }

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 0 24px 24px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid var(--p-stroke);
    box-shadow: var(--p-shadow-soft);
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--p-text);
    font-size: 20px;
    cursor: pointer;
    margin-right: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.active-users-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid var(--p-stroke);
    background: var(--p-surface);
    backdrop-filter: blur(14px);
}

.active-users-title {
    font-size: 11px;
    color: var(--p-muted);
    white-space: nowrap;
}

.active-users-list {
    display: flex;
    align-items: center;
    gap: -6px;
}

.active-users-list img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--p-accent);
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.active-users-list img:first-child { margin-left: 0; }
.active-users-list img:hover { transform: scale(1.1); z-index: 1; }

.discord-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(90deg, rgba(110,231,255,0.22), rgba(167,139,250,0.18));
    border: 1px solid var(--p-stroke);
    border-radius: 14px;
    color: var(--p-head);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.discord-login:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.discord-login i { font-size: 18px; }

/* ==========================================
   STATS ROW
   ========================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 20px 0;
}

.stat-card {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    transition: all 0.22s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(110,231,255,0.22);
    box-shadow: var(--p-shadow-soft);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--p-head);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 12px;
    color: var(--p-muted);
    margin: 0;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.stat-icon.green { background: rgba(16,185,129,0.15); color: #10b981; }
.stat-icon.yellow { background: rgba(245,158,11,0.15); color: #f59e0b; }
.stat-icon.cyan { background: rgba(110,231,255,0.15); color: var(--p-accent); }
.stat-icon.discord { background: rgba(255,255,255,0.15); color: #fff; }

.stat-card.discord-card {
    background: linear-gradient(90deg, rgba(110,231,255,0.18), rgba(167,139,250,0.14));
    border-color: rgba(110,231,255,0.25);
}

/* ==========================================
   CAROUSEL
   ========================================== */
.carousel-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-inner { position: relative; }

.carousel-item {
    position: relative;
    height: 400px;
    display: none;
}

.carousel-item.active { display: block; }

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    border-radius: 25px;
}

.carousel-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.carousel-caption:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(-50%) translateY(-3px);
}

.carousel-caption h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.carousel-caption h6 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.carousel-container:hover .carousel-prev,
.carousel-container:hover .carousel-next { opacity: 1; }

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-prev:hover,
.carousel-next:hover { background: rgba(0,0,0,0.6); }

/* ==========================================
   DASHBOARD BOTTOM - 3 COLUMN LAYOUT
   ========================================== */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

/* Weather & Clock Cards */
.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wx-card,
.clock-card {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 16px 20px;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
}

.wx-card::after,
.clock-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 10% 0%, rgba(255,255,255,0.08), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
}

.wx-card:hover,
.clock-card:hover {
    transform: translateY(-2px);
    border-color: rgba(110,231,255,0.22);
}

.wx-content,
.clock-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.wx-info h3,
.clock-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--p-head);
    margin: 0 0 4px 0;
}

.wx-info p,
.clock-info p {
    font-size: 12px;
    color: var(--p-muted);
    margin: 0;
}

.wx-icon { color: #fbbf24; }
.clock-icon { color: var(--p-accent); }

.wx-icon-big,
.clock-icon-big {
    font-size: 32px;
    opacity: 0.3;
}

.wx-icon-big { color: #06b6d4; }
.clock-icon-big { color: #f59e0b; }

/* Blog Card */
.dashboard-middle { display: flex; }

.blog-card {
    flex: 1;
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    overflow: hidden;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(110,231,255,0.22);
}

.blog-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.blog-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--p-head);
    margin: 0 0 8px 0;
}

.blog-content p {
    font-size: 13px;
    color: var(--p-muted);
    margin: 0 0 12px 0;
    flex: 1;
    line-height: 1.4;
}

.blog-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--p-muted);
    margin-bottom: 12px;
}

.blog-stats i { margin-right: 4px; }

.blog-btn {
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(110,231,255,0.22), rgba(167,139,250,0.18));
    border: 1px solid var(--p-stroke);
    border-radius: 10px;
    color: var(--p-head);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}

.blog-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Announcements Card */
.dashboard-right { display: flex; }

.ann-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--p-stroke);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.30);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ann-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--p-stroke);
}

.ann-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ann-title i {
    font-size: 20px;
    color: var(--p-accent);
}

.ann-h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--p-head);
}

.ann-sub {
    font-size: 11px;
    color: var(--p-muted);
    margin-top: 2px;
}

.ann-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.22);
    color: #fff;
}

.ann-pill i {
    font-size: 7px;
    color: #22c55e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ann-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 280px;
}

.ann-scroll::-webkit-scrollbar { width: 6px; }
.ann-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }

.ann-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2,6,23,0.30), rgba(2,6,23,0.18));
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
    transition: all 0.18s ease;
}

.ann-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: rgba(59,130,246,0.55);
}

.ann-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(2,6,23,0.36), rgba(2,6,23,0.22));
    border-color: rgba(255,255,255,0.12);
}

.ann-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ann-author {
    font-size: 11px;
    font-weight: 600;
    color: var(--p-accent);
}

.ann-time {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.ann-msg {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    margin: 0;
}

.ann-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ann-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.3px;
}

.ann-badge.info { border-color: rgba(59,130,246,0.25); background: rgba(59,130,246,0.12); }
.ann-badge.warning { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.12); }
.ann-badge.error { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.12); }

.ann-item:has(.ann-badge.info)::before { background: rgba(59,130,246,0.65); }
.ann-item:has(.ann-badge.warning)::before { background: rgba(245,158,11,0.75); }
.ann-item:has(.ann-badge.error)::before { background: rgba(239,68,68,0.75); }

.ann-time {
    font-size: 11px;
    color: var(--p-muted);
}

.ann-msg {
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    line-height: 1.4;
    margin-bottom: 8px;
}

.ann-from {
    font-size: 12px;
    color: var(--p-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ann-empty {
    text-align: center;
    padding: 30px;
    color: var(--p-muted);
}

.ann-empty i {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--p-accent);
    display: block;
}


/* ==========================================
   PAGE STYLES
   ========================================== */
.page { display: none; }
.page.active { display: block; }

.page-header {
    margin-bottom: 24px;
    padding-top: 10px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--p-head);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--p-muted);
    font-size: 14px;
    margin: 0;
}

.blue-dot {
    width: 12px;
    height: 12px;
    background: var(--p-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--p-accent);
}

/* ==========================================
   KEYBINDS
   ========================================== */
.keybinds-container {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 24px;
    backdrop-filter: blur(14px);
}

.keybinds-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--p-head);
    margin-bottom: 20px;
}

.keybinds-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keybind-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(2,6,23,0.25);
    border: 1px solid var(--p-stroke);
    border-radius: 12px;
    color: var(--p-text);
}

.keybind-key {
    min-width: 60px;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(110,231,255,0.15), rgba(167,139,250,0.12));
    border: 1px solid var(--p-stroke);
    border-radius: 8px;
    font-weight: 600;
    color: var(--p-accent);
    text-align: center;
}

.keybind-sep {
    color: var(--p-muted);
}

/* ==========================================
   RULES
   ========================================== */
.rules-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.rules-sidebar {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 20px;
    backdrop-filter: blur(14px);
    height: fit-content;
}

.rules-sidebar h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--p-head);
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(2,6,23,0.3);
    border: 1px solid var(--p-stroke);
    border-radius: 12px;
    color: var(--p-text);
    font-size: 14px;
    margin-bottom: 16px;
}

.search-input::placeholder { color: var(--p-muted); }

.search-input:focus {
    outline: none;
    border-color: rgba(110,231,255,0.3);
}

.rules-list {
    max-height: 500px;
    overflow-y: auto;
}

.rule-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background: rgba(2,6,23,0.25);
    border: 1px solid var(--p-stroke);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 13px;
    color: var(--p-text);
}

.rule-item:hover {
    background: rgba(110,231,255,0.08);
    border-color: rgba(110,231,255,0.2);
}

.rule-item.active {
    background: rgba(110,231,255,0.12);
    border-color: var(--p-accent);
    color: var(--p-accent);
}

.rules-content {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 24px;
    backdrop-filter: blur(14px);
    min-height: 400px;
}

.rules-content h2 {
    font-size: 22px;
    color: var(--p-head);
    margin-bottom: 12px;
}

.rule-meta {
    font-size: 13px;
    color: var(--p-muted);
    margin-bottom: 20px;
}

.rule-content {
    line-height: 1.7;
    color: var(--p-text);
}

/* ==========================================
   STAFF
   ========================================== */
.staff-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.staff-role {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 20px;
    backdrop-filter: blur(14px);
}

.staff-role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.staff-role-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-role-title h3 {
    font-size: 18px;
    color: var(--p-head);
    margin: 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.staff-card {
    background: rgba(2,6,23,0.25);
    border: 1px solid var(--p-stroke);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.22s ease;
}

.staff-card:hover {
    transform: translateY(-3px);
    border-color: rgba(110,231,255,0.22);
}

.staff-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 2px solid var(--p-accent);
    object-fit: cover;
}

.staff-card h4 {
    font-size: 14px;
    color: var(--p-head);
    margin: 0 0 4px 0;
}

.staff-card p {
    font-size: 12px;
    color: var(--p-muted);
    margin: 0 0 12px 0;
}

.staff-actions {
    display: flex;
    gap: 8px;
}

.btn-discord,
.btn-copy {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--p-stroke);
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-discord {
    background: rgba(110,231,255,0.12);
    color: var(--p-accent);
}

.btn-copy {
    background: var(--p-surface);
    color: var(--p-text);
}

.btn-discord:hover,
.btn-copy:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    background: rgba(11, 18, 32, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--p-stroke);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.breadcrumb-wrap a {
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.18s ease;
}

.breadcrumb-wrap a:hover {
    color: var(--p-head);
    background: var(--p-surface-2);
    transform: translateY(-1px);
}

.breadcrumb-wrap a.active {
    color: var(--p-head);
    background: var(--p-surface-2);
    border: 1px solid var(--p-stroke);
}

.breadcrumb-sep {
    color: rgba(255,255,255,0.35);
}

/* ==========================================
   FORMS - NEW CARD STYLE
   ========================================== */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-card-new {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--p-shadow-soft);
    transition: all 0.22s ease;
}

.form-card-new:hover {
    transform: translateY(-4px);
    border-color: rgba(110,231,255,0.22);
    box-shadow: var(--p-shadow);
}

.form-card-img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.form-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: all 0.3s ease;
}

.form-card-new:hover .form-card-img img {
    filter: brightness(0.6);
    transform: scale(1.05);
}

.form-card-body {
    padding: 18px 20px;
}

.form-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--p-head);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.form-card-body p {
    font-size: 13px;
    color: var(--p-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-apply-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(90deg, rgba(110,231,255,0.22), rgba(167,139,250,0.18));
    border: 1px solid var(--p-stroke);
    border-radius: 10px;
    color: var(--p-head);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.form-apply-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

@media (max-width: 1200px) {
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .forms-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FORMS - OLD STYLE (kept for compatibility)
   ========================================== */
.forms-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.form-card {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(14px);
    transition: all 0.22s ease;
}

.form-card:hover {
    transform: translateY(-4px);
    border-color: rgba(110,231,255,0.25);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.form-icon {
    width: 64px;
    height: 64px;
    background: rgba(110,231,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: var(--p-accent);
}

.form-card h3 {
    font-size: 17px;
    color: var(--p-head);
    margin: 0 0 10px 0;
}

.form-card p {
    font-size: 13px;
    color: var(--p-muted);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.form-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(90deg, rgba(110,231,255,0.22), rgba(167,139,250,0.18));
    border: 1px solid var(--p-stroke);
    border-radius: 10px;
    color: var(--p-head);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
}

.form-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ==========================================
   MARKET
   ========================================== */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.market-card {
    background: var(--p-surface);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: all 0.22s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(110,231,255,0.22);
}

.market-card-image {
    height: 180px;
    overflow: hidden;
    background: rgba(2,6,23,0.3);
}

.market-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card-content {
    padding: 18px;
}

.market-card-content h3 {
    font-size: 17px;
    color: var(--p-head);
    margin: 0 0 8px 0;
}

.market-description {
    font-size: 13px;
    color: var(--p-muted);
    margin-bottom: 14px;
    line-height: 1.4;
}

.market-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.market-price .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--p-accent);
}

.market-price .stock {
    font-size: 11px;
    color: var(--p-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--p-stroke);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.footer-left p {
    color: var(--p-muted);
    font-size: 13px;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    color: var(--p-muted);
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    color: var(--p-accent);
    transform: translateY(-2px);
}

/* ==========================================
   USER DROPDOWN
   ========================================== */
.user-dropdown {
    position: fixed;
    top: 70px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--p-stroke);
    border-radius: var(--p-radius);
    padding: 16px;
    min-width: 220px;
    backdrop-filter: blur(18px);
    box-shadow: var(--p-shadow);
    display: none;
    z-index: 1001;
}

.user-dropdown.show { display: block; }

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-info img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.username {
    font-weight: 600;
    color: var(--p-head);
}

.permission {
    font-size: 12px;
    color: var(--p-muted);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--p-stroke);
    margin: 12px 0;
}

.dropdown-item {
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--p-text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.18s ease;
}

.dropdown-item:hover {
    background: var(--p-surface-2);
    color: var(--p-head);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-bottom {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-right {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        grid-column: span 1;
    }
    
    .rules-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .active-users-wrap {
        display: none;
    }
    
    .carousel-item {
        height: 240px;
    }
    
    .carousel-item img {
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 0 16px 16px;
    }
    
    .header {
        padding: 12px 16px;
    }
}


/* ==========================================
   MODAL STYLES
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a1f2e 0%, #252b42 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease;
}

.modal-content.credit-modal {
    max-width: 900px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-blue);
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.7;
}

.modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4 {
    color: #f0f6fc;
    margin-top: 20px;
    margin-bottom: 12px;
}

.modal-body h1:first-child, .modal-body h2:first-child, .modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul, .modal-body ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    margin-bottom: 6px;
}

.modal-body a {
    color: var(--accent-blue);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body strong {
    color: #f0f6fc;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 16px 16px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    color: #fff;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #c9d1d9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================
   CREDIT INFO BUTTON
   ========================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-actions {
    display: flex;
    gap: 12px;
}

.page-subtitle {
    color: var(--text-gray);
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.credit-info-btn {
    background: linear-gradient(135deg, rgba(163, 113, 247, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(163, 113, 247, 0.3);
    color: #a371f7;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.credit-info-btn:hover {
    background: linear-gradient(135deg, rgba(163, 113, 247, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: rgba(163, 113, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(163, 113, 247, 0.2);
}

.credit-info-btn i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .credit-info-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   BLOG MODAL STYLES
   ========================================== */

.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.blog-modal-box {
    background: #1e2330;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.blog-modal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.blog-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.blog-modal-close:hover {
    color: #fff;
}

.blog-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.blog-modal-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.blog-modal-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-modal-text img {
    max-width: 100%;
    border-radius: 8px;
}

.blog-modal-like {
    margin-bottom: 12px;
}

.blog-modal-like .like-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.blog-modal-like .like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.blog-modal-like .like-btn.liked {
    border-color: #ef4444;
    color: #ef4444;
}

.blog-modal-like .like-btn.liked i {
    color: #ef4444;
}

.blog-modal-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.blog-modal-comments h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.blog-comment-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-comment-body {
    flex: 1;
}

.blog-comment-author {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.blog-comment-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.blog-comment-body p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 4px 0 0 0;
    line-height: 1.5;
}

.no-comment {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-bottom: 12px;
}

.login-notice {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 8px;
}

.blog-comment-form {
    margin-top: 12px;
}

.blog-comment-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    resize: none;
    min-height: 60px;
    margin-bottom: 8px;
}

.blog-comment-form textarea:focus {
    outline: none;
    border-color: var(--p-accent);
}

.blog-comment-form button {
    background: linear-gradient(135deg, var(--p-accent) 0%, var(--p-accent2) 100%);
    border: none;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-comment-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(110, 231, 255, 0.3);
}

.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    gap: 12px;
}

.blog-loading i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .blog-modal-box {
        max-height: 95vh;
        margin: 10px;
    }
}