body {
    background: #252525;
}

#main-box {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    height: 95vh;
    width: 90%;
    border-radius: 10px;
    position: relative;
    margin-left: 5%;
    margin-top: 1%;
    z-index: 0;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 99%;
    height: 44px;
    display: flex;
    align-items: center;
    padding-left: 14px;
    gap: 10px;
    background-color: #1e1e1e;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.dot1 {
    background-color: #ff5f57;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
}

.dot2 {
    background-color: #febc2e;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
}

.dot3 {
    background-color: #28c840;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
}

.sinav {
    width: 20%;
    background-color: #1e1e1e;
    z-index: 20;
    position: absolute;
    display: block;
    left: 1%;
    top: 8%;
    height: 90%;
    border-radius: 10px;
    width: 15%;
    justify-content: center;
    align-items: center;
}

.chart-box {
    min-width: 60%;
    background-color: #1e1e1e;
    z-index: 20;
    position: absolute;
    display: block;
    left: 17%;
    top: 20%;
    height: 78%;
    border-radius: 10px;
}

.trade-box {
    width: 21%;
    background-color: #1e1e1e;
    z-index: 20;
    position: absolute;
    display: block;
    left: 78%;
    top: 20%;
    height: 78%;
    border-radius: 10px;
}

.chart-box {
    height: 78%;
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#display {
    font-size: 32px;
    font-weight: 700;
    color: white;
    gap: 0;
}

.wallet-box{
    font-size: 22px;
    font-family: "Poppins";
    color: #e6edf3;
    margin-bottom: 10px;
    margin-left: 20%;
    margin-top: 20%;
}
.owned-box{
     font-family: "Poppins";
    font-size: 20px;
    color: #4fd1ff;
    margin-bottom: 20px;
    margin-left: 32%;
}
#qty{
     font-size: 22px;
      font-family: "Poppins";
    width: 80%;
    margin-left: 7%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #0f1115;
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    outline: none;
}
button{
     font-size: 18px;
      font-family: "Poppins";
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline;
    position: relative;
    left: 24%;
}

button:nth-of-type(1){
     font-size: 18px;
    background: linear-gradient(135deg,#00ff88,#00c853);
    color: black;
}

button:nth-of-type(2){
    background: linear-gradient(135deg,#ff4d4d,#ff0033);
    color: white;
}

button:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.networth-box{
     font-family: "Poppins";
    font-size: 25px;
    margin-top: 30px;
    color: #00ff88;
    font-weight: 700;
    display: block;
    margin-left: 8%;
    margin-left: 26%;
}
#price-display{

    position: absolute;
    left: 85%;
    top: 10%;
    color: #00ff88;
    font-size: 32px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    letter-spacing: 2px;
    z-index: 100000;
}
#pl-box{
    font-family: "Poppins";
    font-size: 25px;
    margin-top: 40px;
    color: #ffffff;
    font-weight: 700;
    display: block;
 
    margin-left:12%;

}

#cost{
    position: absolute;
    z-index: 10000000000000000000000000000000000000000000000000000;
    left: 45%;
    top:0;
    color: #ff4d4d;
    font-size: 26px;
     font-family: "Poppins";
    font-size: 25px;
    margin-top: 40px;
    font-weight: 700;
    display: block;
}

#c1 {
    margin: 0;
    opacity: 0;
}

.cost-float-animate {
    animation: slideFadeDown 1.2s ease-out forwards;
}
  @keyframes slideFadeDown {
      0% {
        opacity: 1;
        transform: translateY(0);
 }
      100% {
         opacity: 0;
        transform: translateY(100px); 
    }
}

.sell-float-animate {
    animation: slideFadeUp 1.5s ease-out forwards;
}
  @keyframes slideFadeUp {
      0% {
        opacity: 1;
        transform: translateY(400px);
 }
      100% {
         opacity: 0;
        transform: translateY(0px); 
    }
}

.sinav p {
    display: block;
    font-family: "Poppins";
    color: rgba(255, 255, 255, 0.45);
    margin: 14px 0 0;
    padding: 6px 12px;
    width: 70%;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    justify-self: center;
    text-decoration: none;
}

.sinav p:hover,.sinav p.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sinav-ach-btn {
    margin-top: 18px;
    color: #9be9ff;
    background-color: rgba(79, 209, 255, 0.15);
}

.sinav-ach-btn:hover {
    color: #ffffff;
    background-color: rgba(79, 209, 255, 0.25);
    transform: translateX(4px);
}

