/* ===== BASIL SERVICE — Design System ===== */
:root {
  --bg: #000000;
  --bg-elevated: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;

  --crimson: #D81B4B;
  --crimson-dark: #b0153d;
  --crimson-glow: rgba(216, 27, 75, 0.35);

  --gray: #666666;
  --gray-light: #999999;
  --white: #f5f5f5;

  --yellow: #F2E31C;
  --green: #4CAF50;

  --font-display: 'Permanent Marker', cursive;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Accent Bars (logo motif) ===== */
.accent-bars {
  display: flex;
  gap: 6px;
  margin: 16px 0;
}

.accent-bars--small {
  gap: 4px;
  margin: 8px 0;
}

.accent-bars__item {
  display: block;
  width: 48px;
  height: 10px;
  border-radius: 2px;
  transform: skewX(-12deg);
  transition: transform var(--transition);
}

.accent-bars--small .accent-bars__item {
  width: 28px;
  height: 6px;
}

.accent-bars__item--yellow { background: var(--yellow); }
.accent-bars__item--red    { background: var(--crimson); }
.accent-bars__item--green  { background: var(--green); }

.accent-bars:hover .accent-bars__item:nth-child(1) { transform: skewX(-12deg) translateX(-4px); }
.accent-bars:hover .accent-bars__item:nth-child(3) { transform: skewX(-12deg) translateX(4px); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__menu {
  display: flex;
  gap: 36px;
}

.nav__menu a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transform: skewX(-12deg);
  transition: width var(--transition);
}

.nav__menu a:hover {
  color: var(--white);
}

.nav__menu a:hover::after {
  width: 100%;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

.btn--primary:hover {
  background: var(--crimson-dark);
  border-color: var(--crimson-dark);
  box-shadow: 0 0 30px var(--crimson-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.btn--full {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(216, 27, 75, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(242, 227, 28, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 80% 90%, rgba(76, 175, 80, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  line-height: 1;
}

.hero__basil {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  color: var(--crimson);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.hero__service {
  font-family: var(--font-body);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-light);
  max-width: 480px;
  margin-top: 8px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-img {
  max-width: 420px;
  filter: drop-shadow(0 0 60px rgba(216, 27, 75, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section__header {
  margin-bottom: 60px;
}

.section__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--white);
  line-height: 1.1;
}

/* ===== Services ===== */
.services {
  background: var(--bg-elevated);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.service-card--featured {
  border-color: rgba(216, 27, 75, 0.3);
  background: linear-gradient(135deg, rgba(216, 27, 75, 0.08) 0%, var(--bg-card) 60%);
}

.service-card--featured:hover {
  border-color: rgba(216, 27, 75, 0.5);
  box-shadow: 0 0 40px rgba(216, 27, 75, 0.15);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gray);
  opacity: 0.5;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  margin: 16px 0 12px;
}

.service-card__text {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.7;
}

.service-card__accent {
  position: absolute;
  bottom: 0;
  left: 32px;
  width: 60px;
  height: 4px;
  transform: skewX(-12deg);
  border-radius: 2px;
}

/* ===== About ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text {
  font-size: 17px;
  color: var(--gray-light);
  line-height: 1.8;
  margin-top: 8px;
}

.about__stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.about__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--crimson);
}

.about__stat-label {
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about__frame {
  position: relative;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.about__frame::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 32px;
  width: 80px;
  height: 3px;
  background: var(--crimson);
  transform: skewX(-12deg);
}

.about__frame img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

/* ===== Work ===== */
.work {
  background: var(--bg-elevated);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.work-card__preview {
  aspect-ratio: 16 / 10;
  transition: transform var(--transition);
}

.work-card:hover .work-card__preview {
  transform: scale(1.03);
}

.work-card__preview--1 {
  background: linear-gradient(135deg, #1a0a0f 0%, var(--crimson) 100%);
}
.work-card__preview--2 {
  background: linear-gradient(135deg, #0a0a1a 0%, #2a1a4a 100%);
}
.work-card__preview--3 {
  background: linear-gradient(135deg, #0f1a0a 0%, var(--green) 80%);
}
.work-card__preview--4 {
  background: linear-gradient(135deg, #1a1a0a 0%, var(--yellow) 80%);
}

.work-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.work-card__info h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.work-card__info p {
  font-size: 13px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Contact ===== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  font-size: 17px;
  color: var(--gray-light);
  margin-top: 8px;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.contact__link {
  font-size: 18px;
  color: var(--crimson);
  transition: color var(--transition);
}

.contact__link:hover {
  color: var(--yellow);
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--crimson);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__content,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__logo-img {
    max-width: 280px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav__burger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__menu li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav__burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__basil {
    font-size: 56px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Archives Page ===== */
.archives-page {
  padding-top: 72px;
}

.archives-hero {
  padding-bottom: 40px;
}

.archives-hero__text {
  font-size: 17px;
  color: var(--gray-light);
  max-width: 560px;
  margin-top: 8px;
}

.nav__active {
  color: var(--crimson) !important;
}

.btn--small {
  padding: 10px 20px;
  font-size: 12px;
}

.btn--danger {
  background: transparent;
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
}

.btn--danger:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  background: var(--bg-card);
  transition: all var(--transition);
}

.upload-zone.is-dragover {
  border-color: var(--crimson);
  background: rgba(216, 27, 75, 0.08);
}

.upload-zone__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-zone__title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.upload-zone__hint {
  color: var(--gray);
  margin-bottom: 16px;
}

.upload-zone__formats {
  font-size: 13px;
  color: var(--gray);
  margin-top: 16px;
}

.upload-progress {
  margin-top: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.upload-progress__bar {
  height: 4px;
  background: var(--crimson);
  border-radius: 2px;
  width: 0;
  transition: width 0.2s;
  transform: skewX(-12deg);
}

.upload-progress__text {
  display: block;
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 8px;
}

.archives-list-section {
  background: var(--bg-elevated);
}

.archives-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.archives-list__title {
  font-family: var(--font-display);
  font-size: 32px;
}

.archives-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.archives-empty code {
  color: var(--yellow);
  font-size: 14px;
}

.archives-loading {
  text-align: center;
  color: var(--gray);
  padding: 40px;
}

.archives-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: all var(--transition);
  flex-wrap: wrap;
}

.archive-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
}

.archive-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.archive-card__name {
  font-size: 16px;
  font-weight: 600;
  word-break: break-all;
}

.archive-card__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray);
}

.archive-card__comment {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  text-align: left;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.archive-card__comment:hover {
  border-color: rgba(216, 27, 75, 0.4);
  background: rgba(216, 27, 75, 0.05);
}

.archive-card__comment-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 6px;
}

.archive-card__comment-text {
  display: block;
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.archive-card__comment-empty {
  color: var(--gray);
  font-style: italic;
}

.modal__dialog--comment {
  max-width: 560px;
}

.comment-modal__filename {
  font-size: 13px;
  color: var(--gray);
  word-break: break-all;
  margin-bottom: 12px;
}

.comment-modal__textarea {
  min-height: 140px;
}

.comment-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.archive-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: skewX(-8deg);
}

.badge--yellow {
  background: rgba(242, 227, 28, 0.2);
  color: var(--yellow);
}

.badge--green {
  background: rgba(76, 175, 80, 0.2);
  color: var(--green);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  word-break: break-all;
  padding-right: 16px;
}

.modal__close {
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--white);
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
}

.modal__loading,
.modal__error {
  text-align: center;
  color: var(--gray-light);
  padding: 20px;
}

.modal__error {
  color: #ff6b6b;
}

.contents-table-wrap {
  overflow-x: auto;
}

.contents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.contents-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contents-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--gray-light);
}

.contents-table__name {
  color: var(--white) !important;
  word-break: break-all;
}

.contents-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  border-color: var(--green);
  color: var(--green);
}

.toast--error {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

@media (max-width: 640px) {
  .archive-card {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-card__actions {
    flex-direction: column;
  }

  .archive-card__actions .btn {
    width: 100%;
  }

  .upload-zone {
    padding: 40px 20px;
  }
}

/* ===== Convert Page ===== */
.convert-page {
  padding-top: 72px;
}

.convert-hero {
  padding-bottom: 40px;
}

.convert-hero__text {
  font-size: 17px;
  color: var(--gray-light);
  max-width: 640px;
  margin-top: 8px;
}

.convert-about {
  background: var(--bg-elevated);
  padding-top: 60px;
  padding-bottom: 60px;
}

.convert-about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.convert-about__card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.convert-about__card:hover {
  border-color: rgba(216, 27, 75, 0.3);
  transform: translateY(-2px);
}

.convert-about__icon {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--crimson);
  display: block;
  margin-bottom: 12px;
}

.convert-about__card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}

.convert-about__card p {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.7;
}

.convert-about__card code {
  color: var(--yellow);
  font-size: 13px;
}

.convert-workspace {
  padding-top: 60px;
}

.convert-notifications {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.convert-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px;
}

.convert-panel__section {
  margin-bottom: 32px;
}

.convert-panel__section:last-child {
  margin-bottom: 0;
}

.convert-panel__title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(216, 27, 75, 0.3);
}

.convert-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.convert-form-grid__wide {
  grid-column: 1 / -1;
}

.convert-textarea {
  width: 100%;
  min-height: 280px;
  padding: 16px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--white);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}

.convert-textarea:focus {
  border-color: var(--crimson);
}

.convert-textarea::placeholder {
  color: var(--gray);
}

.convert-panel__action {
  text-align: center;
  margin: 32px 0;
}

.convert-result {
  position: relative;
}

.convert-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.btn--success {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: var(--white) !important;
}

.convert-placeholders {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.convert-placeholders__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.convert-placeholders__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .convert-about__grid {
    grid-template-columns: 1fr;
  }

  .convert-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .convert-panel {
    padding: 24px 20px;
  }

  .convert-copy-btn {
    position: static;
    margin-top: 12px;
    width: 100%;
  }

  .convert-notifications {
    left: 24px;
    right: 24px;
    max-width: none;
  }
}

.upload-zone--compact {
  padding: 32px 24px;
  margin-bottom: 20px;
}

.deploy-selected {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--gray);
}

.deploy-selected strong {
  color: var(--white);
}

.deploy-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray);
}

.deploy-hint--warn {
  color: #ffd166;
}

.deploy-status {
  margin-top: 16px;
  color: var(--gray);
  font-size: 14px;
}

.deploy-status code,
.deploy-field__hint code {
  color: var(--white);
}

.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.deploy-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
}

.deploy-card__title {
  font-size: 20px;
  margin-bottom: 20px;
}

.deploy-field {
  display: block;
  margin-bottom: 16px;
}

.deploy-field__label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.deploy-field__hint {
  font-size: 13px;
  color: var(--gray);
  margin: -8px 0 12px;
}

.deploy-select,
.deploy-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
}

.deploy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: 14px;
  cursor: pointer;
}

.deploy-checkbox input {
  margin-top: 3px;
  accent-color: var(--crimson);
}

.deploy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.deploy-result--empty {
  color: var(--gray);
}

.deploy-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.deploy-summary--ok {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.deploy-summary--error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.deploy-note {
  margin-bottom: 12px;
  color: var(--gray);
}

.deploy-projects {
  display: grid;
  gap: 12px;
}

.deploy-project {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.deploy-project--ok {
  background: rgba(255, 255, 255, 0.02);
}

.deploy-project--error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.25);
}

.deploy-project__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.deploy-project__meta {
  font-size: 13px;
  color: var(--gray);
}

.deploy-errors,
.deploy-warnings {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.deploy-errors {
  color: #ff8a8a;
}

.deploy-warnings {
  color: #ffd166;
}

.badge--red {
  background: rgba(255, 107, 107, 0.2);
  color: #ff8a8a;
}

.deploy-links-text {
  width: 100%;
  min-height: 140px;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.deploy-result-note {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

@media (max-width: 900px) {
  .deploy-grid {
    grid-template-columns: 1fr;
  }
}
