*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

:root{
    --primary:#16964d;
    --primary-dark:#0f733b;
    --secondary:#f3fbf6;
    --background:#edf5ef;
    --card:#ffffff;
    --border:#dbe8df;
    --text:#2f3b35;
    --muted:#6e7d75;
    --shadow:0 18px 45px rgba(0,0,0,.08);
    --radius:20px;
}

body{
    background:var(--background);
    color:var(--text);
}

.hero{
    background:linear-gradient(135deg,#16964d,#22c55e);
    color:#fff;
    padding:60px 20px;
    box-shadow:var(--shadow);
}

.hero-content{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    gap:24px;
}

.hero-icon{
    width:85px;
    height:85px;
    border-radius:22px;
    background:rgba(255,255,255,.15);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:38px;
    backdrop-filter:blur(12px);
}

.hero h1{
    font-size:34px;
    margin-bottom:10px;
}

.hero p{
    max-width:700px;
    line-height:1.8;
    opacity:.92;
}

.container{
    max-width:1200px;
    margin:35px auto;
    padding:0 20px 40px;
}

.menu-wrapper{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.loading-card{
    background:#fff;
    border-radius:18px;
    padding:35px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    box-shadow:var(--shadow);
}

.loading-spinner{
    width:34px;
    height:34px;
    border:4px solid #dfece3;
    border-top:4px solid var(--primary);
    border-radius:50%;
    animation:spin .8s linear infinite;
}

.group{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.group-header{
    width:100%;
    border:none;
    background:#fff;
    padding:22px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    transition:.25s;
}

.group-header:hover{
    background:#f5fbf7;
}

.group-title{
    display:flex;
    align-items:center;
    gap:14px;
    font-size:18px;
    font-weight:600;
}

.group-icon{
    width:48px;
    height:48px;
    border-radius:14px;
    background:var(--secondary);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
}

.arrow{
    transition:.3s;
    font-size:18px;
}

.group.active .arrow{
    transform:rotate(90deg);
}

.menu{
    display:none;
    padding:0 24px 24px;
}

.group.active .menu{
    display:block;
}

.item{
    background:#f8fbf9;
    border:1px solid var(--border);
    border-radius:16px;
    padding:16px 18px;
    margin-top:16px;
    cursor:pointer;
    transition:.25s;
}

.item:hover{
    background:#eef8f2;
}

.item-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
}

.submenu{
    display:none;
    margin-top:15px;
    padding-top:15px;
    border-top:1px solid var(--border);
}

.item.active .submenu{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.submenu div{
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:13px 16px;
    transition:.25s;
}

.submenu div:hover{
    background:var(--primary);
    color:#fff;
}

.viewer{
    position:fixed;
    inset:0;
    display:none;
    flex-direction:column;
    background:#eef3ef;
    z-index:100;
}

.viewer-toolbar{
    background:#fff;
    padding:14px 20px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}

.toolbar-btn{
    border:none;
    border-radius:12px;
    padding:12px 18px;
    font-weight:600;
    cursor:pointer;
    color:#fff;
}

.toolbar-btn.edit{
    background:#16964d;
}

.toolbar-btn.close{
    background:#e74c3c;
}

iframe{
    flex:1;
    border:none;
    background:#fff;
}

.modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
    z-index:999;
}

.modal-box{
    width:90%;
    max-width:380px;
    background:#fff;
    border-radius:20px;
    padding:28px;
    position:relative;
    box-shadow:var(--shadow);
}

.modal-close{
    position:absolute;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#f2f2f2;
    cursor:pointer;
}

.modal-box h2{
    color:var(--primary-dark);
    margin-bottom:10px;
}

.modal-box p{
    color:var(--muted);
    margin-bottom:18px;
    line-height:1.7;
}

.modal-box input{
    width:100%;
    height:48px;
    border:1px solid var(--border);
    border-radius:12px;
    padding:0 15px;
    margin-bottom:18px;
    outline:none;
}

.btn-primary{
    width:100%;
    height:48px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    cursor:pointer;
    font-weight:600;
}

.spinner{
    width:42px;
    height:42px;
    margin:20px auto 0;
    border:4px solid #dce8df;
    border-top:4px solid var(--primary);
    border-radius:50%;
    display:none;
    animation:spin .8s linear infinite;
}

.toast{
    position:fixed;
    top:25px;
    right:-350px;
    min-width:260px;
    padding:16px 20px;
    color:#fff;
    border-radius:14px;
    font-weight:600;
    transition:.35s;
    z-index:1000;
    box-shadow:var(--shadow);
}

.toast.show{
    right:20px;
}

.success{
    background:#1faa59;
}

.error{
    background:#e74c3c;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

::-webkit-scrollbar-track{
    background:#dce7df;
}

@media(max-width:768px){

    .hero{
        padding:40px 20px;
    }

    .hero-content{
        flex-direction:column;
        text-align:center;
    }

    .hero h1{
        font-size:28px;
    }

    .hero-icon{
        width:72px;
        height:72px;
        font-size:30px;
    }

    .group-header{
        padding:18px;
    }

    .group-title{
        font-size:16px;
    }

    .group-icon{
        width:42px;
        height:42px;
        font-size:18px;
    }

    .viewer-toolbar{
        flex-wrap:wrap;
    }

    .toolbar-btn{
        flex:1;
    }

    .toast{
        width:calc(100% - 30px);
        min-width:unset;
    }

}