:root {
  --bg: #f8f9fc;
  --panel: #151914;
  --panel-2: #191d17;
  --border: #343a2e;
  --border-soft: #292e27;
  --text: #a3c43a;
  --muted: #9aa296;
  --muted-2: #727a70;
  --accent: #a3c43a;
  --accent-2: #b6d94a;
  --accent-dark: #738e22;
  --danger: #d77c7c;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

/* body {
  margin: 0;
 
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
} */

button, input, select { font: inherit; }

.page-hero-title {
    font-weight: 800;
    display: block;
    /* background: linear-gradient(90deg, #6c5ce7, #a866ff); */
    background: linear-gradient(to right, #a3c43a, #a866ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.topbar {
  height: 76px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(16, 19, 15, .88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.close-button, .fullscreen-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .2s ease;
}
.icon-button { width: 38px; height: 38px; border-radius: 10px; }
.close-button:hover, .fullscreen-button:hover {
  color: var(--text);
  border-color: #59634d;
  background: #1c211a;
}

.workspace {
  width: min(1500px, 100%);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.controls-panel {
  padding: 32px 30px 26px;
  border-right: 1px solid var(--border);
  background: var(--panel-2);
}

.panel-heading, .preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.panel-heading h1, .preview-header h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.025em;
}
.eyebrow {
  font-size: 20px;
  letter-spacing: .15em;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
}
.close-button {
  width: 52px; height: 32px;
  border-radius: 5px;
  font-size: 12px;
}

.upload-zone {
  min-height: 188px;
  border: 1px dashed #4a5144;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  background: rgba(10, 13, 10, .2);
  transition: .2s ease;
  outline: none;
}
.upload-zone:hover, .upload-zone.dragover, .upload-zone:focus-visible {
  border-color: var(--accent);
  background: rgba(163,196,58,.05);
}
.upload-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #2c3815;
  color: var(--accent-2);
  font-size: 23px;
  margin-bottom: 12px;
}
.upload-title { font-size: 14px; font-weight: 800; }
.upload-help { font-size: 11px; color: var(--muted); margin-top: 6px; }
.upload-name {
  max-width: 100%;
  margin-top: 10px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-grid, .option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dimension-grid { margin-top: 27px; }

label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  color: #d4d9cf;
  font-weight: 700;
}
label span { color: var(--muted-2); font-weight: 500; }

.tool-input {
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #3c4238;
  background: #eef0f2;
  color: #1d211d;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none !important;
}
.tool-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(163,196,58,.12) !important;
}
.tool-input:disabled {
  opacity: .72;
  cursor: not-allowed;
}
.form-select {
  background-position: right .75rem center;
}

.aspect-row {
  width: 100%;
  min-height: 56px;
  margin: 16px 0 20px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1a1e18;
  color: #dce2d6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.aspect-row:disabled { opacity: .55; cursor: not-allowed; }
.aspect-row > span:first-child { display: flex; align-items: center; gap: 9px; }
.aspect-row i { color: var(--accent); font-size: 17px; }

.switch {
  width: 32px; height: 19px;
  padding: 3px;
  border-radius: 999px;
  background: #42473e;
  transition: .2s ease;
}
.switch span {
  display: block;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #8f9788;
  transition: .2s ease;
}
.aspect-row.active .switch { background: #77931e; }
.aspect-row.active .switch span {
  transform: translateX(13px);
  background: #c4e365;
}

.option-grid { margin-bottom: 16px; }

.primary-action, .secondary-action {
  width: 100%;
  min-height: 50px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: .2s ease;
}
.primary-action {
  border: 1px solid var(--accent);
  color: #182008;
  background: var(--accent-2);
  margin-bottom: 10px;
}
.primary-action:hover:not(:disabled) {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.secondary-action {
  border: 1px solid #596052;
  color: #e4e9df;
  background: transparent;
}
.secondary-action:hover:not(:disabled) { background: #1b2119; }
.primary-action:disabled, .secondary-action:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.tool-note {
  display: flex;
  gap: 9px;
  color: #818a7c;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 14px;
}
.tool-note i { color: var(--accent); font-size: 14px; }

.preview-panel {
  min-width: 0;
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
}
.preview-header { margin: 0 0 16px; align-items: center; }


.preview-card {
  min-height: 520px;
  height: min(63vh, 620px);
  border: 1px solid #343b32;
  border-radius: 17px;
  overflow: hidden;
  background: #10130f;
}
.canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.checkerboard {
  background-color: #11140f;
  background-image:
    linear-gradient(45deg, #1c201a 25%, transparent 25%),
    linear-gradient(-45deg, #1c201a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1c201a 75%),
    linear-gradient(-45deg, transparent 75%, #1c201a 75%);
  background-size: 26px 26px;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
}
#previewCanvas {
  display: none;
  max-width: calc(100% - 70px);
  max-height: calc(100% - 70px);
  width: auto;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
}

.empty-state { text-align: center; padding: 30px; }
.empty-art {
  position: relative;
  width: 170px;
  height: 118px;
  margin: 0 auto 18px;
  transform: rotate(-2deg);
}
.art-back {
  position: absolute;
  width: 142px; height: 104px;
  right: 7px; top: 10px;
  border-radius: 11px;
  background: #a9ca42;
  transform: rotate(3deg);
  box-shadow: 0 13px 25px rgba(0,0,0,.28);
}
.art-image {
  position: absolute;
  left: 7px; top: 1px;
  width: 146px; height: 102px;
  overflow: hidden;
  border-radius: 11px;
  border: 3px solid #e8ece4;
  background: #273027;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
.art-image svg { width: 100%; height: 100%; display: block; }
.empty-state h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #f0f2ed;
}
.empty-state p {
  margin: 8px 0 0;
  color: #899188;
  font-size: 11px;
  line-height: 1.55;
}

.preview-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 7px 10px;
  border: 1px solid #41483b;
  border-radius: 8px;
  background: rgba(13,16,12,.78);
  backdrop-filter: blur(8px);
  color: #dfe5da;
  font-size: 10px;
  font-weight: 700;
}
.fullscreen-button {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(13,16,12,.76);
  backdrop-filter: blur(8px);
}
.fullscreen-button:disabled { opacity: .35; cursor: not-allowed; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-top: 0;
  /* border-radius: 0 0 12px 12px; */
  overflow: hidden;
  margin-top: 16px;
}
.stat {
  min-height: 75px;
  padding: 17px 15px;
  border-right: 1px solid var(--border);
  background: #151914;
}
.stat:last-child { border-right: 0; }
.stat span {
  display: block;
  color: #727a70;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.stat strong {
  display: block;
  color: #dfe5db;
  font-size: 12px;
  font-weight: 800;
}

.tip-card {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid #2e352b;
  border-radius: 11px;
  background: rgba(26,31,24,.72);
}
.tip-icon {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--accent);
  background: #263014;
}
.tip-card strong { font-size: 11px; }
.tip-card p {
  margin: 3px 0 0;
  color: #818a7d;
  font-size: 10px;
  line-height: 1.5;
}

body.drag-active::after {
  content: "Drop image to upload";
  position: fixed;
  inset: 14px;
  z-index: 100;
  border: 2px dashed var(--accent);
  border-radius: 22px;
  background: rgba(17,20,15,.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 340px minmax(0, 1fr); }
  .controls-panel { padding-left: 22px; padding-right: 22px; }
  .preview-panel { padding-left: 18px; padding-right: 18px; }
  .preview-card { height: 55vh; min-height: 450px; }
}

@media (max-width: 820px) {
  .topbar { height: 68px; padding: 0 18px; }
  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .controls-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 24px 18px;
  }
  .preview-panel { padding: 24px 18px 32px; }
  .preview-card { height: 60vh; min-height: 400px; }
}

@media (max-width: 520px) {
  .brand-subtitle { display: none; }
  .privacy-pill { padding: 6px 8px; }
  .privacy-pill .privacy-dot { margin-right: 3px; }
  .icon-button { width: 34px; height: 34px; }
  .dimension-grid, .option-grid { gap: 10px; }
  .preview-card { height: 58vh; min-height: 360px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .empty-art { transform: scale(.85) rotate(-2deg); margin-bottom: 6px; }
}



/* =================================
   Common Section Styles
================================= */

.advantages-section,
.how-to-section {
    padding: 90px 0;
}

.advantages-section {
    background: #f8f9fc;
}

.how-to-section {
    background: #ffffff;
}

.section-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.10);
    color: #6c5ce7;
    font-size: 14px;
    font-weight: 600;
}

.section-title {
    color: #101828;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-description {
    max-width: 650px;
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}


/* =================================
   Advantages Cards
================================= */

.advantage-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 92, 231, 0.30);
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.08);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(108, 92, 231, 0.10);
    color: #6c5ce7;

    font-size: 23px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    color: #101828;
    font-size: 20px;
    font-weight: 650;
}

.advantage-card p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}


/* =================================
   How To Resize
================================= */

.step-card {
    position: relative;
    padding: 30px 25px;
    text-align: center;

    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;

    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.08);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 18px;

    color: #eaecf0;
    font-size: 28px;
    font-weight: 800;
}

.step-icon {
    width: 62px;
    height: 62px;

    margin: 10px auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #6c5ce7;
    color: #ffffff;

    font-size: 24px;

    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
}

.step-card h3 {
    margin-bottom: 10px;

    color: #101828;
    font-size: 19px;
    font-weight: 650;
}

.step-card p {
    margin: 0;

    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}


/* =================================
   Responsive
================================= */

@media (max-width: 767px) {

    .advantages-section,
    .how-to-section {
        padding: 65px 0;
    }

    .section-title {
        font-size: 29px;
    }

    .section-description {
        font-size: 16px;
    }

    .advantage-card {
        padding: 25px;
    }

}
