/* --------------------------------------------- */
/* RESET                                         */
/* --------------------------------------------- */
* {
    box-sizing: border-box;
    font-family: 'IRANSansDN', sans-serif !important;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    background: #000;
    color: #e5e5e5;
}

/* --------------------------------------------- */
/* FONT                                          */
/* --------------------------------------------- */
@font-face {
    font-family: 'IRANSansDN';
    src: url('../fonts/IRANSansDN.ttf');
}
@font-face {
    font-family: 'IRANSansDN';
    src: url('../fonts/Vazir-Bold.ttf');
    font-weight: bold;
}

/* --------------------------------------------- */
/* BACKGROUND GIF                                */
/* --------------------------------------------- */
.bg-gif {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.70;
    transform: scale(0.7);
    transform-origin: center center;
}

/* --------------------------------------------- */
/* LAYOUT                                        */
/* --------------------------------------------- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

main {
    flex: 1;
    padding: 24px 0 40px;
}

.hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.hero-col-text,
.hero-col-card {
    flex: 1 1 320px;
    min-width: 0;
}

/* --------------------------------------------- */
/* NAVBAR — هدر اصلی سایت                       */
/* --------------------------------------------- */
.navbar {
    width: 100%;
    padding: 14px 0;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    direction: rtl;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* لوگو + متن‌ها */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-title {
    font-size: 17px;
    font-weight: 700;
    color: #e0e4ff;
    text-shadow: 0 0 8px rgba(120,120,255,0.5);
}

.logo-sub {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.8;
    color: #cfd2ff;
}

/* لینک‌های منو */
.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a,
.mobile-menu a {
    color: #cfd2ff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(140,140,255,0.7);
}

/* دکمه‌های ورود / ثبت‌نام */
.nav-actions {
    display: flex;
    gap: 10px;
}

/* دکمه منوی موبایل */
.mobile-menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #e0e4ff;
}

/* منوی موبایل */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(20,20,40,0.95);
    padding: 14px;
    gap: 12px;
}

/* ریسپانسیو هدر */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }
}

/* --------------------------------------------- */
/* BUTTONS                                       */
/* --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: #22d3ee;
    border-color: #22d3ee;
    color: #000;
}
.btn-primary:hover {
    background: #00eaff;
    border-color: #00eaff;
}
.btn-outline-light {
    background: transparent;
    border-color: #e5e5e5;
    color: #e5e5e5;
}
.btn-outline-light:hover {
    background: #e5e5e5;
    color: #000;
}

/* --------------------------------------------- */
/* HERO TEXT                                     */
/* --------------------------------------------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #020617;
    border: 1px solid #64748b;
    font-size: 11px;
    color: #e5e5e5;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}
.hero-title span {
    background: linear-gradient(90deg,#ff00ff,#7c3aed,#22d3ee,#00eaff,#00ff9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 12px;
}

.hero-main {
    font-size: 42px !important;
    font-weight: 800;
    line-height: 1.4;
}
.hero-main span {
    background: linear-gradient(90deg,#ff00ff,#7c3aed,#22d3ee,#00eaff,#00ff9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------- */
/* CARD DARK                                     */
/* --------------------------------------------- */
.card-dark {
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(148,163,184,0.5);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    padding: 16px;
    box-shadow: 0 0 30px rgba(15,23,42,0.9);
    max-width: 100%;
    overflow: hidden;
}

