* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b3e, #1a3a8f);
}

.hero {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: center;
  padding: 0 20px;
}
.hero h1 {
  font-family: 'Satoshi', sans-serif;
  color: #fff;
  font-size: 42px;
  margin-bottom: 12px;
  position: relative;
  bottom: -50px;
}
.hero h2 {
  font-family: 'Satoshi', sans-serif;
  color: #fff;
  font-size: 42px;
  margin-bottom: 12px;
  position: relative;
  top: 25px;
}
.hero h3 {
  font-family: 'Satoshi', sans-serif;
  color: #25D366;
  font-size: 42px;
  margin-bottom: 12px;
  webkit-text-stroke: 100px #fff;
}
.hero h1,
.hero h2 {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #9fb5e8;
  font-size: 15px;
  margin-bottom: 40px;
}

.form-wrap {
  text-align: left;
}
label {
  color: #cfe0ff;
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}
.label-title {
  font-family: 'Clash Grotesk', sans-serif;
}
input {
  width: 100%;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #2a4fc9;
  background: #10245c;
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}
input:focus { outline: none; border-color: #4d8dff; }
small { color: #9fb5e8; display: block; margin-top: -14px; margin-bottom: 20px; font-size: 13px; }
button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s;
}
button:disabled { background: #444; cursor: not-allowed; }
#status {
  margin-top: 20px;
  font-size: 14px;
  color: #dce8ff;
  white-space: pre-line;
  line-height: 1.6;
}
.ok { color: #4ade80; }
.err { color: #f87171; }

/* label + tombol tutorial sejajar */
.label-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.label-row label { margin-bottom: 0; }

.label-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tutorial {
  width: auto;
  padding: 4px;
  position: relative;
  left: -8px;
  background: transparent;
  border: none;
  color: #9fb5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.btn-tutorial:hover { color: #fff; background: transparent; }

/* modal tutorial */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: #10245c;
  border: 1px solid #2a4fc9;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal-overlay.show .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h2 {
  color: #fff;
  font-size: 18px;
}
.btn-close {
  width: auto;
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: #9fb5e8;
  font-size: 16px;
}
.btn-close:hover { color: #fff; background: transparent; }

.modal-list {
  color: #cfe0ff;
  font-size: 14px;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 20px;
}

/* slider foto swipe */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.slide {
  min-width: 100%;
  text-align: center;
}
.slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #0d1b3e;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a4fc9;
  cursor: pointer;
}
.dot.active { background: #4d8dff; }

* {
  -webkit-tap-highlight-color: transparent;
}

button, .btn-tutorial, .btn-close {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:focus-visible,
.btn-tutorial:focus-visible,
.btn-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.4);
}

.btn-tutorial:active {
  transform: scale(0.9);
  background: #17306f;
  box-shadow: 0 0 8px rgba(77, 141, 255, 0.6);
}

#sendBtn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: transform 0.15s ease, filter 0.50s ease;
}

#sendBtn:active {
  transform: scale(0.97);
  filter: brightness(0.90);
}

#emojiInput::placeholder {
  opacity: 0.5;
}

.log-box {
  margin-top: 20px;
  background: #000000;
  border: 1px solid #0B1014;
  border-radius: 10px;
  overflow: hidden;
}
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 14px;
  background: #1B1B1B;
  color: #888888;
  font-size: 9px;
  font-weight: 100;
}
.log-header span {
  font-family: 'JetBrains Mono', monospace;
}
.log-content {
  max-height: 215px;
  overflow-y: auto;
  padding: 20px 14px;
  font-size: 8px;
  color: #9fb5e8;
  line-height: 1.3;
}

.log-content * {
  font-family: 'JetBrains Mono', monospace !important;
}

.log-content .log-line {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 4px 0;
}

.log-content .log-line div {
  padding: 1px 0;
}
.log-speed {
  font-size: 11px;
  font-weight: 500;
  color: #BEBEBE;
  font-family: 'JetBrains Mono', monospace;
}

.label-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.label-row-between label { margin-bottom: 0; }

.badge-max {
  font-family: 'Author', sans-serif;
  display: inline-block;
  color: #4d8dff;
  font-size: 11px;
  font-weight: 600;
  background: #10245c;
  border: 1px solid #2a4fc9;
  padding: 3px 10px;
  border-radius: 9px;
  letter-spacing: 0.5px;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.log-content {
  position: relative;
  min-height: 60px;
}
.log-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}
.log-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(77, 141, 255, 0.25);
  border-top-color: #4d8dff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.log-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-copy {
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  color: #BEBEBE;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.btn-copy:active { transform: scale(0.9); }
.btn-copy.copied { color: #00B9FF; }

.btn-copy svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
#checkIcon {
  color: #4ade80;
}

@keyframes revealWipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}

@keyframes blurFocus {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes jackInTheBox {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
  }
  50% {
    transform: scale(1.1) rotate(-10deg);
  }
  70% {
    transform: scale(0.9) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes tada {
  0% { transform: scale(1); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}

.hero h1 {
  animation: revealWipe 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards,
             tada 1.6s ease 0.7s;
  clip-path: inset(0 100% 0 0);
}

.hero h2 {
  animation: revealWipe 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards,
             tada 1.6s ease 0.85s;
  clip-path: inset(0 100% 0 0);
}

.hero h3 {
  animation: jackInTheBox 1.1s ease 0.9s forwards;
  opacity: 0;
}

.subtitle {
  animation: blurFocus 0.8s ease 0.35s forwards;
  opacity: 0;
}

.form-wrap {
  animation: blurFocus 0.8s ease 0.5s forwards;
  opacity: 0;
}

input.input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}