@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Main colors */
  --primary: #00ffae;
  --primary-dark: #00cc8b;
  --accent: #00f0ff;
  --accent-dark: #00c2cc;
  
  /* Background colors */
  --bg-dark: #0a0d0f;
  --bg-medium: #111518;
  --bg-light: #1a1f24;
  
  /* Text colors */
  --text-bright: #ffffff;
  --text-primary: #f0f0f0;
  --text-secondary: #b8bbe2;
  --text-muted: #8b8fa3;
  
  /* UI elements */
  --input-bg: #151a1f;
  --input-border: #2a3138;
  --input-focus: var(--primary);
  --card-bg: #12171c;
  --card-border: #2a3138;
  --card-hover-border: var(--primary);
  
  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Mono', monospace;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  /* Legacy variables for backward compatibility */
  --bw-bg: var(--bg-dark);
  --bw-text: var(--text-primary);
  --bw-text-dim: var(--text-secondary);
  --bw-link: var(--primary);
  --bw-link-hover: var(--primary-dark);
  --bw-input-bg: var(--input-bg);
  --bw-input-border: var(--input-border);
  --bw-input-focus: var(--input-focus);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a, .nav-link {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-weight: 500;
}

a:hover, .nav-link:hover, .nav-link:focus {
  color: var(--accent);
  text-decoration: none;
  background: none;
  outline: none;
}

a:focus, .nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header {
  padding: 1.2rem 0;
  background: var(--bg-medium);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(0, 255, 174, 0.4);
  letter-spacing: 2px;
  user-select: none;
  display: flex;
  align-items: center;
}

.logo:before {
  content: '>';
  margin-right: 0.5rem;
  font-size: 1.4rem;
  opacity: 0.8;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link:focus {
  background: rgba(0, 255, 174, 0.1);
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
  flex: 1;
}

.card, .main-content, .sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.4rem;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.card-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--input-bg);
  color: var(--text-primary);
  border: 2px solid var(--input-border);
  border-radius: 6px;
  outline: none;
  margin-bottom: 0.3rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) inset;
}

.form-control:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-dark);
}

.form-control:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(0, 255, 174, 0.2);
}

.form-group:focus-within .form-label {
  color: var(--primary);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.btn, .search-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.8rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn:before, .search-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn:hover:before, .search-btn:hover:before {
  left: 100%;
}

.btn:hover, .btn:focus, .search-btn:hover, .search-btn:focus {
  background: var(--primary-dark);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.btn:active, .search-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(0, 255, 174, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}

.post-card {
  background: none;
  border: 1.5px solid #222;
  border-radius: 0;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  color: var(--bw-text);
  font-family: inherit;
  transition: border-color 0.2s;
}
.post-card:hover {
  border-color: #fff;
}

.post-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.post-category {
  display: inline-block;
  font-size: 0.9rem;
  color: #fff;
  background: none;
  border-bottom: 1px dotted #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.5rem;
}

.notification {
  background: none;
  border-left: 3px solid #fff;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0;
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  box-shadow: none;
}
.notification.unread {
  color: #fff;
  border-left-color: #fff;
}

.search-bar {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--bw-input-border);
  border-right: none;
  border-radius: 0;
  font-size: 1rem;
  background: var(--bw-input-bg);
  color: var(--bw-text);
  font-family: inherit;
  transition: border 0.2s;
}
.search-input:focus {
  border-color: #fff;
  outline: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.2rem;
}

.sidebar {
  padding: 1.2rem 0.5rem 1.2rem 0;
}
.sidebar h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar ul li {
  margin-bottom: 0.7rem;
}
.sidebar ul li a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.18s;
}
.sidebar ul li a:hover, .sidebar ul li a:focus {
  color: #111;
}

.main-content {
  padding: 0;
}

.footer {
  text-align: left;
  padding: 2rem 0 0.7rem 0;
  margin-top: 3rem;
  color: var(--bw-text-dim);
  font-size: 0.98rem;
  user-select: none;
  border-top: 1px solid #222;
  background: transparent;
}

