:root {
  --bg-page: #eef0f2;
  --panel: #ffffff;
  --panel-soft: #f5f6f8;
  --line: #d7dce2;
  --text: #4c5b70;
  --text-strong: #223a63;
  --muted: #96a0ad;
  --brand: #43ace8;
  --brand-2: #2f95cf;
  --active: #84c12b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
}

.topbar {
  background: #fff;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border: 5px solid var(--brand);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 1.24rem;
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text-strong);
}

.brand-subtitle {
  color: var(--text-strong);
  letter-spacing: 0.6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.login-link {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.daftar-btn {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 700;
}

.daftar-btn:hover {
  background: var(--brand-2);
  color: #fff;
}

.menu-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 1.55rem;
  line-height: 1;
}

.galls-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.72rem 0.38rem 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b1525 0%, #121f33 55%, #1a2d46 100%);
  border: 1px solid #1f4e73;
  box-shadow: 0 6px 14px rgba(11, 21, 37, 0.28);
}

.galls-logo-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.34rem;
  transform: rotate(45deg);
  background: linear-gradient(145deg, #00d4ff 0%, #39ff9d 100%);
  box-shadow:
    0 0 0 2px rgba(12, 26, 43, 0.9),
    0 0 12px rgba(0, 212, 255, 0.55);
  flex-shrink: 0;
}

.galls-logo-text {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1;
  color: #dff7ff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(57, 255, 157, 0.35);
}

.main-layout {
  position: relative;
}

.split-knob {
  display: none;
}

.left-panel,
.right-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.left-panel {
  min-height: 76vh;
  padding: 1.25rem 1.45rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 1.15rem;
}

.type-btn {
  border: 0;
  border-bottom: 2px solid #e2e6eb;
  background: transparent;
  color: #4d5f75;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.type-btn.active {
  color: var(--brand-2);
  border-bottom-color: #8bd0f1;
}

.qr-input {
  width: 100%;
  min-height: 220px;
  border: 0;
  resize: none;
  background: transparent;
  outline: none;
  color: #68768a;
  font-size: 0.96rem;
}

.qr-input::placeholder {
  color: #9aa3b0;
  font-size: 1.56rem;
  font-weight: 700;
  line-height: 1.28;
}

.email-form {
  width: 100%;
  color: #56687f;
}

.wifi-form {
  width: 100%;
  color: #56687f;
}

.vcard-form {
  width: 100%;
  color: #56687f;
}

.sms-form {
  width: 100%;
  color: #56687f;
}

.dana-form {
  width: 100%;
  color: #56687f;
}

.medsos-form {
  width: 100%;
  color: #56687f;
}

.pdf-form {
  width: 100%;
  color: #56687f;
}

.app-form {
  width: 100%;
  color: #56687f;
}

.email-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.wifi-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.sms-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.dana-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.dana-form-note {
  font-size: 0.92rem;
  font-weight: 600;
  color: #728195;
  margin: -0.7rem 0 1rem;
}

.medsos-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.pdf-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.app-form-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #3f5068;
}

.email-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.wifi-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.sms-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.dana-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.medsos-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.pdf-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.app-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.vcard-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.9rem;
}

.wifi-row-network {
  grid-template-columns: 220px minmax(0, 1fr) auto;
}

.wifi-row-encryption {
  align-items: start;
}

.sms-row-message {
  align-items: start;
}

.app-row-message {
  align-items: start;
}

.vcard-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #607088;
}

.vcard-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.vcard-fields-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vcard-fields-city {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
}

.vcard-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 2px;
  color: #44576f;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.78rem 0.95rem;
  outline: none;
  background: #fff;
}

.vcard-input::placeholder {
  color: #8e99a7;
  font-weight: 700;
}

.vcard-input:focus {
  border-color: #9ed4ef;
}

.sms-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.dana-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.medsos-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.pdf-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.app-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.sms-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #5d6f84;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
  background: #fff;
}

.dana-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #5d6f84;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
  background: #fff;
}

