:root {
  --bg-color: #e3f2fd;
  --ui-bg-color: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.9);
  --accent-color: #0081ff;
  --secondary-text: #2c5282;
  --text-color: #1a365d;
  --card-bg: rgba(255, 255, 255, 0.5);
  --card-hover: rgba(255, 255, 255, 0.8);
  --input-bg: rgba(255, 255, 255, 0.9);
  --radius-standard: 18px;
  --radius-pill: 35px;
  --glass-blur: blur(12px);
  --shadow-color: rgba(0, 129, 255, 0.25);
  --titlebar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  --toolbar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
  --sidebar-bg: linear-gradient(180deg, rgba(0, 129, 255, 0.4), rgba(0, 80, 200, 0.4));
  --tab-active-bg: white;
  --tab-inactive-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
}

[data-theme="candy"] {
  --bg-color: #FFF0F5;
  --ui-bg-color: #E0F7FA;
  --border-color: #FFB3D1;
  --accent-color: #9C27B0;
  --secondary-text: #5C6BC0;
  --text-color: #E91E63;
  --card-bg: #FFFFFF;
  --card-hover: #FFF9C4;
  --input-bg: #FFFFFF;
  --radius-standard: 24px;
  --radius-pill: 40px;
  --shadow-color: rgba(233, 30, 99, 0.15);
  --titlebar-bg: linear-gradient(180deg, #FFB3D1, #FFF0F5);
  --toolbar-bg: linear-gradient(180deg, #E0F7FA, #B2EBF2);
  --sidebar-bg: linear-gradient(180deg, rgba(255, 179, 209, 0.6), rgba(156, 39, 176, 0.4));
  --tab-active-bg: #FFF;
  --tab-inactive-bg: rgba(255, 255, 255, 0.5);
}

[data-theme="night"] {
  --bg-color: #0d1117;
  --ui-bg-color: rgba(22, 27, 34, 0.85);
  --border-color: #30363d;
  --accent-color: #58a6ff;
  --secondary-text: #8b949e;
  --text-color: #c9d1d9;
  --card-bg: #161b22;
  --card-hover: #21262d;
  --input-bg: #0d1117;
  --radius-standard: 12px;
  --radius-pill: 20px;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --titlebar-bg: #161b22;
  --toolbar-bg: #21262d;
  --sidebar-bg: linear-gradient(180deg, rgba(48, 54, 61, 0.8), rgba(13, 17, 23, 0.8));
  --tab-active-bg: #30363d;
  --tab-inactive-bg: #161b22;
}

[data-theme="retro"] {
  --bg-color: #008080;
  --ui-bg-color: #c0c0c0;
  --border-color: #808080;
  --accent-color: #000080;
  --secondary-text: #444;
  --text-color: #000;
  --card-bg: #d4d0c8;
  --card-hover: #ffffff;
  --input-bg: #ffffff;
  --radius-standard: 0px;
  --radius-pill: 0px;
  --glass-blur: none;
  --shadow-color: rgba(0,0,0,0.8);
  --titlebar-bg: linear-gradient(90deg, #000080, #1084d0);
  --toolbar-bg: #c0c0c0;
  --sidebar-bg: #c0c0c0;
  --tab-active-bg: #c0c0c0;
  --tab-inactive-bg: #d4d0c8;
}

[data-theme="cyber"] {
  --bg-color: #050505;
  --ui-bg-color: rgba(10, 10, 10, 0.9);
  --border-color: #ff007f;
  --accent-color: #00ffcc;
  --secondary-text: #ff007f;
  --text-color: #00ffcc;
  --card-bg: #000000;
  --card-hover: #1a1a1a;
  --input-bg: #000000;
  --radius-standard: 4px;
  --radius-pill: 4px;
  --shadow-color: rgba(255, 0, 127, 0.4);
  --titlebar-bg: #000;
  --toolbar-bg: rgba(20, 20, 20, 0.8);
  --sidebar-bg: linear-gradient(180deg, rgba(255, 0, 127, 0.2), rgba(0, 255, 204, 0.1));
  --tab-active-bg: #1a1a1a;
  --tab-inactive-bg: #000;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('frutiger_aero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background-image 0.5s ease, background-color 0.3s ease, color 0.3s ease;
  color: var(--text-color);
  margin: 0;
}

body[data-theme="night"] { background-image: url('night_bg.png'); }
body[data-theme="retro"] { background-image: url('retro_bg.png'); }
body[data-theme="cyber"] { background-image: url('cyber_bg.png'); }

.browser {
  width: 95vw;
  height: 95vh;
  background-color: var(--ui-bg-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-standard);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 80, 200, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

[data-theme="candy"] .browser {
  background-image: url('asset_name.png');
  background-size: 300px;
  background-blend-mode: soft-light;
}

[data-theme="retro"] .browser {
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: none;
}

[data-theme="retro"] .titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  height: 25px;
}

[data-theme="retro"] .title {
  color: white;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 14px;
  font-style: normal;
  text-shadow: none;
}

[data-theme="cyber"] .browser {
  border: 1px solid #ff007f;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.browser-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 60px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
  z-index: 20;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar-top, .sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.credits-sidebar-btn {
  flex-direction: column !important;
  padding: 5px !important;
  cursor: default !important;
  margin-bottom: 5px;
}

.credits-count-display {
  font-size: 11px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.side-nav-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--accent-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-theme="retro"] .side-nav-btn {
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #c0c0c0;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="retro"] .side-nav-btn:active, [data-theme="retro"] .side-nav-btn.active {
  border-color: #808080 #ffffff #ffffff #808080;
  background: #d4d0c8;
}

[data-theme="cyber"] .side-nav-btn {
  border: 1px solid #00ffcc;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.side-nav-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 129, 255, 0.2);
}

.side-nav-btn.active {
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 129, 255, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}

[data-theme="candy"] .side-nav-btn.active {
  background: linear-gradient(180deg, #FFB3D1 0%, #E91E63 100%);
}

[data-theme="night"] .side-nav-btn.active {
  background: linear-gradient(180deg, #30363d 0%, #58a6ff 100%);
}

[data-theme="cyber"] .side-nav-btn.active {
  background: #ff007f;
  color: #000;
  box-shadow: 0 0 15px #ff007f;
}

.side-nav-btn.active .material-icons {
  color: var(--bg-color);
}

.side-nav-btn .material-icons,
.new-tab .material-icons,
.tab .material-icons {
  color: inherit;
}

.settings-sidebar {
  width: 320px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(200, 230, 255, 0.7) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 0;
  left: 60px;
  bottom: 0;
  z-index: 15;
  box-shadow: 15px 0 35px rgba(0, 80, 200, 0.15), inset -1px 0 0 rgba(255,255,255,0.4);
}

.settings-sidebar.open {
  transform: translateX(0);
}

.settings-sidebar-header {
  padding: 25px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  border-bottom: 1px solid rgba(0, 129, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-color);
}

.settings-sidebar-header h3 {
  font-family: 'Righteous', cursive;
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 129, 255, 0.1);
}

.close-settings-sidebar {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
}

.close-settings-sidebar:hover {
  background-color: var(--border-color);
}

.settings-sidebar-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.browser-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-color);
}

.titlebar {
  height: 45px;
  background: var(--titlebar-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  -webkit-app-region: drag;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-gif {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.logo svg {
  display: none;
}

.title {
  font-family: 'Righteous', cursive;
  color: var(--accent-color);
  font-size: 22px;
  font-style: italic;
  text-shadow: 0 0 10px rgba(255, 165, 89, 0.3);
}

.controls {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  -webkit-app-region: no-drag;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background-color: var(--border-color);
  transform: scale(1.1);
}

.close:hover {
  background-color: #e81123;
}

.toolbar {
  height: 55px;
  background: var(--toolbar-bg);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: var(--border-color);
  transform: scale(1.1);
}

.address-bar {
  flex: 1;
  background: white;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
  border: 1px solid rgba(0, 129, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.address-bar:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 165, 89, 0.1);
}

.address-bar .material-icons {
  color: var(--accent-color);
  font-size: 18px;
}

#urlInput {
  flex: 1;
  background: none;
  border: none;
  color: var(--accent-color);
  padding: 12px 0;
  font-size: 14px;
  outline: none;
}

.browser-content {
  position: relative;
  flex: 1;
  background-color: var(--bg-color);
  margin-top: 0;
}

.site-banner {
  width: 100%;
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
  color: white;
  padding: 10px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  animation: bannerSlideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-size: 14px;
}

.site-banner.info { background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%); }
.site-banner.alert { background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%); }
.site-banner.event { background: linear-gradient(90deg, #8e2de2 0%, #4a00e0 100%); }
.site-banner.official { background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%); }

.banner-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.banner-link {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.2s ease;
  cursor: pointer;
}

.banner-link:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.05);
}

.banner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-btn-icon {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.banner-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

.banner-btn {
  padding: 10px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-standard);
  color: var(--accent-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner-btn:hover {
  background-color: #3d3d3d;
}

.banner-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.banner-dialog-content {
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
}

.banner-dialog h2 {
  color: #FFA559;
  margin-bottom: 20px;
}

.banner-input {
  width: 100%;
  height: 100px;
  padding: 12px;
  background: #1f1f1f;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  color: #fff;
  resize: none;
  margin-bottom: 20px;
}

.banner-dialog-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.banner-dialog button {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-cancel {
  background: none;
  border: 1px solid #3d3d3d;
  color: #888;
}

.banner-save {
  background: #FFA559;
  border: none;
  color: #2B1810;
}

.banner-cancel:hover {
  background: #3d3d3d;
  color: #fff;
}

.banner-save:hover {
  filter: brightness(1.1);
}

@keyframes bannerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-banner + .titlebar {
  margin-top: 0;
}

.homepage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  gap: 20px;
  padding-bottom: 80px; /* Space for upload section */
  background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
}

.logo-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  animation: float 4s ease-in-out infinite;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 129, 255, 0.3), inset 0 0 15px rgba(255,255,255,0.5);
}

.homepage .logo-large {
  content: url("MeowlNetworkLogo.webp");
}

.logo-text {
  font-family: 'Righteous', cursive;
  font-size: 56px;
  font-style: italic;
  background: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
  letter-spacing: -1px;
}

.subtitle {
  font-size: 22px;
  color: var(--secondary-text);
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.material-icons {
  color: var(--accent-color);
}

.search-container {
  margin-top: 30px;
  width: 80%;
  max-width: 650px;
  position: relative;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px rgba(0, 80, 200, 0.15);
  overflow: hidden;
}

.search-input {
  width: 100%;
  padding: 18px 25px 18px 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  color: var(--text-color);
  font-size: 18px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  z-index: 2;
  font-size: 28px;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 129, 255, 0.2);
}

.site-list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}

.upload-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -15px 40px rgba(0, 80, 200, 0.1);
  z-index: 5;
}

