:root {
  --bg-primary: #0f1524;
  --bg-secondary: #141c2b;
  --bg-card: #1a2332;
  --bg-card-hover: #1e293b;
  --bg-input: #141c2b;
  --bg-nav: #0b101c;
  --bg-sidebar: #0b101c;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: #1e293b;
  --border-light: #2a3440;

  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --transition: all 0.15s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--cyan-500); text-decoration: none; }
a:hover { color: var(--cyan-400); text-decoration: underline; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  height: 52px;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
}
.nav-brand img { height: 28px; width: auto; }
.nav-brand span { color: var(--cyan-500); }
.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.nav-links a {
  padding: 6px 12px; border-radius: 4px;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary); background: rgba(255,255,255,0.04);
}
.nav-links li { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); padding: 4px 0; z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  color: var(--text-secondary); font-size: 0.83rem; text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; position: relative; }
.notif-bell {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  font-size: 0.9rem;
}
.notif-bell:hover { border-color: var(--cyan-500); color: var(--cyan-400); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan-500); color: #fff;
  font-size: 0.6rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.user-menu {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 10px 3px 3px; border-radius: 4px;
  border: 1px solid var(--border); cursor: pointer; transition: var(--transition);
}
.user-menu:hover { border-color: var(--cyan-500); }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-light); }
.user-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.mobile-menu-btn { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 6px 16px; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--cyan-600); color: #fff; border-color: var(--cyan-600);
}
.btn-primary:hover { background: var(--cyan-500); color: #fff; text-decoration: none; }
.btn-secondary {
  background: var(--bg-card); color: var(--text-primary); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--cyan-500); color: var(--cyan-400); text-decoration: none; }
.btn-discord {
  background: #5865F2; color: #fff; border-color: #5865F2;
}
.btn-discord:hover { background: #4752c4; color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); text-decoration: none; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
.btn-lg { padding: 8px 24px; font-size: 0.9rem; }

/* PAGE HEADER */
.page-header {
  padding: 80px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.5px;
}
.page-header p {
  color: var(--text-muted); font-size: 0.9rem; margin-top: 4px;
}

/* SECTION */
.section { padding: 48px 0; }
.section-header { margin-bottom: 32px; }
.section-label {
  display: inline-block; padding: 2px 10px;
  border-radius: 3px; background: rgba(6,182,212,0.08);
  color: var(--cyan-400); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.section-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 600px; }

/* HERO */
.hero {
  position: relative; padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6,182,212,0.03) 0%, transparent 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 4px;
  border: 1px solid var(--border); font-size: 0.8rem;
  color: var(--text-secondary); margin-bottom: 16px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.hero-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; line-height: 1.2; }
.hero-title .highlight { color: var(--cyan-500); }
.hero-subtitle {
  font-size: 0.95rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 24px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.server-stats-bar {
  display: flex; gap: 32px; margin-top: 36px;
  padding: 16px 24px; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--cyan-400); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* CARDS */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.card-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 0.9rem; font-weight: 600; }
.card-body { padding: 16px; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }

/* FEATURES GRID */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.feature-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-light); }
.feature-icon {
  width: 36px; height: 36px; border-radius: 4px;
  background: rgba(6,182,212,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 12px; color: var(--cyan-400);
}
.feature-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.feature-card p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 4px;
}
.form-control {
  width: 100%; padding: 8px 12px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text-primary); font-size: 0.85rem; transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--cyan-500); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 30px;
}

/* TABLES */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 3px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}
.badge-cyan { background: rgba(6,182,212,0.1); color: var(--cyan-400); }
.badge-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.badge-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.badge-yellow { background: rgba(234,179,8,0.1); color: #eab308; }
.badge-purple { background: rgba(168,85,247,0.1); color: #a855f7; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-online { background: #22c55e; }
.status-offline { background: #ef4444; }

/* ALERTS */
.alert {
  padding: 10px 14px; border-radius: 4px; margin-bottom: 12px;
  font-size: 0.85rem; border: 1px solid transparent;
}
.alert-info { background: rgba(6,182,212,0.06); border-color: rgba(6,182,212,0.15); color: var(--cyan-400); }
.alert-success { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.15); color: #22c55e; }
.alert-danger { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); color: #ef4444; }
.alert-warning { background: rgba(234,179,8,0.06); border-color: rgba(234,179,8,0.15); color: #eab308; }

/* TABS */
.tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--border);
  margin-bottom: 20px; overflow-x: auto;
}
.tab {
  padding: 8px 16px; border: none; background: none;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--cyan-400); border-bottom-color: var(--cyan-500); }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 200; display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  max-width: 500px; width: 90%; max-height: 85vh; overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h2 { font-size: 1.1rem; }
.modal-close {
  width: 28px; height: 28px; border-radius: 4px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--cyan-500); color: var(--cyan-400); }

