:root {
  /* Primary Colors */
  --purple: #6739B7;
  --purple-light: #8B5CF6;
  --purple-dark: #5B21B6;
  
  /* Secondary Colors */
  --yellow: #FFD700;
  --yellow-dark: #FFC700;
  --yellow-light: #FFE55C;
  
  /* Additional Accents */
  --green: #00D09C;
  --pink: #FF6B9D;
  --blue: #5DADE2;
  
  /* Backgrounds */
  --bg: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-panel: #1e1e1e;
  --bg-elevated: #252525;
  
  /* Text Colors */
  --text: #FFFFFF;
  --text-secondary: #B8B8B8;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-disabled: rgba(255, 255, 255, 0.3);
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-purple: 0 8px 24px rgba(103, 57, 183, 0.3);
  --shadow-yellow: 0 8px 24px rgba(255, 215, 0, 0.3);
  
  /* Focus */
  --focus: rgba(103, 57, 183, 0.3);
  
  /* Border Radius */
  --radius-sm: 10px;
  --radius: 12px;
  --radius-card: 24px;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(103, 57, 183, 0.12), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(255, 107, 157, 0.08), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(93, 173, 226, 0.06), transparent 60%),
    var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.app {
  height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 16px;
  position: relative;
}

.app.sidebar-collapsed {
  grid-template-columns: 84px 1fr;
}

.expand-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.app.sidebar-collapsed .expand-btn {
  display: grid;
}

.expand-btn:hover {
  background: var(--purple);
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.expand-btn:active {
  transform: scale(0.98);
}

.expand-btn svg {
  display: block;
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.sidebar.is-collapsed {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.app.sidebar-collapsed .expand-btn {
  display: none;
}

.app.sidebar-collapsed .sidebar__top {
  padding: 14px 10px 12px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.app.sidebar-collapsed .collapse-btn {
  position: static;
}

.app.sidebar-collapsed .brand {
  padding: 0;
  justify-content: center;
}

.app.sidebar-collapsed .brand__mark {
  width: 40px;
  height: 40px;
}

.app.sidebar-collapsed .brand__text {
  display: none;
}

.app.sidebar-collapsed .search {
  display: none;
}

.app.sidebar-collapsed .menu {
  padding: 12px 6px;
  scrollbar-width: none;
}

.app.sidebar-collapsed .menu::-webkit-scrollbar {
  width: 0;
}

.app.sidebar-collapsed .menu__item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 10px;
}

.app.sidebar-collapsed .menu__row {
  grid-template-columns: 1fr;
}

.app.sidebar-collapsed .menu__section-title,
.app.sidebar-collapsed .menu__divider,
.app.sidebar-collapsed .menu__label {
  display: none;
}

.app.sidebar-collapsed .menu__icon {
  width: 36px;
  height: 36px;
}

.app.sidebar-collapsed .menu__pin {
  display: none;
}

.app.sidebar-collapsed .sidebar__bottom {
  padding: 10px;
}

.app.sidebar-collapsed .sidebar__footer {
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.app.sidebar-collapsed .sidebar__version {
  display: none;
}

.app.sidebar-collapsed .hint {
  display: none;
}

.sidebar__top {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid rgba(103, 57, 183, 0.2);
}

.collapse-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.collapse-btn:hover {
  background: var(--purple);
  border-color: var(--purple-light);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.collapse-btn:active {
  transform: scale(0.95);
}

.collapse-btn svg {
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.is-collapsed .collapse-btn svg {
  transform: rotate(180deg);
}

.brand {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: 1px solid var(--purple-light);
  box-shadow: var(--shadow-purple);
  transition: all 0.2s ease;
}

.brand:hover .brand__mark {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple), var(--shadow-yellow);
}

.brand:active .brand__mark {
  transform: scale(0.95);
}

.brand:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand__subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.search {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.search:hover {
  border-color: var(--border-light);
}

.search__icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.2s ease;
}

.search__icon svg {
  display: block;
}

.search__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.search__input:focus-visible {
  outline: none;
  outline-offset: 0;
}

/* Remove browser-native inner borders/decoration on <input type="search"> */
.search__input::-webkit-search-decoration,
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-results-button,
.search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search__input::-ms-clear,
.search__input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.search__input::placeholder {
  color: var(--text-muted);
}

.search:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--focus), var(--shadow-purple);
  background: rgba(0, 0, 0, 0.4);
}

.search:focus-within .search__icon {
  color: var(--purple-light);
}

.menu {
  padding: 12px 10px;
  overflow: auto;
}

.menu::-webkit-scrollbar {
  width: 6px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}

.menu::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}

.menu::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}

.menu__section {
  padding: 0 6px;
}

.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.menu__section-title {
  padding: 10px 10px 4px;
  color: var(--text-disabled);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu__divider {
  height: 1px;
  margin: 8px 10px;
  background: var(--border);
}

.menu__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 4px;
  align-items: center;
}

.menu__item {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.2s ease;
}

.menu__item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.menu__item[aria-current="true"] {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: var(--purple-light);
  box-shadow: var(--shadow-purple);
  position: relative;
}

.menu__item[aria-current="true"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--yellow);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px var(--yellow);
}

