/* استایل کلی صفحه */
body {
    margin: 0;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    background: #000000;
    color: rgb(255, 255, 255);
    overflow-x: hidden;
}

/* پس‌زمینه تار */
#bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    z-index: -2;
}

/* افکت گرادیان 3D */
#bg3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.25), transparent),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.2), transparent);
    z-index: -3;
}

/* هدر */
header {
    background: rgba(138, 43, 226, 0.4);
    padding: 18px;
    font-size: 1.8rem;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* متن وسط */
.center-text {
    text-align: center;
    margin: 35px 15px;
}

/* افکت جرقه‌ای عنوان */
.spark-title {
    font-size: 2.2rem;
    color: #bb5af4;
    text-shadow: 0 0 12px #b300ff, 0 0 25px #ff0000;
    animation: spark 2s infinite alternate;
}

@keyframes spark {
    0% { text-shadow: 0 0 10px #ff00ff; }
    100% { text-shadow: 0 0 25px #b300ff; }
}

/* باکس توضیحات */
.info-box {
    margin: 30px auto;
    width: 85%;
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 14px;
    line-height: 2;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* بخش عضویت */
.join-box {
    text-align: center;
    margin: 20px 0;
    font-size: 1.3rem;
}

.channel-link {
    display: inline-block;
    background: #2a26a4;
    padding: 10px 25px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.channel-link:hover {
    background: #9f52ff;
}

/* دکمه‌ها */
.buttons {
    display: grid;
    gap: 15px;
    padding: 20px;
}

.btn {
    background: rgba(138, 43, 226, 0.4);
    border: none;
    padding: 15px;
    color: white;
    font-size: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(6px);
    text-shadow: 0 0 8px #9a4bff;
}

.btn:hover {
    background: rgba(138, 43, 226, 0.7);
    transform: scale(1.04);
}

/* مربع قرمز جرقه‌ای در انتهای دکمه */
.tag-red {
    display: inline-block;
    background: #ff1e1e;
    color: #fff;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 10px;
    animation: tagBlink 1.2s infinite alternate;
    box-shadow: 0 0 10px #ff3b3b;
}

@keyframes tagBlink {
    0% { opacity: 0.75; box-shadow: 0 0 6px #ff3333; }
    100% { opacity: 1; box-shadow: 0 0 14px #ff5555; }
}

/* فوتر */
footer {
    text-align: center;
    padding: 18px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.royal {
    color: #c27bff;
    font-weight: bold;
}

/* لینک گروه */
.group-link {
    position: fixed;
    bottom: 18px;
    left: 18px;
    background: #9f37fa;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 15px #b86dff;
    transition: 0.3s;
}

.group-link:hover {
    background: #be7aff;
    transform: scale(1.05);
}

/* دکمه ادمین */
.admin-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #1f024e;
    color: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 32px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 0 15px #9b4aff;
    transition: 0.25s;
}

.admin-float:hover {
    transform: scale(1.1);
}

/* مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    padding-top: 100px;
    opacity: 0;
    transition: opacity .25s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: rgba(20,20,20,0.85);
    margin: auto;
    padding: 22px;
    border-radius: 14px;
    width: 78%;
    max-width: 360px;
    color: white;
    animation: fadeIn .3s ease;
    box-shadow: 0 0 20px rgba(95, 5, 230, 0.6);
}

@keyframes fadeIn {
    from { transform: scale(.92); opacity: .1; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    color: #ccc;
    float: left;
    font-size: 32px;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}
