.prompt-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1400;
}

.prompt-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.prompt-modal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.76) 0%, rgba(13, 13, 13, 0.88) 100%);
}

.prompt-modal__content {
  position: relative;
  width: min(960px, 100%);
  max-height: 82vh;
  background: linear-gradient(165deg, rgba(17, 17, 17, 0.95) 0%, rgba(32, 32, 32, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 36px 88px rgba(0, 0, 0, 0.45);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.prompt-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prompt-modal__header h2 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600;
}

.prompt-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.prompt-modal__close:hover,
.prompt-modal__close:focus-visible {
  transform: scale(1.04);
  background: rgba(72, 99, 247, 0.45);
}

.prompt-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.prompt-modal__body pre {
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--white);
}

.prompt-modal__actions {
  display: flex;
  justify-content: flex-end;
}

.prompt-modal__actions .btn {
  min-width: 200px;
  border-radius: 999px;
  justify-content: center;
}

body.has-modal-open {
  overflow: hidden;
}

:root {
  --white: #ffffff;

  --accent-600: #4863f7;
  --accent-500: #7878d7;

  --alert-600: #ff5c5c;
  --alert-800: rgba(255, 92, 92, 0.08);

  --gray-900: #0d0d0d;
  --gray-800: #111111;
  --gray-700: #1a1a1a;
  --gray-200: #424242;

  --gray-100: #737373;

  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb: linear-gradient(180deg, rgba(72, 99, 247, 0.85), rgba(120, 120, 215, 0.7));
  --scrollbar-thumb-hover: linear-gradient(180deg, rgba(82, 139, 255, 0.95), rgba(140, 120, 247, 0.85));
}

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

body {
  background-color: var(--gray-900);
  color: var(--white);
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 120, 215, 0.8) rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
  margin: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid rgba(13, 13, 13, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body,
input,
button {
  font-family: "Inter", sans-serif;
}

.app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.about-page {
  background: linear-gradient(160deg, var(--gray-900), var(--gray-800));
  min-height: 100vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.ia-page {
  background: radial-gradient(circle at top, rgba(120, 120, 215, 0.15), transparent 55%),
    linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
  min-height: 100vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.prompts-page {
  background: radial-gradient(circle at top right, rgba(72, 99, 247, 0.18), transparent 60%),
    linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
  min-height: 100vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.editor-page {
  background: radial-gradient(circle at top left, rgba(72, 99, 247, 0.14), transparent 55%),
    linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
  min-height: 100vh;
  color: var(--white);
}

.editor-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.editor-layout {
  flex: 1;
  display: flex;
  width: 100%;
  position: relative;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 5vw, 80px) 16px;
  gap: 32px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 6vw, 96px) 24px;
  gap: 32px;
}

.prompts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 6vw, 96px) 24px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 28px;
}

.about-nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-100);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  background: var(--accent-600);
}

.nav-link.is-active {
  color: var(--white);
}

.nav-link.is-active::after {
  background: var(--accent-600);
}

.about-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px clamp(24px, 6vw, 96px) 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.ia-main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 32px clamp(24px, 6vw, 104px) 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.prompts-main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 32px clamp(24px, 6vw, 104px) 88px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.prompts-hero {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.prompts-hero h1 {
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.prompts-hero p {
  font-size: clamp(15px, 2.6vw, 18px);
  color: var(--gray-100);
  line-height: 1.7;
}

.editor-hero {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.editor-title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}

.editor-subtitle {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--gray-100);
  line-height: 1.7;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(72, 99, 247, 0.2);
  color: var(--accent-500);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompts-search {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 17, 0.8);
  padding: 14px 18px 14px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.prompts-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 16px;
}

.prompts-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

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

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(17, 17, 17, 0.65);
  color: var(--white);
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.3;
  min-width: 140px;
  overflow-wrap: anywhere;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--accent-600);
  background: rgba(72, 99, 247, 0.25);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent-600), #8f7bf7);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(72, 99, 247, 0.35);
}