.upload-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.url-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-standard);
  padding: 0 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.url-prefix, .url-suffix {
  color: var(--secondary-text);
  font-size: 14px;
  padding: 0 5px;
  font-weight: 500;
}

.url-input {
  width: 150px;
  padding: 10px 5px;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  font-size: 14px;
  outline: none;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 10px;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.custom-file-btn, .additional-files-btn {
  padding: 10px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-standard);
  color: var(--accent-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-file-btn:hover, .additional-files-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 129, 255, 0.15);
}

.additional-files-btn {
  font-size: 0.9em;
  color: #888;
  position: relative;
}

.additional-files-btn.has-files {
  background-color: #2d2d2d;
  color: #fff;
  border-color: #4d4d4d;
}

.additional-files-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.files-preview {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  padding: 10px;
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.files-preview.show {
  display: block;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
}

.file-item:hover {
  background: #3d3d3d;
}

.file-item .material-icons {
  font-size: 18px;
}

.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-file {
  color: #ff4444;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.remove-file:hover {
  opacity: 1;
}

.publish-btn {
  padding: 10px 25px;
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 4px 10px rgba(0, 129, 255, 0.3);
}

.publish-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 129, 255, 0.4);
}

.clear-files {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.clear-files:hover {
  opacity: 1;
}

.error-message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4444;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  animation: slideUp 0.3s ease-out;
  z-index: 9999;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.no-results {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

.search-results {
  display: none;
}

.tabs {
  display: flex;
  background: var(--tab-inactive-bg);
  padding: 0 10px;
  border-bottom: 1px solid var(--border-color);
  height: 45px;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(5px);
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  min-width: 180px;
  max-width: 200px;
  height: 35px;
  margin-top: 5px;
  background: var(--tab-inactive-bg);
  border-radius: var(--radius-standard) var(--radius-standard) 0 0;
  color: var(--accent-color);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border-color);
  border-bottom: none;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--tab-active-bg);
  color: var(--accent-color);
  box-shadow: 0 -2px 10px var(--shadow-color);
}

