﻿:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--darker);
    color: var(--light);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.header {
    background-color: var(--dark);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-light);
    position: relative;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

    .user-menu:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.user-menu-icon {
    font-size: 1.25rem;
    color: var(--gray-light);
    transition: color 0.2s;
}

.user-menu:hover .user-menu-icon {
    color: var(--light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(5px);
    }

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--light);
    text-decoration: none;
    font-size: 0.875rem;
}

    .menu-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .menu-item i {
        width: 20px;
        text-align: center;
        color: var(--primary);
    }

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    margin-top: 70px;
    overflow-y: auto;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-ai {
    align-self: flex-start;
}

.message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.avatar-ai {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.avatar-user {
    background-color: var(--gray);
}

.message-content {
    max-width: 85%;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    line-height: 1.6;
}

.message-ai .message-content {
    background-color: var(--dark);
    border-top-right-radius: 4px;
}

.message-user .message-content {
    background-color: var(--primary);
    border-top-left-radius: 4px;
}

.input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray);
    background-color: var(--dark);
    color: var(--light);
    font-size: 1rem;
    resize: none;
    height: 56px;
    transition: all 0.2s;
}

    .input-field:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
    }

.send-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .send-button:hover {
        background-color: var(--primary-dark);
    }

    .send-button:disabled {
        background-color: var(--gray);
        cursor: not-allowed;
    }

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem;
    background-color: var(--dark);
    border-radius: var(--border-radius);
    width: fit-content;
    margin-top: 0.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gray-light);
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.option {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .option:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

/* پنل وضعیت پروژه */
.project-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 320px;
    height: calc(100vh - 100px);
    background-color: var(--dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    z-index: 90;
    transform: translateX(-350px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

    .project-panel.active {
        transform: translateX(0);
    }

.panel-toggle {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

    .panel-toggle:hover {
        background-color: var(--primary-dark);
    }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.panel-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-close {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s;
}

    .panel-close:hover {
        color: var(--light);
    }

.project-status {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-label {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.status-value {
    font-weight: 500;
    font-size: 0.875rem;
}

.detailed-progress {
    margin-top: 1.5rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

    .detailed-progress::-webkit-scrollbar {
        width: 6px;
    }

    .detailed-progress::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .detailed-progress::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s;
}

    .progress-step.active {
        background-color: rgba(14, 165, 233, 0.1);
    }

    .progress-step.completed .step-icon {
        background-color: var(--success);
    }

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.step-description {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.step-time {
    font-size: 0.75rem;
    color: var(--gray-light);
    text-align: left;
}

.overall-progress {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-light);
}

/* پوشه انیمیشنی */
.folder-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
}

.folder {
    position: absolute;
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 201;
    overflow: hidden;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.folder::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px 8px 0 0;
    transform-origin: bottom;
    transform: skewX(20deg);
    z-index: -1;
}

.folder-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--success), #34d399);
    transition: height 1s ease;
    z-index: -1;
}

.folder-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.folder-completed {
    animation: completeFolder 1s forwards;
}

@keyframes completeFolder {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.2s;
}

    .download-link:hover {
        background-color: #0da271;
        transform: translateY(-2px);
    }

.report-card {
    background-color: var(--dark);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
}

.report-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.report-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-label {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.report-value {
    font-weight: 500;
}

.success-rate {
    color: var(--success);
}

@media (max-width: 768px) {
    .chat-container {
        padding: 0.5rem;
        margin-top: 70px;
    }

    .message-content {
        max-width: 90%;
    }

    .project-panel {
        width: 280px;
        transform: translateX(-300px);
    }

        .project-panel.active {
            transform: translateX(0);
        }
}
/* استایل‌های اضافی برای UIManager */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem;
    background-color: var(--dark);
    border-radius: var(--border-radius);
    width: fit-content;
    margin-top: 0.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gray-light);
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.typing-text {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-top: 0.5rem;
}

.error-message .message-content {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #ef4444;
}

.success-message .message-content {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-left: 4px solid #10b981;
}

.option {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .option:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .option:active {
        transform: scale(0.95);
    }

/* انیمیشن برای پیام‌های جدید */
.message {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل برای حالت غیرفعال */
.input-field:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

    .auth-overlay.hidden {
        display: none;
    }

.auth-container {
    background-color: var(--dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    padding: 1.5rem;
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.auth-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    position: relative;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 1;
}

    .auth-tab.active {
        color: var(--light);
    }

.auth-tab-slider {
    position: absolute;
    top: 0.25rem;
    height: calc(100% - 0.5rem);
    width: calc(50% - 0.25rem);
    background-color: var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 0;
}

    .auth-tab-slider.login {
        right: 0.25rem;
    }

    .auth-tab-slider.register {
        left: 0.25rem;
    }

.auth-form {
    display: none;
}

    .auth-form.active {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
    }

.form-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.875rem;
}

.password-toggle {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    z-index: 2;
    font-size: 0.875rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-checkbox {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--gray);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .remember-checkbox.checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

        .remember-checkbox.checked::after {
            content: '✓';
            color: white;
            font-size: 10px;
        }

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.75rem;
}

    .forgot-password:hover {
        color: var(--primary-dark);
    }

.auth-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .auth-button:hover {
        background-color: var(--primary-dark);
        transform: translateY(-1px);
    }

.auth-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray);
}

    .auth-footer a {
        color: var(--primary);
        text-decoration: none;
        transition: color 0.2s;
    }

        .auth-footer a:hover {
            color: var(--primary-dark);
        }

/* اسکرول بار برای موبایل */
.auth-container::-webkit-scrollbar {
    width: 4px;
}

.auth-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.auth-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* استایل‌های مدال تمدید سرویس - تمام صفحه و جمع‌وجور */
.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .subscription-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.subscription-modal-container {
    background: var(--dark);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.subscription-modal-overlay.active .subscription-modal-container {
    transform: translateY(0);
    opacity: 1;
}

.subscription-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    flex-shrink: 0;
}

.subscription-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-modal-close {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .subscription-modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--light);
    }

.subscription-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.subscription-plans-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-height: 400px;
}

.subscription-plan {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

    .subscription-plan:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    .subscription-plan.recommended {
        border-color: var(--primary);
        background: rgba(14, 165, 233, 0.1);
    }

.plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-duration {
    color: var(--gray-light);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin: 0.75rem 0;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0.2rem 0;
}

    .plan-feature i {
        color: var(--success);
        font-size: 0.7rem;
        width: 14px;
        text-align: center;
    }

.plan-button {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.85rem;
}

    .plan-button:hover {
        background: var(--primary-dark);
    }

.subscription-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark);
    flex-shrink: 0;
}