/* --------------------------------------------- */
/* TYPE BOX                                      */
/* --------------------------------------------- */
.type-box-fixed {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.type-box-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle,#22d3ee,#0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.typewriter-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.typewriter-ghost,
.typewriter-live {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(90deg,#ff00ff,#7c3aed,#22d3ee,#00eaff,#00ff9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.typewriter-ghost {
    visibility: hidden;
}
.typewriter-live {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* --------------------------------------------- */
/* WAVEFORM                                      */
/* --------------------------------------------- */
.waveform-wrapper {
    width: 100%;
    margin: 8px auto 0;
}
.waveform {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.waveform div {
    width: 2px;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(180deg,#22d3ee,#7c3aed);
    box-shadow: 0 0 6px rgba(56,189,248,0.7);
    transition: height 0.08s linear;
}

/* --------------------------------------------- */
/* VOICE GRID                                    */
/* --------------------------------------------- */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-top: 14px;
    width: 100%;
}
@media (max-width: 900px) {
    .voice-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

/* --------------------------------------------- */
/* VOICE CARD                                    */
/* --------------------------------------------- */
.voice-card {
    background: radial-gradient(circle at top,rgba(34,211,238,0.18),rgba(15,23,42,0.95));
    border: 1px solid rgba(34,211,238,0.7);
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 14px rgba(34,211,238,0.25);
    transition: 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.voice-card.active {
    box-shadow: 0 0 22px rgba(34,211,238,0.9);
    border-color: #00eaff;
}

/* آواتار استوری اینستاگرام */
.voice-card img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    padding: 3px;
    background: conic-gradient(
        #ff00ff,
        #7c3aed,
        #22d3ee,
        #00eaff,
        #00ff9d,
        #ff00ff
    );
    box-shadow: 0 0 12px rgba(34,211,238,0.6);
    transition: 0.25s ease;
}
.voice-card img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(34,211,238,0.9);
}
.voice-name {
    font-size: 12px;
    margin-top: 6px;
    color: #fff;
}

/* --------------------------------------------- */
/* PLAYER WRAP                                   */
/* --------------------------------------------- */
.player-wrap {
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(30,64,175,0.9);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.player-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* AI Neon Player Buttons */
.play-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #22d3ee, #0f172a);
    border: 1px solid #22d3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00eaff;
    font-size: 11px;
    font-weight: bold;
    line-height: 0;
    box-shadow: 0 0 8px rgba(34,211,238,0.7);
    transition: 0.2s ease;
}
.play-btn:hover {
    background: radial-gradient(circle, #00eaff, #0f172a);
    color: #fff;
    box-shadow: 0 0 18px rgba(34,211,238,1);
}

.time-label {
    font-size: 10px;
    color: #cbd5f5;
}

/* Progress bar neon */
.progress-wrap {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(30,64,175,0.9);
    overflow: hidden;
    cursor: pointer;
}
.progress-inner {
    width: 100%;
    height: 100%;
    position: relative;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#22d3ee,#7c3aed,#ec4899);
    box-shadow: 0 0 10px rgba(56,189,248,0.9);
    transition: width 0.05s linear;
}

/* --------------------------------------------- */
/* MOBILE FIX — ZERO OVERFLOW                    */
/* --------------------------------------------- */
@media (max-width: 1199px) {
    .hero-row,
    .hero-col-text,
    .hero-col-card,
    .card-dark,
    .voice-grid,
    .voice-card,
    .container,
    .page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .hero-col-text {
        padding: 0 16px !important;
    }
    .hero-col-card {
        padding: 0 16px !important;
    }
}

/* --------------------------------------------- */
/* DESKTOP FINAL FIX                             */
/* --------------------------------------------- */
@media (min-width: 1200px) {

    /* navbar full width */
    .navbar .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    /* right text fully aligned to wall */
    .hero-col-text {
        margin-right: calc(-50vw + 550px + 16px) !important;
        padding-right: 0 !important;
    }

    /* cards shifted left */
    .hero-col-card {
        max-width: 550px !important;
        transform: translateX(-40px) !important;
    }

    /* row aligned to right */
    .hero-row {
        justify-content: flex-start !important;
    }
}

/* --------------------------------------------- */
/* BADGE NEON                                    */
/* --------------------------------------------- */
.badge-neon {
    background: linear-gradient(
        135deg,
        #ff00ff 0%,
        #b026ff 20%,
        #7c3aed 40%,
        #4f46e5 60%,
        #22d3ee 80%,
        #00eaff 100%
    );
    color: #ffffff !important;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    opacity: 0.92;
    box-shadow:
        0 0 14px rgba(34,211,238,0.45),
        inset 0 0 6px rgba(255,255,255,0.12);
    animation: neonPulse 2.4s ease-in-out infinite;
    position: relative;
}

/* خط مشکی پهن بیرونی */
.badge-neon::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    border: 3px solid rgba(0,0,0,0.85);
    pointer-events: none;
}

@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 10px rgba(34,211,238,0.35),
            inset 0 0 6px rgba(255,255,255,0.12);
        opacity: 0.90;
    }
    50% {
        box-shadow:
            0 0 22px rgba(34,211,238,0.65),
            inset 0 0 10px rgba(255,255,255,0.18);
        opacity: 1;
    }
    100% {
        box-shadow:
            0 0 10px rgba(34,211,238,0.35),
            inset 0 0 6px rgba(255,255,255,0.12);
        opacity: 0.90;
    }
}

/* --------------------------------------------- */
/* STATUS DOT                                    */
/* --------------------------------------------- */
.voice-card {
    position: relative;
}

/* نقطه وضعیت */
.status-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 10;
}
.online { background: #00f2d7; }
.offline { background: #ff1744; }

.online::after,
.offline::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: pulse 1.6s infinite ease-out;
    z-index: -1;
}
.online::after { background: rgba(0, 229, 255, 0.45); }
.offline::after { background: rgba(255, 23, 68, 0.45); }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* --------------------------------------------- */
/* FOOTER                                        */
/* --------------------------------------------- */
.site-footer {
    width: 100%;
    margin-top: 40px;
    padding: 18px 0;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    direction: rtl;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    display: flex;
    align-items: center;
}

/* ستون راست → لینک‌ها */
.footer-links {
    justify-content: flex-start;
}
.footer-links a {
    margin-left: 16px;
    color: #bfc3ff;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}
.footer-links a:last-child {
    margin-left: 0;
}
.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(140, 140, 255, 0.7);
}

/* ستون وسط → متن حقوق */
.footer-center-text {
    justify-content: center;
    text-align: center;
    color: #cfcfe8;
}
.footer-center-text p {
    margin: 0;
}

/* ستون چپ → نماد اعتماد */
.footer-badges {
    justify-content: flex-end;
}
.badge-placeholder {
    font-size: 12px;
    opacity: 0.7;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(200, 200, 255, 0.4);
    color: #cfd1ff;
}

/* ریسپانسیو فوتر */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .footer-section {
        justify-content: center !important;
        width: 100%;
    }
    .footer-links a {
        margin: 0 10px;
    }
}




/* --------------------------------------------- */
/*پروفایل                                */
/* --------------------------------------------- */

/* جعبه پروفایل */
.profile-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    transition: .25s;
}