.tab-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.tab-icon {
  font-size: 18px;
  color: var(--accent-color);
}

.theme-icon {
  color: var(--accent-color) !important;
}

[data-theme="retro"] .theme-icon {
  color: #000 !important;
}

[data-theme="cyber"] .theme-icon {
  color: var(--accent-color) !important;
}

.close-tab {
  opacity: 0.5;
  transition: all 0.2s ease;
  border-radius: 50%;
  padding: 2px;
}

.close-tab:hover {
  opacity: 1;
  background-color: #444;
}

.new-tab {
  min-width: 40px;
  width: 40px;
  justify-content: center;
  padding: 0;
}

.new-tab .material-icons {
  color: var(--accent-color);
}

.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: var(--bg-color);
}

.tab-content.active {
  display: block;
}

.search-results-page {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  background: transparent;
}

.search-results-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.site-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(200, 230, 255, 0.6) 100%);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 80, 200, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.site-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 240, 255, 0.8) 100%);
  border-color: var(--accent-color);
  box-shadow: 0 15px 45px rgba(0, 129, 255, 0.25);
}

.site-item .material-icons {
  font-size: 24px;
  color: var(--accent-color);
}

.private-site {
  border-left: 4px solid #ff4444 !important;
}

.private-site::before {
  content: 'PRIVATE';
  position: absolute;
  top: 10px;
  right: -25px;
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 30px;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.site-preview {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #f0f7ff 0%, #c9e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.gloss-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.site-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.site-info {
  padding: 15px;
  flex: 1;
}

.site-name {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 4px;
  font-weight: 700;
  font-family: 'Righteous', cursive;
  letter-spacing: 0.2px;
}

.site-url {
  color: #666;
  font-size: 14px;
}

.site-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #888;
  font-size: 13px;
}

.creator-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #3d3d3d;
}

