:root {
  --ataca-bg: #0b0f1a;
  --ataca-card: rgba(17, 24, 39, 0.82);
  --ataca-card-2: rgba(31, 41, 55, 0.72);
  --ataca-text: #f8fafc;
  --ataca-muted: #9ca3af;
  --ataca-accent: #00e5ff;
  --ataca-success: #00ff85;
  --ataca-warning: #fbbf24;
  --ataca-danger: #ff4d4d;
  --ataca-border: rgba(148, 163, 184, 0.20);
  --ataca-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.ataca-shell,
.ataca-shell * {
  box-sizing: border-box;
}

.ataca-shell {
  max-width: 980px;
  margin: 24px auto;
  padding: 18px;
  color: var(--ataca-text);
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.20), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 255, 133, 0.12), transparent 34%),
    var(--ataca-bg);
  border: 1px solid var(--ataca-border);
  border-radius: 28px;
  box-shadow: var(--ataca-shadow);
  font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.ataca-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 4px 22px;
}

.ataca-kicker,
.ataca-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  color: var(--ataca-accent);
  background: rgba(0, 229, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ataca-status-pill {
  color: var(--ataca-success);
  border-color: rgba(0, 255, 133, 0.35);
  background: rgba(0, 255, 133, 0.08);
  white-space: nowrap;
}

.ataca-hero h2 {
  margin: 12px 0 7px;
  color: var(--ataca-text);
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.ataca-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--ataca-muted);
  font-size: 16px;
}

.ataca-form,
.ataca-loading,
.ataca-result {
  background: var(--ataca-card);
  border: 1px solid var(--ataca-border);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(16px);
}

.ataca-upload-card {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 190px;
  padding: 22px;
  border: 1.5px dashed rgba(0, 229, 255, 0.44);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ataca-upload-card:hover {
  transform: translateY(-2px);
  border-color: var(--ataca-accent);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.ataca-upload-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.13);
  font-size: 32px;
}

.ataca-upload-card strong {
  font-size: 20px;
}

.ataca-upload-card span,
.ataca-disclaimer {
  color: var(--ataca-muted);
  font-size: 14px;
}

.ataca-preview-wrap {
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--ataca-border);
  background: rgba(255, 255, 255, 0.04);
}

.ataca-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #050711;
}

.ataca-remove-image,
.ataca-copy-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ataca-text);
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-weight: 700;
}

.ataca-remove-image {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ataca-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ataca-grid-2 label span {
  display: block;
  margin: 0 0 8px;
  color: var(--ataca-muted);
  font-size: 13px;
  font-weight: 700;
}

.ataca-grid-2 input,
.ataca-grid-2 select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--ataca-border);
  border-radius: 16px;
  color: var(--ataca-text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  font: inherit;
}

.ataca-grid-2 input:focus,
.ataca-grid-2 select:focus {
  border-color: rgba(0, 229, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.10);
}

.ataca-grid-2 select option {
  color: #111827;
}

.ataca-analyze-btn {
  position: relative;
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  color: #04111a;
  background: linear-gradient(135deg, var(--ataca-accent), var(--ataca-success));
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(0, 229, 255, 0.18);
}

.ataca-analyze-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.ataca-btn-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid rgba(4, 17, 26, 0.22);
  border-top-color: #04111a;
  border-radius: 50%;
  animation: atacaSpin 0.75s linear infinite;
}

.ataca-disclaimer {
  margin: 14px 0 0;
  line-height: 1.6;
}

.ataca-loading {
  margin-top: 16px;
  text-align: center;
}

.ataca-loading h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.ataca-loading ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ataca-loading li {
  padding: 12px;
  border-radius: 14px;
  color: var(--ataca-muted);
  background: rgba(255, 255, 255, 0.06);
}

.ataca-candle-loader {
  display: inline-flex;
  align-items: end;
  gap: 8px;
  height: 50px;
}

.ataca-candle-loader span {
  display: block;
  width: 9px;
  border-radius: 999px;
  background: var(--ataca-accent);
  animation: atacaCandles 0.85s ease-in-out infinite;
}

.ataca-candle-loader span:nth-child(1) { height: 22px; animation-delay: 0s; }
.ataca-candle-loader span:nth-child(2) { height: 38px; animation-delay: 0.12s; background: var(--ataca-success); }
.ataca-candle-loader span:nth-child(3) { height: 28px; animation-delay: 0.24s; }
.ataca-candle-loader span:nth-child(4) { height: 44px; animation-delay: 0.36s; background: var(--ataca-warning); }

.ataca-error {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 77, 77, 0.30);
  border-radius: 16px;
  color: #fecaca;
  background: rgba(255, 77, 77, 0.11);
  font-weight: 700;
}

.ataca-result {
  margin-top: 16px;
}

