
<style>


/* Notes Section */
.notes-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-title {
    color: #b0011a;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    color: #b0011a;
}

.notes-list {
    list-style: none;
    padding-right: 0;
}

.notes-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(176, 1, 26, 0.03);
    border-radius: 8px;
    position: relative;
    padding-right: 30px;
}

.notes-list li:before {
    content: "•";
    color: #b0011a;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    right: 10px;
    top: 10px;
}

.edit-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(176, 1, 26, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.persian-button.primary {
    background-color: #b0011a;
    color: white;
}

.persian-button.primary:hover {
    background-color: #900116;
}

.persian-button.secondary {
    background-color: #6b7280;
    color: white;
}

.persian-button.secondary:hover {
    background-color: #4b5563;
}
</style>



<style>



/* User Dashboard Styles */
.user-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header svg {
    color: #b0011a;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.stat-label {
    font-size: 1.3rem;
    color: #555;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.credit-value {
    color: #28a745;
    font-size: 1.3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .user-dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 15px;
    }
}


/* Transaction Styles */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.transaction-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid;
    margin-top: 4px;
}

.transaction-card.positive {
    border-left-color: #28a745;
}

.transaction-card.negative {
    border-left-color: #dc3545;
}

.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.transaction-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: #555;
}

.transaction-number {
    font-size: 1.3rem;
    color: #666;
    unicode-bidi: embed;
}

.transaction-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 600;
}

.transaction-card.positive .transaction-amount {
    color: #28a745;
}

.transaction-card.negative .transaction-amount {
    color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-number {
        margin-right: auto;
    }
}


/* queue list */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.queue-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.queue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.queue-code {
    font-weight: 700;
    color: #b0011a;
    font-size: 1.2rem;
}

.queue-user {
    font-size: 1.2rem;
    color: #666;
}

.queue-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.action-btn.delete {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.action-btn.send {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.action-btn:hover {
    transform: scale(1.1);
}

.queue-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.queue-message {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.queue-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.queue-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: #fff;
}

/* Status Styles */
.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}


/* ourgoing */
.persian-glass-container {
    direction: rtl;
    padding: 1px !important;
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 35px 0 rgba(31, 38, 135, 0.2);
    padding: 35px;
    margin: 0 auto;
    max-width: 900px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: #b0011a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.header-icon svg {
    color: white;
    width: 32px;
    height: 32px;
}

.persian-title {
    color: #333;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.form-description {
    color: #666;
    font-size: 1.25rem;
}

/* Alert Box */
.alert-glass {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1.3rem;
}

.alert-glass.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-glass svg {
    color: #ffc107;
}

/* Search Box */
.search-box {
    margin: 25px 0;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.search-box input[type="text"]:focus {
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 15px;
}

.persian-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px !important;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.15rem;
    gap: 10px;
}
.persian-button.primary {
    background: #b0011a;
    color: white;
}

.persian-button.secondary {
    background: rgb(255 255 255);
    color: #b0011a;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.persian-button.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.persian-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 7px rgb(121 16 30 / 57%);
    background: #b0011a;
}

.persian-button.secondary:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

.persian-button.danger:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-3px);
}

.persian-button svg {
    width: 18px;
    height: 18px;
}

.help-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Message List */

.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    overflow: hidden;
}

/* نشانگر وضعیت کناری */
.message-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.1); /* حالت پیش‌فرض */
}

