/* CHESTNY ZNAK APP STYLES */

*{box-sizing:border-box}

body{
    margin:0;
    background:#070707;
    color:#fff;
    font-family:Arial,sans-serif;
}

.app{
    max-width:520px;
    margin:auto;
    min-height:100vh;
    padding:22px 16px 105px;
    background:
      radial-gradient(circle at top,#281f11 0,#0b0b09 30%,#070707 60%);
}

.top{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:22px;
    font-weight:700;
}

.gold{color:#e3b54c}

.avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    overflow:hidden;
    border:1px solid #67522c;
    background:#15130e;
}

.avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hello{
    margin-top:26px;
    color:#858585;
    font-size:14px;
}

.name{
    margin-top:4px;
    font-size:25px;
    font-weight:700;
}

.balance{
    margin-top:22px;
    padding:22px;
    border:1px solid #3c3323;
    border-radius:24px;
    background:linear-gradient(145deg,#1b1811,#0d0d0c);
}

.label{
    color:#8b8b8b;
    font-size:13px;
}

.balance-value{
    font-size:40px;
    font-weight:700;
    margin-top:7px;
}

.stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:12px;
}

.card{
    padding:17px;
    border-radius:18px;
    background:#101010;
    border:1px solid #252525;
}

.value{
    margin-top:7px;
    font-size:19px;
    font-weight:700;
}

.next{
    margin-top:12px;
    padding:18px;
    border-radius:19px;
    background:#101010;
    border:1px solid #292929;
}

.section-title{
    font-size:20px;
    font-weight:700;
    margin:28px 0 14px;
}

.tariffs{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:4px;
}

.tariffs::-webkit-scrollbar{
    display:none;
}

.tariff{
    min-width:230px;
    border-radius:22px;
    padding:20px;
    background:linear-gradient(145deg,#1b1811,#0f0f0e);
    border:1px solid #423722;
}

.percent{
    font-size:37px;
    font-weight:700;
    color:#e3b54c;
}

.tariff-row{
    display:flex;
    justify-content:space-between;
    margin-top:12px;
    color:#b6b6b6;
}

.tariff button{
    width:100%;
    margin-top:18px;
    border:0;
    border-radius:14px;
    padding:13px;
    background:#d8aa43;
    color:#111;
    font-weight:700;
    font-size:14px;
}

.bottom{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:100%;
    max-width:520px;
    display:flex;
    justify-content:space-around;
    padding:10px 5px calc(10px + env(safe-area-inset-bottom));
    background:rgba(10,10,10,.96);
    border-top:1px solid #252525;
}

.nav{
    width:20%;
    text-align:center;
    color:#777;
    font-size:11px;
}

.nav .icon{
    font-size:20px;
    margin-bottom:4px;
}

.nav.active{
    color:#e3b54c;
}

.admin{
    display:none;
    margin-top:15px;
    padding:15px;
    border-radius:16px;
    text-align:center;
    border:1px solid #5f4b27;
    color:#e3b54c;
    background:#15120d;
}

.sheet-overlay{
    display:none;
    position:fixed;
    inset:0;
    z-index:50;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(4px);
}

.sheet-overlay.open{
    display:block;
}

.sheet{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    max-width:520px;
    margin:auto;
    padding:22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius:26px 26px 0 0;
    background:#111;
    border-top:1px solid #453820;
}

.sheet-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.sheet-title{
    font-size:22px;
    font-weight:700;
}

.close-sheet{
    width:36px;
    height:36px;
    border:0;
    border-radius:50%;
    background:#222;
    color:#fff;
    font-size:20px;
}

.input-wrap{
    margin-top:22px;
}

.amount-input{
    width:100%;
    padding:17px;
    border-radius:16px;
    border:1px solid #343434;
    background:#090909;
    color:#fff;
    font-size:22px;
    outline:none;
}

.amount-input:focus{
    border-color:#b78d37;
}

.calc{
    margin-top:16px;
    padding:17px;
    border-radius:18px;
    background:#0b0b0b;
    border:1px solid #252525;
}

.calc-row{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin:10px 0;
    color:#888;
}

.calc-row strong{
    color:#fff;
}

.create-btn{
    width:100%;
    margin-top:17px;
    border:0;
    border-radius:16px;
    padding:16px;
    background:#ddb047;
    color:#111;
    font-size:16px;
    font-weight:700;
}

.create-btn:disabled{
    opacity:.45;
}

.hint{
    color:#777;
    font-size:12px;
    margin-top:8px;
}

.sheet-error{
    color:#e27b7b;
    font-size:13px;
    margin-top:10px;
    display:none;
}

.success-box{
    display:none;
    text-align:center;
    padding:18px 0;
}

.success-icon{
    font-size:46px;
}

.success-title{
    font-size:22px;
    font-weight:700;
    margin-top:10px;
}


.investment-card{
    margin-bottom:14px;
    padding:19px;
    border-radius:20px;
    background:linear-gradient(145deg,#15130f,#0d0d0d);
    border:1px solid #30291d;
}

.investment-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.investment-amount{
    font-size:26px;
    font-weight:700;
}

.investment-percent{
    font-size:20px;
    color:#dfb248;
    font-weight:700;
}

.investment-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:16px;
}

.meta-box{
    padding:12px;
    border-radius:14px;
    background:#0a0a0a;
    border:1px solid #202020;
}

.meta-value{
    margin-top:5px;
    font-weight:700;
}

.progress-track{
    height:8px;
    background:#242424;
    border-radius:10px;
    overflow:hidden;
    margin-top:16px;
}

.progress-fill{
    height:100%;
    background:#dfb248;
    border-radius:10px;
}

.investment-footer{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:14px;
    font-size:12px;
    color:#777;
}

.empty-state{
    padding:28px 18px;
    border-radius:18px;
    background:#0e0e0e;
    border:1px solid #222;
    color:#777;
    text-align:center;
}


.admin-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.admin-tile{
    min-height:145px;
    padding:20px 16px;
    border-radius:20px;
    border:1px solid #2f2f2f;
    background:
        linear-gradient(
            145deg,
            #141414,
            #101010
        );
    color:#fff;
    text-align:left;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.admin-tile:active{
    transform:scale(.98);
    border-color:#705a2c;
}

.admin-tile-icon{
    color:#dfb248;
    font-size:31px;
    font-weight:700;
}

.admin-tile-title{
    font-size:17px;
    line-height:1.25;
    font-weight:600;
}

#adminNavButton.active{
    color:#dfb248;
}

/* ========================================
   CHESTNY ZNAK CONSOLIDATED CSS
   ======================================== */

.fixed-wheel-wrap{
    position:relative;
    width:290px;
    height:290px;
    max-width:82vw;
    max-height:82vw;
    margin:20px auto 25px;
}

.fixed-wheel-pointer{
    position:absolute;
    z-index:10;
    top:-11px;
    left:50%;
    transform:translateX(-50%);
    width:0;
    height:0;
    border-left:15px solid transparent;
    border-right:15px solid transparent;
    border-top:28px solid #dfb248;
}

.fixed-wheel{
    width:100%;
    height:100%;
    border-radius:50%;
    border:7px solid #dfb248;
    box-shadow:
        0 0 0 5px #171717,
        0 0 30px rgba(223,178,72,.22);

    position:relative;
    overflow:hidden;

    transition:
        transform 4s cubic-bezier(.12,.72,.12,1);

    background:
        conic-gradient(
            #181818 0deg 60deg,
            #302713 60deg 120deg,
            #181818 120deg 180deg,
            #302713 180deg 240deg,
            #181818 240deg 300deg,
            #302713 300deg 360deg
        );
}

.fixed-wheel-label{
    position:absolute;
    left:50%;
    top:50%;
    width:42px;
    margin-left:-21px;
    margin-top:-13px;
    text-align:center;
    font-size:19px;
    font-weight:900;
    color:#fff;
    transform-origin:21px 13px;
    text-shadow:0 2px 5px #000;
}

.fixed-wheel-center{
    position:absolute;
    z-index:5;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:84px;
    height:84px;
    border-radius:50%;
    background:#080808;
    border:3px solid #dfb248;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#dfb248;
    font-size:14px;
    font-weight:900;
    text-align:center;
    line-height:1.1;
}

.wheel-counter-card{
    margin-top:14px;
    padding:14px;
    border:1px solid #292929;
    border-radius:16px;
    text-align:left;
}