.achievements-panel {
    position: absolute;
    top: 8%;
    left: 16.8%;
    width: 23%;
    background: #111418;
    border: 1px solid #27313d;
    border-radius: 10px;
    z-index: 40;
    padding: 14px;
    transform: translateX(-24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.achievements-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.achievements-header h3 {
    margin: 0;
    color: #e6edf3;
    font-family: "Poppins";
    font-size: 18px;
}

.achievements-close {
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 14px;
    color: #e6edf3;
    background: #1d2430;
    border: 1px solid #2f3a48;
}

.achievements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.achievements-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Poppins";
    font-size: 14px;
    color: #aeb8c2;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1a1f27;
}

.achievements-list li.unlocked {
    color: #e6ffed;
    background: rgba(40, 200, 64, 0.18);
    border: 1px solid rgba(40, 200, 64, 0.45);
}

.ach-status {
    font-weight: 700;
}
a{
    text-decoration: none;
}

.sinav a.locked-link {
    opacity: 0.5;
    cursor: not-allowed;
}
#ach1{
    display: none;
    position: fixed;
    z-index: 6767676767676767000000000000000000000000000000000000000000000000000000000000000;
    color: rgb(255, 255, 255);
    justify-content: center;
    text-align: center;
    pointer-events: none;
    font-family: poppins;
    border-radius: 10px;
    border: 2px solid #64748b;
    padding: 20px;
    background: linear-gradient(135deg,#cbd5e1,#94a3b8);
    right: 100px;
    top: 0;
    opacity: 0;
    transform: translateX(260px);

}
#ach1.show{
    animation: achievementSlide 2.6s ease forwards;
}

@keyframes achievementSlide {
    0% {
        opacity: 0;
        transform: translateX(260px);
    }
    18% {
        opacity: 1;
        transform: translateX(0);
    }
    72% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(260px);
    }
}
#ach2{
    display: none;
    position: fixed;
    z-index: 6767676767676767000000000000000000000000000000000000000000000000000000000000000;
    color: rgb(255, 255, 255);
    justify-content: center;
    text-align: center;
    font-family: poppins;
    border-radius: 10px;
    pointer-events: none;
    border: 2px solid #166534;
    padding: 20px;
    background: linear-gradient(135deg,#4ade80,#16a34a);
    right: 100px;
    top: 0;
    opacity: 0;
    transform: translateX(260px);

}
#ach2.show{
    animation: achievementSlide 2.6s ease forwards;
}

@keyframes achievementSlide {
    0% {
        opacity: 0;
        transform: translateX(260px);
    }
    18% {
        opacity: 1;
        transform: translateX(0);
    }
    72% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(260px);
    }
}
#ach3{
    display: none;
    position: fixed;
    z-index: 6767676767676767000000000000000000000000000000000000000000000000000000000000000;
    color: rgb(255, 255, 255);
    justify-content: center;
    text-align: center;
    pointer-events: none;
    font-family: poppins;
    border-radius: 10px;
    border: 2px solid #1e3a8a;
    padding: 20px;
    background: linear-gradient(135deg,#60a5fa,#2563eb);
    right: 100px;
    top: 0;
    opacity: 0;
    transform: translateX(260px);

}
#ach3.show{
    animation: achievementSlide 2.6s ease forwards;
}

@keyframes achievementSlide {
    0% {
        opacity: 0;
        transform: translateX(260px);
    }
    18% {
        opacity: 1;
        transform: translateX(0);
    }
    72% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(260px);
    }
}
#ach4{
    display: none;
    position: fixed;
    z-index: 6767676767676767000000000000000000000000000000000000000000000000000000000000000;
    color: rgb(255, 255, 255);
    justify-content: center;
    text-align: center;
    font-family: poppins;
    pointer-events: none;
    border-radius: 10px;
    border: 2px solid #4c1d95;
    padding: 20px;
    background: linear-gradient(135deg,#c084fc,#7c3aed);
    right: 100px;
    top: 0;
    opacity: 0;
    transform: translateX(260px);

}
#ach4.show{
    animation: achievementSlide 2.6s ease forwards;
}

@keyframes achievementSlide {
    0% {
        opacity: 0;
        transform: translateX(260px);
    }
    18% {
        opacity: 1;
        transform: translateX(0);
    }
    72% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(260px);
    }
}
#ach5 {
    position: relative;
    overflow: hidden;
}

#ach5::after{
    content:"";
    position:absolute;
    top:-50%;
    left:-50%;
    width:200%;
    height:200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transform: rotate(25deg);
    animation: shine 3s infinite;
}

@keyframes shine{
    0%{ left:-60%; }
    100%{ left:120%; }
}
p{
     display: block;
    font-family: "Poppins";
    color: rgba(255, 255, 255, 0.45);
    margin: 14px 0 0;
    padding: 6px 12px;
    width: 70%;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    justify-self: center;
    text-decoration: none;
    z-index: 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
}