:root {
  --pac-purple: #731EFF;
  --pac-purple-hover: #5E12DF;
  --pac-blue: #0066FF;
  --pac-blue-hover: #0052CC;
  --pac-black: #191919;
  --pac-text: #191919;
  --pac-muted: #666666;
  --pac-border: #191919;
  --pac-light-border: #E5E7EB;
  --pac-card-bg: #F6F5F8;
  --pac-shadow: 4px 4px 0 0 #191919;
  --pac-shadow-sm: 3px 3px 0 0 #191919;
}

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

html, body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--pac-text);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ============================================================================
   1. GLOBAL HEADER
   ============================================================================ */
.pac-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.pac-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.pac-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.pac-logo-mark {
  height: 34px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pac-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #191919;
  letter-spacing: -0.03em;
}

.pac-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pac-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.pac-nav-link:hover,
.pac-nav-link.active {
  color: var(--pac-purple);
}

.pac-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pac-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.pac-header-divider {
  width: 1px;
  height: 16px;
  background: #DCDCDC;
}

.pac-login-btn {
  background: #191919;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pac-login-btn:hover {
  background: var(--pac-purple);
}

/* ============================================================================
   2. HOME PAGE (1:1 Pacdora Layout, Offline SVG Grid)
   ============================================================================ */
.pac-home-hero-wrap {
  width: 100%;
  background: linear-gradient(180deg, #E2D0FF 0%, rgba(246, 240, 255, 0.8) 26%, rgba(246, 240, 255, 0) 100%);
  position: relative;
}

.pac-home-hero-grid-bg {
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='%23731EFF' stroke-opacity='0.09' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: top center;
  padding: 56px 0 40px;
}

.pac-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 36px;
}

.pac-hero-h1 {
  font-size: 50px;
  line-height: 1.18;
  font-weight: 700;
  color: #191919;
  letter-spacing: -0.02em;
}

.pac-hero-h1-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.pac-hero-eyes {
  width: 68px;
  height: 46px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.pac-hero-brand {
  color: #731EFF;
}

/* 3 Neo-Brutalist Hero Cards */
.pac-hero-cards-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pac-hero-card {
  position: relative;
  border-radius: 20px;
  border: 1.5px solid #191919;
  box-shadow: 4px 4px 0 0 #191919;
  background: #FFFFFF;
  overflow: hidden;
  aspect-ratio: 687 / 520;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pac-hero-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #191919;
}

.pac-hero-card-bg {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 72%;
  height: 72%;
  object-fit: contain;
  z-index: 1;
}

.pac-hero-card-top {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pac-hero-card-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #191919;
  max-width: 220px;
}

.pac-hero-card-arrow {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1.5px solid #191919;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.pac-hero-card:hover .pac-hero-card-arrow {
  background: #191919;
  color: #FFFFFF;
}

/* Home Sections */
.pac-section {
  padding: 52px 0 24px;
}

.pac-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.pac-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #191919;
  letter-spacing: -0.015em;
}

/* Category Cards Grid */
.pac-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pac-cat-card {
  position: relative;
  height: 152px;
  border-radius: 16px;
  border: 1.5px solid #191919;
  box-shadow: 3px 3px 0 0 #191919;
  background: #F6F5F8;
  padding: 18px 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pac-cat-card:hover {
  background: #EFEAFF;
  transform: translate(-1px, -1px);
}

.pac-cat-card-name {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  color: #191919;
  max-width: 60%;
  line-height: 1.3;
}

.pac-cat-card-count {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7280;
}

.pac-cat-card-img {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  z-index: 1;
  transition: transform 0.2s ease;
}

.pac-cat-card:hover .pac-cat-card-img {
  transform: scale(1.06);
}

.pac-section-cta-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.pac-brutal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 12px;
  border: 1.5px solid #191919;
  box-shadow: 3px 3px 0 0 #191919;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pac-brutal-btn:hover {
  background: #F4F0FF;
  transform: translate(-1px, -1px);
}