.subscription-footer-text {
    font-size: 0.8rem;
    color: var(--gray-light);
}

/* استایل‌های مدال وضعیت سرویس - تمام صفحه و جمع‌وجور */
.service-status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .service-status-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.service-status-modal-container {
    background: var(--dark);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-status-modal-overlay.active .service-status-modal-container {
    transform: translateY(0);
    opacity: 1;
}

.service-status-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    flex-shrink: 0;
}

.service-status-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-status-modal-close {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-status-modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--light);
    }

.service-status-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-status-main {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.service-status-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
}

.service-status-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-info-label {
    font-size: 0.85rem;
    color: var(--gray-light);
}

.status-info-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.status-active {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.status-remaining {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.service-progress {
    margin: 1rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.service-features {
    margin-top: 1rem;
}

.features-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0;
}

    .feature-item i {
        color: var(--success);
        font-size: 0.7rem;
        width: 14px;
        text-align: center;
    }

.service-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.service-action-button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.action-primary {
    background: var(--primary);
    color: white;
}

    .action-primary:hover {
        background: var(--primary-dark);
    }

.action-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .action-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* رسپانسیو */
@media (max-width: 1024px) {
    .subscription-plans-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
    }

    .subscription-plans-container {
        align-items: flex-start;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .subscription-plans-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 400px;
    }

    .subscription-plan {
        min-height: auto;
        padding: 1rem;
    }

    .service-status-main {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .service-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .subscription-modal-header,
    .service-status-modal-header {
        padding: 0.75rem 1rem;
    }

    .subscription-content,
    .service-status-content {
        padding: 0.5rem;
    }

    .subscription-plan {
        padding: 0.75rem;
    }

    .plan-price {
        font-size: 1.75rem;
    }
}

/* انیمیشن‌های ساده */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.subscription-modal-container {
    animation: fadeInUp 0.3s ease-out;
}

.service-status-modal-container {
    animation: fadeInUp 0.3s ease-out;
}

.subscription-modal-overlay.closing .subscription-modal-container {
    animation: fadeOutDown 0.2s ease-in;
}

.service-status-modal-overlay.closing .service-status-modal-container {
    animation: fadeOutDown 0.2s ease-in;
}
/* استایل برای علامت سوال اطلاعات */
.plan-info-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--gray-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

    .plan-info-icon:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
    }

/* مدال توضیحات پلن */
.plan-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

    .plan-info-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.plan-info-modal-container {
    background: var(--dark);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-info-modal-overlay.active .plan-info-modal-container {
    transform: translateY(0);
    opacity: 1;
}

.plan-info-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    flex-shrink: 0;
}

.plan-info-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-info-modal-close {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .plan-info-modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--light);
    }