.dana-input:focus {
  border-color: #9ed4ef;
}

.sms-input:focus {
  border-color: #9ed4ef;
}

.medsos-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #5d6f84;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
  background: #fff;
}

.medsos-input:focus {
  border-color: #9ed4ef;
}

.pdf-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #5d6f84;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
  background: #fff;
}

.pdf-input:focus {
  border-color: #9ed4ef;
}

.app-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #5d6f84;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
  background: #fff;
}

.app-input:focus {
  border-color: #9ed4ef;
}

.app-textarea {
  min-height: 110px;
  resize: vertical;
}

.app-maps-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-note {
  color: #7f8da0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.sms-textarea {
  min-height: 120px;
  resize: vertical;
}

.email-row-message {
  align-items: start;
}

.email-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.email-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #5d6f84;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  outline: none;
  background: #fff;
}

.wifi-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #607088;
}

.wifi-input {
  width: 100%;
  border: 2px solid #dde2e8;
  border-radius: 3px;
  color: #44576f;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.75rem 0.95rem;
  outline: none;
  background: #fff;
}

.wifi-input:focus {
  border-color: #9ed4ef;
}

.wifi-input.is-invalid {
  border-color: #d64545;
  background: #fff6f6;
}

.wifi-hidden-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #8a95a3;
  font-size: 1.05rem;
  font-weight: 700;
  user-select: none;
  cursor: pointer;
}

.wifi-hidden-wrap input {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #6fb9e8;
}

.wifi-help {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #95a0ae;
  color: #fff;
  font-size: 0.86rem;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.wifi-encryption-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.3rem;
}

.wifi-encryption-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 44px;
}

.wifi-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  color: #8a95a3;
  font-weight: 700;
  cursor: pointer;
}

.wifi-radio input {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  accent-color: #63b3e9;
}

.email-input:focus {
  border-color: #9ed4ef;
}

.email-input.is-invalid {
  border-color: #d64545;
  background: #fff6f6;
}

.email-input.is-invalid:focus {
  border-color: #d64545;
}

.email-textarea {
  min-height: 140px;
  resize: vertical;
}

.hint-text {
  color: #a3acb7;
  font-size: 0.95rem;
}

.hint-text.is-error {
  color: #d64545;
}

.left-footer {
  border-top: 1px solid #ebedf0;
  padding-top: 0.85rem;
}

.upload-label {
  cursor: pointer;
  color: #5eaedf;
  font-size: 0.95rem;
  font-weight: 700;
}

.tracking-text {
  color: #52637b;
  font-size: 0.9rem;
}

.form-switch .form-check-input {
  width: 2.7rem;
  height: 1.35rem;
}

.right-panel {
  padding: 0.88rem;
}

.preview-box {
  min-height: 258px;
  border: 1px solid #eaedf2;
  border-radius: 9px;
  background: var(--panel-soft);
}

#qrcode canvas,
#qrcode img {
  max-width: 100%;
  height: auto;
}

#qrcode.preview-fx-on canvas {
  transform-origin: center;
  animation: previewFloat 2.6s ease-in-out infinite;
}

#qrcode.preview-fx-neon canvas {
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.48));
  animation: previewFloat 2.2s ease-in-out infinite, previewNeonPulse 1.8s ease-in-out infinite;
}

#qrcode.preview-fx-aurora canvas {
  filter: drop-shadow(0 0 14px rgba(14, 165, 233, 0.34));
  animation: previewFloat 2.4s ease-in-out infinite, previewAuroraHue 5.2s linear infinite;
}

#qrcode.preview-fx-premium canvas {
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.34));
  animation: previewFloat 2.9s ease-in-out infinite, previewGold 2.6s ease-in-out infinite;
}

#qrcode.preview-fx-pulse canvas {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
  animation: previewFloat 2.2s ease-in-out infinite, previewPulse 1.8s ease-in-out infinite;
}

#qrcode.preview-fx-flux canvas {
  filter: drop-shadow(0 0 16px rgba(219, 39, 119, 0.28));
  animation: previewFloat 2.1s ease-in-out infinite, previewFlux 3.6s linear infinite;
}

