/* Base theme */
:root { --bg:#232323; --text:#e8e8e8; --muted:#b6b6b6; --line:rgba(255,255,255,.08); --accent-a:#00e5ff; --accent-b:#7259f5; --glow: rgba(114, 89, 245, 0.45); }
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Space Mono',monospace;min-height:100vh}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.brand-title, .logo a {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}


/* Shared app styles: header */

.app-header .brand-logo-img {
    width: 48px;
    height: 48px;
}

.app-header .logo a {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-header{grid-area:header;position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:64px;background:#1a1a1a;border-bottom:1px solid var(--line)}
.app-header .search-bar input{width:280px;max-width:40vw;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#0f0f0f;color:var(--text);font-family:'Space Mono',monospace}
.app-header .search-bar input::placeholder{color:var(--muted)}
.header-actions{display:flex;gap:8px}
.header-action-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;text-decoration:none;color:var(--muted);transition:background .18s ease, color .18s ease}
.header-action-btn:hover{background:rgba(255,255,255,.08);color:var(--text)}
.header-action-btn:active{transform:translateY(1px)}

/* Layout and Sidebar (shared) */
:root{--sidebar-w: 72px; --sidebar-w-expanded: 220px}
.app-layout{display:grid;grid-template-areas:"header header" "sidebar main";grid-template-columns:var(--sidebar-w) 1fr;grid-template-rows:auto 1fr;min-height:100vh;transition:grid-template-columns .22s ease}
body.sidebar-expanded{--sidebar-w: var(--sidebar-w-expanded)}

.app-sidebar{grid-area:sidebar;position:sticky;top:64px;height:calc(100vh - 64px);z-index:2;width:var(--sidebar-w);background:#1a1a1a;border-right:1px solid var(--line);padding:14px 0;transition:width .22s ease}
/* Ensure main sits below edge toggle */
.app-main{position:relative;z-index:1;padding:24px;background:linear-gradient(135deg,rgba(0,229,255,0.02),rgba(114,89,245,0.02));min-height:calc(100vh - 64px)}
.sidebar-content{padding:0 12px;position:relative;height:100%;display:flex;flex-direction:column}
.sidebar-nav{flex-grow:1;overflow-y:auto;overflow-x:hidden;}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:8px 0 16px;border-bottom:1px solid var(--line);margin-bottom:16px}

/* Sidebar Logo */
.sidebar-logo{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.logo-image{
  width:48px;
  height:48px;
  flex-shrink:0;
}

.logo-text{
  font-weight:800;
  font-size:1.3rem;
  color:var(--text);
  white-space:nowrap;
  transition:opacity .18s ease, width .18s ease;
  background:linear-gradient(135deg,var(--accent-a),var(--accent-b));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* In compact mode: hide logo text and center logo */
body:not(.sidebar-expanded) .logo-text{
  opacity:0;
  width:0;
  overflow:hidden;
}

body:not(.sidebar-expanded) .sidebar-logo{
  justify-content:center;
  width:100%;
}

body:not(.sidebar-expanded) .sidebar-top{
  justify-content:center;
}

/* Hide toggle button in compact mode */
body:not(.sidebar-expanded) .sidebar-toggle{
  display:none;
}

.sidebar-toggle{display:none}
.sidebar-toggle i,.sidebar-toggle svg{width:16px;height:16px}
.sidebar-toggle .icon-expand{display:none}
body.sidebar-collapsed .sidebar-toggle .icon-collapse{display:none}
body.sidebar-collapsed .sidebar-toggle .icon-expand{display:inline-block}

.nav-section-title{position:relative;color:var(--muted);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin:18px 0 8px;padding:0 10px 6px 10px;display:block;min-height:22px;line-height:22px;transition:color .18s ease, opacity .18s ease}
.nav-section-title::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:1px;background:var(--line);opacity:1;transition:opacity .18s ease}
/* In compact mode keep the same vertical space but hide visuals */
body:not(.sidebar-expanded) .nav-section-title{color:transparent;opacity:0}
body:not(.sidebar-expanded) .nav-section-title::after{opacity:0}
.nav-list{list-style:none;padding:0;margin:0 0 20px}
.nav-item{position:relative;display:grid;grid-template-columns:24px 1fr;align-items:center;column-gap:10px;padding:8px 10px;border-radius:10px;text-decoration:none;color:var(--muted);transition:background .18s ease,color .18s ease, box-shadow .18s ease; margin-bottom:2px;white-space:nowrap;font-size:.9rem;min-height:40px}
.nav-item .nav-icon{width:20px;height:20px;color:currentColor;transition:color .18s ease, filter .18s ease, transform .18s ease, width .18s ease, height .18s ease}
body.sidebar-expanded .nav-item .nav-icon{width:17px;height:17px}
/* Active indicator only in expanded mode; refined style (thinner, softer glow) */
body.sidebar-expanded .nav-item::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:2px;
  height:40%;
  border-radius:6px;
  background:linear-gradient(180deg,var(--accent-a),var(--accent-b));
  opacity:0;
  box-shadow:0 0 8px rgba(114,89,245,.28), 0 0 6px rgba(0,229,255,.22);
  transition:opacity .18s ease, filter .18s ease;
}
.nav-item:hover{color:var(--text);background:rgba(255,255,255,.06)}
.nav-item:hover .nav-icon{color:var(--text)}
.nav-item.active{background:transparent;color:var(--text);box-shadow:none}
.sidebar-expanded .nav-item.active{
  background:rgba(255,255,255,.06);
  border-left:3px solid var(--accent-a);
  border-radius:0 8px 8px 0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  transition:all .2s ease;
}
.sidebar-expanded .nav-item.active:hover{
  background:rgba(255,255,255,.08);
  border-left-color:var(--accent-b);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.nav-item.active span{color:var(--accent-a);text-shadow:0 0 6px rgba(0,229,255,.45)}
/* Compact: emphasize icon glow; Expanded: also show side indicator */
.nav-item.active .nav-icon{color:var(--accent-a);filter:drop-shadow(0 0 6px rgba(0,229,255,.48)) drop-shadow(0 0 10px rgba(114,89,245,.38))}
.nav-item:focus-visible{outline:2px solid rgba(0,229,255,.5);outline-offset:2px}
.nav-item span{transition:opacity .18s ease, width .18s ease;opacity:0;width:0;overflow:hidden}
body.sidebar-expanded .nav-item span{opacity:1;width:auto}
.nav-item::after{content:"";position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);background:rgba(17,17,17,.96);border:1px solid var(--line);color:var(--text);padding:8px 10px;border-radius:10px;white-space:nowrap;box-shadow:0 10px 24px rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:20}
.nav-item:hover::after{content:attr(title);opacity:1}
body.sidebar-expanded .nav-item:hover::after{opacity:0}

/* Sidebar Upgrade Section */
.sidebar-upgrade {
  margin: 16px 0;
  padding: 0 2px;
}

.upgrade-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(114, 89, 245, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  transition: all 0.2s ease;
  margin: 16px 0;
}

.upgrade-card:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(114, 89, 245, 0.15));
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.15);
}

