* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E4405F;
    --secondary-color: #833AB4;
    --accent-color: #FD1D1D;
    --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #262626;
    --text-light: #8e8e8e;
    --border-color: #dbdbdb;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.25);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --neon-glow: 0 0 20px rgba(228, 64, 95, 0.6);
    --perspective: 1000px;
    --transform-speed: 0.6s;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Advanced Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes morphing {
    0%, 100% {
        border-radius: 50% 40% 60% 30%;
    }
    25% {
        border-radius: 60% 30% 50% 40%;
    }
    50% {
        border-radius: 30% 60% 40% 50%;
    }
    75% {
        border-radius: 40% 50% 30% 60%;
    }
}

@keyframes particles {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -6px, 0);
    }
    70% {
        transform: translate3d(0, -3px, 0);
    }
    90% {
        transform: translate3d(0, -1px, 0);
    }
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.animate-slide-in-bottom {
    animation: slideInFromBottom 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 1s ease;
}

/* صفحه احراز هویت */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.phone-mockup {
    position: relative;
    width: 400px;
    height: 700px;
    background: #000;
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-hover);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }
    50% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(5deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.story-preview {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    gap: 10px;
}

.story-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    animation: pulse 2s ease-in-out infinite;
}

.story-item:nth-child(2) {
    animation-delay: 0.2s;
}

.story-item:nth-child(3) {
    animation-delay: 0.4s;
}

.story-item:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.auth-forms {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-width: 350px;
    max-width: 400px;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-forms:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container i {
    font-size: 60px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }
}

.logo-container h1 {
    margin: 15px 0 5px;
    font-size: 28px;
    color: var(--text-dark);
}

.logo-container p {
    color: var(--text-light);
    font-size: 14px;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

form input:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #fafafa;
    transform: translateY(-2px);
}

.form-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.form-divider::before {
    right: 0;
}

.form-divider::after {
    left: 0;
}

.form-divider span {
    background: var(--white);
    padding: 0 10px;
    color: var(--text-light);
    font-size: 13px;
}

.error-message {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--white);
    font-size: 12px;
}

/* داشبورد */
.dashboard {
    min-height: 100vh;
    background: #fafafa;
}

