@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap");

/* Security Warning Overlay Styles */
.security-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.security-warning-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.security-warning-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.security-warning-modal {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  border: 2px solid #ff4444;
  border-radius: 15px;
  box-shadow: 
    0 20px 60px rgba(255, 68, 68, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: securityModalSlideIn 0.4s ease-out;
}

@keyframes securityModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.security-warning-header {
  background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 13px 13px 0 0;
  border-bottom: 2px solid #ff6666;
}

.security-warning-header i {
  font-size: 2.5em;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.security-warning-header h2 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.security-warning-content {
  padding: 25px;
  color: #e0e0e0;
  line-height: 1.6;
}

.security-warning-content p {
  margin: 0 0 15px 0;
}

.security-warning-content p:first-child {
  text-align: center;
  font-size: 1.2em;
  color: #ff6666;
  margin-bottom: 20px;
}

.security-warning-content ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}

.security-warning-content li {
  margin: 12px 0;
  padding: 10px 15px;
  background: rgba(255, 68, 68, 0.1);
  border-left: 4px solid #ff4444;
  border-radius: 5px;
  font-size: 0.95em;
}

.security-warning-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  color: #cccccc;
  margin-top: 20px !important;
}

.security-warning-actions {
  padding: 20px 25px 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.security-warning-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.security-warning-btn.accept {
  background: linear-gradient(135deg, #14c93f 0%, #14c93f 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.security-warning-btn.accept:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.security-warning-btn.decline {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.security-warning-btn.decline:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.security-warning-btn:active {
  transform: translateY(0);
}

/* Blur the main content when warning is shown */
body:has(.security-warning-overlay:not(.hidden)) .background-container,
body:has(.security-warning-overlay:not(.hidden)) .main-navbar,
body:has(.security-warning-overlay:not(.hidden)) .main-content,
body:has(.security-warning-overlay:not(.hidden)) footer {
  filter: blur(5px);
  pointer-events: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  margin: 0px;
  background-color: #050505;
  background-image:
    radial-gradient(circle at 50% 50%, #05050580 0%, rgb(5, 5, 5) 80%),
    linear-gradient(#2a2a2a 1px, transparent 1px),
    linear-gradient(to right, #2a2a2a 1px, #050505 1px);
  background-size: 100% 100%, 25px 25px, 25px 25px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #e0e0e0;
  overflow-x: hidden;
  animation: fadeIn 0.4s ease;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #4e4e4e;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b6b6b;
}

.fa-magnifying-glass {
  color: white;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.flex-center.center.desc {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto 1.5em auto;
}

.header-center {
  align-items: center;
  flex-direction: column;
  margin-top: 0;
}

.left-margin {
  margin: 0px 16px;
}

#uv-error {
  color: #ff6666 !important;
  white-space: pre-wrap;
}

#uv-error-code {
  font-size: 12px;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
}

#uv-register-sw {
  color: white;
  background: #555555;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 6px;
  padding: 16px 20px;
  line-height: 11px;
  display: none;
}

/* Search Suggestions Styles */
.suggestions-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.suggestions-container.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: #2a2a2a;
  color: #fff;
}

.suggestion-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggestion-title {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
}

.suggestion-url {
  color: #888;
  font-size: 12px;
  opacity: 0.8;
}

.suggestion-type {
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Scrollbar styling for suggestions */
.suggestions-container::-webkit-scrollbar {
  width: 6px;
}

.suggestions-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.suggestions-container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.suggestions-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* History Section Styles */
.history-section {
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.history-title {
  color: #b0b0b0;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 1rem;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.history-icon {
  color: #888;
  margin-right: 12px;
  width: 16px;
  text-align: center;
}

.history-url {
  color: #e0e0e0;
  font-size: 14px;
  text-decoration: none;
  flex: 1;
}

.history-time {
  color: #666;
  font-size: 12px;
  margin-left: auto;
}

.clear-history {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.clear-history:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Quick Links row (under search bar) */
.quick-links {
  margin: 20px auto 8px auto;
  padding: 8px 0 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 14px;
  max-width: 720px;
}

@media (max-width: 680px) {
  .quick-links {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 12px;
    padding: 6px 14px 0 14px;
  }
}

.quick-link {
  position: relative;
  background: #0e0e10;
  border-radius: 16px;
  border: 1px dashed #2a2a2d;
  padding: 16px 10px 12px 10px;
  text-align: center;
  color: #d7d7d7;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 6px 20px rgba(0,0,0,0.35);
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: #3a3a3f;
  background: #111113;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.quick-link .ql-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1a1b1f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.quick-link .ql-icon img {
  width: 22px;
  height: 22px;
}

.quick-link .ql-title {
  font-size: 14px;
  font-weight: 600;
  color: #e7e7e7;
}

/* Add button style */
.quick-link.add {
  border-style: dashed;
  background: #0c0c0e;
  color: #cfcfcf;
}

.quick-link.add .ql-icon {
  background: #121317;
}

.quick-link.add .plus {
  font-size: 20px;
  color: #bdbdbd;
}

/* Quick link kebab menu */
.quick-link .ql-more {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #15151a;
  border: 1px solid #2a2a33;
  border-radius: 8px;
  color: #bfbfc4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.quick-link:hover .ql-more { opacity: 1; pointer-events: auto; }
.quick-link .ql-more:hover { background: #1b1b21; border-color: #3a3a45; color: #e0e0e6; }

.quick-link .ql-menu {
  position: absolute;
  top: 36px;
  right: 8px;
  min-width: 160px;
  padding: 6px;
  background: #0b0b0d;
  border: 1px solid #26262b;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
  display: none;
  z-index: 3;
}
.quick-link .ql-menu.open { display: block; }
.quick-link .ql-menu .ql-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: #e7e7ea;
  border-radius: 8px;
  cursor: pointer;
}
.quick-link .ql-menu .ql-menu-item:hover { background: #19191f; }
.quick-link .ql-menu .ql-menu-item.remove { color: #ffb3b3; }

/* Small tooltip */
.quick-link .ql-tip {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  color: #8a8a8a;
  opacity: .9;
}

#uv-register-sw:active {
  background: #333333;
}

/* Quick Link Modal */
.ql-modal-overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  z-index: 1000; transition: opacity .2s ease, visibility .2s ease;
}
.ql-modal-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.ql-modal-card {
  width: min(560px, 92vw);
  background: #0b0b0d;
  border: 1px solid #26262b;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.ql-modal-header { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202026; }
.ql-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #e8e8ea; }
.ql-close-btn { margin-left: auto; background: transparent; border: none; color: #bfbfc4; font-size: 22px; cursor: pointer; }

.ql-modal-body { padding: 16px; display: grid; gap: 10px; }
.ql-modal-body label { font-size: 12px; color: #a6a6ac; }
.ql-modal-body input { 
  background: #111116; border: 1px solid #23232a; color: #e9e9ec; border-radius: 10px;
  padding: 10px 12px; outline: none; transition: border .15s ease, box-shadow .15s ease; 
}
.ql-modal-body input:focus { border-color: #3a3a42; box-shadow: 0 0 0 4px rgba(100,100,120,.18); }

.ql-preview { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding-top: 10px; border-top: 1px solid #1b1b20; }
.ql-preview .ql-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background:#15151a; }
.ql-preview #ql-preview-icon { width: 22px; height: 22px; }
.ql-preview-title { color: #dcdce0; font-weight: 600; }

.ql-actions { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #202026; }
.ql-actions .spacer { flex: 1; }
.ql-actions button { 
  background: #16161c; color: #e4e4e7; border: 1px solid #2a2a33; border-radius: 10px; padding: 10px 14px; cursor: pointer; 
}
.ql-actions button.primary { background: #1e1f28; border-color: #3a3a45; }
.ql-actions button.danger { background: #2a1010; border-color: #5a1a1a; color: #ffb3b3; }

#uv-register-sw.show {
  display: block;
}

.logo {
  width: 150px;
  height: 150px;
}

.logo-wrapper .text {
  font-size: 75px;
  color: #fff;
}

.logo-wrapper h1 {
  color: white;
}

.logo-wrapper.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5em;
}

footer {
  margin-top: auto;
  width: 93%;
  align-self: center;
  height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 1.8em 0 1.5em 0;
  background: none;
  border: none;
}

footer a,
footer span {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #31313142;
  color: #ffffff;
  text-decoration: none;
  border-radius: 2em;
  padding: 0.5em 1.4em;
  font-size: 1em;
  font-weight: 500;
  margin: 0 0.5em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px 0 #ffffff22;
  border: 1px solid #777777b0;
}

footer a:hover,
footer a:focus {
  background: #5c5c5ca4;
  color: #fff;
  box-shadow: 0 4px 24px 0 #ffffff44;
  border-color: #d4d4d4;
}

footer span {
  margin-left: 1.5em;
  color: #bfc9db;
  font-size: 0.98em;
  letter-spacing: 0.02em;
}

.desc {
  margin-top: 0;
  margin-bottom: 0.7em;
}

.desc p {
  width: 580px;
  color: rgba(253, 253, 253, 0.514);
  margin-top: 0.6em;   /* Reduce space above */
  margin-bottom: 0.5em; /* Optional: control space below */
}

#uv-address {
  width: 350px;
  max-width: 90vw;
  padding: 0.7em 1.2em;
  border-radius: 20px;
  border: transparent;
  background: transparent;
  color: #e0e0e0;
  font-size: 1.0em;
  outline: none;
  margin-bottom: 0.5em;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
  z-index: 3;
}

#uv-address:focus {
  border: transparent;
}

#uv-address::placeholder {
  color: #ffffff69;
}

.credit {
  border-radius: 10px;
  padding: 10px;
  display: block;
  border: #fff 1px solid;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.credit label {
  margin-left: auto;
  margin-right: 15px;
}

.credit a,
.credit label {
  color: white;
  text-decoration: underline;
  text-align: right;
}

.credit pre {
  display: none;
  width: 100%;
}

.credit label::after {
  content: "show license";
  cursor: pointer;
}

.credit input:checked + label::after {
  content: "hide license";
}

.credit input:checked ~ pre {
  display: block;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 700px;
  margin: 2em auto 3em auto;
  padding: 0 1em;
}

.credit-card {
  background: rgba(36, 36, 36, 0.616);
  border-radius: 1.5em;
  box-shadow: 0 2px 16px rgb(255, 255, 255);
  padding: 1.5em 2em;
  color: #eceff4;
  border: 1px solid #0055ff;
  transition: box-shadow 0.2s;
}

.credit-card h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 1.3em;
}

.credit-card a {
  color: #0084ff;
  text-decoration: underline;
  font-size: 1em;
  margin-bottom: 0.5em;
  display: inline-block;
}

.credit-card pre {
  background: none;
  color: #ffffff;
  font-size: 0.98em;
  border: none;
  padding: 0;
  margin-top: 1em;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}

.music-player {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  background: rgba(47, 49, 51, 0.98);
  border-radius: 1.5em;
  box-shadow: 0 2px 16px rgb(255, 255, 255);
  padding: 1em 2em 1em 1.5em;
  z-index: 999;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.music-controls button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.3em;
  border-radius: 50%;
  transition: background 0.15s;
}

.music-controls button:hover {
  background: #5f5f5f70;
}

.music-title {
  margin-left: 1em;
  color: #eceff4;
  font-weight: 500;
  font-size: 1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.music-playlist {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.playlist-item {
  background: #232a3a;
  color: #eceff4;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  cursor: pointer;
  transition: background 0.2s;
}

.playlist-item.active,
.playlist-item:hover {
  background: #5e81ac;
  color: #fff;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-left: 1em;
}

#volume-slider {
  width: 70px;
  accent-color: #00fcfc;
  vertical-align: middle;
  margin-left: 0.2em;
}

/* Main Navbar (smaller, compact, centered) */
.main-navbar {
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  backdrop-filter: blur(10px);
  border: transparent;
  width: 670px;
  max-width: 98vw;
  border-radius: 25px;
  align-items: center;
  overflow: hidden;
  position: fixed;
  z-index: 1001;
  animation: fadeIn 0.3s ease;
  padding: 0.5em 1.5em;
  font-size: 1em;
  box-shadow: 0 4px 24px 0 #381e742c;
  display: flex;
  justify-content: space-between;
}

.main-navbar .nav-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7em;
  width: 100%;
}

.main-navbar .nav-buttons li {
  display: flex;
  align-items: center;
}

.main-navbar .nav-buttons a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.4em 1em;
  border-radius: 1em;
  transition: background 0.18s, color 0.18s, font-size 0.18s;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.main-navbar .nav-buttons a:hover,
.main-navbar .nav-buttons a.active {
  background: #7272726b;
  color: #fff;
  font-size: 1.08em;
}

.main-navbar .nav-buttons a.active {
  font-weight: 700;
  box-shadow: 0 2px 12px 0 #ffffffa2;
}

.main-navbar .nav-buttons a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.main-navbar-title {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-left: 0;
  margin-right: 7em;
  font-size: 1.08em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  user-select: none;
}

.main-navbar-logo {
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.5em;
  vertical-align: middle;
  margin-left: 0;
  margin-right: 0.15em;
  background: #00000000;
  box-shadow: 0 2px 8px #2563eb33;
}

/* Move logo/title to the left of the navbar */
.main-navbar .main-navbar-title {
  order: -1;
}

@media (max-width: 800px) {
  .main-navbar {
    width: 99vw;
    min-width: 0;
    padding: 0.4em 0.3em;
    font-size: 0.95em;
  }
  .main-navbar-title {
    font-size: 0.95em;
    margin-right: 1em;
  }
  .main-navbar-logo {
    width: 1.2em;
    height: 1.2em;
  }
}

/* Navbar Light Effects */
.navbar-light-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 25px; 
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 1;
  background-image: radial-gradient(circle at center, rgba(211 211 211 / 0.8), rgba(211 211 211 / 0) 60%);
  background-position: var(--navbar-bg-x) var(--navbar-bg-y);
  background-repeat: no-repeat;
  background-size: 300px 300px;
}

.navbar-light {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 25px; 
  opacity: 0; 
  transition: opacity 400ms ease;
  z-index: 10;
  background-image: radial-gradient(circle at center, rgba(211, 211, 211, 0.13), rgba(211 211 211 / 0) 60%);
  background-position: var(--navbar-bg-x) var(--navbar-bg-y);
  background-repeat: no-repeat;
  background-size: 300px 300px;
}

.navbar-light-inset-bg {
  position: absolute;
  inset: 0.8px; 
  border-radius: 24px; 
  background-color: #0e0e0e;
  transition: background-color 0.15s ease;
  z-index: 2;
}

.main-navbar:hover .navbar-light-inset-bg {
  background-color: #161616;
}

/* Ensure navbar content stays on top */
.main-navbar-title,
.nav-buttons,
.login-button-container {
  position: relative;
  z-index: 20;
}

/* Login Button Styles */
.login-button-container {
  margin-left: auto;
}

.login-button {
  position: relative;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.5em 1.2em;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.3s ease;
  overflow: hidden;
  font-family: inherit;
  z-index: 20;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.login-button i {
  font-size: 1em;
  position: relative;
  z-index: 25;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.login-button span {
  font-weight: 500;
  position: relative;
  z-index: 25;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 350px;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.warning {
  background: linear-gradient(135deg, #ff9500, #e67e00);
}

.toast.success {
  background: linear-gradient(135deg, #14c93f, #0f9930);
}

.toast.info {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  margin-left: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.toast-close:hover {
  opacity: 1;
}

/* Login Button Light Effects */
.login-light-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 25px; 
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 1;
  background-image: radial-gradient(circle at center, rgba(211 211 211 / 0.8), rgba(211 211 211 / 0) 60%);
  background-position: var(--login-bg-x) var(--login-bg-y);
  background-repeat: no-repeat;
  background-size: 200px 200px;
}

.login-light {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 25px; 
  opacity: 0; 
  transition: opacity 400ms ease;
  z-index: 5;
  background-image: radial-gradient(circle at center, rgba(211, 211, 211, 0.13), rgba(211 211 211 / 0) 60%);
  background-position: var(--login-bg-x) var(--login-bg-y);
  background-repeat: no-repeat;
  background-size: 200px 200px;
}

.login-light-inset-bg {
  position: absolute;
  inset: 0.8px; 
  border-radius: 24px; 
  background-color: rgba(14, 14, 14, 0.8);
  transition: background-color 0.15s ease;
  z-index: 2;
}

.login-button:hover .login-light-inset-bg {
  background-color: #161616;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Background Container and Animated Elements */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}


.light-beam {
  position: absolute;
  top: -50%;
  width: 2px;
  height: 200%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent 100%);
  animation: lightBeam 10s linear infinite;
  opacity: 0.6;
}

@keyframes lightBeam {
  0% {
    transform: translateY(-100%) scaleY(0);
    opacity: 0;
  }
  10% {
    transform: translateY(-50%) scaleY(1);
    opacity: 0.6;
  }
  90% {
    transform: translateY(50%) scaleY(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(100%) scaleY(0);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/* God rays effect */
.god-rays {
  background: radial-gradient(ellipse at center, 
    rgba(255, 255, 255, 0.144) 0%, 
    rgba(255, 255, 255, 0.959) 30%, 
    transparent 70%);
  animation: godRays 12s ease-in-out infinite;
}

@keyframes godRays {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1) rotate(5deg);
  }
}



/* Center the main content (search bar, logo, desc, music player) */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px - 80px); /* 120px for navbar, 80px for footer */
  margin-top: 11px; /* space for navbar */
  margin-bottom: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  text-align: center;
}

/* Add to index.css for the home search icon */
.home-search-icon {
  position: absolute;
  left: 17px;
  top: 43%;
  transform: translateY(-50%);
  color: #bfc9db;
  font-size: 1.15em;
  pointer-events: none;
  z-index: 2;
}

/* Light following effect for search bar */
.search-bar {
  position: relative;
  overflow: hidden;
}

.light-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 20px; 
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 1;
  background-image: radial-gradient(circle at center, rgba(211 211 211 / 0.8), rgba(211 211 211 / 0) 60%);
  background-position: var(--bg-x) var(--bg-y);
  background-repeat: no-repeat;
  background-size: 300px 300px;
}

.light {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 20px; 
  opacity: 0; 
  transition: opacity 400ms ease;
  z-index: 10;
  background-image: radial-gradient(circle at center, rgba(211, 211, 211, 0.13), rgba(211 211 211 / 0) 60%);
  background-position: var(--bg-x) var(--bg-y);
  background-repeat: no-repeat;
  background-size: 300px 300px;
}

.light-inset-bg {
  position: absolute;
  inset: 0.8px; 
  border-radius: 19px; 
  background-color: #1d1d1d94;
  transition: background-color 0.15s ease;
  z-index: 2;
}

.search-bar:hover .light-inset-bg,
.search-bar:focus-within .light-inset-bg {
  background-color: #161616;
}

/* Ensure input stays on top and properly styled */
#uv-address {
  position: relative;
  z-index: 3;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  max-width: 500px;
  padding: 1em 2.5em 1em 2.5em;
  font-size: 1.1em;
  color: #e0e0e0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  border-radius: 20px;
  text-align: left;
}

#uv-address::placeholder {
  color: #888;
  opacity: 1;
}

/* Ensure search bar form is properly centered */
#uv-form {
  width: 100%;
  max-width: 500px;
  margin: 1em auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Toast base styles - boxy and top right, slightly down from top */
.toast {
  position: fixed;
  top: 40px;
  right: 40px;
  left: auto;
  bottom: auto;
  transform: none;
  min-width: 220px;
  max-width: 90vw;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 0.9em 1.2em;
  font-size: 1.08em;
  font-family: inherit;
  border-radius: 0.7em; /* less rounded, more boxy */
  box-shadow: 0 4px 24px #232a3a44;
  border: 1.5px solid #5e81ac;
  background: #232a3a;
  color: #eceff4;
  opacity: 1;
  transition: opacity 0.3s, top 0.3s;
  pointer-events: auto;
  gap: 0.5em;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

.toast.hide {
  opacity: 0;
  pointer-events: none;
  top: 20px;
}

/* Success Toast */
.toast.success {
  background: #1e3a2a;
  color: #d1fae5;
  border-color: #636363c5;
}
.toast.success i {
  color: #34d399;
}

/* Error Toast */
.toast.error {
  background: #b22234;
  color: #fff;
  border-color: #ff4d4f;
}
.toast.error i {
  color: #fff;
}

/* Info Toast */
.toast.info {
  background: #1e293b;
  color: #bae6fd;
  border-color: #1364ce;
}
.toast.info i {
  color: #38b0e4;
}

/* Warning Toast */
.toast.warning {
  background: #7c4700;
  color: #fffbe6;
  border-color: #fbbf24;
}
.toast.warning i {
  color: #fbbf24;
}

/* Heart Toast (custom) */
.toast.heart {
  background: #2d1e2f;
  color: #fbcfe8;
  border-color: #ec4899;
}
.toast.heart i {
  color: #ec4899;
}

/* Toast close button */
.toast-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  margin-left: 8px;
  font-size: 1em;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Progress bar (optional, style as needed) */
.progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
  border-radius: 0 0 1.1em 1.5em;
  animation: toast-progress 3s linear forwards;
  pointer-events: none;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}



/* Make sure your main-content fills the available space and is perfectly centered */
.main-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 120px - 80px); /* adjust as needed */
  margin: 0 auto;
  padding: 2em 1em;
  box-sizing: border-box;
  width: 100%;
  max-width: 800px; /* Constrain maximum width for better centering */
}

/* Footer should stay at the bottom */
footer {
  margin-top: 1px;
  width: 93%;
  align-self: center;
  height: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 0.2em 0 1.7em 0;
  background: none;
  border: none;
}

/* Remove extra margin from .logo-wrapper and .desc if needed */
.logo-wrapper.header-center {
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.logo-wrapper.header-center img.logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 0.5em;
}

.logo-wrapper.header-center h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
}

.desc {
  margin: 0 auto 1.5em auto;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.desc p {
  margin: 0;
  font-size: 1.2em;
  color: #bfc9db;
  line-height: 1.4;
}

/* Ensure greeting is centered */
#greeting {
  margin: 1em auto 0.5em auto !important;
  text-align: center !important;
  font-size: 1.18em !important;
  color: #bfc9db !important;
  font-weight: 500 !important;
  opacity: 0 !important;
  transition: opacity 0.4s !important;
  width: 100%;
  max-width: 600px;
}

/* NProgress custom styles */
#nprogress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: visible;
}

#nprogress .bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 2px;
  z-index: 10001;
}

#nprogress .spinner {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10002;
}

/* Add to your index.css for feature cards styling */
.feature-card {
  background: rgba(70, 70, 70, 0.301);
  border-radius: 1.5em;
  box-shadow: 0 4px 24px 0 #b0b0ff22;
  border: 1.5px solid rgba(200,200,220,0.25);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #b1b1b1a1;
  min-width: 220px;
  max-width: 270px;
  padding: 1.5em 1.2em 1.2em 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  margin: 0 0.2em;
}

.feature-card:hover {
  box-shadow: 0 8px 32px 0 #b0b0ff44;
  transform: translateY(-6px) scale(1.03);
}

.feature-card h3 {
  margin: 0.7em 0 0.4em 0;
  font-size: 1.18em;
  font-weight: 600;
  color: #007aff;
  letter-spacing: 0.01em;
}

.feature-card p {
  color: #23242a;
  font-size: 1em;
  margin: 0;
  text-align: center;
  opacity: 0.85;
}

.feature-icon {
  color: #c9c9c9;
  margin-bottom: 0.2em;
  filter: drop-shadow(0 2px 8px #007aff33);
}

/* Animations */
@keyframes ghostin {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes navloader {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

/* Swup.js page transition */
.transition-fade {
  opacity: 1;
  transition: 350ms;
}
html.is-animating .transition-fade {
  opacity: 0;
  filter: blur(10px);
}

#toast-icon {
  margin-right: 0.7em;
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: rgb(255, 255, 255);
  box-shadow: 0 0 0 2px rgb(255, 255, 255);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: rgb(255, 255, 255);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #212121;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px rgb(255, 255, 255);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

.user-profile {
  /* moved to fixed top-right so it stays visible */
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 11000; /* ensure it sits above other elements */
  width: 131px;
  height: 51px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  background: linear-gradient(
    to bottom right,
    #ffffff 0%,
    rgba(46, 142, 255, 0) 30%
  );
  background-color: rgba(2, 2, 2, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* responsive adjustments so the fixed button doesn't overlap on small screens */
@media (max-width: 600px) {
  .user-profile {
    top: 10px;
    right: 10px;
    width: 110px;
    height: 44px;
  }
}

.user-profile-inner {
  width: 127px;
  height: 47px;
  border-radius: 13px;
  background-color: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #fff;
  font-weight: 600;
}

.user-profile-inner svg {
  width: 27px;
  height: 27px;
  fill: #fff;
}
