*{margin:0;padding:0;box-sizing:border-box}

body{
  min-height:100vh;
  font-family:Arial,Helvetica,sans-serif;
  color:#fff;
  background:#061126;
  overflow-x:hidden;
  position:relative;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image:
    linear-gradient(to right,rgba(0,224,255,.18) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(0,224,255,.18) 1px,transparent 1px);
  background-size:20px 20px;
}

.container{
  width:100%;
  max-width:420px;
  min-height:100vh;
  margin:0 auto;
  padding:28px 20px 12px;
  display:flex;
  flex-direction:column;
}

@media(min-width:768px){
  .container{max-width:520px;padding:40px 24px 20px}
}

@media(min-width:1200px){
  .container{max-width:640px;padding:60px 28px 30px}
}

main{flex:0 0 auto}

.form-area{padding:14px 0 0}

.form-area img{
  display:block;
  width:100%;
  border-radius:14px;
  margin-bottom:16px;
  box-shadow:0 12px 32px rgba(0,246,255,.18);
  border:1px solid rgba(0,246,255,.28);
}

.input-wrap{
  padding:14px;
  border-radius:16px;
  background:rgba(4,15,35,.72);
  border:1px solid rgba(0,246,255,.22);
  box-shadow:0 14px 36px rgba(0,0,0,.25);
}

@media(min-width:768px){
  .input-wrap{padding:18px;border-radius:18px}
}

.form-title{
  color:#00fbff;
  font-size:20px;
  font-weight:800;
  text-align:center;
  margin-bottom:8px;
}

.form-subtitle{
  color:rgba(255,255,255,.82);
  font-size:12px;
  line-height:1.35;
  text-align:center;
  margin-bottom:11px;
}

.stock-input{
  width:100%;
  height:42px;
  padding:0 14px;
  border:1.5px solid #00f6ff;
  border-radius:10px;
  background:rgba(1,8,25,.92);
  color:#fff;
  font-size:14px;
  outline:none;
}

.stock-input:focus{box-shadow:0 0 12px rgba(0,246,255,.55)}
.stock-input::placeholder{color:rgba(255,255,255,.72)}

@media(min-width:768px){
  .stock-input{height:46px;font-size:15px}
}

.analyze-btn{
  width:100%;
  height:44px;
  margin-top:12px;
  border:none;
  border-radius:24px;
  background:linear-gradient(90deg,#20d8ee 0%,#d925ff 100%);
  color:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(204,35,255,.25),0 0 18px rgba(0,246,255,.18);
}

@media(min-width:768px){
  .analyze-btn{height:50px;font-size:15px}
}

footer{
  margin-top:18px;
  text-align:center;
  color:#fff;
  font-size:10px;
  line-height:1.5;
}

@media(min-width:768px){
  footer{font-size:12px;line-height:1.6}
}

@media(min-width:1200px){
  footer{font-size:13px;line-height:1.7}
}

.footer-inner{
  border-top:1px solid rgba(0,246,255,.35);
  padding-top:16px;
  max-width:600px;
  margin:0 auto;
}

.footer-links{margin:8px 0 7px}

.footer-links a{
  color:#fff;
  text-decoration:underline;
  font-weight:700;
  margin:0 9px;
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(0,0,0,.78);
  justify-content:center;
  align-items:center;
  padding:18px;
}

.modal-content{
  width:100%;
  max-width:340px;
  padding:22px 18px;
  border-radius:15px;
  background:linear-gradient(135deg,#263f52,#071126);
  text-align:center;
  border:1px solid rgba(0,246,255,.45);
  box-shadow:0 0 30px rgba(0,246,255,.24);
  position:relative;
}

.close{
  position:absolute;
  right:14px;
  top:9px;
  color:#00fbff;
  font-size:22px;
  cursor:pointer;
}

.modal-title{
  color:#00fbff;
  font-size:21px;
  margin-bottom:10px;
}

.modal-text{
  color:#fff;
  font-size:15px;
  line-height:1.45;
  margin-bottom:14px;
}

.highlight{
  color:#ff43ff;
  font-weight:800;
}

.progress-container{
  width:100%;
  margin:18px auto 16px;
}

.progress-track{
  width:100%;
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  overflow:hidden;
  border:1px solid rgba(0,246,255,.26);
  box-shadow:inset 0 0 10px rgba(0,0,0,.35);
}

.progress-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#20d8ee 0%,#d925ff 100%);
  box-shadow:0 0 14px rgba(0,246,255,.55);
  transition:width .25s linear;
}

.progress-text{
  margin-top:9px;
  color:#00fbff;
  font-size:18px;
  font-weight:900;
  text-align:center;
}

.modal-btn{
  width:100%;
  height:40px;
  border:none;
  border-radius:20px;
  background:linear-gradient(90deg,#2ad2eb 0%,#cc23ff 100%);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}