.prompts-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.summary-card {
  background: rgba(17, 17, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  gap: 6px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.summary-card strong {
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.summary-card span {
  color: var(--gray-100);
  font-size: 14px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.prompt-card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.prompt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(72, 99, 247, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.prompt-card:hover,
.prompt-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(72, 99, 247, 0.3);
  border-color: rgba(72, 99, 247, 0.45);
}

.prompt-card:hover::before,
.prompt-card:focus-within::before {
  opacity: 1;
}

.prompt-card header {
  display: grid;
  gap: 12px;
}

.prompt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(72, 99, 247, 0.18);
  color: var(--white);
  font-size: 13px;
  width: fit-content;
  font-weight: 600;
}

.prompt-card h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600;
  line-height: 1.2;
}

.prompt-card p {
  color: var(--gray-100);
  line-height: 1.6;
  font-size: clamp(14px, 2.5vw, 16px);
}

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

.prompt-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-100);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prompt-copy {
  border-radius: 999px;
  padding: 0 24px;
  height: 44px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent-600), #8f7bf7);
  box-shadow: 0 16px 40px rgba(72, 99, 247, 0.32);
  cursor: pointer;
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prompt-copy:hover,
.prompt-copy:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(72, 99, 247, 0.4);
}

.prompt-copy.is-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.prompt-copy.is-error {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prompt-actions .btn {
  flex: 0 1 auto;
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 999px;
  justify-content: center;
}

.prompt-actions .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.prompt-actions .btn-outline:hover,
.prompt-actions .btn-outline:focus-visible {
  background: rgba(72, 99, 247, 0.16);
  border-color: rgba(72, 99, 247, 0.5);
  box-shadow: 0 12px 30px rgba(72, 99, 247, 0.25);
  transform: translateY(-1px);
}

.prompt-actions .prompt-copy {
  flex: 0 1 auto;
  padding: 0 20px;
  min-height: 40px;
}

.prompts-tips {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(17, 17, 17, 0.85);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 18px;
  max-width: 840px;
}

.prompts-tips h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
}

.prompts-tips ul {
  display: grid;
  gap: 14px;
  padding-left: 18px;
  color: var(--gray-100);
  line-height: 1.6;
}

.prompts-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px clamp(24px, 5vw, 96px) 48px;
  text-align: center;
  color: var(--gray-100);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ia-hero {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.ia-hero h1 {
  font-size: clamp(26px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.ia-hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--gray-100);
  line-height: 1.7;
}

.ia-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(72, 99, 247, 0.18);
  color: var(--accent-500);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.ia-card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.7) 100%);
  border: 1px solid rgba(120, 120, 215, 0.18);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ia-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(72, 99, 247, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.ia-card>* {
  position: relative;
  z-index: 1;
}

.ia-card:hover,
.ia-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(72, 99, 247, 0.25);
  border-color: var(--accent-600);
}

.ia-card:hover::before,
.ia-card:focus-within::before {
  opacity: 1;
}

.ia-card header {
  display: grid;
  gap: 12px;
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(72, 99, 247, 0.16);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
}


.prompt-actions {
  flex-direction: column;
}

.prompt-modal__content {
  padding: 20px;
  max-height: 88vh;
}

.prompt-modal__body {
  padding: 16px;
}

.prompt-modal__actions {
  justify-content: stretch;
}

.prompt-modal__actions .btn {
  width: 100%;
}

.ia-card h2 {
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 600;
}

.ia-card p {
  color: var(--gray-100);
  font-size: clamp(14px, 2.4vw, 16px);
  line-height: 1.6;
}

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

.ia-chip {
  list-style: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-100);
  font-size: clamp(12px, 2.2vw, 13px);
}

.ia-actions {
  display: flex;
  justify-content: flex-start;
}

.ia-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding-right: 26px;
}

.ia-link::after {
  content: "➜";
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ia-link:hover::after,
.ia-link:focus-visible::after {
  transform: translateX(4px);
  opacity: 1;
}

.ia-cta {
  border: 1px solid rgba(120, 120, 215, 0.18);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 6vw, 60px);
  display: grid;
  gap: 16px;
  background: rgba(17, 17, 17, 0.75);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.ia-cta h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
}

.ia-cta p {
  color: var(--gray-100);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.ia-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.ia-cta-actions .btn {
  text-decoration: none;
  text-align: center;
  min-width: 200px;
  min-height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  justify-content: center;
}

.ia-cta-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 58%);
  transition: opacity 0.3s ease;
}

.ia-cta-actions .btn:hover::after,
.ia-cta-actions .btn:focus-visible::after {
  opacity: 0.45;
}

.ia-cta-actions .btn:hover,
.ia-cta-actions .btn:focus-visible {
  transform: translateY(-3px);
}

.ia-cta-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent-600), #8f7bf7);
  border: none;
  box-shadow: 0 16px 36px rgba(72, 99, 247, 0.35);
}

.ia-cta-actions .btn-primary:hover,
.ia-cta-actions .btn-primary:focus-visible {
  box-shadow: 0 22px 46px rgba(72, 99, 247, 0.42);
}