.site-container {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: white;
  position: relative;
}

.help-btn {
  padding: 8px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.help-btn:hover {
  background-color: #2d2d2d;
  color: #fff;
}

.tutorial-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.tutorial-title {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutorial-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.tutorial-close:hover {
  background: #3d3d3d;
  color: #fff;
}

.tutorial-section {
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.3);
  padding: 15px;
  border-radius: var(--radius-standard);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 80, 200, 0.05);
}

.tutorial-section h3 {
  color: var(--accent-color);
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-section p {
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 10px;
}

.tutorial-section ul {
  list-style-type: none;
  padding-left: 20px;
}

.tutorial-section li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.tutorial-section li:before {
  content: "•";
  color: #4CAF50;
  position: absolute;
  left: 0;
}

.highlight {
  color: #4CAF50;
  font-weight: bold;
}

.floppa-swal-popup {
  border: 3px solid var(--border-color) !important;
  border-radius: var(--radius-standard) !important;
  font-family: 'Segoe UI', sans-serif;
}

.floppa-swal-title {
  font-family: 'Righteous', cursive !important;
  color: var(--accent-color) !important;
}

.floppa-swal-content {
  color: var(--text-color) !important;
}

.swal2-input, .swal2-textarea {
  background: rgba(0,0,0,0.2) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--border-color) !important;
}

.swal2-input:focus, .swal2-textarea:focus {
  border-color: var(--accent-color) !important;
  box-shadow: none !important;
}



.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.discover-header {
  text-align: center;
  padding: 50px 20px 30px;
  color: var(--text-color);
}

.discover-title {
  font-size: 42px;
  margin-bottom: 12px;
  font-family: 'Righteous', cursive;
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 129, 255, 0.2);
}

.discover-subtitle {
  color: var(--secondary-text);
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
}

.discover-search-container {
  margin: 30px auto;
  width: 100%;
  max-width: 600px;
  position: relative;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 80, 200, 0.1);
}

.search-bar-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.delete-site-btn {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.delete-site-btn:hover {
  background-color: rgba(255, 68, 68, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.delete-site-btn .material-icons {
  color: #ff4444;
}

.report-site-btn {
  background: none;
  border: none;
  color: #ff9800;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.report-site-btn:hover {
  background-color: rgba(255, 152, 0, 0.1);
  transform: scale(1.1);
}

.vote-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 129, 255, 0.1);
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 8px;
}

.vote-btn:hover {
  background: rgba(0,0,0,0.05);
}

.vote-btn.active.like {
  color: #4CAF50;
}

.vote-btn.active.dislike {
  color: #f44336;
}

.vote-btn .material-icons {
  font-size: 18px;
  color: inherit;
}

.view-reports-btn {
  background: var(--ui-bg-color);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.view-reports-btn:hover {
  background: var(--accent-color);
  color: white;
}

.report-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
}

.bug-report-item {
  background: var(--card-bg);
  border: 1px solid #ff4444;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  backdrop-filter: blur(5px);
}

.bug-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.bug-report-title {
  font-weight: bold;
  color: #FFA559;
}

.bug-report-desc {
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.report-info {
  flex: 1;
}

.report-reason {
  color: #fff;
  margin: 5px 0;
}

.report-meta {
  font-size: 12px;
  color: #8B5E3C;
}

.chat-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.4) 0%, rgba(187, 222, 251, 0.4) 100%);
  color: var(--text-color);
  position: relative;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 85%;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-message.mine {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 129, 255, 0.2);
}

.chat-message-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 247, 255, 0.7) 100%);
  padding: 14px 18px;
  border-radius: 20px 20px 20px 4px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(0, 80, 200, 0.1);
  backdrop-filter: blur(10px);
}

.chat-message-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 19px 19px 0 0;
  pointer-events: none;
}

.chat-message.mine .chat-message-content {
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  border-radius: 20px 20px 4px 20px;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 129, 255, 0.3);
}

.chat-message.mine .chat-text, .chat-message.mine .chat-username {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-username {
  font-size: 12px;
  color: var(--accent-color);
  margin-bottom: 4px;
  font-weight: 800;
  font-family: 'Righteous', cursive;
  letter-spacing: 0.3px;
}

.chat-text {
  color: var(--text-color);
  line-height: 1.5;
  font-size: 14px;
}

.chat-time {
  font-size: 10px;
  color: var(--secondary-text);
  margin-top: 4px;
  opacity: 0.7;
}

.chat-msg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  min-height: 18px;
}

.chat-delete-btn {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.chat-delete-btn:hover {
  background: rgba(255, 68, 68, 0.1);
  opacity: 1;
}

.chat-delete-btn .material-icons {
  font-size: 16px;
  color: #ff4444;
}

.chat-input-container {
  padding: 20px 30px;
  display: flex;
  gap: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -10px 30px rgba(0, 80, 200, 0.05);
}

.chat-input {
  flex: 1;
  padding: 14px 25px;
  border-radius: 30px;
  border: 1px solid rgba(0, 129, 255, 0.2);
  background: white;
  color: var(--text-color);
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05), 0 2px 10px rgba(0, 129, 255, 0.05);
  font-size: 14px;
}