.pac-brutal-btn-purple {
  background: #731EFF;
  color: #FFFFFF;
}

.pac-brutal-btn-purple:hover {
  background: #5E12DF;
}

/* Alternating Tool Rows */
.pac-tools-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pac-tool-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.pac-tool-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.pac-tool-row.reverse .pac-tool-media {
  order: 2;
}

.pac-tool-media {
  border-radius: 20px;
  border: 1.5px solid #191919;
  box-shadow: 4px 4px 0 0 #191919;
  overflow: hidden;
  background: #F6F5F8;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pac-tool-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pac-tool-info h3 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #191919;
  margin-bottom: 14px;
}

.pac-tool-info p {
  font-size: 15px;
  line-height: 1.65;
  color: #4B5563;
  margin-bottom: 12px;
}

.pac-tool-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pac-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pac-review-card {
  border-radius: 18px;
  border: 1.5px solid #191919;
  box-shadow: 4px 4px 0 0 #191919;
  background: #FFFFFF;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pac-journey-banner {
  margin: 64px 0 48px;
  border-radius: 24px;
  border: 1.5px solid #191919;
  box-shadow: 4px 4px 0 0 #191919;
  background: linear-gradient(135deg, #EDE3FF 0%, #F7F2FF 55%, #E5F0FF 100%);
  padding: 48px;
  text-align: center;
}

.pac-journey-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: #191919;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pac-journey-banner p {
  font-size: 16px;
  color: #4B5563;
  margin-bottom: 24px;
}

/* Footer */
.pac-footer {
  background: #141416;
  color: #FFFFFF;
  padding: 56px 0 36px;
  margin-top: 56px;
}

.pac-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pac-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.pac-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pac-footer-col li a {
  font-size: 13px;
  color: #9CA3AF;
  cursor: pointer;
}

.pac-footer-col li a:hover {
  color: #FFFFFF;
}

.pac-footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9CA3AF;
}

/* ============================================================================
   3. MOCKUP GENERATOR & DIELINE GENERATOR STUDIO (1:1 Floating Island Layout)
   ============================================================================ */
.studio-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #C8C8CE;
  user-select: none;
}

.studio-topbar {
  height: 54px;
  background: #FFFFFF;
  border-bottom: 1px solid #EAEAEA;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  flex-shrink: 0;
}

.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-home-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #191919;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.studio-title {
  font-size: 14px;
  font-weight: 700;
  color: #191919;
}

.studio-icon-btn-plain {
  background: transparent;
  border: none;
  color: #4B5563;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studio-icon-btn-plain:hover {
  background: #F3F4F6;
}

.studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
}

.studio-btn-outline:hover {
  border-color: #191919;
  background: #F9FAFB;
}

.studio-btn-share {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #F4F4F6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #191919;
}

.studio-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--pac-purple);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.studio-btn-primary:hover {
  background: var(--pac-purple-hover);
}

.studio-btn-blue {
  background: var(--pac-blue);
}

.studio-btn-blue:hover {
  background: var(--pac-blue-hover);
}

.studio-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 54px);
  overflow: hidden;
}

.studio-viewport-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-viewport-full canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Left Floating Island Rail */
.studio-left-rail-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  z-index: 25;
}

.studio-rail-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 10px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.studio-rail-card.main {
  flex: 1;
}

.studio-rail-item {
  width: 60px;
  padding: 8px 2px;
  border-radius: 12px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #4B5563;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
}

.studio-rail-item:hover {
  background: #F4F4F6;
  color: #191919;
}

.studio-rail-item.active-purple {
  color: var(--pac-purple);
  font-weight: 600;
}

.studio-rail-item.active-blue {
  color: var(--pac-blue);
  font-weight: 600;
}

.studio-rail-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-rail-item.active-purple .studio-rail-icon {
  background: #F3E8FF;
  color: var(--pac-purple);
}