.ia-cta-actions .btn-outline {
  background: rgba(72, 99, 247, 0.08);
  border: 1px solid rgba(120, 120, 215, 0.4);
  color: var(--white);
  padding: 0 16px;
  box-shadow: inset 0 0 0 1px rgba(72, 99, 247, 0.25);
}

.btn-outline {
  text-align: center;
}

.ia-cta-actions .btn-outline:hover,
.ia-cta-actions .btn-outline:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 28px rgba(72, 99, 247, 0.24);
}

.ia-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px clamp(24px, 5vw, 80px) 48px;
  text-align: center;
  color: var(--gray-100);
  font-size: 14px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(72, 99, 247, 0.12);
  color: var(--accent-500);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}

.about-description {
  font-size: clamp(15px, 2.6vw, 18px);
  color: var(--gray-100);
  line-height: 1.7;
  max-width: 720px;
}

.about-note {
  font-size: clamp(14px, 2.4vw, 16px);
  color: var(--gray-100);
  max-width: 600px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent-600);
  background: rgba(72, 99, 247, 0.08);
  border-radius: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: rgba(17, 17, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
}

.about-card h2 {
  font-size: 20px;
  font-weight: 600;
}

.about-card p,
.about-card li {
  color: var(--gray-100);
  line-height: 1.6;
}

.about-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.about-social {
  display: grid;
  text-align: center;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.social-links {
  display: grid;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  background: rgba(72, 99, 247, 0.12);
  border: 1px solid rgba(72, 99, 247, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(72, 99, 247, 0.2);
  border-color: var(--accent-600);
  box-shadow: 0 16px 32px rgba(72, 99, 247, 0.28);
}

.social-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(72, 99, 247, 0.18), rgba(120, 120, 215, 0.08));
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  transform: scale(1.05) rotate(-2deg);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.social-icon img {
  width: 22px;
  height: 22px;
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-text strong {
  font-size: 16px;
  font-weight: 600;
}

.social-text small {
  font-size: 13px;
  color: var(--gray-100);
}

.social-arrow {
  width: 20px;
  height: 20px;
}

.about-cta {
  border: 1px solid rgba(120, 120, 215, 0.25);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(72, 99, 247, 0.1);
}

.about-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
}

.about-cta .btn-primary {
  align-self: center;
  margin-top: 12px;
  padding: 0 32px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-600), #8f7bf7);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(72, 99, 247, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.about-cta .btn-primary:hover,
.about-cta .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(72, 99, 247, 0.4);
  opacity: 0.95;
}

.about-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px clamp(24px, 5vw, 80px) 48px;
  text-align: center;
  color: var(--gray-100);
  font-size: 14px;
}

.about-footer small {
  display: block;
}

@media (max-width: 720px) {
  .about-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .about-main {
    padding: 24px clamp(20px, 8vw, 48px) 48px;
  }

  .prompts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .prompts-main {
    padding: 24px clamp(20px, 8vw, 48px) 56px;
    gap: 40px;
  }

  .prompts-filters {
    gap: 10px;
    width: 100%;
  }

  .prompts-filters .filter-chip {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding: 10px 16px;
  }

  .main {
    padding: 24px clamp(16px, 8vw, 32px);
    gap: 24px;
  }

  .main-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .main-header .btn,
  .main-header .btn-primary,
  .main-header .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .w-150 {
    width: 100%;
  }

  .about-social {
    padding: 24px;
  }

  .ia-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ia-main {
    padding: 24px clamp(20px, 8vw, 48px) 56px;
    gap: 40px;
  }

  .ia-grid {
    gap: 20px;
  }

  .ia-card {
    padding: 24px;
  }

  .prompts-grid {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    padding: 24px;
  }

  .prompt-actions .btn {
    flex: 1 1 100%;
  }

  .social-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }

  .social-arrow {
    align-self: flex-end;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }
}

.main {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 9vw, 124px);
  gap: 32px;
  overflow-y: auto;
}

