﻿@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.counsel-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #07020f;
}

.counsel-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120,60,220,0.18) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 90% 80%, rgba(40,180,100,0.1) 0%, transparent 60%);
}

.counsel-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: counselOrbFloat 10s ease-in-out infinite;
}

.counsel-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(120,60,220,0.1);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.counsel-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(40,180,100,0.08);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

@keyframes counselOrbFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-40px) scale(1.08);
    }
}

.counsel-hero-content {
    position: relative;
    z-index: 2;
}

.counsel-badge {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(120,60,220,0.15), rgba(40,180,100,0.05));
    border: 1px solid rgba(120,60,220,0.35);
    color: #a855f7;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.counsel-hero h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 40%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.counsel-hero p {
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    line-height: 2;
    margin-bottom: 48px;
}

.counsel-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.counsel-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.35s;
    box-shadow: 0 0 30px rgba(168,85,247,0.3);
}

    .counsel-cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 50px rgba(168,85,247,0.5);
        color: #fff;
    }

.counsel-outline-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border-radius: 50px;
    border: 1px solid rgba(168,85,247,0.35);
    color: #a855f7;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.35s;
}

    .counsel-outline-btn:hover {
        background: rgba(168,85,247,0.1);
        border-color: rgba(168,85,247,0.6);
        color: #a855f7;
    }

/* ═══════════════════════════════
   SERVICES
═══════════════════════════════ */
.counsel-services {
    background: #07020f;
    padding: 100px 0;
}

.counsel-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.counsel-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.2);
    color: #a855f7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.counsel-section-header h2 {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
}

.counsel-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.counsel-service-card {
    background: linear-gradient(160deg, #0f0520, #090215);
    border: 1px solid rgba(168,85,247,0.1);
    border-radius: 28px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

    .counsel-service-card:hover {
        transform: translateY(-8px);
        border-color: rgba(168,85,247,0.4);
        box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(168,85,247,0.08);
    }

.cs-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.counsel-service-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.counsel-service-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

/* ═══════════════════════════════
   TEAM
═══════════════════════════════ */
.counsel-team {
    background: #07020f;
    padding: 0 0 100px;
}

.counsel-card {
    position: relative;
    background: linear-gradient(160deg, #0f0520, #090215);
    border: 1px solid rgba(168,85,247,0.1);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

    .counsel-card:hover {
        transform: translateY(-8px);
        border-color: rgba(168,85,247,0.4);
        box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(168,85,247,0.08);
    }

.counsel-card-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.counsel-card-img {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

    .counsel-card-img img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(168,85,247,0.3);
        position: relative;
        z-index: 2;
    }

.counsel-img-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, #a855f7, transparent, #22c55e) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: ringRotate 5s linear infinite;
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

.counsel-card-info h4 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.counsel-card-info span {
    display: block;
    font-size: 13px;
    color: #a855f7;
    margin-bottom: 20px;
}

.counsel-profile-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 14px;
    background: rgba(168,85,247,0.06);
    color: #a855f7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

    .counsel-profile-btn:hover {
        background: rgba(168,85,247,0.15);
        border-color: rgba(168,85,247,0.6);
    }

/* ═══════════════════════════════
   TICKET SECTION
═══════════════════════════════ */
.ticket-section {
    background: #07020f;
    padding: 0 0 140px;
}

.ticket-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(160deg, #0f0520, #090215);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 40px;
    padding: 70px 60px;
    position: relative;
    overflow: hidden;
}

    .ticket-wrapper::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
        pointer-events: none;
    }

.ticket-left .counsel-tag {
    margin-bottom: 16px;
}

.ticket-left h2 {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ticket-left p {
    color: rgba(255,255,255,0.45);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 36px;
}

.ticket-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tf-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ticket-feature strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ticket-feature span {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.ticket-form-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 28px;
    padding: 40px;
}

.ticket-form-header {
    margin-bottom: 28px;
}

    .ticket-form-header h3 {
        font-size: 22px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 4px;
    }

    .ticket-form-header span {
        font-size: 13px;
        color: rgba(255,255,255,0.35);
    }

.ticket-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tf-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-full {
    grid-column: 1 / -1;
}

.tf-group label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.tf-group input,
.tf-group select,
.tf-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 14px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
    resize: none;
}

    .tf-group input:focus,
    .tf-group select:focus,
    .tf-group textarea:focus {
        border-color: rgba(168,85,247,0.5);
        background: rgba(168,85,247,0.05);
    }

    .tf-group input::placeholder,
    .tf-group textarea::placeholder {
        color: rgba(255,255,255,0.2);
    }

    .tf-group select option {
        background: #0f0520;
        color: #ffffff;
    }

.ticket-submit-btn {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.35s;
    box-shadow: 0 0 24px rgba(168,85,247,0.3);
    font-family: inherit;
    margin-top: 8px;
}

    .ticket-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 40px rgba(168,85,247,0.5);
    }

/* ═══════════════════════════════
   MODAL
═══════════════════════════════ */
.counsel-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
    z-index: 99999;
}

    .counsel-modal.show {
        opacity: 1;
        visibility: visible;
    }

.counsel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,2,15,0.9);
}