.custom-acc {
  border: 1px solid #eaedf1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.custom-acc .accordion-button {
  background: #f3f4f6;
  color: #8c96a2;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: none;
}

.logo-panel-copy {
  color: #6d7b8d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.logo-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.logo-ref-btn {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  width: 100%;
  padding: 0.46rem 0.52rem;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #f9fbfe;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.logo-ref-btn:hover {
  border-color: #9ac7e7;
  background: #f2f8ff;
}

.logo-ref-btn.active {
  border-color: #63b3e9;
  background: #eaf6ff;
  box-shadow: 0 0 0 1px rgba(99, 179, 233, 0.26);
}

.logo-ref-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 11px;
  background: var(--logo-ref-bg, #63b3e9);
  color: var(--logo-ref-fg, #ffffff);
}

.logo-ref-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--logo-ref-fg, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-ref-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #55657b;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-ref-note {
  display: block;
  margin-top: 0.6rem;
  color: #8b97a8;
  font-size: 0.8rem;
}

.new-pill {
  display: inline-block;
  padding: 0.12rem 0.44rem;
  border-radius: 999px;
  background: #1f3a75;
  color: #fff;
  font-size: 0.66rem;
}

@media (max-width: 575.98px) {
  .logo-ref-grid {
    grid-template-columns: 1fr;
  }
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.frame-view-switch {
  position: relative;
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.24rem;
  border: 1px solid #ccd8e6;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf2f9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 0.62rem;
}

.frame-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: -0.15rem 0 0.52rem;
}

.frame-density-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid #d1dbe8;
  border-radius: 999px;
  background: #f5f8fc;
}

.frame-density-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64758d;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.33rem 0.58rem;
  transition: all 0.15s ease;
}

.frame-density-btn.active {
  background: #ffffff;
  color: #244f7e;
  box-shadow: 0 1px 5px rgba(48, 90, 136, 0.18);
}

.frame-tools:not(.is-pro-mode) .frame-density-switch {
  display: none;
}

.frame-anim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #50627c;
  cursor: pointer;
  user-select: none;
}

.frame-anim-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.frame-anim-pill {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d7e0ec;
  position: relative;
  transition: background 0.2s ease;
}

.frame-anim-pill::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(25, 45, 72, 0.24);
  transition: transform 0.2s ease;
}

.frame-anim-toggle input:checked + .frame-anim-pill {
  background: linear-gradient(180deg, #44b0ea 0%, #2f95cf 100%);
}

.frame-anim-toggle input:checked + .frame-anim-pill::after {
  transform: translateX(16px);
}

.frame-anim-text {
  letter-spacing: 0.15px;
}

.frame-view-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #65758b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.38rem 0.75rem;
  transition: all 0.18s ease;
}

.frame-view-btn.active {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #1e4f82;
  box-shadow: 0 2px 8px rgba(39, 79, 119, 0.2);
}

.frame-card {
  position: relative;
  min-height: 94px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.frame-card.active {
  border-color: #84c12b;
  box-shadow:
    0 6px 14px rgba(28, 82, 122, 0.15),
    inset 0 0 0 1px rgba(132, 193, 43, 0.35);
}

.frame-card:hover {
  border-color: #61b8ef;
  transform: translateY(-2px);
}

/* Pro frame mode */
.frame-grid.is-pro {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.24rem;
  border: 1px solid #d5e2f2;
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 10%, rgba(99, 186, 245, 0.18), transparent 42%),
    radial-gradient(circle at 88% 86%, rgba(45, 212, 191, 0.16), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
}

.frame-grid.is-pro .frame-card {
  min-height: 64px;
  border-radius: 7px;
  padding: 0.18rem;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.9) 0 28%, transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef4fd 100%);
  border-color: #cad7e7;
  box-shadow: 0 4px 10px rgba(56, 96, 144, 0.12);
  gap: 0.14rem;
}