.main-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.btn {
  gap: 10px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-outline {
  background: linear-gradient(135deg, rgba(72, 99, 247, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(120, 120, 215, 0.35);
  color: var(--white);
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(72, 99, 247, 0.2);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(72, 99, 247, 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(120, 120, 215, 0.6);
  box-shadow: inset 0 0 0 1px rgba(120, 120, 215, 0.6), 0 8px 24px rgba(72, 99, 247, 0.25);
  transform: translateY(-2px);
}

.icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent-600);
  border: 1px solid var(--accent-500);
  min-width: 0;
  color: var(--white);
  padding: 0 24px;
  transition: opacity 0.5s;
}

.btn-primary:hover {
  opacity: 0.8;
}

.w-150 {
  width: 150px;
  justify-content: center;
}

.prompt-title {
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 32px);
  outline: none;
}

.prompt-content {
  font-size: clamp(15px, 1.2vw + 12px, 18px);
  color: var(--white);
  outline: none;
  line-height: 1.8;
}

.editable-wrapper {
  position: relative;
}

.editable-wrapper::before {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--gray-200);
  pointer-events: none;
  opacity: 0;
}

.editable-wrapper.is-empty::before {
  opacity: 1;
}

#title-wrapper.is-empty {
  font-size: 32px;
  font-weight: 600;
  color: var(--gray-200);
}

#content-wrapper.is-empty {
  font-size: 16px;
  color: var(--gray-200);
  line-height: 32px;
}

.icon-button {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.open-toggle {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  background: rgba(13, 13, 13, 0.82);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.open-toggle:hover,
.open-toggle:focus-visible {
  transform: translateY(-2px);
}

.open-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.sidebar {
  z-index: 1000;
  --sidebar-width: min(400px, 32vw);
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 32px;
  background-color: var(--gray-800);
  border-right: 0.5px solid var(--gray-700);
  min-width: 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s, opacity 0.3s ease;
}

.sidebar.collapsed {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(calc(-100% - 24px));
  pointer-events: none;
  box-shadow: none;
}

.editor-layout.sidebar-is-collapsed .main {
  margin-left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.sidebar-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-100);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.sidebar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
  color: var(--white);
}

.sidebar-link:hover::after,
.sidebar-link:focus-visible::after {
  background: var(--accent-600);
}

.sidebar-link.is-active {
  color: var(--white);
}

.sidebar-link.is-active::after {
  background: var(--accent-600);
}

.search-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-700);
  gap: 20px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 22px;
  transform: translateY(-50%);
  z-index: 10;
}

.search-input {
  background: transparent;
  height: 44px;
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: none;
  color: var(--white);
  font-size: 16px;
  border-radius: 6px;
  padding-left: 48px;
}

.search-input::placeholder {
  color: var(--gray-200);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.logo {
  height: 24px;
}

.prompt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
  cursor: pointer;
  margin-top: 20px;
}

.prompt-empty {
  list-style: none;
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-align: center;
  color: var(--gray-100);
  display: grid;
  gap: 8px;
}

.prompt-empty h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.prompt-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.prompt-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-item-description {
  font-size: 12px;
  color: var(--gray-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
  height: 32px;
  width: 32px;
}

.btn-icon:hover {
  background: var(--alert-800);
}

.icon-trash {
  width: 20px;
  height: 20px;
}

@media (max-width: 950px) {
  .open-toggle {
    top: 26px;
    left: auto;
    right: 24px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;
    max-width: 360px;
    transform: translateX(-100%);
    z-index: 1100;
    flex-basis: auto;
  }

  .sidebar.collapsed {
    position: fixed;
    transform: translateX(-110%);
  }

  .sidebar-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-link {
    font-size: 14px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  }

  .main {
    padding: 24px 32px;
    margin-left: 0;
    overflow-y: auto;
    padding-top: 96px;
  }

  .prompts-header {
    padding-right: calc(32px + 64px);
  }
}

@media (max-width: 540px) {
  .about-main {
    gap: 32px;
  }

  .about-grid {
    gap: 18px;
  }

  .about-card {
    padding: 20px;
  }

  .about-social {
    text-align: left;
    gap: 20px;
  }

  .social-links {
    gap: 12px;
  }

  .about-cta {
    padding: 24px;
  }

  .about-cta .btn-primary {
    width: 100%;
  }

  .ia-hero {
    gap: 14px;
  }

  .ia-grid {
    grid-template-columns: 1fr;
  }

  .ia-card {
    padding: 22px;
    gap: 16px;
  }

  .ia-tags {
    gap: 6px;
  }

  .ia-cta-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .prompts-search {
    padding: 12px 16px 12px 44px;
  }

  .filter-chip {
    width: 100%;
    justify-content: center;
    min-width: 0;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    row-gap: 2px;
  }

  .prompts-summary {
    grid-template-columns: 1fr;
  }

  .prompt-details pre {
    font-size: 13px;
  }
}

@media (min-width: 960px) {

  #btn-copy,
  #btn-save {
    min-width: 150px;
  }
}