/* price-manager.css - استایل‌های اصلی */
.pm-container { 
    padding: 24px; 
    max-width: 1100px; 
    margin: 20px auto; 
}

.pm-card {
    background: linear-gradient(180deg, #071226 0%, #0b2236 100%);
    color: #e6eef8;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(2,6,23,0.6);
    font-family: "Vazirmatn", sans-serif;
}

.pm-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 14px; 
    flex-wrap: wrap; 
}

.pm-header h1 { 
    margin: 0; 
    color: #ffd54a; 
    font-size: 20px; 
}

.pm-alert.success { 
    background: #163a17; 
    color: #b5f4a6; 
    padding: 8px 10px; 
    border-radius: 8px; 
}

.pm-form-section { 
    display: flex; 
    gap: 18px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}

.pm-form { 
    flex: 1 1 360px; 
    min-width: 260px; 
}

.pm-form label { 
    display: block; 
    margin-bottom: 6px; 
    font-weight: 700; 
    color: #dbe9ff; 
}

.pm-form input[type="number"] {
    width: 100%; 
    padding: 10px 12px; 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03); 
    color: #fff; 
    font-size: 16px;
}

.pm-actions { 
    margin-top: 12px; 
    display: flex; 
    gap: 10px; 
}

.pm-btn { 
    background: #ffd54a; 
    color: #0d1720; 
    padding: 10px 14px; 
    border-radius: 8px; 
    border: none; 
    cursor: pointer; 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-block; 
}

.pm-btn.secondary { 
    background: transparent; 
    color: #cfe8ff; 
    border: 1px solid rgba(255,255,255,0.06); 
    padding: 10px 12px; 
}

.pm-current { 
    width: 320px; 
    min-width: 220px; 
    background: rgba(255,255,255,0.02); 
    padding: 14px; 
    border-radius: 10px; 
    text-align: center; 
}

.pm-current h3 { 
    margin: 0 0 8px 0; 
    color: #cfe8ff; 
}

.pm-current-price { 
    font-size: 22px; 
    font-weight: 800; 
    color: #fff; 
    margin: 6px 0; 
}

.pm-last-update { 
    color: #9fb8d6; 
    font-size: 13px; 
}

.pm-history { 
    margin-top: 18px; 
}

.pm-chart-wrap { 
    height: 260px; 
    background: rgba(255,255,255,0.01); 
    padding: 12px; 
    border-radius: 10px; 
}

.pm-history-table { 
    margin-top: 12px; 
    overflow: auto; 
    background: rgba(255,255,255,0.02); 
    border-radius: 10px; 
    padding: 10px; 
}

.pm-history-table table { 
    width: 100%; 
    border-collapse: collapse; 
    color: #e6eef8; 
}

.pm-history-table th, 
.pm-history-table td { 
    padding: 8px 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    text-align: center; 
}

.pm-history-table th { 
    color: #bfe0ff; 
    font-weight: 700; 
}

/* استایل‌های نوار قیمت‌های لحظه‌ای */
.ticker-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 1100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ticker-wrapper {
    background: linear-gradient(90deg, 
        rgba(218, 165, 32, 0.2), 
        rgba(184, 134, 11, 0.2), 
        rgba(218, 165, 32, 0.2)
    );
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 40px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ticker-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price {
    color: #FFD700;
    margin: 0 5px;
    font-size: 16px;
}

.change {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

.change.positive {
    background: rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.change.negative {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-content:hover {
    animation-play-state: paused;
}

.loading {
    text-align: center;
    color: #FFD700;
    padding: 15px;
    font-size: 14px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #FFD700;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    margin: 10px;
}

/* استایل‌های کارت خوش‌آمدگویی سه‌بعدی */
.welcome-container {
    perspective: 1000px;
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
}

.welcome-card {
    position: relative;
    width: 100%;
    height: 300px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.welcome-card:hover {
    transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-front {
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.95) 0%,
        rgba(184, 134, 11, 0.95) 50%,
        rgba(139, 69, 19, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 70%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
    background-size: 400% 400%;
    animation: gradientRotate 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.welcome-content {
    flex: 1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFF, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 2s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.welcome-subtitle {
    font-size: 18px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.welcome-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    color: rgba(255, 215, 0, 0.3);
    font-size: 20px;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 30%;
    right: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

.stats-mini {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-weight: bold;
    color: #FFD700;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.1);
    pointer-events: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .pm-form-section { 
        flex-direction: column; 
    }
    
    .pm-current { 
        width: 100%; 
    }
    
    .pm-container { 
        padding: 12px; 
    }
    
    .pm-header h1 { 
        font-size: 18px; 
    }
    
    .pm-chart-wrap { 
        height: 200px; 
    }

    .welcome-card {
        height: 250px;
    }
    
    .card-front {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-image-container {
        width: 80px;
        height: 80px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .welcome-description {
        font-size: 12px;
    }
    
    .ticker-container {
        margin: 10px;
    }
}
#tickerContent {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

.ticker-content {
    display: flex !important;
    flex-wrap: wrap !important;
}

.ticker-item {
    display: inline-block !important;
    margin: 10px !important;
    padding: 5px !important;
   
}