@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.atwc-tool,
.atwc-tool * {
  box-sizing: border-box;
}

.atwc-tool {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 0 !important;
  overflow-x: hidden;
  overflow-y: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 245, 212, 0.34), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(255, 77, 166, 0.34), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #14213d 42%, #4b145f 100%);
  font-family: Arial, Helvetica, sans-serif;
}

.atwc-shell {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.atwc-header {
  text-align: center;
}

.atwc-tool h1 {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  line-height: 1.08;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(0, 245, 212, 0.24);
}

.atwc-subtitle {
  margin: 14px auto 0;
  max-width: 760px;
  color: #dce8ff;
  line-height: 1.55;
  letter-spacing: 0;
}

.atwc-grid {
  display: grid;
  width: 100%;
}

.atwc-panel {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.atwc-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 245, 212, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), 0 0 34px rgba(0, 245, 212, 0.12);
}

.atwc-label {
  display: block;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.atwc-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(220, 232, 255, 0.34);
  border-radius: 16px;
  background: rgba(5, 12, 24, 0.62);
  color: #ffffff;
  outline: none;
  line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.atwc-input::placeholder {
  color: rgba(220, 232, 255, 0.62);
}

.atwc-input:focus {
  border-color: rgba(0, 245, 212, 0.92);
  background: rgba(5, 12, 24, 0.78);
  box-shadow: 0 0 0 4px rgba(0, 245, 212, 0.18), 0 0 26px rgba(0, 245, 212, 0.18);
}

.atwc-help {
  margin: 12px 0 0;
  color: #c7d6ee;
  line-height: 1.45;
}

.atwc-actions,
.atwc-result-actions {
  display: flex;
  width: 100%;
  gap: 12px;
}

.atwc-btn {
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  min-height: 46px;
  color: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.atwc-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.atwc-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.atwc-btn-primary {
  background: linear-gradient(135deg, #00d9ff 0%, #7c3cff 52%, #ff4da6 100%);
  box-shadow: 0 12px 30px rgba(124, 60, 255, 0.32), 0 0 20px rgba(0, 217, 255, 0.22);
}

.atwc-btn-primary:hover {
  box-shadow: 0 16px 38px rgba(124, 60, 255, 0.42), 0 0 28px rgba(0, 217, 255, 0.28);
}

.atwc-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.atwc-result-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.atwc-result-text {
  flex: 1 1 auto;
  width: 100%;
  max-height: 330px;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #ffffff;
  background: rgba(4, 10, 21, 0.48);
  border: 1px solid rgba(220, 232, 255, 0.2);
  border-radius: 18px;
  line-height: 1.62;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.18);
}

.atwc-result-text.atwc-fade {
  animation: atwcFade 220ms ease;
}

.atwc-result-actions {
  flex-shrink: 0;
}

.atwc-result-actions .atwc-btn {
  flex: 1 1 0;
  flex-shrink: 0;
}

@keyframes atwcFade {
  from {
    opacity: 0.38;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .atwc-tool {
    padding: 24px 12px;
    border-radius: 0 !important;
  }

  .atwc-shell {
    width: 100%;
  }

  .atwc-tool h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .atwc-subtitle {
    font-size: 0.95rem;
  }

  .atwc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }

  .atwc-panel {
    padding: 18px;
  }

  .atwc-label {
    font-size: 0.98rem;
  }

  .atwc-input {
    width: 100%;
    font-size: 1rem;
    padding: 13px 14px;
  }

  .atwc-help {
    font-size: 0.86rem;
  }

  .atwc-actions,
  .atwc-result-actions {
    flex-direction: column;
    margin-top: 16px;
  }

  .atwc-btn {
    width: 100%;
    font-size: 0.94rem;
    padding: 13px 14px;
  }

  .atwc-result-text {
    font-size: 0.96rem;
    padding: 16px;
    max-height: 280px;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .atwc-tool {
    padding: 30px 15px;
    border-radius: 0 !important;
  }

  .atwc-shell {
    width: 100%;
  }

  .atwc-tool h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .atwc-subtitle {
    font-size: 1rem;
  }

  .atwc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .atwc-panel {
    padding: 20px;
  }

  .atwc-input {
    width: 100%;
    font-size: 1rem;
    padding: 14px 15px;
  }

  .atwc-btn {
    flex: 1 1 0;
    font-size: 0.95rem;
    padding: 13px 14px;
  }

  .atwc-result-text {
    font-size: 0.98rem;
    padding: 17px;
    max-height: 300px;
  }

  .atwc-actions,
  .atwc-result-actions {
    margin-top: 18px;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .atwc-tool {
    padding: 38px 18px;
    border-radius: 0 !important;
  }

  .atwc-shell {
    width: 100%;
  }

  .atwc-tool h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .atwc-subtitle {
    font-size: 1.03rem;
  }

  .atwc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .atwc-panel {
    padding: 24px;
  }

  .atwc-input {
    width: 100%;
    font-size: 1.04rem;
    padding: 15px 16px;
  }

  .atwc-btn {
    flex: 1 1 0;
    font-size: 0.98rem;
    padding: 14px 16px;
  }

  .atwc-result-text {
    font-size: 1rem;
    padding: 18px;
    max-height: 315px;
  }

  .atwc-actions,
  .atwc-result-actions {
    margin-top: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .atwc-tool {
    padding: 56px 28px;
    border-radius: 0 !important;
  }

  .atwc-shell {
    width: 94%;
  }

  .atwc-tool h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .atwc-subtitle {
    font-size: 1.08rem;
  }

  .atwc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 34px;
  }

  .atwc-panel {
    padding: 30px;
  }

  .atwc-input {
    width: 100%;
    font-size: 1.08rem;
    padding: 16px 18px;
  }

  .atwc-btn {
    flex: 0 1 auto;
    font-size: 1rem;
    padding: 15px 22px;
  }

  .atwc-result-text {
    font-size: 1.04rem;
    padding: 20px;
    max-height: 330px;
  }

  .atwc-actions,
  .atwc-result-actions {
    margin-top: 22px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .atwc-tool {
    padding: 68px 34px;
    border-radius: 0 !important;
  }

  .atwc-shell {
    width: 94%;
  }

  .atwc-tool h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .atwc-subtitle {
    font-size: 1.1rem;
  }

  .atwc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
    margin-top: 38px;
    align-items: stretch;
  }

  .atwc-panel {
    padding: 30px;
  }

  .atwc-input {
    width: 100%;
    font-size: 1.08rem;
    padding: 16px 18px;
  }

  .atwc-btn {
    flex: 1 1 0;
    font-size: 1rem;
    padding: 15px 18px;
  }

  .atwc-result-text {
    font-size: 1.04rem;
    padding: 22px;
    max-height: 350px;
  }

  .atwc-actions,
  .atwc-result-actions {
    margin-top: 24px;
  }
}

@media (min-width: 1200px) {
  .atwc-tool {
    padding: 78px 40px;
    border-radius: 0 !important;
  }

  .atwc-shell {
    width: 92%;
  }

  .atwc-tool h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .atwc-subtitle {
    font-size: 1.12rem;
  }

  .atwc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 42px;
    align-items: stretch;
  }

  .atwc-panel {
    padding: 34px;
  }

  .atwc-input {
    width: 100%;
    font-size: 1.1rem;
    padding: 17px 19px;
  }

  .atwc-btn {
    flex: 1 1 0;
    font-size: 1.01rem;
    padding: 16px 20px;
  }

  .atwc-result-text {
    font-size: 1.06rem;
    padding: 24px;
    max-height: 365px;
  }

  .atwc-actions,
  .atwc-result-actions {
    margin-top: 24px;
  }
}