.counsel-modal-content {
    position: relative;
    z-index: 5;
    width: 820px;
    max-width: 92%;
    background: linear-gradient(160deg, #0f0520, #090215);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 36px;
    padding: 50px;
    display: flex;
    gap: 48px;
    align-items: center;
    overflow: hidden;
}

.counsel-close-modal {
    position: absolute;
    left: 24px;
    top: 20px;
    background: rgba(168,85,247,0.06);
    border: 1px solid rgba(168,85,247,0.2);
    color: rgba(255,255,255,0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

    .counsel-close-modal:hover {
        background: rgba(168,85,247,0.15);
        border-color: rgba(168,85,247,0.5);
        color: #a855f7;
    }

.cmodal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cmodal-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

    .cmodal-img-wrapper img {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(168,85,247,0.4);
        position: relative;
        z-index: 2;
    }

.cmodal-img-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #a855f7, transparent, #22c55e) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: ringRotate 4s linear infinite;
}

.cmodal-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.3);
    color: #a855f7;
    font-size: 13px;
    font-weight: 700;
}

.cmodal-right h2 {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
}

.cmodal-right p {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 32px;
}

.cmodal-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: rgba(168,85,247,0.05);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 16px;
}

.cmodal-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .cmodal-stat strong {
        font-size: 24px;
        font-weight: 900;
        color: #a855f7;
    }

    .cmodal-stat span {
        font-size: 12px;
        color: rgba(255,255,255,0.4);
    }

.cmodal-stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(168,85,247,0.2);
}

/* ═══════════════════════════════
   TOAST
═══════════════════════════════ */
.ticket-success-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #0f0520, #090215);
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: 20px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .ticket-success-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #22c55e;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.toast-text strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.toast-text span {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
/* ===================================================
   MOBILE
=================================================== */

@media (max-width:768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .container-fluid,
    .row,
    .counsel-hero,
    .counsel-services,
    .counsel-team,
    .ticket-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* HERO */

    .counsel-hero {
        min-height: 90vh;
        padding: 90px 0 60px;
    }

        .counsel-hero h1 {
            font-size: 42px;
            line-height: 1.3;
        }

        .counsel-hero p {
            font-size: 16px;
            padding: 0 15px;
        }

    .counsel-badge {
        letter-spacing: 1px;
    }

    /* دکمه ها */

    .counsel-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 14px;
    }

    .counsel-cta-btn,
    .counsel-outline-btn {
        width: 100%;
        justify-content: center;
    }

    /* SERVICES */

    .counsel-services {
        padding: 70px 0;
    }

    .counsel-section-header h2 {
        font-size: 34px;
    }

    .counsel-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .counsel-service-card {
        padding: 28px 22px;
    }

    /* TEAM */

    .counsel-team {
        padding-bottom: 70px;
    }

    .counsel-card {
        padding: 26px 20px;
    }

    /* TICKET */

    .ticket-section {
        padding-bottom: 80px;
    }

    .ticket-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 28px 20px;
        border-radius: 28px;
    }

    .ticket-left {
        text-align: center;
    }

        .ticket-left h2 {
            font-size: 30px;
        }

        .ticket-left p {
            font-size: 14px;
        }

    .ticket-feature {
        text-align: right;
    }

    /* فرم */

    .ticket-form {
        grid-template-columns: 1fr;
    }

    .tf-full {
        grid-column: auto;
    }

    .ticket-submit-btn {
        grid-column: auto;
    }

    /* MODAL */

    .counsel-modal {
        padding: 15px;
    }

    .counsel-modal-content {
        width: 100%;
        max-width: 100%;
        padding: 24px;
        flex-direction: column;
        gap: 24px;
        border-radius: 24px;
    }

    .cmodal-right {
        text-align: center;
    }

        .cmodal-right h2 {
            font-size: 24px;
        }

        .cmodal-right p {
            font-size: 14px;
        }

    .cmodal-stats {
        flex-direction: column;
        gap: 16px;
    }

    .cmodal-stat-divider {
        width: 70%;
        height: 1px;
    }

    .cmodal-img-wrapper {
        width: 130px;
        height: 130px;
    }

        .cmodal-img-wrapper img {
            width: 130px;
            height: 130px;
        }

    .counsel-close-modal {
        left: 15px;
        top: 15px;
    }

    /* TOAST */

    .ticket-success-toast {
        width: 90%;
        padding: 16px 18px;
    }
}
