.stockmate-container {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.stockmate-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.stockmate-waiting-badge {
    display: inline-flex;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    margin-bottom: 20px;
}

.stockmate-waiting-badge span {
    font-weight: bold;
    font-size: 18px;
    margin-right: 5px;
}

.stockmate-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stockmate-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255,255,255,0.95);
}

.stockmate-button {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.stockmate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.stockmate-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stockmate-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
}

.stockmate-message.success {
    background: rgba(72,187,120,0.2);
    border: 1px solid #48bb78;
}

.stockmate-message.error {
    background: rgba(245,101,101,0.2);
    border: 1px solid #f56565;
}

@media (max-width: 768px) {
    .stockmate-form {
        flex-direction: column;
    }
    
    .stockmate-button {
        width: 100%;
    }
}

.stockmate-waiting-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    margin-bottom: 20px;
}

.stockmate-waiting-badge span {
    font-weight: bold;
    font-size: 18px;
    margin-right: 5px;
}


/* frontend.css - استایل‌های فرم StockMate */

.stockmate-container {
    margin: 30px 0;
    padding: 0;
    background: transparent;
}

.stockmate-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 35px 30px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stockmate-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stockmate-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    animation: gentleBell 2s ease-in-out infinite;
}

@keyframes gentleBell {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(12deg); }
    40%, 80% { transform: rotate(-8deg); }
}

.stockmate-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: white;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stockmate-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

.stockmate-input {
    flex: 1;
    min-width: 260px;
    padding: 15px 22px;
    border: none;
    border-radius: 60px !important;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stockmate-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transform: scale(1.01);
}

.stockmate-button {
    padding: 15px 20px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.stockmate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    color: #5a67d8;
}

.stockmate-button:active {
    transform: translateY(1px);
}

.stockmate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.stockmate-waiting-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px 24px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    margin-top: 5px;
    backdrop-filter: blur(4px);
}

.stockmate-waiting-badge .waiting-count {
    font-weight: 800;
    font-size: 22px;
    color: #ffd966;
    margin-right: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 40px;
    min-width: 45px;
    display: inline-block;
}

.stockmate-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(102,126,234,0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stockmate-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 60px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
    font-weight: 500;
}

.stockmate-message.success {
    background: rgba(72, 187, 120, 0.25);
    border: 1px solid #48bb78;
    color: #e8f5e9;
}

.stockmate-message.error {
    background: rgba(245, 101, 101, 0.25);
    border: 1px solid #f56565;
    color: #ffe5e5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .stockmate-form {
        padding: 25px 20px;
    }
    
    .stockmate-icon {
        font-size: 40px;
    }
    
    .stockmate-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .stockmate-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .stockmate-input {
        min-width: auto;
        padding: 13px 18px;
    }
    
    .stockmate-button {
        width: 100%;
        padding: 13px 20px;
    }
    
    .stockmate-waiting-badge {
        font-size: 13px;
        padding: 8px 18px;
    }
    
    .stockmate-waiting-badge .waiting-count {
        font-size: 18px;
        min-width: 38px;
    }
}