* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  text-align: center;
}
section {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.title-main {
  font-size: 35px;
  font-weight: bold;
}
.text-accuracy {
  font-size: 45px;
}
.text-accuracy .mark {
  color: #f00;
  font-weight: bold;
}
.text-desc {
  margin-top: 5%;
  font-size: 28px;
}
.text-red {
  color: red;
}
.text-green {
  color: #01ffa2;
}
.progress-card {
  background: rgb(9, 76, 137);
  border-radius: 12px;
  padding: 32px 18px;
  max-width: 680px;
  margin: 60px auto;
}
.progress-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 18px;
}
.progress-content {
  margin: 0 auto;
}
.step {
  margin-bottom: 16px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.step-title {
  font-size: 25px;
  margin-bottom: 8px;
  color: #fff;
}
.bar, .bar-track {
  width: 100%;
  background: #eee;
  border-radius: 8px;
  height: 16px;
  overflow: hidden;
}
.bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 8px;
  background: #00dcf4;
  transform-origin: left center;
}
@keyframes fillA {
  from { width: 0%; } to { width: 100%; }
}
@keyframes fillB {
  from { width: 0%; } to { width: 100%; }
}
@keyframes fillC {
  from { width: 0%; } to { width: 100%; }
}
.fill-anim-a {
  animation: fillA 1.5s linear forwards;
}
.fill-anim-b {
  animation: fillB 1.2s linear 0.45s forwards;
}
.fill-anim-c {
  animation: fillC 0.8s linear 0.95s forwards;
}
.result-card {
	position: relative;
    width: 100%;
    margin: 0 auto;
    background-size: 100% 100%;
    border: 0;
    padding: 48px;
    background-repeat: no-repeat;
    max-width: 680px;
}
.btn-join{
	width: 73%;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    max-width: 500px;
	top: 62%;
}
#code-tip { color: #15a223; }
.result-text {
  font-size: 26px;
  margin-bottom: 18px;
  color: #fff;
}
.chat-btn {
  background: #15a223;
  color: #fff;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  font-size: 30px;
}
.btn-analyze, .btn-join{ animation: btn-pulse 1s linear infinite; }

.wrap {
  position: relative;
  max-width: 720px;
  left: 50%;
  transform: translateX(-50%);
}
.header {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 3%;
}
.content {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 24%;
}
.form-area {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 55%;
}
.form-area img { padding: 20px; }
.content2 {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 68%;
}
.content3 {
	position: absolute;
    width: 720px;
    text-align: center;
    top: 50.5%;
    right: 22%;
    font-size: 22px;
}

.stock-input {
    width: 82%;
    height: 8%;
    border-radius: 1.5rem;
    border: 3px solid rgb(3 206 210);
    margin-top: 1rem;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 28px;
    background: rgb(15 29 78);
    color: white;
}
.stock-input::placeholder { color: white; }
.msg-error {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.msg-box {
  padding: 30px;
  line-height: 1.5;
  word-break: break-word;
  overflow: auto;
  font-size: 35px;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  max-width: 750px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
@keyframes btn-pulse {
  0% { transform: scale(0.9); }
  50% { transform: scale(1); }
  100% { transform: scale(0.9); }
}
.ai-popup {
  position: fixed;
  display: none;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
}
.result-wrap .result-card { text-align: center; }




:root {
    --primary-color: #00d9ff;
    --primary-dark: #0c1725;
    --accent-green: #20ff88;
    --accent-red: #ff4d4d;
    --accent-gold: #ffed4e;
    --card-bg: rgba(0, 22, 45, 0.82);
    --text-light: #d0dce8;
    --glow-color: rgba(0, 217, 255, 0.55);
}
.stock-ticker-wrapper {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 27%;
}
.stock-ticker {
    background: transparent;
    padding: 4px 0;
    overflow: hidden;
    height: 220px;
    display: none;
    width: 80%;
	margin: 0 auto;
    position: relative;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}
.ticker-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.22);
    border-radius: 6px;
    background: rgba(0, 22, 45, 0.45);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 217, 255, 0.28);
}
.ticker-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: ticker-vertical 35s linear infinite;
}
.ticker-item {
    font-size: 13px;
    padding: 4px 12px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    height: 50px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 8px var(--glow-color), 0 0 15px rgba(0, 217, 255, 0.48);
    background: rgba(0, 22, 45, 0.52);
    margin: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.22);
}
.ticker-symbol {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 25px;
}
.ticker-price {
    font-weight: bold;
    margin-left: 8px;
    display: flex;
    align-items: center;
    font-size: 25px;
}
.down {
    color: #ff4d4d;
}
.up {
    color: #20ff8;
}
.price-change {
    margin-left: 6px;
    font-size: 24px;
}
@keyframes ticker-vertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.highlight {
    color: var(--accent-gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    display: inline-block;
    animation: countBounce 0.4s ease-out;
}
@keyframes countBounce {
    0%, 100% {
        transform: scale(1);
        color: var(--accent-gold);
    }
    50% {
        transform: scale(1.3);
        color: #ffed4e;
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
}