.upgrade-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}

.upgrade-icon svg {
  width: 22px;
  height: 22px;
  color: #0f0f0f;
}

.upgrade-content h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.3px;
}

.upgrade-content p {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  font-family: 'Space Mono', monospace;
}

.upgrade-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #0f0f0f;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

/* Hide upgrade section when sidebar is collapsed */
body:not(.sidebar-expanded) .sidebar-upgrade {
  display: none;
}

/* Sidebar User */
.sidebar-user{
  position:relative;
  margin-top:auto;
  padding:12px;
  border-top:1px solid var(--line);
}

.sidebar-user-trigger{
  width:100%;
  display:grid;
  grid-template-columns:32px 1fr 16px;
  align-items:center;
  gap:10px;
  padding:8px;
  border:none;
  border-radius:8px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  transition:background .18s ease;
}

.sidebar-user-trigger:hover{
  background:rgba(255,255,255,.06);
}

.sidebar-user-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent-a),var(--accent-b));
  color:#0f0f0f;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:.9rem;
}

.sidebar-user-info{
  min-width:0;
  text-align:left;
}

.sidebar-user-name{
  font-weight:600;
  font-size:.9rem;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-user-email{
  font-size:.75rem;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-user-chevron{
  width:16px;
  height:16px;
  color:var(--muted);
  transition:transform .18s ease, color .18s ease;
}

.sidebar-user.open .sidebar-user-chevron{
  transform:rotate(180deg);
  color:var(--text);
}

/* Compact mode: hide text and chevron, show only avatar */
body:not(.sidebar-expanded) .sidebar-user-trigger{
  grid-template-columns:32px;
  justify-content:center;
  padding:8px;
}

body:not(.sidebar-expanded) .sidebar-user-trigger .sidebar-user-info,
body:not(.sidebar-expanded) .sidebar-user-trigger .sidebar-user-chevron{
  display:none;
}


/* User Dropdown - always positioned to the right */
.sidebar-user-dropdown{
  position:absolute;
  left:calc(100% + 10px);
  right:auto;
  bottom:0;
  width:240px;
  background:#111;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 16px 32px rgba(0,0,0,.4);
  padding:8px;
  opacity:0;
  transform:translateX(-8px) scale(.96);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  backdrop-filter:blur(8px);
  z-index:200;
}

.sidebar-user.open .sidebar-user-dropdown{
  opacity:1;
  transform:translateX(0) scale(1);
  pointer-events:auto;
}

/* Support page styles */
.support-container{padding:24px;max-width:1100px;margin:0 auto}
.support-hero{background:#1a1a1a;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:24px}
.support-hero h1{margin:0 0 8px;color:var(--text)}
.support-hero p{margin:0 0 16px;color:var(--muted)}
.support-search{display:flex;gap:10px}
.support-search input{flex:1;padding:12px;border:1px solid var(--line);border-radius:8px;background:#0f0f0f;color:var(--text)}
.support-search button{padding:12px 16px;border:none;border-radius:8px;background:linear-gradient(135deg,var(--accent-a),var(--accent-b));color:#0f0f0f;font-weight:700;cursor:pointer}
.support-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}
.support-card{background:#1a1a1a;border:1px solid var(--line);border-radius:12px;padding:16px;transition:background .18s ease}
.support-card:hover{background:rgba(255,255,255,.06)}
.support-card h3{margin:8px 0;color:var(--text);font-size:1rem}
.support-card p{margin:0;color:var(--muted);font-size:.9rem}
.faq{background:#1a1a1a;border:1px solid var(--line);border-radius:12px;padding:16px;margin:24px 0}
.faq h2{margin:0 0 12px;color:var(--text)}
.faq details{background:#0f0f0f;border:1px solid var(--line);border-radius:8px;margin-bottom:10px}
.faq summary{cursor:pointer;padding:12px;color:var(--text)}
.faq .answer{padding:0 12px 12px;color:var(--muted)}
.support-form{background:#1a1a1a;border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:24px}
.support-form h2{margin:0 0 12px;color:var(--text)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-row .full{grid-column:1/-1}
.support-form input,.support-form textarea,.support-form select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:#0f0f0f;color:var(--text)}
.support-form textarea{min-height:120px;resize:vertical}
.support-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
@media (max-width:980px){.support-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.support-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}}

.sidebar-user-dropdown-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border-bottom:1px solid var(--line);
  margin-bottom:8px;
}

.sidebar-user-dropdown-header .sidebar-user-avatar{
  width:28px;
  height:28px;
  font-size:.8rem;
}

.sidebar-user-dropdown-header .sidebar-user-name{
  font-size:.9rem;
}

.sidebar-user-dropdown-header .sidebar-user-email{
  font-size:.75rem;
}

.sidebar-user-dropdown-body{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.user-menu-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:8px;
  color:var(--text);
  text-decoration:none;
  transition:background .18s ease, color .18s ease;
  font-size:.9rem;
}

.user-menu-item:hover{
  background:rgba(255,255,255,.08);
}

.user-menu-item.danger{
  color:#ff6b6b;
}

.user-menu-item.danger:hover{
  background:rgba(255,107,107,.1);
}

.user-menu-icon{
  width:16px;
  height:16px;
  color:currentColor;
}

.user-menu-divider{
  height:1px;
  background:var(--line);
  margin:4px 0;
}

/* Edge toggle (between sidebar and main) */
.sidebar-edge-toggle{position:absolute;top:7%;right:-12px;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent-a),var(--accent-b));border:1px solid rgba(255,255,255,.16);color:#0f0f0f;cursor:pointer;z-index:100;box-shadow:0 10px 24px rgba(0,0,0,.35), 0 6px 14px rgba(114,89,245,.28);transition:transform .15s ease, filter .15s ease, box-shadow .15s ease;backdrop-filter:blur(6px);justify-content: center;}
.sidebar-edge-toggle:hover{filter:brightness(1.07);transform:translateY(-50%) scale(1.04)}
.sidebar-edge-toggle:focus-visible{outline:2px solid rgba(0,229,255,.6);outline-offset:2px}
.sidebar-edge-toggle svg{width:16px;height:16px}
.sidebar-edge-toggle .icon-expand{display:inline}
.sidebar-edge-toggle .icon-collapse{display:none}
body.sidebar-expanded .sidebar-edge-toggle .icon-collapse{display:inline}
body.sidebar-expanded .sidebar-edge-toggle .icon-expand{display:none}

/* Changelog Styles */
.changelog-container {
  width: 100%;
  padding: 0 40px;
}

.changelog-header {
  text-align: left;
  margin-bottom: 40px;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.changelog-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(114, 89, 245, 0.15) 0%, rgba(0, 229, 255, 0.1) 50%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.changelog-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

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

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.changelog-entry {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(5px);
}

.changelog-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.changelog-entry:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.changelog-entry:hover::before {
  opacity: 1;
}

.changelog-entry.major-release {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.changelog-entry.major-release::before {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.5;
}

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

.version-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(114, 89, 245, 0.3);
  position: relative;
  overflow: hidden;
}

.version-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.version-badge.feature {
  background: linear-gradient(135deg, #10b981, #059669);
}

.version-badge.improvement {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.version-badge.bugfix {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.version-badge.security {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.major-badge {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.release-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.changelog-content {
  margin-bottom: 16px;
}

.changelog-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.changelog-title i {
  color: var(--accent-a);
  font-size: 1.2rem;
}

.changelog-description {
  font-family: 'Space Mono', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Changelog Stats */
.changelog-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card.major {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card.major::before {
  opacity: 0.3;
}

.stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Changelog Filters */
.changelog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 30px;
  padding: 0;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 20px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn i {
  font-size: 0.9rem;
}

/* Changelog Entry Updates */
.changelog-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.version-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.major-indicator {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: pulse 2s infinite;
}

.release-date {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.changelog-content {
  position: relative;
}

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

.changelog-title h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.changelog-description {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Animation for filtering */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive design for new elements */
@media (max-width: 768px) {
  .changelog-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }
  
  .stat-card {
    padding: 20px 16px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .changelog-filters {
    padding: 0 16px;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .changelog-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .changelog-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.type-badge.type-feature {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.type-badge.type-improvement {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.type-badge.type-bugfix {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.type-badge.type-security {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Minimalist decorative elements */
.changelog-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.005) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.005) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.floating-particles {
  display: none; /* Remove particles for minimalism */
}

/* Subtle grid pattern */
.app-main::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* Minimal accent lines */
.accent-line {
  position: relative;
  margin: 40px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
  opacity: 0.6;
}

.accent-line::before {
  display: none; /* Remove glow effect */
}

/* Sidebar removed for minimalism */
.changelog-sidebar {
  display: none;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4rem;
  color: var(--accent-a);
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.empty-state p {
  font-family: 'Space Mono', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive design for changelog */
@media (max-width: 768px) {
  .changelog-container {
    padding: 0 16px;
  }
  
  .changelog-entry {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .version-info {
    width: 100%;
  }
  
  .changelog-title {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .changelog-title i {
    align-self: flex-start;
  }
}

/* Header hamburger (mobile) */
.hamburger{display:none;margin-left:8px;width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);cursor:pointer;place-items:center}
.hamburger svg{width:18px;height:18px}

/* Mobile drawer styles */
@media (max-width: 768px) {
  .hamburger{display:grid}
  .app-layout{grid-template-columns:1fr}
  .app-sidebar{position:fixed;left:0;top:70px;height:calc(100vh - 70px);max-width:320px;width:82vw;border-right:1px solid var(--line);transform:translateX(-105%);transition:transform .22s ease, width .22s ease}
  body.drawer-open .app-sidebar{transform:translateX(0)}
  .sidebar-edge-toggle{display:none}
  .drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:150}
body.drawer-open .drawer-overlay{opacity:1;pointer-events:auto}
}

/* Support UI polish overrides */
.support-hero{position:relative;overflow:hidden}
.support-hero::after{content:"";position:absolute;right:-80px;top:-80px;width:240px;height:240px;background:radial-gradient(closest-side,var(--glow),transparent 70%);filter:blur(20px);opacity:.6}
.support-search{align-items:center}
.support-search .input-wrap{position:relative;flex:1}
.support-search .input-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted)}
.support-search input{padding-left:40px;border-radius:10px;box-shadow:0 8px 20px rgba(0,0,0,.25);transition:border-color .18s ease, box-shadow .18s ease, transform .12s ease}
.support-search input:focus{outline:none;border-color:rgba(255,255,255,.22);box-shadow:0 10px 24px rgba(114,89,245,.24);transform:translateY(-1px)}
.support-search button{border-radius:10px;box-shadow:0 8px 20px rgba(114,89,245,.25);transition:transform .12s ease, filter .12s ease}
.support-search button:hover{transform:translateY(-1px);filter:brightness(1.06)}
.support-card{box-shadow:0 10px 24px rgba(0,0,0,.25);backdrop-filter:blur(6px);display:flex;flex-direction:column;gap:8px}
.support-card .icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#0f0f0f;background:linear-gradient(135deg,var(--accent-a),var(--accent-b));box-shadow:0 8px 16px rgba(114,89,245,.25)}
.support-card:hover{transform:translateY(-2px)}
.faq summary{display:flex;align-items:center;gap:8px}
.faq summary .chevron{margin-left:auto;width:16px;height:16px;color:var(--muted);transition:transform .18s ease, color .18s ease}
.faq details[open] summary .chevron{transform:rotate(180deg);color:var(--text)}
.support-form{box-shadow:0 10px 24px rgba(0,0,0,.25)}
.support-form input,.support-form textarea,.support-form select{border-radius:10px;transition:border-color .18s ease, box-shadow .18s ease}
.support-form input:focus,.support-form textarea:focus,.support-form select:focus{outline:none;border-color:rgba(255,255,255,.22);box-shadow:0 10px 24px rgba(114,89,245,.18)}
.alert{border-radius:10px;padding:12px;border:1px solid var(--line);margin:10px 0}
.alert-error{background:rgba(255,107,107,.12);color:#ff8b8b}
.alert-success{background:rgba(0,229,255,.12);color:var(--text)}

/* Timeline Styles for Changelog */
.timeline-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.timeline-sidebar {
  position: sticky;
  top: 100px;
  width: 200px;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-line {
  position: relative;
  padding-left: 30px;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent-a);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-a);
  z-index: 2;
}

.timeline-item.major::before {
  width: 16px;
  height: 16px;
  left: -8px;
  background: var(--accent-b);
  box-shadow: 0 0 0 3px var(--accent-b), 0 0 20px rgba(114, 89, 245, 0.4);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-version {
  font-size: 0.9rem;
  color: var(--accent-a);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

/* Enhanced year sections */
.year-section {
  margin-bottom: 60px;
}

.year-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.year-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.year-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Enhanced changelog grid */
.changelog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Enhanced changelog entry */
.changelog-entry {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.changelog-entry:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.version-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  width: fit-content;
}

.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.entry-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.type-badge {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type-feature {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-a);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.type-fix {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.type-improvement {
  background: rgba(114, 89, 245, 0.15);
  color: var(--accent-b);
  border: 1px solid rgba(114, 89, 245, 0.3);
}

.type-security {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.entry-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.major-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent-b), #9c27b0);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(114, 89, 245, 0.3);
}

/* Responsive design for timeline */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .timeline-sidebar {
    position: static;
    width: 100%;
  }
  
  .entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

