:root {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
    system-ui, sans-serif;
  color: #f5f5f7;
  background-color: #050505;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #151515, #050505 60%);
  color: inherit;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  padding-bottom: 120px;
}

.gradient-blur {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99, 161, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255, 121, 198, 0.3), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(120, 255, 214, 0.25), transparent 45%);
  filter: blur(60px);
  z-index: 0;
}

.app-shell {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(60px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 48px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  margin-bottom: 80px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.site-pill {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.6;
}

.site-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-status {
  font-size: 13px;
  opacity: 0.7;
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.user-pill {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.ghost-danger {
  border-color: rgba(255, 100, 100, 0.35);
}

.ghost-danger:hover {
  border-color: rgba(255, 120, 120, 0.8);
  background: rgba(255, 120, 120, 0.15);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.hero-text h1 {
  font-size: clamp(32px, 6vw, 64px);
  margin: 4px 0;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  font-size: 12px;
}

.subtitle {
  opacity: 0.75;
  max-width: 480px;
  line-height: 1.6;
}

.hero-card {
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.15), rgba(10, 10, 10, 0.75));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-card h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
}

.hero-card small {
  opacity: 0.6;
}

.panel {
  border-radius: 28px;
  padding: 28px;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 15;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.auth-panel {
  width: min(520px, 90%);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(7, 7, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.auth-header h2 {
  margin: 0;
  font-size: 26px;
}

.auth-header p {
  margin: 6px 0 0;
  opacity: 0.7;
  font-size: 15px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.auth-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.auth-form label.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.auth-form input {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font-size: 15px;
}

.checkbox-field {
  font-size: 14px;
}

.checkbox-field input[type='checkbox'] {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  margin: 0;
  margin-right: 4px;
}

.primary-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(120deg, #5d9dff, #8b7bff);
  font-weight: 600;
  color: #050505;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(93, 157, 255, 0.25);
}

.primary-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.auth-error {
  margin-top: 12px;
  font-size: 13px;
  color: #ff9c9c;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.breadcrumb button {
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.breadcrumb button.is-current {
  background: rgba(255, 255, 255, 0.25);
  cursor: default;
}

.breadcrumb span {
  opacity: 0.4;
  font-size: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chip.is-active {
  background: rgba(255, 255, 255, 0.2);
}

.search {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search input {
  border: none;
  background: transparent;
  color: inherit;
  outline: none;
}

.search span {
  font-size: 12px;
  opacity: 0.6;
}

.view-toggle {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.view-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.file-grid.is-list {
  grid-template-columns: 1fr;
}

.file-card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.file-card.is-list {
  flex-direction: row;
  align-items: center;
  gap: 18px;
}

.file-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.folder-card {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.folder-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.file-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-card.is-list header {
  max-width: 300px;
}

.file-card svg {
  width: 44px;
  height: 44px;
}

.file-name {
  margin: 0;
  font-size: 16px;
}

.file-meta {
  opacity: 0.7;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.file-card.is-list .file-meta {
  max-width: 420px;
}

.result-path {
  font-size: 12px;
  opacity: 0.6;
}

.file-card a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.file-card a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.card-actions button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.share-btn {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
}

.share-btn svg,
.download-btn-inline svg {
  width: 14px;
  height: 14px;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.download-btn-inline {
  background: linear-gradient(120deg, rgba(93, 157, 255, 0.95), rgba(139, 123, 255, 0.95));
  color: #050505;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(93, 157, 255, 0.25);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.download-btn-inline:hover {
  transform: translateY(-1px);
}

.download-btn-inline.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
  box-shadow: none;
}

.empty {
  text-align: center;
  padding: 40px 0;
  opacity: 0.6;
}

.hidden {
  display: none !important;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.global-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.8;
}

.footer-content .divider {
  opacity: 0.5;
}