.frame-grid.is-pro .frame-card .model-name {
  color: #2f496a;
}

.frame-grid.is-pro .frame-card::before {
  content: "";
  position: absolute;
  left: -24%;
  top: -50%;
  width: 70%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.46) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.frame-grid.is-pro .frame-card:hover::before {
  opacity: 1;
}

.frame-grid.is-pro .frame-card.active {
  border-color: #3f92d9;
  box-shadow:
    0 6px 12px rgba(38, 86, 132, 0.18),
    inset 0 0 0 1px rgba(63, 146, 217, 0.45);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.95) 0 28%, transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #e7f1ff 100%);
}

.frame-grid.is-pro .frame-card.active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(99, 163, 228, 0.48);
  animation: proPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.frame-grid.is-pro .model-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.frame-grid.is-pro .model-name {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.1px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-thumb {
  width: 46px;
  height: 46px;
  border: 1px solid #cdd4de;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.model-name {
  font-size: 0.63rem;
  font-weight: 700;
  color: #5f6f86;
  line-height: 1;
}

.model-tag {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #5f6f86;
  padding: 0.16rem 0.3rem;
  border-radius: 999px;
  border: 1px solid #cfdae8;
  background: #f6f9fd;
}

.model-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.shape-body {
  padding-top: 0.62rem;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.52rem;
}

.shape-card {
  min-height: 72px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.35rem 0.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shape-card[data-shape] {
  border-color: #5bb4f1;
}

.shape-card:hover {
  border-color: #3ea8ea;
  box-shadow: 0 4px 10px rgba(62, 168, 234, 0.12);
}

.shape-card.active {
  border-color: var(--active);
  background: linear-gradient(180deg, #fbfff3 0%, #f7ffe8 100%);
  box-shadow:
    0 6px 14px rgba(132, 193, 43, 0.14),
    inset 0 0 0 1px rgba(132, 193, 43, 0.35);
}

.shape-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.shape-icon canvas {
  width: 34px;
  height: 34px;
  display: block;
}

.shape-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #52637a;
  line-height: 1;
  letter-spacing: 0.1px;
}

.shape-card.active .shape-label {
  color: #3f5f1a;
}

/* Compact frame mode */
.frame-grid.is-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.38rem;
  padding: 0.18rem;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  background: #ffffff;
}

.frame-grid.is-compact .frame-card {
  min-height: 58px;
  border-radius: 4px;
  padding: 0.16rem;
  background: #fff;
  border: 1px solid #dde3eb;
  box-shadow: none;
  gap: 0.15rem;
}

.frame-grid.is-compact .frame-card .model-name {
  color: #4e6078;
}

.frame-grid.is-compact .frame-card:hover {
  transform: none;
  border-color: #96c9ef;
}

.frame-grid.is-compact .frame-card.active {
  border-color: #7aa8cc;
  box-shadow: inset 0 0 0 1px rgba(122, 168, 204, 0.42);
}

.frame-grid.is-compact .model-thumb {
  width: 34px;
  height: 34px;
  border-radius: 5px;
}

.frame-grid.is-compact .model-name {
  display: block;
  font-size: 0.51rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-grid.is-pro .model-tag {
  display: none;
}

.frame-grid.is-pro.frame-density-comfortable {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.62rem;
  padding: 0.4rem;
}

.frame-grid.is-pro.frame-density-comfortable .frame-card {
  min-height: 88px;
  border-radius: 10px;
  padding: 0.38rem 0.28rem;
  gap: 0.32rem;
}

.frame-grid.is-pro.frame-density-comfortable .model-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.frame-grid.is-pro.frame-density-comfortable .model-name {
  font-size: 0.62rem;
}

.frame-grid.is-pro.frame-density-comfortable .model-tag {
  display: inline-block;
}

.frame-card[data-model="premium"] .model-tag {
  border-color: #f9d27d;
  color: #8a5a00;
  background: #fff6db;
}

.frame-card[data-model="professional"] .model-tag {
  border-color: #b8ccf6;
  color: #234b95;
  background: #ecf3ff;
}

.frame-grid.is-compact .model-tag {
  display: none;
}

.frame-grid.is-compact .frame-card {
  transition: border-color 0.16s ease, background 0.16s ease;
}

.frame-grid.is-compact .frame-card:hover {
  background: #f8fbff;
}

.frame-grid.is-animating .frame-card:not(.d-none) {
  animation: frameCardIn 0.42s ease both;
}

.frame-grid.is-animating .frame-card:nth-child(1) { animation-delay: 0ms; }
.frame-grid.is-animating .frame-card:nth-child(2) { animation-delay: 25ms; }
.frame-grid.is-animating .frame-card:nth-child(3) { animation-delay: 50ms; }
.frame-grid.is-animating .frame-card:nth-child(4) { animation-delay: 75ms; }
.frame-grid.is-animating .frame-card:nth-child(5) { animation-delay: 100ms; }
.frame-grid.is-animating .frame-card:nth-child(6) { animation-delay: 125ms; }
.frame-grid.is-animating .frame-card:nth-child(7) { animation-delay: 150ms; }
.frame-grid.is-animating .frame-card:nth-child(8) { animation-delay: 175ms; }
.frame-grid.is-animating .frame-card:nth-child(9) { animation-delay: 200ms; }
.frame-grid.is-animating .frame-card:nth-child(10) { animation-delay: 225ms; }
.frame-grid.is-animating .frame-card:nth-child(11) { animation-delay: 250ms; }
.frame-grid.is-animating .frame-card:nth-child(12) { animation-delay: 275ms; }
.frame-grid.is-animating .frame-card:nth-child(13) { animation-delay: 300ms; }
.frame-grid.is-animating .frame-card:nth-child(14) { animation-delay: 325ms; }
.frame-grid.is-animating .frame-card:nth-child(15) { animation-delay: 350ms; }
.frame-grid.is-animating .frame-card:nth-child(16) { animation-delay: 375ms; }
.frame-grid.is-animating .frame-card:nth-child(17) { animation-delay: 400ms; }
.frame-grid.is-animating .frame-card:nth-child(18) { animation-delay: 425ms; }
.frame-grid.is-animating .frame-card:nth-child(19) { animation-delay: 450ms; }
.frame-grid.is-animating .frame-card:nth-child(20) { animation-delay: 475ms; }

.frame-grid.anim-disabled .frame-card,
.frame-grid.anim-disabled .frame-card::before,
.frame-grid.anim-disabled .frame-card::after {
  animation: none !important;
  transition: none !important;
}

.frame-grid.anim-disabled .frame-card:hover {
  transform: none;
}

@keyframes frameCardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes proPulse {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

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

@keyframes previewNeonPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.42)); }
  50% { filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.72)); }
}