.chat-input:focus {
  border-color: var(--accent-color);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02), 0 5px 15px rgba(0, 129, 255, 0.15);
  transform: translateY(-1px);
}

.chat-send {
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 129, 255, 0.3);
}

.chat-send:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 18px rgba(0, 129, 255, 0.4);
}

.chat-send .material-icons {
  color: white;
  font-size: 20px;
}

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



@keyframes pinned-glow {
  0%, 100% { box-shadow: 0 12px 40px rgba(255, 165, 89, 0.2), 0 0 15px rgba(255, 165, 89, 0.1); }
  50% { box-shadow: 0 12px 40px rgba(255, 165, 89, 0.5), 0 0 25px rgba(255, 165, 89, 0.4); }
}

@keyframes shine-sweep {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .browser {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }

  .browser-layout {
    flex-direction: column-reverse;
  }

  .sidebar {
    width: 100%;
    height: 65px;
    flex-direction: row;
    padding: 0 10px;
    border-right: none;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(90deg, rgba(0, 129, 255, 0.6), rgba(0, 80, 200, 0.6));
    order: 2;
  }

  .sidebar-top, .sidebar-bottom {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .sidebar-top {
    flex: 1;
    justify-content: flex-start;
  }

  .sidebar-bottom {
    justify-content: flex-end;
  }

  .side-nav-btn {
    padding: 8px;
    border-radius: 10px;
  }

  .side-nav-btn .material-icons {
    font-size: 20px;
  }

  .credits-sidebar-btn {
    padding: 2px !important;
  }

  .credits-count-display {
    font-size: 10px;
  }

  .settings-sidebar {
    left: 0;
    width: 100%;
    z-index: 100;
    transform: translateY(100%);
  }

  .settings-sidebar.open {
    transform: translateY(0);
  }

  .browser-viewport {
    order: 1;
  }

  .logo-text {
    font-size: 32px;
  }

  .logo-large {
    width: 80px;
    height: 80px;
  }

  .homepage .subtitle {
    font-size: 14px;
    padding: 0 20px;
  }

  .search-container {
    width: 90%;
  }

  .upload-section {
    flex-direction: column;
    padding: 10px;
    bottom: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    gap: 8px;
  }

  .homepage {
    padding-bottom: 20px;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 40px;
  }

  .url-input-container {
    width: 100%;
  }

  .url-input {
    width: 100%;
  }

  .file-input-wrapper {
    width: 100%;
  }

  .custom-file-btn, .publish-btn, .additional-files-btn {
    width: 100%;
    justify-content: center;
  }

  .tabs {
    height: 40px;
  }

  .tab {
    min-width: 120px;
    height: 30px;
    font-size: 12px;
  }

  .site-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .discover-title {
    font-size: 28px;
  }

  .editor-container {
    flex-direction: row; /* Keep desktop row layout */
    height: 100%;
    overflow: hidden;
  }

  .editor-sidebar {
    width: 60px; /* Slimmer sidebar on mobile to save space */
    padding: 10px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .editor-sidebar h4, .editor-quick-tip {
    display: none !important; 
  }

  .file-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .file-list-item {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
    font-size: 0; /* Hide text, only show icons */
    flex-shrink: 0;
    transform: none !important;
  }

  .file-list-item .material-icons {
    margin: 0 !important;
    font-size: 24px !important;
  }
  
  .file-list-item:hover {
    transform: none !important;
  }

  .editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .editor-toolbar {
    padding: 6px 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .editor-toolbar::-webkit-scrollbar { display: none; }

  .editor-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
    justify-content: center;
    min-width: auto;
  }

  .download-buttons {
    display: flex !important;
    gap: 6px;
    margin-left: 0 !important;
    flex-shrink: 0;
  }
  
  .editor-content {
    flex: 1;
    position: relative;
    min-height: 0;
  }

  #editor {
    height: 100% !important;
  }

  .chat-message {
    max-width: 95%;
  }

  .chat-input-container {
    padding: 10px;
  }

  .view-source-btn {
    bottom: 20px;
    right: 15px;
    padding: 10px 15px;
    font-size: 12px;
    opacity: 0.9;
  }

  .leaderboard-title {
    font-size: 28px;
  }

  .leaderboard-item {
    gap: 10px;
    padding: 10px;
  }

  .leaderboard-rank {
    min-width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .leaderboard-views {
    font-size: 12px;
  }
}

.pinned {
  border: 2px solid #FFA559 !important;
  background: linear-gradient(110deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(255, 243, 176, 0.9) 45%, 
    rgba(255, 255, 255, 0.85) 50%, 
    rgba(255, 243, 176, 0.9) 55%,
    rgba(255, 255, 255, 0.85) 100%
  ) !important;
  background-size: 250% auto !important;
  animation: pinned-glow 3s infinite ease-in-out, shine-sweep 8s infinite linear !important;
  transform: scale(1.02);
  z-index: 2;
}

.pinned::after {
  content: 'FEATURED';
  position: absolute;
  top: 8px;
  left: -30px;
  background: linear-gradient(180deg, #FFA559, #FF7E21);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 35px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 1px;
}

.pin-indicator {
  font-size: 18px;
  margin-right: 6px;
  vertical-align: middle;
  color: #FF7E21;
  filter: drop-shadow(0 0 4px rgba(255, 126, 33, 0.4));
}

.admin-controls {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.pin-site-btn {
  background: none;
  border: none;
  color: #FFA559;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pin-site-btn:hover {
  background-color: rgba(255, 165, 89, 0.1);
  transform: scale(1.1);
}

.pin-site-btn .material-icons {
  color: #FFA559;
  font-size: 20px;
}

.editor-container {
  display: flex;
  height: 100%;
  background: var(--bg-color);
  animation: fadeIn 0.4s ease-out;
}

.editor-sidebar {
  width: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(220, 240, 255, 0.4) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px;
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 80, 200, 0.05);
  z-index: 10;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--secondary-text);
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.2);
}

.file-list-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 129, 255, 0.2);
  transform: translateX(6px);
  color: var(--accent-color);
}