.ataca-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.ataca-result-head span {
  color: var(--ataca-accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ataca-result h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.ataca-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ataca-card,
.ataca-scenario-box,
.ataca-final-note {
  border: 1px solid var(--ataca-border);
  border-radius: 18px;
  padding: 14px;
  background: var(--ataca-card-2);
}

.ataca-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ataca-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ataca-card strong {
  display: block;
  color: var(--ataca-text);
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.ataca-card-danger {
  border-color: rgba(255, 77, 77, 0.35);
  background: rgba(255, 77, 77, 0.11);
}

.ataca-card-warning {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.10);
}

.ataca-card-success {
  border-color: rgba(0, 255, 133, 0.35);
  background: rgba(0, 255, 133, 0.09);
}

.ataca-scenario-box {
  grid-column: 1 / -1;
}

.ataca-scenario-box p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.65;
}

.ataca-scenario-box p + p {
  margin-top: 10px;
}

.ataca-final-note {
  margin-top: 12px;
  color: #dbeafe;
  line-height: 1.6;
  background: rgba(0, 229, 255, 0.08);
}

@keyframes atacaSpin {
  to { transform: rotate(360deg); }
}

@keyframes atacaCandles {
  0%, 100% { transform: scaleY(0.72); opacity: 0.55; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

@media (max-width: 760px) {
  .ataca-shell {
    margin: 12px auto;
    padding: 12px;
    border-radius: 22px;
  }

  .ataca-hero {
    display: block;
  }

  .ataca-status-pill {
    margin-top: 12px;
  }

  .ataca-form,
  .ataca-loading,
  .ataca-result {
    padding: 14px;
    border-radius: 20px;
  }

  .ataca-grid-2,
  .ataca-loading ul,
  .ataca-result-grid {
    grid-template-columns: 1fr;
  }

  .ataca-upload-card {
    min-height: 170px;
  }

  .ataca-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ataca-copy-btn {
    width: 100%;
  }
}

/* Professional report refinements - v1.2.0 */
.ataca-summary-box,
.ataca-section-box {
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.11), rgba(0, 255, 133, 0.055));
}

.ataca-summary-box span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ataca-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ataca-summary-box p,
.ataca-section-box p {
  margin: 0;
  color: #eef6ff;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 650;
}

.ataca-section-box h4,
.ataca-pro-scenarios h4 {
  margin: 0 0 10px;
  color: var(--ataca-accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ataca-pro-scenarios {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.84), rgba(17, 24, 39, 0.92));
}

.ataca-card-success strong { color: #d1fae5; }
.ataca-card-danger strong { color: #fee2e2; }
.ataca-card-warning strong { color: #fef3c7; }

/* Scenario Map / Educational Projection - v1.3.0 */
.ataca-scenario-options {
  margin-top: 12px;
}

.ataca-projection-wrap {
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  overflow: hidden;
}

.ataca-projection-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.ataca-projection-top h4 {
  margin: 0;
  color: var(--ataca-accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ataca-projection-top span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #cffafe;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ataca-projection-summary {
  margin: 0 0 12px;
  color: #e5e7eb;
  line-height: 1.55;
  font-weight: 650;
}

.ataca-projection-wrap svg {
  display: block;
  width: 100%;
  min-height: 230px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 229, 255, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.ataca-grid-line {
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.ataca-grid-line-soft {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-dasharray: 0;
}

.ataca-path {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ataca-path-up {
  stroke: rgba(0, 255, 133, 0.65);
  stroke-dasharray: 10 10;
}

.ataca-path-base {
  stroke: rgba(0, 229, 255, 0.92);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.22));
}

.ataca-path-down {
  stroke: rgba(255, 77, 77, 0.64);
  stroke-dasharray: 10 10;
}

.ataca-map-label,
.ataca-time-label {
  font-family: Inter, Poppins, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.ataca-map-label-up { fill: #bbf7d0; }
.ataca-map-label-base { fill: #cffafe; }
.ataca-map-label-down { fill: #fecaca; }
.ataca-time-label { fill: #94a3b8; }

.ataca-projection-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ataca-projection-chips div,
.ataca-timeline-note,
.ataca-live-note {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.ataca-projection-chips span {
  display: block;
  margin-bottom: 7px;
  color: var(--ataca-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ataca-projection-chips p,
.ataca-timeline-note,
.ataca-live-note {
  margin: 0;
  color: #d1d5db;
  line-height: 1.55;
  font-size: 14px;
}

.ataca-timeline-note {
  margin-top: 12px;
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.09);
  border-color: rgba(251, 191, 36, 0.22);
}

.ataca-live-note {
  margin-top: 10px;
  color: #dbeafe;
  background: rgba(0, 229, 255, 0.07);
  border-color: rgba(0, 229, 255, 0.18);
}

@media (max-width: 760px) {
  .ataca-projection-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .ataca-projection-chips {
    grid-template-columns: 1fr;
  }

  .ataca-projection-wrap svg {
    min-height: 210px;
  }
}

.ataca-bangla-guide {
  border-color: rgba(0, 229, 255, 0.24);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(0, 255, 133, 0.045));
}

.ataca-bangla-guide h4 {
  color: #67e8f9;
}

.ataca-bangla-guide p {
  color: #e5e7eb;
}

.ataca-bangla-timing {
  grid-column: 1 / -1;
  margin: 0 0 16px;
}

.ataca-bangla-timing div {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(0, 255, 133, 0.18);
}