.profile-box:hover {
    background: rgba(255,255,255,0.18);
}

/* آواتار دایره‌ای */
.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* نام کاربر */
.profile-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

/* منوی پروفایل */
.profile-menu {
    position: absolute;
    top: 65px;
    left: 20px; /* ⭐ چون پروفایل سمت چپ است */
    background: rgba(20,20,35,0.95);
    border: 1px solid rgba(150,120,255,0.35);
    border-radius: 12px;
    padding: 10px 0;
    width: 150px;
    display: none;
    box-shadow: 0 0 18px rgba(120,80,255,0.35);
    z-index: 999;
}

.profile-menu.show {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: .25s;
}

.profile-menu a:hover {
    background: rgba(255,255,255,0.12);
}








/* --------------------------------------------- */
/* SCROLLBAR HIDE                                */
/* --------------------------------------------- */
html,
body,
.page {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.page::-webkit-scrollbar {
    display: none;
}


/* --------------------------------------------- */
/* دکمه آبی (ثبت‌نام / شروع استفاده)            */
/* --------------------------------------------- */

.btn-blue {
    background: linear-gradient(135deg, #4d7bff, #33cdff);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(80,120,255,0.55);
    transition: .25s;
    min-width: 70px;       /* ⭐ دکمه‌ها یک اندازه می‌شن */
    text-align: center;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #6a92ff, #4d7bff);
    box-shadow: 0 0 18px rgba(110,150,255,0.75);
}


/* --------------------------------------------- */
/* دکمه سبز (ورود)                               */
/* --------------------------------------------- */

.btn-green {
    background: linear-gradient(135deg, #2ecc71, #2cf07f);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.55);
    transition: .25s;
    min-width: 70px;       /* ⭐ دکمه‌ها یک اندازه می‌شن */
    text-align: center;
}

.btn-green:hover {
    background: linear-gradient(135deg, #48e68b, #2ecc71);
    box-shadow: 0 0 18px rgba(46, 204, 113, 0.75);
}