/* TOGGLE */
.toggle {
  position: relative; width: 40px; height: 22px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 11px; cursor: pointer; transition: var(--transition);
}
.toggle.active { background: var(--cyan-600); border-color: var(--cyan-500); }
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-primary); transition: var(--transition);
}
.toggle.active::after { left: 20px; }

/* DASHBOARD LAYOUT */
.dashboard-grid {
  display: flex;
  padding-top: 52px;
  min-height: 100vh;
}
.dash-sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}
.dash-sidebar .user-card { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; text-align: center; }
.dash-sidebar .user-card img { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 8px; border: 2px solid var(--border-light); }
.dash-sidebar .user-card h3 { font-size: 0.9rem; }
.dash-sidebar .user-card p { font-size: 0.75rem; color: var(--text-muted); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 4px; color: var(--text-muted); font-size: 0.83rem; transition: var(--transition); text-decoration: none; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.dash-main { flex: 1; padding: 20px 24px 40px; overflow-x: hidden; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dash-header h1 { font-size: 1.3rem; font-weight: 700; }

/* STATS GRID */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px;
}
.stat-card {
  padding: 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-card .stat-icon { font-size: 1.2rem; color: var(--cyan-400); margin-bottom: 8px; }
.stat-card .stat-number { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ANNOUNCEMENTS */
.announcements-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-item { padding: 16px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.announcement-meta {
  display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px;
}
.announcement-item h3 { font-size: 0.95rem; margin-bottom: 4px; }
.announcement-item p { color: var(--text-secondary); font-size: 0.85rem; }

/* LIVE PLAYER LIST */
.player-list { display: flex; flex-direction: column; gap: 6px; }
.player-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 4px;
  background: var(--bg-input); border: 1px solid var(--border);
}
.player-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(6,182,212,0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--cyan-400); font-size: 0.75rem;
}
.player-info { flex: 1; }
.player-name { font-size: 0.85rem; font-weight: 600; }
.player-id { font-size: 0.7rem; color: var(--text-muted); }
.player-job { font-size: 0.7rem; color: var(--cyan-400); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border); padding: 40px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-brand img { height: 32px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.82rem; max-width: 260px; line-height: 1.6; }
.footer h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; }
.footer-links a:hover { color: var(--cyan-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition);
}
.social-link:hover { border-color: var(--cyan-500); color: var(--cyan-400); text-decoration: none; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer; border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* MAP */
.map-container { height: 500px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* LOADING */
.loading-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border); border-top-color: var(--cyan-500);
  border-radius: 50%; animation: spin 0.6s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pricing-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border); text-align: center;
}
.pricing-card.featured { border-color: var(--cyan-600); }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: var(--cyan-400); margin: 12px 0; }
.pricing-card .price span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.pricing-card ul { list-style: none; margin: 16px 0; }
.pricing-card ul li { padding: 6px 0; color: var(--text-muted); font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before { content: '✓'; color: var(--cyan-400); margin-right: 6px; }

/* KNOWLEDGE BASE */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kb-card {
  padding: 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border); display: block;
}
.kb-card:hover { border-color: var(--border-light); text-decoration: none; }
.kb-card h3 { font-size: 0.9rem; margin-bottom: 4px; color: var(--text-primary); }
.kb-card p { font-size: 0.8rem; color: var(--text-muted); }

/* TICKET MESSAGES */
.ticket-messages { max-height: 350px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-input); border-radius: 4px; margin-bottom: 12px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 6px; font-size: 0.85rem; line-height: 1.5; }
.msg-user { align-self: flex-end; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.15); }
.msg-staff { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); }
.msg-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* TIMELINE */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -18px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-500); border: 2px solid var(--bg-primary); }
.timeline-item h4 { font-size: 0.85rem; }
.timeline-item p { font-size: 0.8rem; color: var(--text-secondary); }
.timeline-item .date { font-size: 0.72rem; color: var(--text-muted); }