.header {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    color: var(--text-dark);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* استایل ریسپانسیو برای هدر در موبایل */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        justify-content: center;
        padding: 12px 15px;
        text-align: center;
        gap: 12px;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
        animation: slideInFromRight 0.6s ease-out;
    }
    
    .header-logo {
        font-size: 18px;
    }
    
    .welcome-message {
        font-size: 12px;
    }
    
    /* یکسان سازی دکمه‌های هدر در موبایل */
    .points-display,
    .btn-profile, 
    .btn-support, 
    .btn-logout {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 18px;
        font-weight: 600;
        min-width: 70px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        max-width: 85px;
        text-align: center;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    /* افکت‌های تعاملی برای موبایل */
    .btn-profile:active, 
    .btn-support:active, 
    .btn-logout:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .points-display:active {
        transform: scale(0.98);
    }
    
    .points-display {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: var(--white);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .btn-profile {
        background: linear-gradient(135deg, #9C27B0, #E91E63);
        color: var(--white);
        box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
    }
    
    .btn-support {
        background: linear-gradient(135deg, #2196F3, #21CBF3);
        color: var(--white);
        box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    }
    
    .btn-logout {
        background: linear-gradient(135deg, #f44336, #ff6b6b);
        color: var(--white);
        box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    }
    
    .points-display i,
    .btn-profile i, 
    .btn-support i, 
    .btn-logout i {
        font-size: 12px;
        margin-left: 3px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .header-right {
        gap: 6px;
    }
    
    .points-display,
    .btn-profile, 
    .btn-support, 
    .btn-logout {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 60px;
        height: 32px;
        max-width: 75px;
        border-radius: 16px;
    }
    
    .points-display i,
    .btn-profile i, 
    .btn-support i, 
    .btn-logout i {
        font-size: 10px;
        margin-left: 2px;
    }
    
    .header-logo {
        font-size: 16px;
    }
    
    .welcome-message {
        font-size: 11px;
    }
}

/* برای صفحه‌های بسیار کوچک */
@media (max-width: 360px) {
    .header {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .header-right {
        gap: 4px;
    }
    
    .points-display,
    .btn-profile, 
    .btn-support, 
    .btn-logout {
        padding: 5px 6px;
        font-size: 9px;
        min-width: 50px;
        height: 28px;
        max-width: 65px;
        border-radius: 14px;
        gap: 2px;
    }
    
    .points-display i,
    .btn-profile i, 
    .btn-support i, 
    .btn-logout i {
        font-size: 9px;
        margin-left: 1px;
    }
    
    .header-logo {
        font-size: 14px;
    }
    
    .welcome-message {
        font-size: 10px;
    }
}

.points-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: glow 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

.btn-logout {
    padding: 8px 20px;
    background: #f44336;
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-logout:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    perspective: var(--perspective);
    perspective-origin: 50% 25%;
    min-height: calc(100vh - 120px);
}

.stories-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    animation: slideInFromLeft 0.8s ease-out;
}

.stories {
    display: flex;
    gap: 15px;
}

.story {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story:hover {
    transform: scale(1.1);
}

.story-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.story-inner {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-inner i {
    font-size: 30px;
    color: var(--primary-color);
}

.story-title {
    font-size: 12px;
    color: var(--text-dark);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-cards .card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-cards .card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-cards .card:nth-child(3) {
    animation-delay: 0.3s;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform var(--transform-speed) ease, box-shadow 0.4s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    animation: slideInFromBottom 0.8s ease-out both;
}

.card:hover {
    transform: translateY(-6px) rotateX(6deg) rotateY(-4deg) translateZ(10px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.card-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: var(--white);
}

.card-icon.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.card-title {
    font-size: 14px;
    color: var(--text-light);
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
}

.service-history {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: slideInFromRight 0.8s ease-out;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: #f5f5f5;
    font-weight: bold;
    color: var(--text-dark);
}

table tr:hover {
    background: #fafafa;
}

/* منوی پایین */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 12px)) 0;
    z-index: 100;
    backdrop-filter: saturate(140%) blur(6px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 10px;
    position: relative;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(228, 64, 95, 0.1);
    transform: translateY(-3px);
}

.nav-item.active i {
    transform: translateY(-2px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* استایل ریسپانسیو برای منوی پایینی در موبایل */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 5px calc(10px + env(safe-area-inset-bottom, 10px)) 5px;
        min-height: 65px;
    }
    
    .nav-item {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
        padding: 4px 2px;
        font-size: 10px;
        min-width: 0;
        max-width: 20%;
    }
    
    .nav-item i {
        font-size: 14px;
    }
    
    .nav-item span {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        text-align: center;
    }
    
    .nav-item.active::after {
        bottom: -8px;
        width: 60%;
    }
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    font-size: 12px;
}

/* مودال استوری */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.story-modal.active {
    display: flex;
}

.story-content {
    max-width: 500px;
    width: 90%;
    height: 90vh;
    position: relative;
}

.story-video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.story-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--white);
    width: 0%;
    transition: width 0.1s linear;
}

/* Modern UI Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.glass-button {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--white);
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.floating-element {
    position: relative;
    z-index: 10;
}

.floating-element::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-element:hover::before {
    opacity: 1;
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .phone-mockup {
        display: none;
    }

    .auth-forms {
        min-width: 300px;
        max-width: 95vw;
        padding: 30px 20px;
    }

    .main-content {
        padding: 15px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
        min-height: calc(100vh - 140px);
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 15px;
        padding-top: calc(10px + env(safe-area-inset-top));
    }

    .header-left {
        gap: 10px;
    }

    .header-right {
        gap: 10px;
    }

    .stories-container {
        padding: 15px;
        margin-bottom: 15px;
    }

    .service-history {
        padding: 15px;
    }

    .card {
        padding: 15px;
        border-radius: 12px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 6px;
        font-size: 11px;
    }

    .wheel-container {
        padding: 20px 15px;
    }

    .wheel-prizes-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
    }

    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        gap: 30px;
    }

    .auth-forms {
        min-width: 280px;
        padding: 25px 15px;
    }

    .logo-container i {
        font-size: 50px;
    }

    .logo-container h1 {
        font-size: 24px;
    }

    .main-content {
        padding: 10px;
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 20px));
        min-height: calc(100vh - 150px);
    }

    .dashboard-cards {
        gap: 12px;
    }

    .card {
        padding: 12px;
    }

    .card-value {
        font-size: 24px;
    }

    .header {
        padding: 8px 10px;
        padding-top: calc(8px + env(safe-area-inset-top));
    }

    .header-logo {
        font-size: 16px;
    }

    .welcome-message {
        font-size: 11px;
        display: inline;
    }

    .points-display {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 15px;
    }

    .btn-logout {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 15px;
    }

    .wheel-prizes-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .wheel-prizes-info > div {
        padding: 8px;
        font-size: 12px;
    }

    .section-title {
        font-size: 16px;
    }
}

/* چرخنده شانس جدید */
.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    animation: slideInFromBottom 1s ease-out;
}

.wheel-chart {
    width: 100%;
    max-width: 360px;
    height: auto;
    position: relative;
    /* گرادیان به صورت داینامیک از JS ست می‌شود */
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

/* لیبل‌های داینامیک */
.wheel-dynamic-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.segment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center top;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,.6);
}

/* برچسب برنده کنار فلش */
.wheel-win-badge {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #4CAF50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
    font-weight: 700;
    font-size: 14px;
    z-index: 5;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.wheel-win-badge.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* متن برنده در مرکز چرخ */
.wheel-center-logo .win-text {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

/* اعلان تبریک */
.toast-notif {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(76, 175, 80, .35);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInFromRight .4s ease;
}

.toast-notif .icon {
    font-size: 18px;
}

.toast-notif .close {
    margin-right: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* removed white inset circle that covered SVG wheel (was .wheel-chart::before) */

.wheel-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-chart:hover {
    transform: scale(1.05) rotateZ(5deg);
}

.wheel-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wheel-label {
    position: absolute;
    color: white;
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.3);
    transform-origin: 50% 50%;
    width: 60px;
    height: 30px;
}

/* قسمت 0 - قرمز (راست) */
.wheel-label:nth-child(1) {
    top: 50%;
    right: 55px;
    transform: translateY(-50%) rotate(-30deg);
}

/* قسمت 50K - بنفش (بالا راست) */
.wheel-label:nth-child(2) {
    top: 65px;
    right: 90px;
    transform: rotate(30deg);
}

/* قسمت 100K - قرمز تیره (بالا چپ) */
.wheel-label:nth-child(3) {
    top: 65px;
    left: 90px;
    transform: rotate(-30deg);
}

/* قسمت 200K - نارنجی (چپ) */
.wheel-label:nth-child(4) {
    top: 50%;
    left: 55px;
    transform: translateY(-50%) rotate(30deg);
}

/* قسمت 300K - زرد (پایین چپ) */
.wheel-label:nth-child(5) {
    bottom: 65px;
    left: 90px;
    transform: rotate(-30deg);
}

/* قسمت 500K - سبز (پایین راست) */
.wheel-label:nth-child(6) {
    bottom: 65px;
    right: 90px;
    transform: rotate(30deg);
}

.wheel-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

.wheel-arrow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-size: 30px;
    color: #E4405F;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(228, 64, 95, 0.5);
}

.wheel-arrow:hover {
    transform: translateX(-50%) scale(1.1);
}

.arrow-pointer {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #E4405F;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(228, 64, 95, 0.8);
}

.spin-button {
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(188, 24, 136, 0.4);
}
.spin-button:active {
    transform: scale(0.98);
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(188, 24, 136, 0.6);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Particle effects */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

/* Touch interactions */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: translateY(-3px) rotateX(3deg) rotateY(-2deg) translateZ(5px);
    }
    
    .nav-item:hover {
        color: var(--text-light);
    }
    
    .nav-item:active {
        color: var(--primary-color);
        transform: scale(0.95);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:active {
        transform: scale(0.98);
    }
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .wheel-chart {
        max-width: 260px;
    }

    .wheel-center-logo {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }

    .wheel-arrow {
        top: -30px;
        font-size: 24px;
    }
    
    .wheel-arrow:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    .arrow-pointer {
        width: 3px;
        height: 3px;
        bottom: -3px;
    }

    .wheel-win-badge {
        top: -65px;
        font-size: 12px;
        padding: 4px 8px;
    }

    .wheel-label {
        font-size: 13px;
        width: 50px;
        height: 25px;
    }

    .segment-label { font-size: 12px; }

    .wheel-label:nth-child(1) {
        right: 45px;
    }

    .wheel-label:nth-child(2) {
        top: 55px;
        right: 75px;
    }

    .wheel-label:nth-child(3) {
        top: 55px;
        left: 75px;
    }

    .wheel-label:nth-child(4) {
        left: 45px;
    }

    .wheel-label:nth-child(5) {
        bottom: 55px;
        left: 75px;
    }

    .wheel-label:nth-child(6) {
        bottom: 55px;
        right: 75px;
    }

    .spin-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* دکمه پشتیبانی در هدر */
.btn-support {
    padding: 8px 16px;
    background: #2196F3;
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-support:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* دکمه پروفایل در هدر */
.btn-profile {
    padding: 8px 16px;
    background: #9C27B0;
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-profile:hover {
    background: #7B1FA2;
    transform: translateY(-2px);
}

/* مودال پشتیبانی */
.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.support-modal.active { display: flex; }
.support-modal .modal-content {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}
.support-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.support-modal .modal-header h3 { margin: 0; font-size: 16px; }
.support-modal .close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
}
.support-modal .modal-body { padding: 12px; }
.support-actions { display: grid; gap: 10px; }
.support-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
}
.support-actions a .icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}
.support-actions a:hover { background: #fafafa; }

/* Profile Modal */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.profile-modal.active { display: flex; }
.profile-modal .modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}
.profile-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #9C27B0, #E91E63);
    color: white;
}
.profile-modal .modal-header h3 { 
    margin: 0; 
    font-size: 18px; 
}
.profile-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.profile-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.profile-modal .modal-body { 
    padding: 20px; 
}

.profile-form-group {
    margin-bottom: 20px;
}
.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}
.profile-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.profile-form-group input:focus {
    outline: none;
    border-color: #9C27B0;
    transform: scale(1.02);
}

.profile-bonus-info {
    margin: 20px 0;
}
.bonus-card {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
.bonus-card i {
    font-size: 32px;
    opacity: 0.9;
}
.bonus-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}
.bonus-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.profile-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}
.profile-form-actions .btn-primary,
.profile-form-actions .btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Profile Notification */
.profile-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 1000;
    animation: slideInFromTop 0.6s ease;
}
.notification-content {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.notification-content i:first-child {
    font-size: 24px;
    opacity: 0.9;
}
.notification-text {
    flex: 1;
}
.notification-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.notification-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}
.notification-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.notification-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.notification-close:hover {
    opacity: 1;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Profile Modal */
@media (max-width: 768px) {
    .profile-modal .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .profile-modal .modal-body {
        padding: 15px;
    }
    
    .profile-form-actions {
        flex-direction: column;
    }
    
    .notification-content {
        margin: 0 10px;
        padding: 12px 15px;
    }
    
    .notification-text strong {
        font-size: 14px;
    }
    
    .notification-text p {
        font-size: 13px;
    }
}

/* Analysis Modal */
.analysis-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.analysis-modal.active { display: flex; }
.analysis-modal .modal-panel {
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: auto;
    background: linear-gradient(180deg, #ffffff, #f7f7fb);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 20px;
}
.analysis-modal .modal-header {
    display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;
}
.analysis-modal .modal-header h3 { font-weight: 700; color: var(--text-dark); }
.analysis-modal .modal-body { display: grid; gap: 14px; }
.analysis-block { background: linear-gradient(180deg, rgba(228,64,95,0.04), rgba(131,58,180,0.03)); border: 1px solid rgba(131,58,180,0.06); border-radius: 10px; padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.analysis-block h4 { margin-bottom: 8px; font-size: 16px; font-weight: 700; color: var(--text-dark); }
.analysis-user-card { display:flex; gap:12px; align-items:center; }
.analysis-user-card img { width:72px;height:72px;border-radius:50%;object-fit:cover; }
.analysis-actions { display:flex; gap:8px; }
.analysis-modal .close-analyst { background:none;border:none;font-size:22px;cursor:pointer }
.analysis-section-pre { white-space: pre-wrap; line-height:1.8; font-family: 'Vazirmatn'; }


/* Analysis Popup Styles */
.analysis-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analysis-popup-overlay.active {
    opacity: 1;
}

.analysis-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.analysis-popup-overlay.active .analysis-popup {
    transform: scale(1) translateY(0);
}

.analysis-popup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.analysis-popup-header h3 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.analysis-popup-header i {
    margin-left: 10px;
    color: #FFD700;
}

.analysis-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.analysis-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.analysis-popup-body {
    padding: 30px;
    text-align: center;
    color: white;
}

.analysis-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.analysis-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-wave {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    animation: analysisWave 2s infinite;
}

.analysis-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.analysis-wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes analysisWave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.analysis-brain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #FFD700;
    animation: brainPulse 1.5s infinite;
}

@keyframes brainPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.analysis-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.analysis-particles::before,
.analysis-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: floatingParticles 3s infinite;
}

.analysis-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.analysis-particles::after {
    top: 70%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes floatingParticles {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.analysis-info h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.analysis-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-features {
    text-align: right;
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.feature-item i {
    color: #4CAF50;
    margin-left: 10px;
    font-size: 16px;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
}

.analysis-timer {
    margin: 25px 0;
}

.timer-circle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 15px;
    padding: 15px;
    display: inline-block;
    animation: timerGlow 2s infinite alternate;
}

@keyframes timerGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

#analysisTimer {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

#estimatedTime {
    color: #FFD700;
    font-weight: 700;
}

.analysis-note {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-style: italic;
    margin-top: 20px !important;
}

.analysis-note i {
    color: #FFD700;
    margin-left: 8px;
}

.analysis-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFD700, #4CAF50);
    background-size: 200% 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.progress-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analysis-popup {
        max-width: 95%;
        margin: 20px;
    }
    
    .analysis-popup-body {
        padding: 20px;
    }
    
    .analysis-animation {
        width: 100px;
        height: 100px;
    }
    
    .analysis-circle {
        width: 100px;
        height: 100px;
    }
    
    .analysis-wave {
        width: 100px;
        height: 100px;
    }
    
    .analysis-brain {
        font-size: 32px;
    }
    
    .analysis-info h4 {
        font-size: 16px;
    }
    
    .feature-item {
        font-size: 13px;
    }
}
/* Shop 
Page Styles */
.shop-container {
    animation: slideInFromBottom 0.8s ease-out;
}

.shop-notification {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.shop-notification::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.notification-icon {
    font-size: 32px;
    opacity: 0.9;
    animation: bounce 2s infinite;
}

.notification-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.package-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-3deg) translateZ(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.package-header {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShimmer 4s infinite;
}

@keyframes headerShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.package-badge {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
    animation: gemRotate 3s infinite linear;
}

@keyframes gemRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.package-name {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discount-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #E4405F;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    animation: pulse 2s infinite;
}

.package-content {
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.package-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.package-points i {
    font-size: 28px;
    color: #FFD700;
    animation: coinSpin 2s infinite linear;
}

@keyframes coinSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.points-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.points-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.package-pricing {
    margin-bottom: 25px;
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 5px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.package-buy-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.package-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.package-buy-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.package-buy-btn:hover .btn-glow {
    left: 100%;
}

.package-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.7);
    border-radius: 50%;
    animation: particleFloat 4s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

.support-info-box {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.support-info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: supportShimmer 5s infinite;
}

@keyframes supportShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.support-info-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.support-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: supportIconPulse 2s infinite;
}

@keyframes supportIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.support-info-text {
    flex: 1;
}

.support-info-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.support-info-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.support-contact-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.support-contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design for Shop Page */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        margin: 0 10px;
    }
    
    .shop-notification {
        margin: 0 10px 25px;
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 28px;
    }
    
    .notification-content h3 {
        font-size: 16px;
    }
    
    .notification-content p {
        font-size: 13px;
    }
    
    .support-info-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .support-info-text h4 {
        font-size: 16px;
    }
    
    .support-info-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .package-header {
        padding: 20px 15px;
    }
    
    .package-content {
        padding: 20px 15px;
    }
    
    .package-name {
        font-size: 20px;
    }
    
    .points-amount {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .package-buy-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .support-info-box {
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .support-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 3D Transform Effects for Modern Look */
@media (min-width: 769px) {
    .package-card:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .package-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .package-card:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .package-card:nth-child(4) {
        animation-delay: 0.4s;
    }
    
    .package-card:hover {
        z-index: 10;
    }
}

/* Enhanced Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .package-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .package-buy-btn:hover {
        transform: none;
    }
    
    .package-buy-btn:active {
        transform: scale(0.98);
    }
    
    .support-contact-btn:hover {
        transform: none;
    }
    
    .support-contact-btn:active {
        transform: scale(0.95);
    }
}
/*
 PDF Download Button Styling */
.btn-secondary .fa-file-pdf {
    color: #dc3545;
    margin-left: 5px;
}

.btn-secondary:hover .fa-file-pdf {
    color: #fff;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.8);
}

/* Analysis PDF Styling */
.analysis-actions .btn-secondary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.analysis-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* PDF Success Animation */
@keyframes pdfSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pdf-success {
    animation: pdfSuccess 0.6s ease;
}/* PDF 
Generation Styles */
.pdf-temp-container {
    font-family: 'Vazirmatn', Arial, sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.8 !important;
    color: #333 !important;
    background: white !important;
}

.pdf-temp-container h1,
.pdf-temp-container h2,
.pdf-temp-container h3 {
    color: #E4405F !important;
    font-weight: bold !important;
    margin: 20px 0 10px 0 !important;
}

.pdf-temp-container p {
    margin: 8px 0 !important;
    line-height: 1.8 !important;
}

/* Loading state for PDF generation */
.pdf-generating {
    position: relative;
    overflow: hidden;
}

.pdf-generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: pdfShimmer 1.5s infinite;
}

@keyframes pdfShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* SMS
 Verification Styles */
.verification-form {
    text-align: center;
    padding: 20px;
}

.verification-form .fas.fa-sms {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.verification-form h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.verification-form p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

#verificationCode {
    text-align: center;
    font-size: 18px;
    letter-spacing: 3px;
    font-weight: bold;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

#verificationCode:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(228, 64, 95, 0.1);
    transform: scale(1.02);
}

.verification-code-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    margin-bottom: 20px;
}

.btn-verify {
    background: linear-gradient(45deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-resend {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.btn-resend:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-resend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    background: #f5f5f5;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-back:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message .fas.fa-check-circle {
    color: #4CAF50;
    animation: bounce 1s ease;
}

.success-message h3 {
    color: #4CAF50;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.loading-spinner {
    margin-top: 20px;
}

.loading-spinner .fas.fa-spinner {
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Message Styles */
.error-message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.error-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Responsive adjustments for verification form */
@media (max-width: 768px) {
    .auth-forms {
        min-width: 300px;
        padding: 30px 20px;
    }
    
    .verification-form .fas.fa-sms {
        font-size: 40px;
    }
    
    #verificationCode {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* Animation for verification code input */
@keyframes codeInputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#verificationCode:focus {
    animation: codeInputFocus 0.3s ease;
}/* Forgot
 Password Styles */
.forgot-password-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
}

.forgot-password-link:hover {
    background: rgba(228, 64, 95, 0.1);
    transform: translateY(-1px);
}

.forgot-password-link i {
    margin-left: 5px;
}
/* استایل‌
های بخش‌بندی نتایج تحلیل */
.analysis-sections-container {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.analysis-section-card {
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    animation: slideInFromBottom 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.analysis-section-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.analysis-section-card:hover::before {
    opacity: 1;
}

.analysis-section-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.analysis-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.analysis-section-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.analysis-section-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analysis-section-content {
    line-height: 2;
    font-size: 15px;
}

.analysis-section-content p {
    margin: 12px 0;
    text-align: justify;
}

.analysis-section-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.analysis-section-content li {
    padding: 10px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    position: relative;
    padding-right: 35px;
    transition: all 0.3s ease;
}

.analysis-section-content li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.analysis-section-content li::before {
    content: '✓';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
}

/* انیمیشن‌های اضافی */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .analysis-section-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .analysis-section-header {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .analysis-section-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .analysis-section-title {
        font-size: 18px;
    }
    
    .analysis-section-content {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .analysis-section-content li {
        padding: 8px 12px;
        padding-right: 30px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .analysis-sections-container {
        gap: 15px;
    }
    
    .analysis-section-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .analysis-section-title {
        font-size: 16px;
    }
    
    .analysis-section-content {
        font-size: 13px;
    }
}

/* Continuous Calendar Checkbox Styling */
#continuousCalendar {
    accent-color: var(--primary-color);
    transform: scale(1.2);
    transition: all 0.3s ease;
}

#continuousCalendar:hover {
    transform: scale(1.3);
    cursor: pointer;
}

#continuousCalendar:checked {
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Checkbox container hover effect */
label:has(#continuousCalendar):hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* هدر پروفایل */
.profile-header {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar span {
    position: relative;
    z-index: 1;
}

.profile-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-name > div {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
}

.settings-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.settings-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* مودال تنظیمات */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.settings-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.settings-modal .modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInFromBottom 0.4s ease;
    position: relative;
}

.settings-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-modal .modal-body {
    padding: 20px;
}

.settings-modal .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.settings-modal .close-btn:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.settings-label i {
    color: var(--primary-color);
}

/* تنظیمات تم */
.theme-toggle {
    display: flex;
    gap: 10px;
}

.theme-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-color: transparent;
}

/* تنظیمات اندازه فونت */
.font-size-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.font-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.font-size-display {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.font-size-preview {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: center;
}

.font-size-preview p {
    margin: 0;
    color: var(--text-dark);
    transition: font-size 0.3s ease;
}

/* تم تاریک */
body.dark-theme {
    --background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --white: #1e1e1e;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --border-color: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-theme .dashboard {
    background: #0f0f0f;
}

body.dark-theme .header {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
}

body.dark-theme .bottom-nav {
    background: #1e1e1e;
    border-top: 1px solid #333;
}

body.dark-theme table th {
    background: #2a2a2a;
}

body.dark-theme .theme-btn {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-theme .theme-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-theme .font-btn {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-theme .font-size-preview {
    background: #2a2a2a;
}

/* اندازه‌های فونت */
body.font-small {
    font-size: 12px;
}

body.font-small .card-value {
    font-size: 22px;
}

body.font-small .section-title {
    font-size: 16px;
}

body.font-small .profile-name > div {
    font-size: 14px;
}

body.font-medium {
    font-size: 14px;
}

body.font-large {
    font-size: 16px;
}

body.font-large .card-value {
    font-size: 32px;
}

body.font-large .section-title {
    font-size: 24px;
}

body.font-large .profile-name > div {
    font-size: 22px;
}

body.font-xlarge {
    font-size: 18px;
}

body.font-xlarge .card-value {
    font-size: 36px;
}

body.font-xlarge .section-title {
    font-size: 28px;
}

body.font-xlarge .profile-name > div {
    font-size: 26px;
}

/* ریسپانسیو برای هدر پروفایل */
@media (max-width: 768px) {
    .profile-header {
        padding: 15px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profile-name > div {
        font-size: 16px;
    }

    .settings-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 12px;
    }

    .profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .profile-name > div {
        font-size: 14px;
    }

    .settings-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .theme-toggle {
        flex-direction: column;
    }

    .font-size-control {
        gap: 10px;
    }
}