@keyframes previewAuroraHue {
  0% { filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.34)) hue-rotate(0deg); }
  100% { filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.34)) hue-rotate(360deg); }
}

@keyframes previewGold {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.24)); }
  50% { filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.52)); }
}

@keyframes previewPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.26)); }
  50% { filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6)); }
}

@keyframes previewFlux {
  0% { filter: drop-shadow(0 0 12px rgba(219, 39, 119, 0.28)) hue-rotate(0deg); }
  100% { filter: drop-shadow(0 0 12px rgba(219, 39, 119, 0.28)) hue-rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .frame-grid.is-animating .frame-card:not(.d-none) {
    animation: none;
  }

  .frame-grid.is-pro .frame-card.active::after {
    animation: none;
  }

  .frame-card,
  .frame-view-btn {
    transition: none;
  }

  #qrcode.preview-fx-on canvas,
  #qrcode.preview-fx-neon canvas,
  #qrcode.preview-fx-aurora canvas,
  #qrcode.preview-fx-premium canvas,
  #qrcode.preview-fx-pulse canvas,
  #qrcode.preview-fx-flux canvas {
    animation: none;
    filter: none;
  }
}

.refresh-btn,
.download-btn,
.vector-btn {
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.66rem;
}

.refresh-btn {
  background: #e7f4fc;
  border: 1px solid #9ed6f2;
  color: var(--brand-2);
}