/* CAD LAYOUT */
.cad-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; min-height: 400px; }
.cad-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.cad-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* GENERAL HELPERS */
.chart-container { position: relative; height: 250px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-sidebar { position: relative; top: 0; width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-main { margin-left: 0; }
  .footer { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .cad-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar .container { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .nav-brand { font-size: 1rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 8px 16px; z-index: 100; }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 10px 16px; border-radius: 4px; font-size: 0.9rem; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.03); }
  .nav-actions { gap: 4px; }
  .search-box { max-width: 160px; }
  .search-box input { font-size: 0.75rem; }

  .hero { min-height: auto; padding-top: 80px; padding-bottom: 30px; }
  .hero-title { font-size: 1.8rem; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .server-stats-bar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }

  .section { padding: 30px 0; }
  .section-title { font-size: 1.2rem; }
  .section-desc { font-size: 0.85rem; }

  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .kb-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

  .footer { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .page-header { padding: 70px 0 20px; }
  .page-header h1 { font-size: 1.3rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px; }
  .stat-card .stat-number { font-size: 1rem; }

  .card { border-radius: 6px; }
  .card-header { padding: 10px 12px; }
  .card-body { padding: 12px; }

  .table-container { font-size: 0.8rem; }
  th, td { padding: 6px 8px; }

  .tabs { gap: 2px; }
  .tab { padding: 6px 10px; font-size: 0.8rem; }

  .form-group { margin-bottom: 12px; }
  .form-control { padding: 8px 10px; font-size: 0.85rem; }

  .btn { padding: 8px 14px; font-size: 0.82rem; }
  .btn-lg { padding: 10px 18px; font-size: 0.85rem; }

  .badge { font-size: 0.65rem; padding: 2px 6px; }

  .modal { padding: 16px; margin: 8px; }

  .feature-card { padding: 16px; }

  .dash-sidebar { padding: 12px; }
  .dash-nav a { font-size: 0.8rem; padding: 6px 8px; }

  .announcement-item { padding: 12px; }
  .forum-post { padding: 12px; }

  .mobile-menu-btn { display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
  .mobile-menu-btn span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: var(--transition); }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .page-header h1 { font-size: 1.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .server-stats-bar { flex-wrap: wrap; gap: 12px; justify-content: center; }

  .hero-content { text-align: center; }
  .hero-subtitle { margin: 0 auto 24px; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  .navbar .container { padding: 6px 12px; }
  .nav-brand { font-size: 0.9rem; }
  .nav-brand img { height: 24px; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .server-stats-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .stat-item { text-align: left; }
  .stat-value { font-size: 1.1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { gap: 10px; }
  .feature-card { padding: 14px; }
  .feature-card h3 { font-size: 0.9rem; }
  .pricing-card { padding: 20px; }
  .pricing-card .price { font-size: 1.8rem; }
  .modal { margin: 4px; padding: 12px; }
  .btn { padding: 7px 12px; font-size: 0.8rem; }
  .page-header { padding: 60px 0 16px; }
  .page-header h1 { font-size: 1.1rem; }
  .dash-header h1 { font-size: 1.1rem; }
  .footer { padding: 24px 0 16px; }
}

@media (max-width: 360px) {
  html { font-size: 12px; }
  .hero-title { font-size: 1.2rem; }
  .btn { padding: 6px 10px; font-size: 0.75rem; }
  .nav-actions { gap: 2px; }
  .notif-bell { width: 28px; height: 28px; }
  .user-avatar { width: 20px; height: 20px; }
  .user-name { font-size: 0.7rem; }
}

/* SEARCH */
.search-box { position: relative; max-width: 280px; width: 100%; }
.search-box input {
  width: 100%; padding: 0 10px 0 30px; height: 32px;
  border-radius: 4px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-primary);
  font-size: 0.82rem; outline: none;
}
.search-box input:focus { border-color: var(--cyan-500); }
.search-box .search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted); font-size: 0.8rem;
}

/* NOTIFICATION DROPDOWN */
.notif-dropdown { position: absolute; top: 100%; right: 0; width: 320px; max-height: 400px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: none; z-index: 201; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.notif-dropdown.active { display: block; }
.notif-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-header h4 { font-size: 0.9rem; font-weight: 600; }
.notif-header a { font-size: 0.8rem; }
.notif-item { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(6,182,212,0.03); }
.notif-title { font-size: 0.85rem; font-weight: 600; }
.notif-desc { font-size: 0.78rem; color: var(--text-muted); }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