.file-list-item.active {
  background: linear-gradient(135deg, #0081ff 0%, #00c6ff 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 129, 255, 0.25), inset 0 2px 4px rgba(255,255,255,0.3);
  transform: translateX(8px);
}

.file-list-item.active .material-icons {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1e1e1e; /* Match monaco background for smoothness */
}

.editor-toolbar {
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 250, 255, 0.9) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(15px);
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.editor-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid rgba(0, 129, 255, 0.2);
  color: var(--accent-color);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 129, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.editor-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 129, 255, 0.15);
  border-color: var(--accent-color);
  background: white;
}

.editor-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.editor-content {
  flex: 1;
  position: relative;
}

#editor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
  font-size: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ai-build-btn {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
}

.ai-build-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

.ai-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  color: white;
  font-family: 'Righteous', cursive;
  gap: 20px;
}

.ai-loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(168, 85, 247, 0.3);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: ai-spin 1s linear infinite;
}

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

.preview-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: white;
  display: none;
}

.preview-container.active {
  display: block;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.create-site-btn {
  padding: 10px 20px;
  background-color: #FFA559;
  color: #2B1810;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-left: auto;
}

.create-site-btn:hover {
  filter: brightness(1.1);
}

.publish-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 80, 200, 0.2);
}

.publish-dialog h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-family: 'Righteous', cursive;
}

.publish-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.publish-input-container {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.publish-input-prefix {
  padding: 12px;
  color: var(--secondary-text);
  font-weight: 500;
}

.publish-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-color);
  padding: 12px;
  outline: none;
  font-size: 1rem;
}

.publish-input-suffix {
  padding: 12px;
  color: var(--secondary-text);
  font-weight: 500;
}

.publish-dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

.publish-dialog-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.publish-dialog-cancel {
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  color: var(--secondary-text);
}

.publish-dialog-confirm {
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 129, 255, 0.3);
}

.publish-dialog-confirm:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.publish-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
}

.download-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.download-btn, .download-all-btn {
  padding: 8px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 80, 200, 0.1);
}

.download-btn:hover, .download-all-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 129, 255, 0.2);
}

.download-all-btn {
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 129, 255, 0.3);
}