.refresh-btn:hover {
  background: #d8eefb;
  border-color: #7fc7ec;
  color: #247eb0;
}

.download-btn {
  border: 0;
  background: var(--brand);
  color: #fff;
}

.download-btn:hover {
  background: var(--brand-2);
  color: #fff;
}

.vector-btn {
  background: #ecf7d8;
  border: 1px solid #c8e39c;
  color: #5a7f1e;
}

.vector-btn:hover {
  background: #e2f2c6;
  border-color: #b9da81;
  color: #4e6f1a;
}

.copy-toast-wrap {
  z-index: 1090;
}

.copy-toast {
  border: 0;
  border-radius: 12px;
  color: #fff;
  min-width: 220px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.2);
}

.copy-toast.is-success {
  background: #2f855a;
}

.copy-toast.is-error {
  background: #c53030;
}

@media (min-width: 1200px) {
  .split-knob {
    display: grid;
    place-items: center;
    position: absolute;
    left: calc(66.666% - 18px);
    top: 58%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e1e5ea;
    border: 3px solid #d2d8df;
    color: #95a0ad;
    font-size: 1.25rem;
    z-index: 3;
  }
}

@media (max-width: 1400px) {
  .type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .brand-title {
    font-size: 1.4rem;
  }

  .brand-subtitle {
    font-size: 0.64rem;
  }

  .login-link {
    font-size: 0.95rem;
  }

  .daftar-btn {
    font-size: 0.78rem;
    padding: 0.42rem 0.95rem;
  }

  .menu-btn {
    font-size: 1.35rem;
  }

  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qr-input::placeholder {
    font-size: 1.24rem;
  }

  .email-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .wifi-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .sms-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .dana-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .medsos-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .pdf-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .app-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .vcard-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .vcard-fields-two,
  .vcard-fields-city {
    grid-template-columns: 1fr;
  }

  .wifi-row-network {
    grid-template-columns: 1fr;
  }

  .wifi-hidden-wrap {
    margin-top: 0.25rem;
  }

  .wifi-encryption-options {
    gap: 1rem;
  }

  .email-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .wifi-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .sms-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .dana-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .dana-form-note {
    font-size: 0.86rem;
    margin-top: -0.45rem;
  }

  .medsos-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .pdf-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .app-form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .frame-grid.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .frame-grid.is-pro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.34rem;
    padding: 0.2rem;
  }

  .frame-grid.is-pro.frame-density-comfortable {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.24rem;
  }

  .frame-grid.is-pro.frame-density-comfortable .frame-card {
    min-height: 74px;
    padding: 0.24rem;
    border-radius: 8px;
    gap: 0.2rem;
  }

  .frame-grid.is-pro.frame-density-comfortable .model-thumb {
    width: 40px;
    height: 40px;
    border-radius: 7px;
  }

  .frame-grid.is-pro.frame-density-comfortable .model-tag {
    display: none;
  }

  .frame-card {
    min-height: 58px;
  }

  .frame-view-switch {
    margin-bottom: 0.5rem;
  }

  .frame-tools {
    gap: 0.36rem;
  }

  .shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .left-panel {
    min-height: auto;
    padding: 1rem;
  }

  .brand-title {
    font-size: 1.16rem;
  }

  .brand-subtitle {
    display: none;
  }
}

/* Detail refinement: tool icons + dynamic accordion open state */
.type-btn i {
  width: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #5e6f85;
}

.type-btn.active i {
  color: var(--brand-2);
}

.custom-acc .accordion-button::after {
  width: 0.92rem;
  height: 0.92rem;
  background-size: 0.92rem;
  opacity: 0.72;
}

.custom-acc.is-open .accordion-button {
  background: var(--brand);
  color: #fff;
}

.custom-acc.is-open .accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.custom-acc .accordion-collapse {
  background: #fff;
}

.custom-acc .accordion-body {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}