.studio-rail-item.active-blue .studio-rail-icon {
  background: #EBF3FF;
  color: var(--pac-blue);
}

/* Left Floating Drawer Card */
.studio-drawer-card {
  position: absolute;
  top: 12px;
  left: 94px;
  bottom: 12px;
  width: 326px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  z-index: 25;
  overflow-y: auto;
}

.studio-drawer-collapse {
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.05);
}

.drawer-seg-tabs {
  background: #F4F4F6;
  border-radius: 10px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  flex-shrink: 0;
}

.drawer-seg-tabs.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.drawer-seg-btn {
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
}

.drawer-seg-btn.active-purple {
  background: var(--pac-purple);
  color: #FFFFFF;
}

.drawer-seg-btn.active-blue {
  background: var(--pac-blue);
  color: #FFFFFF;
}

.drawer-search {
  margin-top: 10px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.drawer-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 12px;
  color: #191919;
  min-width: 0;
}

.drawer-cat-pills {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.drawer-cat-pills::-webkit-scrollbar {
  display: none;
}

.drawer-cat-pill {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  cursor: pointer;
}

.drawer-cat-pill.active-purple {
  border-color: var(--pac-purple);
  color: var(--pac-purple);
  background: #FAF5FF;
}

.drawer-cat-pill.active-blue {
  border-color: var(--pac-blue);
  color: var(--pac-blue);
  background: #EFF6FF;
}

.drawer-models-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  flex: 1;
}

.drawer-models-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.drawer-model-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.drawer-model-thumb-box {
  width: 100%;
  aspect-ratio: 1;
  background: #F4F4F6;
  border-radius: 10px;
  border: 1.5px solid transparent;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drawer-model-item:hover .drawer-model-thumb-box {
  background: #ECECEF;
}

.drawer-model-item.selected-purple .drawer-model-thumb-box {
  border-color: var(--pac-purple);
  background: #F8F5FF;
}

.drawer-model-item.selected-blue .drawer-model-thumb-box {
  border-color: var(--pac-blue);
  background: #F0F7FF;
}

.drawer-model-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-swatches-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.drawer-swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  cursor: pointer;
}

.drawer-swatch-dot.active {
  outline: 1.5px solid #191919;
  outline-offset: 1px;
}

/* Right Floating Vertical Tool Pill */
.studio-right-tool-pill {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 25;
}

.studio-tool-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.studio-tool-icon-btn:hover,
.studio-tool-icon-btn.active {
  background: #F3F4F6;
  color: #191919;
}

.studio-tool-divider {
  width: 20px;
  height: 1px;
  background: #E5E7EB;
  margin: 2px 0;
}