/* Responsive Design */
@media (max-width: 900px) {
  .container {
    padding: 0.5rem;
    max-width: 99vw;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sidebar {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .header,
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .container {
    padding: 0.2rem;
  }
  .card,
  .main-content,
  .sidebar {
    padding: 0 0 1.2rem 0;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .card-title {
    font-size: 1rem;
  }
}


.timeline-feed { border-left: 3px solid #fff; margin: 2rem 0; }
.timeline-card {
  background: none;
  border: 1px solid #333;
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding: 1rem 1.5rem;
  position: relative;
  cursor: pointer;
}
.timeline-card:hover { border-color: #fff; background: #181818; }
.timeline-header { font-weight: bold; }
.timeline-title { color: #fff; font-size: 1.2rem; }
.timeline-category { color: #bdbdbd; margin-left: 1em; font-size: 0.95rem; }
.timeline-snippet { color: #bdbdbd; margin: 0.7em 0; }
.timeline-meta { font-size: 0.88rem; color: #bdbdbd; display: flex; gap: 2em; }

.modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; }
.modal-content { background: #111; color: #fff; padding: 2rem; min-width: 320px; max-width: 90vw; border: 1px solid #333;}
.close { position: absolute; top: 1.2rem; right: 2rem; color: #fff; font-size: 2rem; cursor: pointer; }

.chat-window { background: #181818; border: 1px solid #333; border-radius: 8px; width: 100%; max-width: 400px; margin: 2rem auto; }
.chat-messages { max-height: 300px; overflow-y: auto; padding: 1em; }
.chat-bubble { background: #222; color: #fff; padding: 0.4em 0.8em; border-radius: 6px; margin-bottom: 0.4em; max-width: 70%; }
.chat-bubble.me { background: #fff; color: #111; margin-left: 30%; }
#chatForm { display: flex; border-top: 1px solid #333; }
#chatInput { flex: 1; background: #111; color: #fff; border: none; padding: 0.8em; }
#chatForm button { background: #fff; color: #111; border: none; padding: 0.8em 1.2em; }


.notification-bar {
    background: #ffe680;
    color: #6d5700;
    padding: 1em 2em;
    border-bottom: 2px solid #d29922;
    font-family: inherit;
    font-size: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    align-items: center;
    z-index: 100;
}
.notification-msg button {
    margin-left: 0.8em;
    background: #d29922;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.3em 1em;
    cursor: pointer;
    font-weight: bold;
}
.notification-msg button:hover {
         background: #b07b0a;
}

/* --- App Shell (Topbar + Sidebar) --- */
.app-shell { 
  display: grid; 
  grid-template-columns: 260px 1fr; 
  min-height: 100vh; 
  background: var(--bg-dark); 
}
.app-shell.collapsed { 
  grid-template-columns: 76px 1fr; 
}

.sidebar-nav { 
  background: var(--bg-medium); 
  border-right: 1px solid var(--card-border); 
  padding: 1rem; 
  position: sticky; 
  top: 0; 
  height: 100vh; 
  overflow-y: auto; 
}
.sidebar-brand { 
  display: flex; 
  align-items: center; 
  gap: 0.6rem; 
  color: var(--text-bright); 
  font-weight: 800; 
  font-family: var(--font-mono); 
  font-size: 1.1rem; 
  padding: 0.5rem 0.6rem; 
  margin-bottom: 0.6rem; 
}
.sidebar-brand i { 
  color: var(--primary); 
}
.sidebar-section { 
  margin-top: 1rem; 
}
.sidebar-title { 
  color: var(--text-muted); 
  font-size: 0.78rem; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  padding: 0.4rem 0.6rem; 
}
.sidebar-list { 
  list-style: none; 
  margin: 0; 
  padding: 0.2rem; 
}
.sidebar-item { 
  margin: 0.2rem 0; 
}
.sidebar-link { 
  display: flex; 
  align-items: center; 
  gap: 0.7rem; 
  color: var(--text-primary); 
  text-decoration: none; 
  padding: 0.6rem 0.6rem; 
  border-radius: 8px; 
  transition: background var(--transition-fast), color var(--transition-fast); 
  font-weight: 600; 
}
.sidebar-link i { 
  width: 18px; 
  color: var(--text-secondary); 
}
.sidebar-link:hover, .sidebar-link:focus { 
  background: rgba(0,255,174,0.08); 
  color: var(--text-bright); 
}
.sidebar-link.active { 
  background: rgba(0,255,174,0.12); 
  color: var(--text-bright); 
  border: 1px solid rgba(0,255,174,0.25); 
}

.main-panel { 
  display: grid; 
  grid-template-rows: auto 1fr; 
  min-height: 100vh; 
}
.topbar { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: var(--bg-medium); 
  border-bottom: 1px solid var(--card-border); 
  padding: 0.7rem 1rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  box-shadow: var(--shadow-sm); 
}
.topbar-left { 
  display: flex; 
  align-items: center; 
  gap: 0.8rem; 
}
.topbar-title { 
  color: var(--text-bright); 
  font-weight: 700; 
  letter-spacing: 0.02em; 
}
.topbar-actions { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
}
.icon-btn { 
  background: transparent; 
  border: 1px solid var(--card-border); 
  color: var(--text-secondary); 
  padding: 0.45rem 0.6rem; 
  border-radius: 8px; 
  cursor: pointer; 
  transition: all var(--transition-fast); 
  display: inline-flex; 
  align-items: center; 
  gap: 0.4rem; 
}
.icon-btn:hover, .icon-btn:focus { 
  border-color: var(--primary); 
  color: var(--text-bright); 
}

.content { 
  padding: 1.2rem; 
}

/* --- Neon Theme (matches index.php header vibe) --- */
.neon-topbar {
  background: rgba(10, 13, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 174, 0.3);
  box-shadow: 0 4px 24px rgba(0, 255, 174, 0.15);
}
.neon-sidebar {
  background: rgba(10, 13, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0, 255, 174, 0.3);
  box-shadow: 4px 0 24px rgba(0, 255, 174, 0.08);
}
.neon-brand { color: var(--primary); text-shadow: 0 0 12px rgba(0,255,174,0.5); }

/* --- Responsive Table Grid mode --- */
.table--grid { width: 100%; }
@media (max-width: 900px) {
  .table.table--grid thead { display: none; }
  .table.table--grid tbody { display: grid; gap: 1rem; }
  .table.table--grid tr { display: grid; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 0.9rem; box-shadow: var(--shadow-sm); }
  .table.table--grid td { border: none; padding: 0.35rem 0; display: grid; grid-template-columns: 140px 1fr; gap: 0.6rem; }
  .table.table--grid td::before { content: attr(data-label); color: var(--text-secondary); font-weight: 600; }
}

/* --- Dashboard Grid Layout --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 120px);
}

/* --- Tiles Grid for Dashboard Items --- */
.tiles-section {
  margin-top: 2rem;
}

.tiles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tiles-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--text-bright);
}

.btn-create {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-create:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tile-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tile-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.tile-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 100px;
}

.tile-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}

.tile-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tile-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tile-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tile-btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.tile-btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.tile-btn-delete {
  background: #ef4444;
  color: white;
}

.tile-btn-delete:hover {
  background: #dc2626;
}

/* --- Badge Styles --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
}

.badge-primary { 
  background: rgba(0,255,174,0.15); 
  color: var(--primary); 
  border: 1px solid rgba(0,255,174,0.25); 
}

.badge-accent { 
  background: rgba(0,240,255,0.15); 
  color: var(--accent); 
  border: 1px solid rgba(0,240,255,0.25); 
}

.badge-success { 
  background: rgba(34,197,94,0.15); 
  color: #22c55e; 
  border: 1px solid rgba(34,197,94,0.25); 
}

.badge-warning { 
  background: rgba(245,158,11,0.15); 
  color: #f59e0b; 
  border: 1px solid rgba(245,158,11,0.25); 
}

.badge-danger { 
  background: rgba(239,68,68,0.15); 
  color: #ef4444; 
  border: 1px solid rgba(239,68,68,0.25); 
}

/* --- Table Styles --- */
.table { 
  width: 100%; 
  border-collapse: collapse; 
  background: var(--card-bg); 
  border: 1px solid var(--card-border); 
  border-radius: 8px; 
  overflow: hidden; 
}
.table th, .table td { 
  padding: 0.9rem 1rem; 
  border-bottom: 1px solid var(--card-border); 
  text-align: left; 
}
.table thead th { 
  background: var(--bg-medium); 
  color: var(--text-secondary); 
  font-weight: 700; 
  letter-spacing: 0.3px; 
}
.table tbody tr:hover { 
  background: rgba(255,255,255,0.02); 
}
.table tfoot td { 
  background: var(--bg-medium); 
  color: var(--text-secondary); 
}

/* --- Notification Bar --- */
.notification-bar {
  background: linear-gradient(90deg, rgba(0, 255, 174, 0.1) 0%, rgba(0, 240, 255, 0.1) 100%);
  color: var(--text-bright);
  padding: 1em 2em;
  border-bottom: 2px solid var(--primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notification-msg {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.notification-msg button {
  margin-left: 0.8em;
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.notification-msg button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- Enhanced Responsive Design --- */
@media (max-width: 1100px) {
  .app-shell { 
    grid-template-columns: 76px 1fr; 
  } 
  .sidebar-title { 
    display:none; 
  } 
  .sidebar-link span { 
    display: none; 
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar { 
    padding: 0.6rem 0.6rem; 
  } 
  .content { 
    padding: 0.8rem; 
  }
  .tiles-grid {
    grid-template-columns: 1fr;
  }
  .tile-actions {
    flex-direction: column;
  }
}
