*{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:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

.stock-input{
  width:100%;
  height:54px;
  padding:0 18px;
  border:2px solid #00f6ff;
  border-radius:12px;
  background:rgba(1,8,25,.94);
  color:#fff;
  font-size:16px;
  outline:none;
  box-shadow:
    0 0 18px rgba(0,246,255,.22),
    inset 0 0 18px rgba(0,246,255,.06);
}

.stock-input:focus{
  border-color:#35fbff;
  box-shadow:
    0 0 0 4px rgba(0,246,255,.15),
    0 0 28px rgba(0,246,255,.42),
    inset 0 0 18px rgba(0,246,255,.1);
}

.stock-input::placeholder{
  color:rgba(255,255,255,.9);
}

.analyze-btn{
  width:100%;
  height:56px;
  margin-top:20px;
  border:none;
  border-radius:999px;
  background:linear-gradient(100deg,#20d8ee 0%,#6398ff 48%,#ec17e9 100%);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:
    0 14px 34px rgba(204,35,255,.32),
    0 10px 24px rgba(0,246,255,.24);
  transition:
    transform .2s ease,
    opacity .2s ease,
    box-shadow .2s ease;
}

.analyze-btn:hover{
  opacity:.96;
  transform:translateY(-2px);
}

.analyze-btn:active{
  transform:scale(.985);
}

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;
}

.result-content{
  max-width:520px;
  background:#071126;
}

.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;
}

.result-text{
  margin-bottom:0;
}

.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;
}

.result-action-image{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:16px auto 0;
  border-radius:24px;
  cursor:pointer;
  object-fit:contain;
  background:transparent;
  transition:
    transform .2s ease,
    opacity .2s ease,
    box-shadow .2s ease;
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 0 24px rgba(236,23,233,.18);
}

.result-action-image:hover{
  opacity:.98;
  transform:translateY(-2px);
  box-shadow:
    0 24px 48px rgba(0,0,0,.42),
    0 0 32px rgba(236,23,233,.28);
}

.result-action-image:active{
  transform:scale(.985);
}