:root{
    --drosly-green:#023720;
    --drosly-green-2:#006747;
    --drosly-mint:#2EB97E;
    --drosly-bg:#F6FAF8;
    --drosly-text:#0F172A;
    --drosly-muted:#64748B;
}

/* Better mobile base */
html{
    -webkit-text-size-adjust:100%;
}

body.drosly-mobile-ready{
    font-family:"DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width:1023px){
    body.drosly-mobile-ready{
        background:
            radial-gradient(circle at top right, rgba(46,185,126,.13), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f8fbfa 48%, #ffffff 100%);
        overflow-x:hidden;
    }

    .drosly-main-content{
        padding-bottom:110px;
    }

    .dr-footer{
        padding-bottom:110px;
    }

    .container{
        width:100%;
        max-width:100%;
        padding-left:16px;
        padding-right:16px;
    }

    header .h-20{
        height:72px !important;
    }

    header img.w-44{
        width:140px !important;
        max-width:140px !important;
    }
}

/* =========================
   INSTALL BANNER
========================= */
.drosly-install-banner{
    position:sticky;
    top:0;
    z-index:100000;
    min-height:72px;
    padding:12px 14px;
    padding-top:max(12px, env(safe-area-inset-top));
    background:rgba(18,18,18,.96);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    box-shadow:0 16px 44px rgba(0,0,0,.24);
    backdrop-filter:blur(18px);
}

.drosly-install-banner[hidden]{
    display:none !important;
}

.drosly-install-banner__close{
    width:28px;
    height:28px;
    border:0;
    background:transparent;
    color:#9CA3AF;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.drosly-install-banner__brand{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    flex:1;
}

.drosly-install-banner__brand img{
    width:46px;
    height:46px;
    border-radius:13px;
    object-fit:cover;
    box-shadow:0 10px 28px rgba(0,0,0,.32);
}

.drosly-install-banner__brand strong{
    display:block;
    font-size:15px;
    font-weight:900;
    letter-spacing:.1px;
}

.drosly-install-banner__brand span{
    display:block;
    margin-top:2px;
    font-size:12px;
    color:#cbd5e1;
}

.drosly-install-banner__btn{
    width:50px;
    height:50px;
    border:0;
    border-radius:16px;
    background:#fff;
    color:var(--drosly-green);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(0,0,0,.20);
}

.drosly-install-banner__btn svg{
    width:24px;
    height:24px;
}

/* =========================
   IOS HINT
========================= */
.drosly-ios-hint{
    position:fixed;
    inset:0;
    z-index:100002;
    background:rgba(2,12,10,.55);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:16px;
    padding-bottom:calc(16px + env(safe-area-inset-bottom));
}

.drosly-ios-hint[hidden]{
    display:none !important;
}

.drosly-ios-hint__card{
    position:relative;
    width:min(100%, 390px);
    border-radius:28px;
    background:#fff;
    padding:26px 20px 20px;
    text-align:center;
    box-shadow:0 28px 70px rgba(0,0,0,.28);
    animation:droslySheetIn .28s ease both;
}

@keyframes droslySheetIn{
    from{ transform:translateY(22px); opacity:0; }
    to{ transform:translateY(0); opacity:1; }
}

.drosly-ios-hint__close{
    position:absolute;
    top:12px;
    inset-inline-end:14px;
    width:34px;
    height:34px;
    border:0;
    border-radius:999px;
    background:#f1f5f9;
    color:#334155;
    font-size:22px;
    cursor:pointer;
}

.drosly-ios-hint__icon{
    width:74px;
    height:74px;
    margin:0 auto 14px;
    border-radius:22px;
    background:linear-gradient(135deg, #023720, #2EB97E);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 16px 36px rgba(2,55,32,.24);
}

.drosly-ios-hint__icon img{
    width:58px;
    height:58px;
    border-radius:18px;
    object-fit:cover;
}

.drosly-ios-hint h3{
    margin:0;
    color:var(--drosly-green);
    font-size:20px;
    font-weight:950;
}

.drosly-ios-hint p{
    margin:10px auto 18px;
    color:#64748b;
    font-size:14px;
    line-height:1.7;
    max-width:280px;
}

.drosly-ios-hint button#droslyIosHintOk{
    width:100%;
    height:50px;
    border:0;
    border-radius:18px;
    background:var(--drosly-green);
    color:#fff;
    font-weight:900;
    cursor:pointer;
}
/* =========================
   Drosly Premium Mobile Bottom Nav
========================= */
.drosly-mobile-nav{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 99990;

    height: 76px;
    padding: 8px;

    border-radius: 30px;
    border: 1px solid rgba(2,55,32,.10);

    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,250,.94));

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 22px 55px rgba(2,55,32,.18),
        0 8px 20px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.95);

    display: none;
    align-items: center;
    justify-content: space-between;
}