.menu__item[aria-current="true"]:hover {
  transform: translateY(0);
}

.menu__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.menu__item:hover .menu__icon {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

.menu__item[aria-current="true"] .menu__icon {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--yellow);
}

.menu__icon img {
  width: 25px;
  height: 25px;
  display: block;
}

.menu__label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.menu__name {
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu__pin {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-disabled);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.menu__row:hover .menu__pin,
.menu__row:focus-within .menu__pin,
.menu__pin[data-pinned="true"] {
  opacity: 1;
}

.menu__pin:hover,
.menu__pin:focus-visible {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.24);
  color: var(--yellow);
  outline: none;
}

.menu__pin[data-pinned="true"] {
  color: var(--yellow);
}

.menu__pin svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.sidebar__bottom {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.sidebar__footer {
  margin-top: 8px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar__version {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-disabled);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar__version:hover {
  color: var(--yellow);
}

.support-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.support-btn:hover {
  background: var(--bg-panel);
  border-color: var(--purple-light);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.support-btn:active {
  transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  max-width: 500px;
  max-height: calc(100vh - 40px);
  width: 100%;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay[aria-hidden="false"] .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.modal__close:hover {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text);
}

.modal__header {
  padding: 40px 40px 24px;
  text-align: center;
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: 1px solid var(--purple-light);
  color: var(--text);
  box-shadow: var(--shadow-purple);
}

.modal__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal__body {
  padding: 0 40px 40px;
}

.modal__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px;
  text-align: center;
}

.modal__email-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.modal__email-box:hover {
  border-color: var(--purple-light);
  background: var(--bg-secondary);
}

.modal__email-box svg {
  color: var(--purple-light);
  flex-shrink: 0;
}

.modal__email {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.modal__email:hover {
  color: var(--purple-light);
  text-decoration: underline;
}

.modal__subtext {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.modal__tool-about {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal__tool-about-label {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal__tool-about-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}

.modal__tool-about-description,
.modal__tool-about-capabilities li,
.modal__tool-about-privacy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal__tool-about-description {
  margin: 0;
}

.modal__tool-about-capabilities {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding-left: 20px;
}

.modal__tool-about-privacy {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.command-palette {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

.command-palette[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.command-palette__panel {
  width: min(640px, 100%);
  max-height: min(620px, 76vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(30, 30, 30, 0.96);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139, 92, 246, 0.08);
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.2s ease;
}

.command-palette[aria-hidden="false"] .command-palette__panel {
  transform: translateY(0) scale(1);
}

.command-palette__header {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.command-palette__icon {
  display: grid;
  place-items: center;
  color: var(--purple-light);
}

.command-palette__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.command-palette__input:focus,
.command-palette__input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.command-palette__input::placeholder {
  color: var(--text-muted);
}

.command-palette__input::-webkit-search-decoration,
.command-palette__input::-webkit-search-cancel-button,
.command-palette__input::-webkit-search-results-button,
.command-palette__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.command-palette__key {
  padding: 4px 7px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.command-palette__body {
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.command-palette__title {
  margin: 2px 8px 8px;
  color: var(--text-disabled);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-palette__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-palette__section-title {
  padding: 10px 8px 4px;
  color: var(--text-disabled);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-palette__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: all 0.16s ease;
}

.command-palette__item[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(103, 57, 183, 0.85), rgba(91, 33, 182, 0.85));
  border-color: var(--purple-light);
  box-shadow: var(--shadow-purple);
}

.command-palette__item-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.command-palette__item-icon img {
  width: 24px;
  height: 24px;
}

.command-palette__item-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.command-palette__item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.command-palette__item-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12px;
}

.command-palette__item[aria-selected="true"] .command-palette__item-meta {
  color: rgba(255, 255, 255, 0.72);
}

.command-palette__empty {
  padding: 18px 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.command-palette__footer {
  display: flex;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-disabled);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .modal__header {
    padding: 30px 24px 20px;
  }

  .modal__body {
    padding: 0 24px 30px;
  }

  .modal__title {
    font-size: 24px;
  }

  .modal__icon {
    width: 56px;
    height: 56px;
  }

  .command-palette {
    padding-top: 8vh;
  }

  .command-palette__footer {
    display: none;
  }
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.main {
  display: grid;
  grid-template-rows: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(103, 57, 183, 0.2);
}

.main__content {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 60px;
  overflow: auto;
}

.empty__content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.empty__header {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.empty__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: 1px solid var(--purple-light);
  color: var(--text);
  box-shadow: var(--shadow-purple);
}

.empty__header-text {
  flex: 1;
  text-align: left;
}

.empty__title {
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 42px;
  margin: 0 0 8px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.empty__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.empty__feature:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}

.empty__section {
  display: grid;
  gap: 14px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.empty__section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.empty__section-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.empty__section-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.empty__section-meta {
  flex-shrink: 0;
  padding: 5px 9px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.empty__tool-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.empty__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.empty__feature {
  appearance: none;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.empty__feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.empty__feature:hover::before {
  transform: scaleX(1);
}

.empty__feature:hover {
  border-color: var(--purple-light);
  background: var(--bg-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.empty__feature.has-badge {
  padding-right: 66px;
}

.empty__feature-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(103, 57, 183, 0.2), rgba(103, 57, 183, 0.05));
  border: 1px solid rgba(103, 57, 183, 0.3);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 900;
  transition: all 0.3s ease;
}

.empty__feature-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.empty__feature:hover .empty__feature-icon {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: var(--purple-light);
  color: var(--text);
  transform: scale(1.06);
}

.empty__feature-icon svg {
  color: var(--purple-light);
  transition: all 0.3s ease;
}

.empty__feature:hover .empty__feature-icon svg {
  color: var(--text);
}

.seo-tool-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.seo-tool-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.seo-tool-link:hover,
.seo-tool-link:focus-visible {
  border-color: var(--purple-light);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
}

.empty__feature-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.empty__feature-name {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty__feature-meta {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty__feature-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(0, 208, 156, 0.35);
  border-radius: 999px;
  background: rgba(0, 208, 156, 0.12);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty__feature-badge.is-pinned {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
}

.empty__feature-badge.is-pinned svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty__recent-empty {
  grid-column: 1 / -1;
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.empty__tool-row .empty__feature {
  min-height: 86px;
  padding-right: 14px;
}

.empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(103, 57, 183, 0.15), rgba(103, 57, 183, 0.05));
  border: 1px solid var(--purple);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.4s backwards, pulse 2s ease-in-out 2s infinite;
  align-self: center;
}

.empty__cta svg {
  color: var(--purple-light);
  animation: slideRight 1.5s ease-in-out infinite;
}

.empty__cta kbd {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  margin: 0 2px;
  padding: 3px 7px;
  border: 1px solid rgba(151, 97, 255, 0.45);
  border-radius: 7px;
  background: rgba(15, 15, 18, 0.7);
  color: var(--yellow);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

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

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

@keyframes slideRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@media (max-width: 1200px) {
  .empty__tool-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .empty__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .empty {
    padding: 24px;
  }

  .empty__content {
    gap: 24px;
  }

  .empty__header {
    flex-direction: column;
    text-align: center;
  }

  .empty__header-text {
    text-align: center;
  }

  .empty__icon {
    width: 64px;
    height: 64px;
  }

  .empty__icon svg {
    width: 36px;
    height: 36px;
  }

  .empty__title {
    font-size: 28px;
  }

  .empty__subtitle {
    font-size: 15px;
  }

  .empty__section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .empty__section-meta {
    width: max-content;
  }

  .empty__tool-row,
  .empty__features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .empty__feature {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px;
  }

  .empty__feature-icon {
    width: 44px;
    height: 44px;
  }

  .empty__feature-copy {
    text-align: left;
  }

  .empty__cta {
    font-size: 13px;
    padding: 12px 20px;
  }
}

.frame {
  position: absolute;
  inset: 0;
  width: 111.11%;
  height: 111.11%;
  border: 0;
  background: transparent;
  display: none;
  transform: scale(0.9);
  transform-origin: 0 0;
}

.frame.is-visible {
  display: block;
  pointer-events: auto;
}

.frame-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frame-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.frame-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.frame-loader__card {
  display: grid;
  gap: 14px;
  place-items: center;
  padding: 22px 28px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.frame-loader__spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--yellow);
  animation: spin 0.8s linear infinite;
}

.frame-loader__text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.frame-loader__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.frame-loader__stage {
  font-weight: 600;
}

.frame-loader__percent {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 1fr;
  }

  .app.sidebar-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .app.sidebar-collapsed .sidebar {
    display: none;
  }

  .app.sidebar-collapsed .main {
    grid-row: 1;
  }

  .app.sidebar-collapsed .expand-btn {
    display: grid;
  }
}

/* Premium Animations */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.7), 0 0 70px rgba(255, 215, 0, 0.4);
  }
}

/* Custom Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--purple), var(--purple-dark));
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--purple-light), var(--purple));
}

/* Selection Style */
::selection {
  background: var(--yellow);
  color: var(--bg);
}

::-moz-selection {
  background: var(--yellow);
  color: var(--bg);
}

/* Enhanced Focus Styles */
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