.plan-info-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plan-info-main {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.plan-info-card {
    /*! background: rgba(255, 255, 255, 0.05); */
    /*! border-radius: 12px; */
    /*! padding: 1.5rem; */
    /*! border-left: 4px solid var(--primary); */
    /*! margin-bottom: 1.5rem; */
}

.plan-info-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-info-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.plan-info-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-info-features {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-info-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

    .plan-info-feature i {
        color: var(--success);
        font-size: 0.9rem;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

.plan-info-feature-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.plan-info-description {
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.plan-info-description-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--light);
    text-align: center;
}

/* رسپانسیو برای مدال توضیحات */
@media (max-width: 768px) {
    .plan-info-content {
        padding: 1rem;
    }

    .plan-info-main {
        max-width: 100%;
    }

    .plan-info-card {
        padding: 1rem;
    }

    .plan-info-price {
        font-size: 2rem;
    }

    .plan-info-feature {
        padding: 0.5rem;
    }
}
/* استایل مدال لیست پروژه‌ها */
.projects-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .projects-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.projects-modal-container {
    background: var(--dark);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projects-modal-overlay.active .projects-modal-container {
    transform: translateY(0);
    opacity: 1;
}

.projects-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    flex-shrink: 0;
}

.projects-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-modal-close {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .projects-modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--light);
    }

.projects-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .project-item:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    }

    .project-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--primary);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .project-item:hover::before {
        opacity: 1;
    }

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.project-type {
    display: inline-block;
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-completed {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.status-in-progress {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.status-pending {
    color: var(--gray-light);
    background: rgba(100, 116, 139, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-light);
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .empty-state h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--light);
    }

    .empty-state p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

/* رسپانسیو */
@media (max-width: 768px) {
    .projects-content {
        padding: 1rem;
    }

    .projects-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-status {
        align-self: flex-start;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .project-actions {
        flex-direction: column;
    }

    .action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .projects-modal-header {
        padding: 0.75rem 1rem;
    }

    .projects-content {
        padding: 0.5rem;
    }

    .projects-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .project-item {
        padding: 1rem;
    }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-modal-container {
    animation: fadeInUp 0.3s ease-out;
}

.projects-modal-overlay.closing .projects-modal-container {
    animation: fadeOutDown 0.2s ease-in;
}

.project-item {
    animation: fadeInUp 0.4s ease-out;
}

    .project-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .project-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .project-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .project-item:nth-child(4) {
        animation-delay: 0.4s;
    }
 /* دکمه‌های کنترل درون متنی */
.inline-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px;
    transition: all 0.2s;
    vertical-align: middle;
}

.inline-control-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.inline-control-btn:active {
    transform: translateY(0);
}

.inline-control-btn i {
    font-size: 11px;
}

/* رنگ‌های مختلف برای هر دکمه */
.reset-btn {
    background: #ff4757;
}

.reset-btn:hover {
    background: #ff6b81;
}

.help-btn {
    background: #3742fa;
}

.help-btn:hover {
    background: #5352ed;
}

.back-btn {
    background: #2ed573;
}

.back-btn:hover {
    background: #7bed9f;
}

/* برای پیام‌های AI */
.message.ai .inline-control-btn {
    background: var(--primary-light);
    border: 1px solid var(--primary);
}

.message.ai .inline-control-btn:hover {
    background: var(--primary);
}
/* در فایل CSS اضافه کنید */
.download-modal {
    max-width: 500px;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
}

.download-modal .modal-header {
    background: rgba(255, 71, 87, 0.1);
    border-bottom: 1px solid rgba(255, 71, 87, 0.3);
    padding: 20px;
}

.download-modal .modal-header h2 {
    color: #ff4757;
    margin: 0;
    font-size: 24px;
}

.download-modal .modal-body {
    padding: 30px;
    text-align: center;
}

.download-icon {
    font-size: 60px;
    color: #ff4757;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.download-modal h3 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 22px;
}

.download-message {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: right;
}

.download-message p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 16px;
}

.features-list {
    text-align: right;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--light);
    font-size: 14px;
}

.feature-item i {
    color: #2ed573;
    font-size: 16px;
}

.download-modal .modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
}

.download-modal .btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

.download-modal .btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
}

.download-modal .btn-primary:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    transform: translateY(-2px);
}

.download-modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* استایل‌های ثبت‌نام دو مرحله‌ای */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.verification-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.verification-info i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.verification-info p {
    color: var(--text-secondary);
    margin: 0;
}

#mobileDisplay {
    font-weight: 600;
    color: var(--text-primary);
    direction: ltr;
    display: inline-block;
    font-family: monospace;
}

.verification-code-input {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.code-input {
    width: 3.5rem !important;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #5f9ea04d;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.verification-timer {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#countdown {
    font-weight: 600;
    color: var(--primary);
    font-family: monospace;
}

.resend-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
}

.resend-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.verification-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-button-secondary {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.auth-button-secondary:hover {
    background: var(--hover-color) !important;
}

/* انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}