/* services.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'Segoe UI', 'Tahoma', system-ui, sans-serif;
}

/* تعریف فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('../../font/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل صفحه */
body {
    font-family: 'Vazir', 'Segoe UI', 'Tahoma', system-ui, sans-serif;
    background: #f0eeff;
    padding: 24px;
    min-height: 100vh;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Admin Header */
.admin-header {
    background: white;
    border-radius: 20px;
    padding: 18px 28px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(139,92,246,0.1);
    box-shadow: 0 2px 16px rgba(139,92,246,0.08);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

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

.admin-info a {
    color: #6b7280;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.admin-info a:hover {
    background: #f5f3ff;
    color: #7c3aed;
}

.my-services-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(139,92,246,0.35);
    font-weight: 600 !important;
}

.my-services-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139,92,246,0.45) !important;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Sub Link Box */
.sub-link-box {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    padding: 20px;
    border-radius: 20px;
    margin-top: 16px;
    margin-bottom: 24px;
    word-break: break-all;
    text-align: center;
    border: 1px solid rgba(139,92,246,0.2);
}

.sub-link-box a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.sub-link-box a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

.copy-btn {
    margin-top: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
    letter-spacing: 0.3px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139,92,246,0.4);
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(139,92,246,0.08), 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(139,92,246,0.08);
}

/* Mode Switch */
.mode-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f5f3ff;
    padding: 6px;
    border-radius: 18px;
    width: fit-content;
}

.mode-btn {
    padding: 10px 30px;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
    color: #7c3aed;
}

.mode-btn:hover:not(.active) {
    background: rgba(139,92,246,0.1);
}

.mode-btn.active {
    background: white;
    color: #6d28d9;
    box-shadow: 0 2px 10px rgba(139,92,246,0.2), 0 1px 3px rgba(0,0,0,0.06);
}

/* Form Groups */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    letter-spacing: 0.2px;
}

/* Panel Chips */
.panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-chip {
    padding: 10px 24px;
    background: #f9fafb;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
}

.panel-chip:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #7c3aed;
}

.panel-chip.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(139,92,246,0.3);
    font-weight: 600;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.plan-card {
    padding: 20px;
    background: #fafafa;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid #f3f4f6;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    opacity: 0;
    transition: opacity 0.25s;
}

.plan-card:hover {
    background: #f5f3ff;
    border-color: #ddd6fe;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.1);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    box-shadow: 0 6px 20px rgba(139,92,246,0.18);
}

.plan-card.selected::before {
    opacity: 1;
}

.plan-name {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
    color: #1f2937;
}

.plan-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.6;
}

.plan-price .old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 12px;
    margin-left: 8px;
}

.plan-price .new-price {
    color: #7c3aed;
    font-weight: 800;
    font-size: 16px;
}

/* Username Group */
.username-group {
    display: flex;
    gap: 10px;
}

.username-group input {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafafa;
    color: #1f2937;
}

.username-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: white;
    box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
}

.username-group input::placeholder {
    color: #9ca3af;
}

.random-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.random-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
    border-radius: 20px;
    padding: 22px;
    margin: 28px 0;
    border: 1px solid rgba(139,92,246,0.15);
}

.order-summary-title {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 16px;
    color: #1f2937;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 14px;
    color: #4b5563;
}

.order-summary-row.total {
    font-weight: 700;
    border-top: 1.5px solid #ddd6fe;
    margin-top: 10px;
    padding-top: 14px;
    font-size: 16px;
    color: #7c3aed;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.btn-submit {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 13px 32px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(139,92,246,0.35);
    letter-spacing: 0.3px;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.45);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-cancel {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 13px 32px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Bulk Section */
.bulk-section {
    background: linear-gradient(135deg, #faf5ff, #f0f9ff);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(139,92,246,0.1);
}

.bulk-preview {
    background: white;
    padding: 22px;
    border-radius: 20px;
    margin: 20px 0;
    border: 1px solid rgba(139,92,246,0.12);
    box-shadow: 0 2px 8px rgba(139,92,246,0.05);
}

.info-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 14px;
    }

    .admin-header {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 18px;
    }

    .admin-info {
        justify-content: center;
    }

    .content-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .mode-switch {
        justify-content: center;
        width: 100%;
    }

    .mode-btn {
        flex: 1;
        padding: 9px 16px;
        font-size: 13px;
        text-align: center;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plan-card {
        padding: 16px;
    }

    .username-group {
        flex-direction: column;
    }

    .random-btn {
        padding: 12px;
        border-radius: 14px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit, .btn-cancel {
        width: 100%;
        text-align: center;
    }

    .panel-chip {
        padding: 8px 16px;
        font-size: 13px;
    }

    .sub-link-box {
        font-size: 12px;
    }
}