.download-all-btn:hover {
  background: linear-gradient(180deg, #81c784 0%, #4caf50 100%); /* Green for download all success feel */
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
}

.leaderboard-container {
  padding: 40px;
  height: 100%;
  overflow-y: auto;
  background: transparent;
  color: var(--text-color);
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.leaderboard-title {
  font-size: 42px;
  font-family: 'Righteous', cursive;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #0081ff 0%, #00c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 15px rgba(0, 129, 255, 0.2);
}

.leaderboard-subtitle {
  color: var(--secondary-text);
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
}

.leaderboard-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(200, 230, 255, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 80, 200, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.leaderboard-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.leaderboard-item:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(210, 235, 255, 0.7) 100%);
  border-color: var(--accent-color);
  box-shadow: 0 15px 45px rgba(0, 129, 255, 0.25);
}

.leaderboard-item.top-1 {
  background: linear-gradient(180deg, #fff3b0 0%, #ffd700 100%);
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.leaderboard-item.top-2 {
  background: linear-gradient(180deg, #f0f0f0 0%, #c0c0c0 100%);
  border-color: #c0c0c0;
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.leaderboard-item.top-3 {
  background: linear-gradient(180deg, #f5d5b5 0%, #cd7f32 100%);
  border-color: #cd7f32;
  box-shadow: 0 10px 30px rgba(205, 127, 50, 0.3);
}

.leaderboard-rank {
  font-size: 22px;
  font-weight: 800;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 129, 255, 0.3), inset 0 2px 4px rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  z-index: 1;
}

.top-1 .leaderboard-rank {
  background: linear-gradient(180deg, #ffffff 0%, #ffd700 100%);
  color: #8b6d00;
}

.top-2 .leaderboard-rank {
  background: linear-gradient(180deg, #ffffff 0%, #c0c0c0 100%);
  color: #444;
}

.top-3 .leaderboard-rank {
  background: linear-gradient(180deg, #ffffff 0%, #cd7f32 100%);
  color: #5d2906;
}

.leaderboard-site-info {
  flex: 1;
}

.leaderboard-site-name {
  font-size: 18px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-site-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8B5E3C;
}

.leaderboard-views {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8B5E3C;
}

.leaderboard-views .material-icons {
  font-size: 20px;
  color: inherit;
}



.view-source-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  background: var(--accent-color);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 8px 25px rgba(0, 129, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.view-source-btn:hover {
  transform: scale(1.05);
  background: #5D371F;
}

.source-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #2B1810;
  color: #FFA559;
  border-radius: 4px;
  font-size: 14px;
  margin-left: auto;
}

.source-indicator .material-icons {
  font-size: 18px;
}
/* ── Meowl Browser Specific Styles ────────────────────────────────────────── */

/* coins sidebar button */
.coins-sidebar-btn {
  flex-direction: column !important;
  padding: 5px !important;
  cursor: default !important;
  margin-bottom: 5px;
}
.coins-count-display {
  font-size: 11px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Games page */
.games-page {
  width: 100%; height: 100%; overflow-y: auto;
  background: transparent;
}
.games-header {
  text-align: center;
  padding: 40px 20px 20px;
  color: var(--text-color);
}
.games-title {
  font-size: 42px;
  font-family: 'Righteous', cursive;
  margin-bottom: 10px;
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-text) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.games-subtitle { color: var(--secondary-text); font-size: 1rem; font-weight: 500; opacity: 0.8; }
.games-search-bar {
  display: flex; gap: 10px; align-items: center;
  max-width: 600px; margin: 20px auto 10px; padding: 0 20px;
}
.games-search-input {
  flex: 1; padding: 12px 20px; border-radius: 30px;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(0,129,255,0.3);
  color: var(--text-color); font-size: 15px; outline: none;
  box-shadow: 0 4px 15px rgba(0,80,200,0.1);
}
.games-search-input:focus { border-color: var(--accent-color); }
.games-filter-tabs {
  display: flex; gap: 10px; justify-content: center;
  padding: 10px 20px 20px; flex-wrap: wrap;
}
.games-filter-tab {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.5); color: var(--secondary-text);
  cursor: pointer; font-weight: 600; font-size: 13px;
  transition: all 0.2s ease;
}
.games-filter-tab:hover { background: rgba(255,255,255,0.8); }
.games-filter-tab.active {
  background: var(--accent-color); color: white; border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0,129,255,0.3);
}
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; padding: 0 20px 40px; max-width: 1200px; margin: 0 auto;
}
.game-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(200,230,255,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px; overflow: hidden; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0,80,200,0.1);
  position: relative;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0,129,255,0.25);
  border-color: var(--accent-color);
}
.game-card-thumb {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 50%, #42a5f5 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.game-card-thumb .material-icons { font-size: 56px; color: rgba(255,255,255,0.9); }
.game-card-thumb-gloss {
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
}
.game-card-pinned-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: white; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(255,140,0,0.4);
}
.game-card-status-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 800;
}
.game-card-status-badge.pending { background: rgba(255,152,0,0.9); color: white; }
.game-card-status-badge.denied { background: rgba(244,67,54,0.9); color: white; }
.game-card-body { padding: 15px; }
.game-card-title {
  font-family: 'Righteous', cursive; font-size: 1rem;
  color: var(--text-color); margin-bottom: 6px; font-weight: 700;
}
.game-card-desc {
  font-size: 12px; color: var(--secondary-text); line-height: 1.5;
  margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #888; padding-top: 10px;
  border-top: 1px solid rgba(0,129,255,0.1);
}
.game-card-author { display: flex; align-items: center; gap: 6px; }
.game-card-plays { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.game-card-plays .material-icons { font-size: 15px; color: var(--accent-color); }
.game-card-votes { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.game-vote-btn {
  background: none; border: none; cursor: pointer; display: flex; align-items: center;
  gap: 3px; font-size: 12px; font-weight: 700; color: #888; padding: 4px 8px;
  border-radius: 8px; transition: all 0.2s ease;
}
.game-vote-btn:hover { background: rgba(0,0,0,0.05); }
.game-vote-btn.active.like { color: #4CAF50; }
.game-vote-btn.active.dislike { color: #f44336; }
.game-vote-btn .material-icons { font-size: 16px; color: inherit; }

/* Admin game moderation card */
.mod-game-card {
  background: rgba(255,255,255,0.7); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.mod-game-title { font-weight: 800; color: var(--text-color); margin-bottom: 4px; }
.mod-game-author { font-size: 12px; color: #888; margin-bottom: 10px; }
.mod-game-actions { display: flex; gap: 8px; }
.mod-btn {
  flex: 1; padding: 7px 0; border-radius: 10px; border: none;
  font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.mod-btn.approve { background: #4CAF50; color: white; }
.mod-btn.deny { background: #ff4444; color: white; }
.mod-btn:hover { opacity: 0.85; transform: scale(1.02); }

/* Pending user card */
.pending-user-card {
  background: rgba(255,255,255,0.7); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 12px; display: flex;
  align-items: center; gap: 10px;
}
.pending-user-name { flex: 1; font-weight: 700; color: var(--accent-color); }
.pending-user-actions { display: flex; gap: 6px; }

/* Game not-logged-in wall */
.game-wall {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  padding: 40px; text-align: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
}
.game-wall-icon { font-size: 80px; color: var(--accent-color); }
.game-wall-title { font-family: 'Righteous', cursive; font-size: 2rem; color: var(--text-color); }
.game-wall-sub { color: var(--secondary-text); font-size: 1rem; max-width: 400px; line-height: 1.6; }

/* Auth forms */
.auth-page {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
}
.auth-card {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 24px;
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,80,200,0.15);
}
.auth-logo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; display: block;
  border: 3px solid rgba(0,129,255,0.3);
  box-shadow: 0 8px 20px rgba(0,129,255,0.2);
}
.auth-title {
  font-family: 'Righteous', cursive; font-size: 1.8rem; text-align: center;
  color: var(--accent-color); margin-bottom: 6px;
}
.auth-sub { text-align: center; color: var(--secondary-text); font-size: 14px; margin-bottom: 28px; }
.auth-field { margin-bottom: 16px; }
.auth-label { font-size: 11px; font-weight: 800; color: var(--accent-color); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; display: block; }
.auth-input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(0,129,255,0.2);
  color: var(--text-color); font-size: 15px; outline: none;
  transition: all 0.2s ease;
}
.auth-input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0,129,255,0.1); }
.auth-submit {
  width: 100%; padding: 14px; border-radius: 14px; border: none;
  background: linear-gradient(180deg, #64b5f6 0%, #0081ff 100%);
  color: white; font-size: 16px; font-weight: 800; cursor: pointer;
  margin-top: 8px; transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0,129,255,0.3);
  font-family: 'Righteous', cursive;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,129,255,0.4); }
.auth-switch {
  text-align: center; margin-top: 20px; font-size: 14px; color: var(--secondary-text);
}
.auth-switch a {
  color: var(--accent-color); font-weight: 700; cursor: pointer; text-decoration: none;
}
.auth-error {
  background: rgba(255,68,68,0.1); border: 1px solid rgba(255,68,68,0.3);
  color: #ff4444; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  margin-bottom: 14px;
}
.auth-success {
  background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.3);
  color: #4CAF50; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  margin-bottom: 14px;
}

/* Users page */
.users-page { width: 100%; height: 100%; overflow-y: auto; background: transparent; }
.users-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; padding: 20px; max-width: 1100px; margin: 0 auto;
}
.user-card {
  background: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.9);
  border-radius: 18px; padding: 20px; text-align: center;
  transition: all 0.3s ease; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,80,200,0.08);
}
.user-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,129,255,0.2); border-color: var(--accent-color); }
.user-card-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(0,129,255,0.3); margin: 0 auto 10px;
  display: block; box-shadow: 0 4px 12px rgba(0,129,255,0.2);
}
.user-card-name { font-family: 'Righteous', cursive; font-size: 1rem; color: var(--text-color); margin-bottom: 4px; }
.user-card-coins { font-size: 13px; color: #888; display: flex; align-items: center; justify-content: center; gap: 4px; }
.user-card-coins .material-icons { font-size: 15px; color: #FFD700; }
.user-status-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.user-status-dot.online { background: #4CAF50; box-shadow: 0 0 6px #4CAF50; }
.user-status-dot.offline { background: #888; }
.user-status-dot.playing { background: #2196F3; box-shadow: 0 0 6px #2196F3; }

/* Editor button used in admin/settings */
.editor-btn {
  padding: 8px 16px; background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-color); border-radius: 12px;
  color: var(--accent-color); cursor: pointer; display: flex;
  align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  transition: all 0.2s ease;
}
.editor-btn:hover { background: rgba(255,255,255,0.95); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,129,255,0.15); }

/* Notification toast */
.meowl-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(20,20,40,0.9); color: white; padding: 12px 24px;
  border-radius: 30px; font-size: 14px; font-weight: 600; z-index: 99999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Close buttons for sidebars */
.close-admin-sidebar, .close-account-sidebar {
  background: none; border: none; color: var(--accent-color); cursor: pointer;
  padding: 5px; border-radius: 50%;
}
.close-admin-sidebar:hover, .close-account-sidebar:hover { background: var(--border-color); }