/* Bottom Center Floating Control Bar */
.studio-bottom-bar-wrap {
  position: absolute;
  bottom: 16px;
  left: calc(50% + 170px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 25;
}

.studio-bottom-pill {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 7px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.studio-fold-slider {
  width: 96px;
  accent-color: var(--pac-purple);
  cursor: pointer;
}

.studio-watermark-btn {
  background: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #191919;
  cursor: pointer;
}

/* ============================================================================
   4. DIELINE GENERATOR SPECIFIC OVERLAYS & RIGHT CARDS
   ============================================================================ */
.dieline-center-area {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 426px;
  right: 268px;
  overflow: hidden;
}

.dieline-center-area canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dieline-legend-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 15;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.dieline-legend-items {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.dieline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch-line {
  width: 18px;
  height: 2.5px;
  display: inline-block;
}

.legend-swatch-line.bleed {
  background: #2EBE79;
}

.legend-swatch-line.trim {
  background: #1B2A5A;
}

.legend-swatch-line.crease {
  background: #E53935;
}

.dieline-dims-readout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: #6B7280;
}

.dieline-dims-readout strong {
  font-weight: 600;
  color: #191919;
  margin-left: 6px;
}

.dieline-bottom-toolbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.dieline-right-col {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 248px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 25;
}

.dieline-mini3d-card {
  height: 215px;
  background: #CCCCCC;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.dieline-mini3d-card canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dieline-mini3d-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #374151;
}

.dieline-mini3d-slider-row {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}

.dieline-mini3d-slider-row input {
  flex: 1;
  accent-color: #191919;
  cursor: pointer;
}

.dieline-formats-card {
  flex: 1;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dieline-formats-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #191919;
  margin-bottom: 10px;
}

.dieline-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.dieline-format-tile {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dieline-format-tile:hover {
  border-color: var(--pac-blue);
  background: #F0F7FF;
}

.format-icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.format-icon-badge.ai { background: #FF7C00; }
.format-icon-badge.pdf { background: #E53935; }
.format-icon-badge.dxf { background: #2563EB; }
.format-icon-badge.jpg { background: #0284C7; }
.format-icon-badge.svg { background: #10B981; }
.format-icon-badge.mp4 { background: #731EFF; }

.format-tile-label {
  font-size: 11px;
  font-weight: 600;
  color: #191919;
  white-space: nowrap;
}

.dieline-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11.5px;
  color: #4B5563;
  line-height: 1.4;
}

.dieline-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #191919;
  margin: 12px 0 8px;
}

.drawer-control-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.drawer-control-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #4B5563;
}

.drawer-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 12px;
  color: #191919;
}

/* ============================================================================
   5. AI CREATION PAGE
   ============================================================================ */
.ai-page-shell {
  min-height: 100vh;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.ai-topbar {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F3F4F6;
}

.ai-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #191919;
}

.ai-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-icon-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
}

.ai-login-pill {
  background: #191919;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ai-main-center {
  width: 100%;
  max-width: 860px;
  margin: 64px auto 60px;
  padding: 0 24px;
}

.ai-h1 {
  font-size: 32px;
  font-weight: 700;
  color: #191919;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ai-starter-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.ai-starter-card {
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 10px 18px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ai-starter-card:hover {
  border-color: #191919;
  transform: translateY(-1px);
}

.ai-starter-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-starter-thumb {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: #F4F4F6;
  object-fit: contain;
  padding: 4px;
}

.ai-starter-title {
  font-size: 15px;
  font-weight: 600;
  color: #191919;
}

.ai-prompt-box {
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  background: #FFFFFF;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.ai-prompt-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 104px;
}

.ai-ref-upload-tile {
  width: 82px;
  height: 94px;
  border-radius: 12px;
  background: #F5F5F7;
  border: 1px dashed #D1D5DB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #4B5563;
  cursor: pointer;
  flex-shrink: 0;
}

.ai-ref-upload-tile:hover {
  border-color: var(--pac-purple);
  color: var(--pac-purple);
}

.ai-prompt-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  color: #191919;
  min-height: 86px;
  padding-top: 4px;
}

.ai-prompt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.ai-prompt-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #D8B4FE;
  background: #FAF5FF;
  color: var(--pac-purple);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #191919;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}

.ai-send-btn:hover {
  background: var(--pac-purple);
}

.ai-results-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ai-concept-card {
  border: 1.5px solid #191919;
  box-shadow: 3px 3px 0 0 #191919;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================================
   6. 16-BRAND & 5,012-PRODUCT CORPORATE MATRIX
   ============================================================================ */
.brand-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.brand-matrix-card {
  border: 1.5px solid #191919;
  border-radius: 14px;
  padding: 14px 16px;
  background: #FFFFFF;
  box-shadow: 3px 3px 0 0 #191919;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s ease, background 0.15s ease;
}

.brand-matrix-card:hover,
.brand-matrix-card.active {
  background: #FAF5FF;
  border-color: var(--pac-purple);
  transform: translate(-1px, -1px);
}

.pac-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #191919;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