/* وضعیت موفق */
.message-card.status-success::before {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

/* وضعیت ناموفق */
.message-card.status-error::before {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

/* وضعیت در انتظار */
.message-card.status-pending::before {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
}

/* وضعیت تحویل شده */
.message-card.status-delivered::before {
    background: linear-gradient(to bottom, #3498db, #b0011a);
}

/* وضعیت واتساپ */
.message-card.status-whatsapp::before {
    background: linear-gradient(to bottom, #25D366, #128C7E);
}

/* استایل‌های کارت */
.message-card {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}


.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recipient-label {
    font-weight: 600;
    color: rgb(42 45 56);
    white-space: nowrap;
}


.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.message-card:nth-child(odd) {
    background: #FFF;
    border: 1px solid rgb(0 0 0 / 15%);
}

.message-card:nth-child(even) {
    background: #efefef;	
    border: 1px solid rgb(0 0 0 / 15%);
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


.recipient-number {
    font-weight: 500;
    color: rgb(42 45 56);
    direction: ltr; /* برای اعداد انگلیسی */
    unicode-bidi: embed;
}

.queue-link {
    margin-right: auto;
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.queue-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.message-checkbox {
    display: block;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    user-select: none;
}

.message-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    background-color: rgb(121 121 121);
    border-radius: 4px;
    transition: all 0.3s;
}

.message-checkbox:hover input ~ .checkmark {
    background-color: rgba(0, 0, 0, 0.1);
}

.message-checkbox input:checked ~ .checkmark {
    background-color: #b0011a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.message-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.message-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.message-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.message-time svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.message-content {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: rgb(151 151 151 / 18%);
    border-radius: 8px;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #dddddd59;
    border-radius: 12px 12px 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    margin-top: 12px;
}

.message-info {
    display: flex;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(135deg, rgb(176 1 26) 0%, rgb(167 1 24) 100%);
    padding: 6px 12px;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-item svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-status {
    background: linear-gradient(135deg, rgb(176 1 26) 0%, rgb(167 1 24) 100%);
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* استایل‌های آیکون وضعیت */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-icon.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-icon.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-icon.pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-icon.delivered {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-icon.whatsapp {
    background-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

/* افکت‌های تعاملی */
.message-footer:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
}

.message-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


.status-icon.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-icon.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-icon.pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-icon.delivered {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-icon.whatsapp {
    background-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.status-icon.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-icon.delivered {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.status-icon.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
}

/* Video Modal */
.modal-glass {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-glass-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-glass-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #333;
}

.close-modal svg {
    width: 24px;
    height: 24px;
}

.modal-glass-body {
    padding: 20px;
}

.video-player {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
    
    .persian-title {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .message-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .message-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-glass-content {
        width: 95%;
    }
    
    .help-btn {
        bottom: 15px;
        left: 15px;
        font-size: 1.1rem;
        padding: 10px 15px;
    }
}
</style>



.persian-title {
    color: #333;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.transaction-list {
    margin-top: 30px;
}

.transaction-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.transaction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.transaction-card.positive {
    border-right-color: #4CAF50;
}

.transaction-card.negative {
    border-right-color: #F44336;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.transaction-date {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.transaction-date svg {
    margin-left: 5px;
    width: 14px;
    height: 14px;
}

.transaction-number {
    color: #555;
    font-size: 13px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.transaction-details {
    background: #f9f9f9;
    border-radius: 8px;
    direction: ltr;
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-row.total {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.detail-row span:first-child {
    color: #666;
}


.action-buttons {
    margin-bottom: 20px;
    text-align: left;
}

.persian-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.persian-button svg {
    margin-left: 5px;
}

.persian-button.secondary {
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

.persian-button.secondary:hover {
    background: #e0e0e0;
}

.pagination-container {
    margin-top: 30px;
    text-align: center;
}

/* استایل برای حالت ریسپانسیو */
@media (max-width: 768px) {
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-number {
        margin-top: 8px;
    }
    
    .glass-card {
        padding: 15px;
    }
    
    .transaction-details {
        padding: 10px;
direction: ltr;
    }
}

/* ===================================================================
   Global Bootstrap button theme (site-wide, all themes: default/flatly/ubuntu)
   Loaded after bootstrap.min.css in themes_layout.html, so it overrides
   Bootstrap's own .btn-* rules everywhere without touching the vendor files.
   Sizing (.btn-lg/.btn-sm/.btn-xs/.btn-block padding & font-size) is left
   untouched so dense table/toolbar buttons don't balloon in size — only
   shape (radius/weight/shadow) and per-variant color are themed.
   =================================================================== */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease !important;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active,
.btn.active {
    transform: scale(0.97);
}

.btn-default {
    background: #f7fafc !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-default:hover,
.btn-default:focus {
    background: #edf2f7 !important;
    color: #2d3748 !important;
    border-color: #cbd5e0 !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
    background: linear-gradient(135deg, #b0011a, #d62839) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(176, 1, 26, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #97010f, #c0202f) !important;
    box-shadow: 0 8px 20px rgba(176, 1, 26, 0.4);
}

.btn-primary:active,
.btn-primary.active {
    background: linear-gradient(135deg, #97010f, #c0202f) !important;
}

.btn-success,
.btn-success:focus,
.btn-success.focus {
    background: linear-gradient(135deg, #18bc9c, #149a80) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(24, 188, 156, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #149a80, #0f7d68) !important;
    box-shadow: 0 8px 20px rgba(24, 188, 156, 0.4);
}

.btn-success:active,
.btn-success.active {
    background: linear-gradient(135deg, #149a80, #0f7d68) !important;
}

.btn-info,
.btn-info:focus,
.btn-info.focus {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.btn-info:active,
.btn-info.active {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
}

.btn-warning,
.btn-warning:focus,
.btn-warning.focus {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.btn-warning:active,
.btn-warning.active {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.btn-danger,
.btn-danger:focus,
.btn-danger.focus {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.btn-danger:active,
.btn-danger.active {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.55;
}

/* ===================================================================
   Shared enable/disable round switch (site-wide, all feature templates)
   Reference implementation: plugin/feature/spin/templates/spin.html
   Markup:
   <div class="switch-group">
       <span>غیرفعال / فعال</span>
       <label class="switch">
           <input type="checkbox" name="X_enable" value="1" {{ CHECKED }}>
           <span class="slider round"></span>
       </label>
   </div>
   =================================================================== */
.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f7fafc;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    margin: 10px 0;
}

.switch-group span {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked + .slider {
    background: linear-gradient(135deg, #b0011a, #e63946);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

@media (max-width: 600px) {
    .switch-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ===== SMS composer basics (textarea/emoji/counter/hint) ===== */
.form-section {
    margin-bottom: 35px;
}
.persian-label {
    display: block;
    margin-bottom: 10px;
    color: #444;
    font-weight: 600;
    font-size: 1.25rem;
}
.textarea-container {
    position: relative;
}
.persian-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    min-height: 75px;
    resize: vertical;
}
.persian-textarea:focus {
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    outline: none;
}
.emoji-picker-btn {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}
.emoji-picker-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}
.emoji-picker-btn svg {
    width: 20px;
    height: 20px;
    color: #b0011a;
}
emoji-picker {
    --num-columns: 6;
    --emoji-size: 1.5rem;
    --background: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --category-emoji-padding: 0.5rem;
    --input-font-size: 1rem;
    --input-padding: 0.5rem 1rem;
    --input-border-radius: 8px;
    --outline-color: #b0011a;
    position: absolute;
    left: 0;
    bottom: 50px;
    z-index: 10;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    width: 300px;
    max-width: 100%;
}
.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.counter {
    font-size: 1.1rem;
    color: #777;
    margin-top: 8px;
}
.form-hint {
    font-size: 1.1rem;
    color: #777;
    margin-top: 8px;
}

/* ===== پیشنهاد زنده کوتاه‌کننده لینک (حین تایپ در textarea پیامک) ===== */
.urlshortener-suggest-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(24, 188, 156, 0.1);
    border: 1px solid rgba(24, 188, 156, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 1rem;
    color: #0f6a58;
    direction: rtl;
    animation: urlshortenerChipIn 0.2s ease-out;
}
.urlshortener-suggest-chip .urlshortener-chip-text {
    flex: 1;
    min-width: 160px;
}
.urlshortener-suggest-chip button {
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}
.urlshortener-suggest-chip .urlshortener-chip-go {
    background: #18bc9c;
    color: white;
}
.urlshortener-suggest-chip .urlshortener-chip-go:hover {
    background: #149c81;
}
.urlshortener-suggest-chip .urlshortener-chip-go:disabled {
    background: #ccc;
    cursor: default;
}
.urlshortener-suggest-chip .urlshortener-chip-dismiss {
    background: transparent;
    color: #888;
    font-size: 1.1rem;
    padding: 2px 8px;
}
@keyframes urlshortenerChipIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== منوی کشویی هاور دکمه «کوتاه‌کننده لینک» (لیست لینک‌های موجود کاربر) ===== */
.urlshortener-hover-dropdown {
    position: absolute;
    z-index: 99999;
    direction: rtl;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    animation: urlshortenerChipIn 0.15s ease-out;
}
.urlshortener-hover-header {
    padding: 8px 10px 6px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 2px;
}
.urlshortener-hover-loading,
.urlshortener-hover-empty {
    padding: 16px 10px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}
.urlshortener-hover-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
    transition: background 0.15s;
}
.urlshortener-hover-item:hover {
    background: rgba(24, 188, 156, 0.1);
}
.urlshortener-hover-item-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.urlshortener-hover-item-url {
    font-size: 0.8rem;
    color: #18bc9c;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.urlshortener-hover-newlink {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 9px 10px;
    background: rgba(176, 1, 26, 0.06);
    border: none;
    border-top: 1px solid #f0f0f0;
    border-radius: 8px;
    color: #b0011a;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
}
.urlshortener-hover-newlink:hover {
    background: rgba(176, 1, 26, 0.12);
}

/* ===== Persian form inputs / grid ===== */
.persian-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.persian-input:focus {
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(176, 1, 26, 0.15);
    outline: none;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.time-input-group {
    display: flex;
    gap: 10px;
}
.time-input-group .persian-input {
    flex: 1;
    min-width: 100px;
}
.time-input-group .persian-select {
    width: 120px;
}

/* ===== Persian button extras ===== */
.persian-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Variable/insert-link buttons (message composer) ===== */
.variable-buttons-container {
    margin: 10px 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
}
.variable-buttons-scroll {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    min-width: max-content;
}
.insert-social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    white-space: nowrap;
    color: white;
    font-weight: 500;
}
.insert-social-btn.numid {
    background-color: #2196F3;
    color: #fff;
}
.insert-social-btn.num {
    background-color: #9C27B0;
    color: #fff;
}
.insert-social-btn.vurl {
    background-color: #FF9800;
    color: #fff;
}
.insert-social-btn.surl {
    background-color: #607D8B;
    color: #fff;
}
.insert-social-btn.name {
    background-color: #4CAF50;
    color: #fff;
}
.insert-social-btn.spin {
    background-color: #E91E63;
    color: #fff;
}
.insert-social-btn svg {
    flex-shrink: 0;
}
.insert-social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.variable-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #b0011a;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    pointer-events: none;
}
.variable-notification.show {
    opacity: 1;
}

/* ===== Misc widgets ===== */
.emoji-picker {
    position: absolute;
    left: 15px;
    top: 60px;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}
.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
}
.instructions {
    text-align: right;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}
.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== Auth login page (alp-*) ===== */
.alp-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px 20px;
    box-sizing: border-box;
}
.alp-logo {
    text-align: center;
    margin-bottom: 14px;
}
.alp-logo img {
    width: 264px;
    height: 240px;
    object-fit: contain;
}
.alp-site-title {
    text-align: center;
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 600;
}
.alp-site-title a {
    color: #fff;
    text-decoration: none;
}
.alp-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 auto 18px;
}
.alp-page-badge svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}
.alp-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.55;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alp-field-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}
.alp-captcha img {
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 10px;
    height: 57px;
    border: 1px solid rgba(255,255,255,0.2);
}
.alp-captcha input[type=text] {
    width: 100% !important;
    padding: 11px 16px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    border-radius: 11px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    outline: none !important;
    text-align: center !important;
    transition: border-color 0.2s, background 0.2s !important;
    display: block !important;
    margin: 0 !important;
}
.alp-captcha input[type=text]::placeholder {
    color: rgba(255,255,255,0.5);
}
.alp-captcha input[type=text]:focus {
    border-color: rgba(255,255,255,0.55) !important;
    background: rgba(255,255,255,0.16) !important;
}
.alp-btn:active {
    transform: scale(0.98) !important;
}
.alp-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.alp-links a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ===== Floating contact widget (WhatsApp/Eitaa/Bale/phone) ===== */
.floating-contact {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.contact-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
}
.contact-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}
.contact-toggle i {
    transition: transform 0.25s;
}
.contact-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
}
.contact-menu.open {
    display: flex;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.contact-item:hover {
    transform: scale(1.04);
}
.contact-phone {
    background: rgba(25,118,210,0.65);
}
.contact-whatsapp {
    background: rgba(37,211,102,0.65);
}
.contact-eitaa {
    background: rgba(239,120,38,0.65);
}
.contact-bale {
    background: rgba(0,150,136,0.65);
}
.contact-item i {
    font-size: 16px;
}

/* منوی امکانات با تعداد آیتم زیاد در رزولوشن کم از صفحه خارج می‌شد؛ اسکرول داخلی جایگزین سرریز شد */
#main-menu .dropdown-menu {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* دیالوگ‌های BootstrapDialog با رنگ برند اینباکس به‌جای آبی پیش‌فرض (کوتاه‌کننده لینک، تأیید OTP) */
.inbx-dialog .modal-content {
    border-radius: 14px;
    overflow: hidden;
    border: none;
}
.inbx-dialog .modal-header {
    background: linear-gradient(135deg, #b0011a, #d62839);
    border-bottom: none;
    padding: 16px 20px;
}
.inbx-dialog .bootstrap-dialog-close-button {
    color: #fff;
}
.inbx-dialog .modal-body {
    padding: 20px;
}
.inbx-dialog .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    height: auto;
    border: 1px solid #ddd;
}
.inbx-dialog .form-control:focus {
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(176, 1, 26, 0.15);
    outline: none;
}
.inbx-dialog .modal-footer {
    border-top: 1px solid #eee;
    padding: 12px 20px;
}