.drosly-mobile-nav::before{
    content:"";
    position:absolute;
    inset: 7px;
    border-radius: 24px;
    pointer-events:none;
    background:
        radial-gradient(circle at 18% 0%, rgba(46,185,126,.10), transparent 35%),
        radial-gradient(circle at 82% 100%, rgba(2,55,32,.08), transparent 36%);
}

.drosly-mobile-nav__item{
    position: relative;
    isolation: isolate;

    min-width: 54px;
    height: 60px;
    padding: 6px 5px 5px;

    border-radius: 23px;
    color: #7a877f;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    transition:
        color .24s ease,
        transform .24s ease,
        opacity .24s ease;

    -webkit-tap-highlight-color: transparent;
}

.drosly-mobile-nav__item::before{
    content:"";
    position:absolute;
    inset: 4px 3px;
    z-index:-1;
    border-radius: 21px;
    background: transparent;
    transform: scale(.86);
    opacity: 0;
    transition:
        opacity .24s ease,
        transform .24s ease,
        background .24s ease;
}

.drosly-mobile-nav__item::after{
    content:"";
    position:absolute;
    top: 2px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #2eb97e;
    box-shadow: 0 0 0 5px rgba(46,185,126,.12);
    opacity: 0;
    transform: translateY(-5px) scale(.6);
    transition: .24s ease;
}

.drosly-mobile-nav__item:hover{
    color: #023720;
}

.drosly-mobile-nav__item:active{
    transform: scale(.94);
}

.drosly-mobile-nav__icon{
    position: relative;
    width: 30px;
    height: 30px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        width .24s ease,
        height .24s ease,
        color .24s ease,
        background .24s ease,
        box-shadow .24s ease,
        transform .24s ease;
}

.drosly-mobile-nav__icon svg{
    width: 23px;
    height: 23px;
    stroke-width: 1.95;
    transition:
        transform .24s ease,
        filter .24s ease;
}

.drosly-mobile-nav__item small{
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .05px;
    transition:
        transform .24s ease,
        color .24s ease,
        opacity .24s ease;
}

/* Active item */
.drosly-mobile-nav__item.is-active{
    color: #023720;
}

.drosly-mobile-nav__item.is-active::before{
    opacity: 1;
    transform: scale(1);
    background:
        linear-gradient(180deg, rgba(2,55,32,.08), rgba(46,185,126,.10));
}

.drosly-mobile-nav__item.is-active::after{
    opacity: 1;
    transform: translateY(0) scale(1);
}

.drosly-mobile-nav__item.is-active .drosly-mobile-nav__icon{
    width: 46px;
    height: 36px;
    color: #fff;
    border-radius: 18px;

    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.38), transparent 36%),
        linear-gradient(135deg, #023720 0%, #006747 65%, #2eb97e 100%);

    box-shadow:
        0 13px 24px rgba(2,55,32,.24),
        inset 0 1px 0 rgba(255,255,255,.20);
}

.drosly-mobile-nav__item.is-active .drosly-mobile-nav__icon svg{
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.18));
}

.drosly-mobile-nav__item.is-active small{
    color: #023720;
    transform: translateY(1px);
}

/* Honor / Leaderboard special effect */
.drosly-mobile-nav__item--honor .drosly-mobile-nav__icon{
    color: #9b7419;
}

.drosly-mobile-nav__item--honor.is-active .drosly-mobile-nav__icon{
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,.45), transparent 34%),
        linear-gradient(135deg, #023720 0%, #007a4c 58%, #d6a935 130%);
}

.drosly-mobile-nav__item--honor.is-active .drosly-mobile-nav__icon::after{
    content:"";
    position:absolute;
    inset:-5px;
    border-radius: 22px;
    border: 1px solid rgba(214,169,53,.62);
    animation: droslyHonorPulse 1.9s ease-in-out infinite;
}

@keyframes droslyHonorPulse{
    0%,100%{
        transform: scale(.94);
        opacity:.25;
    }
    50%{
        transform: scale(1.08);
        opacity:.82;
    }
}

/* Soft tap ripple */
.drosly-mobile-nav__item .drosly-mobile-nav__ripple{
    position:absolute;
    width: 10px;
    height: 10px;
    border-radius:999px;
    background: rgba(2,55,32,.15);
    transform: scale(0);
    pointer-events:none;
    animation: droslyNavRipple .45s ease-out forwards;
}

@keyframes droslyNavRipple{
    to{
        transform: scale(12);
        opacity:0;
    }
}

/* Show only mobile/tablet */
@media (max-width:1023px){
    .drosly-mobile-nav{
        display:flex;
    }
}

@media (min-width:1024px){
    .drosly-mobile-nav{
        display:none !important;
    }
}

/* RTL */
html[dir="rtl"] .drosly-mobile-nav{
    direction: rtl;
}

html[dir="rtl"] .drosly-mobile-nav__item small{
    letter-spacing: 0;
}
