/* فونت و تنظیمات پایه */
* {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    box-sizing: border-box;
}

.cso-container,
.cso-service-list-wrapper,
.cso-dashboard-wrapper,
.cso-modal-content,
.cso-form-wrapper {
    direction: rtl;
    text-align: right;
}

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

.cso-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.cso-col-sidebar {
    flex: 0 0 280px;
}

.cso-col-main {
    flex: 1;
    min-width: 0;
}

/* لیست خدمات */
.cso-service-list-wrapper {
    background: #f9fafb;
    padding: 40px 0;
}

.cso-services-header {
    text-align: center;
    margin-bottom: 30px;
}

.cso-services-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.cso-services-subtitle {
    font-size: 18px;
    color: #6b7280;
}

/* فیلتر دسته‌بندی */
.cso-filter-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cso-filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.cso-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cso-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cso-category-item:hover {
    background: #f3f4f6;
}

.cso-category-item.active {
    background: #2563eb;
    color: white;
}

.cso-category-name {
    font-size: 15px;
}

.cso-category-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
}

/* جستجو */
.cso-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cso-search-box input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
}

.cso-search-box button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.cso-search-box button:hover {
    background: #1d4ed8;
}

/* گرید خدمات */
.cso-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cso-service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.cso-service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.cso-service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.cso-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cso-service-content {
    padding: 20px;
}

.cso-service-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.cso-service-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* دکمه‌ها */
.cso-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.cso-btn-primary {
    background: #2563eb;
    color: white;
}

.cso-btn-primary:hover {
    background: #1d4ed8;
}

.cso-btn-secondary {
    background: #6b7280;
    color: white;
}

.cso-btn-secondary:hover {
    background: #4b5563;
}

.cso-btn-block {
    width: 100%;
    display: block;
}

.cso-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* فرم‌ها */
.cso-form-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cso-form-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.cso-form-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.cso-form-row {
    margin-bottom: 20px;
}

.cso-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.cso-form-row input,
.cso-form-row select,
.cso-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.cso-form-row input:focus,
.cso-form-row select:focus,
.cso-form-row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cso-form-row small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6b7280;
}

.cso-highlight-box {
    background: #eff6ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.cso-amount-display {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

/* ورود و ثبت‌نام */
.cso-auth-wrapper {
    max-width: 460px;
    margin: 64px auto;
    padding: 0 16px;
}

.cso-auth-box {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .10);
}

.cso-auth-header h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    color: #1f2937;
    margin: 10px 0 8px;
}

.cso-auth-header p {
    margin: 0 0 22px;
    text-align: center;
    color: #64748b;
    line-height: 1.8;
    font-size: 14px;
}

.cso-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.cso-tab-btn {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cso-tab-btn.active {
    background: #111827;
    color: white;
}

.cso-tab-content {
    display: none;
}

.cso-tab-content.active {
    display: block;
}

.cso-form-group {
    margin-bottom: 20px;
}

.cso-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.cso-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.cso-form-group input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .08);
}

.cso-verification-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.cso-verification-display strong {
    font-size: 24px;
    color: #111827;
    letter-spacing: 5px;
}

/* داشبورد */
.cso-dashboard-wrapper {
    padding: 30px 0;
}

.cso-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cso-dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.cso-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.cso-dashboard-tabs .cso-tab-btn {
    background: transparent;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 20px;
}

.cso-dashboard-tabs .cso-tab-btn.active {
    background: transparent;
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.cso-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cso-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.cso-stat-icon {
    font-size: 40px;
}

.cso-stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.cso-stat-info p {
    font-size: 14px;
    color: #6b7280;
}

.cso-welcome-box {
    background: #111827;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.cso-welcome-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.cso-recent-orders {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cso-recent-orders h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* جدول */
.cso-table {
    width: 100%;
    border-collapse: collapse;
}

.cso-table th,
.cso-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.cso-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.cso-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: white;
    font-weight: 500;
}

/* بارگذاری */
.cso-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.cso-no-results {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .cso-row {
        flex-direction: column;
    }
    
    .cso-col-sidebar {
        flex: 1;
    }
    
    .cso-services-grid {
        grid-template-columns: 1fr;
    }
    
    .cso-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* CSO modern redesign */
:root {
    --cso-primary: #2563eb;
    --cso-primary-dark: #1d4ed8;
    --cso-ink: #0f172a;
    --cso-muted: #64748b;
    --cso-line: rgba(148, 163, 184, .22);
    --cso-card: rgba(255, 255, 255, .88);
    --cso-soft: #f8fafc;
    --cso-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.cso-service-list-wrapper,
.cso-dashboard-wrapper,
.cso-user-panel {
    background: #f8fafc;
    min-height: 70vh;
}

.cso-service-list-wrapper .cso-row {
    align-items: flex-start;
}

.cso-filter-box,
.cso-search-box,
.cso-service-card,
.cso-card,
.cso-modern-card,
.cso-auth-box {
    border: 1px solid var(--cso-line);
    background: var(--cso-card);
    box-shadow: var(--cso-shadow);
    backdrop-filter: blur(18px);
}

.cso-filter-box {
    position: sticky;
    top: 24px;
    border-radius: 28px;
    padding: 24px;
}

.cso-category-item {
    border: 1px solid transparent;
    border-radius: 16px;
}

.cso-category-item.active,
.cso-search-box button,
.cso-btn-primary {
    background: var(--cso-primary);
    color: #fff;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--cso-primary) 28%, transparent);
}

.cso-services-title,
.cso-user-hero h1 {
    color: var(--cso-ink);
    letter-spacing: -.03em;
}

.cso-search-box {
    border-radius: 22px;
    padding: 12px;
}

.cso-search-box input,
.cso-input,
.cso-modern-form input,
.cso-modern-form select,
.cso-modern-form textarea {
    border: 1px solid var(--cso-line) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.78) !important;
    color: var(--cso-ink) !important;
    outline: none;
}

.cso-services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.cso-service-card {
    border-radius: 30px;
    overflow: hidden;
    transform: translateY(0);
}

.cso-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
}

.cso-service-cover {
    display: grid;
    place-items: center;
    height: 190px;
    background: #eff6ff;
    color: var(--cso-primary);
    font-size: 52px;
    text-decoration: none;
}

.cso-service-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cso-category-chip {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cso-primary) 10%, white);
    color: var(--cso-primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cso-service-title a {
    color: var(--cso-ink);
    text-decoration: none;
}

.cso-service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    color: var(--cso-muted);
    font-size: 12px;
}

.cso-service-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
}

.cso-user-panel {
    direction: rtl;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 26px;
    padding: 28px;
    border-radius: 36px;
}

.cso-user-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    min-height: calc(100vh - 80px);
    border-radius: 32px;
    padding: 22px;
    background: #0f172a;
    color: #fff;
    box-shadow: var(--cso-shadow);
}

.cso-user-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.cso-user-brand img,
.cso-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    font-weight: 900;
}

.cso-user-brand small {
    display: block;
    color: rgba(255,255,255,.62);
    margin-top: 4px;
}

.cso-user-nav {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.cso-panel-tab,
.cso-logout-link,
.cso-sidebar-cta {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 14px 16px;
    color: rgba(255,255,255,.78);
    background: transparent;
    text-align: right;
    cursor: pointer;
    text-decoration: none;
    display: block;
    font-weight: 700;
}

.cso-panel-tab.active,
.cso-panel-tab:hover,
.cso-sidebar-cta {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.cso-sidebar-cta {
    text-align: center;
    background: var(--cso-primary);
}

.cso-logout-link {
    margin-top: 10px;
    color: #fecaca;
}

.cso-user-main {
    min-width: 0;
}

.cso-user-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 34px;
    padding: 34px;
    color: #fff;
    background: #111827;
    background-size: cover;
    box-shadow: var(--cso-shadow);
    margin-bottom: 24px;
}

.cso-user-hero h1,
.cso-user-hero p {
    color: #fff;
    margin: 8px 0 0;
}

.cso-btn-light {
    background: #fff;
    color: var(--cso-primary) !important;
}

.cso-panel-content {
    display: none;
}

.cso-panel-content.active {
    display: block;
}

.cso-panel-stats .cso-stat-card {
    border-radius: 26px;
    border: 1px solid var(--cso-line);
    text-align: right;
}

.cso-panel-stats .cso-stat-card span {
    font-size: 0;
}

.cso-icon {
    --cso-icon-size: 22px;
    position: relative;
    display: inline-flex;
    width: var(--cso-icon-size);
    height: var(--cso-icon-size);
    flex: 0 0 var(--cso-icon-size);
    vertical-align: middle;
}

.cso-icon::before,
.cso-icon::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
}

.cso-auth-mark {
    --cso-icon-size: 54px;
    margin: 0 auto;
    display: flex;
    border-radius: 18px;
    background: #f1f5f9;
}

.cso-panel-tab .cso-icon {
    margin-left: 8px;
}

.cso-icon-user::before { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; top: 3px; left: 6px; }
.cso-icon-user::after { width: 16px; height: 9px; border: 2px solid currentColor; border-radius: 12px 12px 4px 4px; bottom: 2px; left: 3px; }
.cso-icon-home::before { width: 16px; height: 16px; border: 2px solid currentColor; transform: rotate(45deg); top: 3px; left: 3px; border-radius: 3px; }
.cso-icon-home::after { width: 8px; height: 7px; border: 2px solid currentColor; border-top: 0; bottom: 2px; left: 7px; }
.cso-icon-box::before { inset: 4px 3px 3px; border: 2px solid currentColor; border-radius: 4px; }
.cso-icon-box::after { width: 12px; height: 2px; background: currentColor; top: 8px; left: 5px; }
.cso-icon-chat::before { inset: 4px 3px 5px; border: 2px solid currentColor; border-radius: 8px; }
.cso-icon-chat::after { width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-20deg); bottom: 3px; right: 6px; }
.cso-icon-clock::before { inset: 2px; border: 2px solid currentColor; border-radius: 50%; }
.cso-icon-clock::after { width: 7px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; top: 6px; left: 10px; }
.cso-icon-check::before { width: 17px; height: 9px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); top: 5px; left: 2px; }
.cso-icon-shield::before { width: 18px; height: 20px; border: 2px solid currentColor; border-radius: 9px 9px 11px 11px; top: 1px; left: 2px; }
.cso-icon-shield::after { width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); top: 7px; left: 6px; }
.cso-icon-exchange::before { width: 17px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; top: 5px; left: 2px; }
.cso-icon-exchange::after { width: 17px; height: 8px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; bottom: 5px; left: 3px; }
.cso-icon-card::before { inset: 3px 1px; border: 2px solid currentColor; border-radius: 5px; }
.cso-icon-card::after { width: 18px; height: 3px; background: currentColor; top: 8px; left: 2px; }
.cso-icon-globe::before { inset: 2px; border: 2px solid currentColor; border-radius: 50%; }
.cso-icon-globe::after { inset: 5px 8px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }

.cso-panel-stats .cso-stat-card strong {
    display: block;
    font-size: 32px;
    color: var(--cso-ink);
    margin: 8px 0;
}

.cso-modern-card {
    border-radius: 30px;
    padding: 24px;
    margin-bottom: 24px;
}

.cso-card-head,
.cso-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cso-responsive-table {
    overflow-x: auto;
}

.cso-status-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--status-color);
    background: color-mix(in srgb, var(--status-color) 12%, white);
    font-weight: 800;
    font-size: 12px;
}

.cso-empty-state {
    padding: 34px;
    border: 1px dashed var(--cso-line);
    border-radius: 24px;
    color: var(--cso-muted);
    text-align: center;
}

.cso-order-list,
.cso-ticket-list {
    display: grid;
    gap: 12px;
}

.cso-order-row,
.cso-ticket-list article {
    padding: 16px;
    border: 1px solid var(--cso-line);
    border-radius: 22px;
    background: rgba(255,255,255,.66);
}

.cso-order-row span,
.cso-ticket-list span,
.cso-ticket-list small {
    display: block;
    color: var(--cso-muted);
}

.cso-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.cso-modern-form,
.cso-form-grid {
    display: grid;
    gap: 16px;
}

.cso-modern-form label {
    display: grid;
    gap: 8px;
    color: var(--cso-ink);
    font-weight: 700;
}

@media (max-width: 980px) {
    .cso-user-panel,
    .cso-grid-2 {
        grid-template-columns: 1fr;
    }
    .cso-user-sidebar {
        position: static;
        min-height: auto;
    }
    .cso-user-hero,
    .cso-card-head,
    .cso-order-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Product list and detail polish */
.cso-service-list-wrapper {
    background: #f3f7ff;
    padding: 34px 0;
}

.cso-service-list-wrapper .cso-row {
    gap: 22px;
}

.cso-col-sidebar {
    flex: 0 0 250px;
}

.cso-filter-box,
.cso-search-box {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 42, 68, .06);
}

.cso-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cso-brand-service-card {
    border-radius: 18px;
    border: 1px solid #edf0f7;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 42, 68, .06);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cso-brand-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(31, 42, 68, .10);
}

.cso-brand-service-card .cso-service-image-link {
    display: block;
    height: 180px;
    overflow: hidden;
    text-decoration: none;
}

.cso-brand-service-card .cso-service-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cso-brand-service-card:hover .cso-service-image-link img {
    transform: scale(1.05);
}

.cso-service-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 48px;
    font-weight: 900;
}

.cso-brand-service-card .cso-service-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.cso-brand-service-card .cso-service-info {
    flex: 1;
    text-decoration: none;
}

.cso-brand-service-card .cso-category-chip {
    margin: 0 0 7px;
    padding: 4px 9px;
    font-size: 11px;
    background: #f3f7ff;
}

.cso-brand-service-card .cso-service-title {
    margin: 0;
    font-size: 14px;
}

.cso-brand-service-card .cso-service-title a {
    color: var(--cso-ink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cso-brand-service-card:hover .cso-service-title a {
    color: var(--cso-primary);
}

.cso-product-detail {
    --cso-primary: #2f80ed;
    --cso-primary-dark: #0b5ed7;
    --cso-paypal: #0070ba;
    --cso-bg: #f3f7ff;
    --cso-card-bg: #fff;
    --cso-border: #e1e6ef;
    --cso-text: #1f2a44;
    --cso-gray: #6b7280;
    --cso-success: #22a35a;
    direction: rtl;
    background: var(--cso-bg);
    color: var(--cso-text);
    padding: 28px;
    border-radius: 24px;
}

.cso-product-topbar,
.cso-product-actions,
.cso-order-card-head,
.cso-summary-item,
.cso-summary-total {
    display: flex;
    align-items: center;
}

.cso-product-topbar {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cso-back-link {
    position: relative;
    color: var(--cso-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.cso-back-link::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.cso-breadcrumb {
    color: var(--cso-gray);
    font-size: 12px;
}

.cso-product-hero,
.cso-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    margin-bottom: 18px;
}

.cso-product-description,
.cso-order-card,
.cso-product-facts > div {
    background: #fff;
    border: 1px solid #edf0f7;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(31, 42, 68, .06);
}

.cso-product-hero-content {
    padding: 28px;
}

.cso-product-logo {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--cso-primary);
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

.cso-product-logo .cso-icon {
    --cso-icon-size: 18px;
}

.cso-product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cso-order-card-head h2 {
    margin: 0;
    font-size: 20px;
    color: var(--cso-text);
}

.cso-order-card-head p {
    margin: 4px 0 0;
    color: var(--cso-gray);
    font-size: 13px;
    line-height: 1.6;
}

.cso-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.cso-product-actions .cso-btn {
    min-height: 42px;
    padding: 10px 18px;
    text-align: center;
}

.cso-product-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.cso-product-facts > div {
    padding: 16px;
    display: grid;
    gap: 6px;
}

.cso-product-facts .cso-icon {
    color: var(--cso-primary);
}

.cso-product-facts small {
    color: var(--cso-gray);
}

.cso-product-facts strong {
    font-size: 14px;
}

.cso-product-description {
    padding: 24px;
}

.cso-product-description h2 {
    margin: 0 0 12px;
    color: var(--cso-text);
}

.cso-product-description p,
.cso-product-description li {
    color: var(--cso-gray);
    line-height: 1.9;
}

.cso-order-layout {
    align-items: start;
}

.cso-product-image-box {
    background: #fff;
    border: 1px solid #edf0f7;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(31, 42, 68, .06);
}

.cso-product-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cso-order-card-head {
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf0f7;
}

.cso-order-card-head .cso-product-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.cso-order-card-head .cso-product-logo .cso-icon {
    --cso-icon-size: 12px;
}

.cso-order-card-head .cso-product-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.cso-order-form-card,
.cso-order-summary {
    padding: 20px;
}

.cso-order-card-head {
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf0f7;
}

.cso-order-card-head h2 {
    margin: 0;
    font-size: 20px;
}

.cso-order-card-head p {
    margin: 4px 0 0;
    color: var(--cso-gray);
    font-size: 12px;
}

.cso-order-form-card .cso-form-wrapper {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.cso-order-form-card .cso-form-header {
    display: none;
}

.cso-order-form-card .cso-form-row,
.cso-order-form-card .cso-form-group {
    margin-bottom: 12px;
}

.cso-order-form-card label {
    color: var(--cso-text);
    font-size: 13px;
    font-weight: 800;
}

.cso-order-form-card input,
.cso-order-form-card select,
.cso-order-form-card textarea,
.cso-order-form-card .cso-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dde3ee !important;
    border-radius: 9px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    color: var(--cso-text) !important;
    background: #fff !important;
    direction: rtl;
}

.cso-order-form-card textarea,
.cso-order-form-card textarea.cso-input {
    min-height: 84px;
    padding-top: 10px !important;
}

.cso-order-form-card input:focus,
.cso-order-form-card select:focus,
.cso-order-form-card textarea:focus {
    border-color: var(--cso-primary) !important;
    box-shadow: 0 0 0 3px rgba(47,128,237,.12) !important;
    outline: none;
}

.cso-order-help,
.cso-login-required {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 700;
}

.cso-submit-order-btn {
    min-height: 52px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
}

.cso-order-side {
    position: sticky;
    top: 22px;
}

.cso-side-back {
    display: inline-flex;
    margin-bottom: 12px;
}

.cso-order-summary h3 {
    margin: 0 0 12px;
}

.cso-summary-item,
.cso-summary-total {
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f7;
    color: var(--cso-gray);
    font-size: 13px;
}

.cso-summary-item strong {
    color: var(--cso-text);
}

.cso-summary-total {
    border: 0;
    margin-top: 4px;
    color: var(--cso-text);
    font-weight: 900;
}

.cso-summary-total strong {
    color: var(--cso-success);
    font-size: 18px;
}

.cso-terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--cso-text);
    font-size: 12px;
    font-weight: 800;
}

.cso-terms-note {
    margin: 10px 0 0;
    color: var(--cso-gray);
    font-size: 12px;
    line-height: 1.8;
}

.cso-summary-login {
    margin-top: 14px;
    min-height: 48px;
}

.cso-order-form-card input[readonly] {
    background: #f8fafc !important;
    color: var(--cso-primary) !important;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .cso-services-grid,
    .cso-product-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cso-product-hero,
    .cso-order-layout {
        grid-template-columns: 1fr;
    }
    .cso-order-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .cso-product-detail {
        padding: 16px;
        border-radius: 18px;
    }
    .cso-services-grid,
    .cso-product-facts {
        grid-template-columns: 1fr;
    }
    .cso-product-topbar,
    .cso-product-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* اصلاحات نهایی برای لیست خدمات و جزئیات محصول */
.cso-service-card {
    transition: all 0.3s ease;
}

.cso-service-card:hover {
    cursor: pointer;
}

.cso-service-image-link,
.cso-service-info {
    display: block;
}

/* حذف استایل‌های قدیمی paypal-card */
.cso-paypal-card,
.cso-paypal-card-sm,
.cso-product-visual {
    display: none !important;
}

/* استایل باکس تصویر محصول */
.cso-product-image-box {
    max-height: 300px;
}

.cso-product-image-box img {
    max-height: 300px;
}

/* تنظیم فاصله‌ها */
.cso-order-card-head {
    display: flex;
    align-items: flex-start;
}

.cso-order-card-head > div {
    flex: 1;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
    .cso-order-layout {
        grid-template-columns: 1fr;
    }
    
    .cso-product-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .cso-product-facts {
        grid-template-columns: 1fr;
    }
    
    .cso-product-actions {
        grid-template-columns: 1fr;
    }
}

/* Modern Auth Styles - Minimal & Clean */
.cso-modern-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    padding: 20px;
    direction: rtl;
}

.cso-modern-auth-container {
    width: 100%;
    max-width: 440px;
}

.cso-modern-auth-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.cso-modern-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.cso-modern-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #2d3748;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.cso-modern-auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
}

.cso-modern-auth-header p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.cso-modern-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f7fafc;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.cso-modern-tab {
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cso-modern-tab.active {
    background: #ffffff;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cso-modern-tab-content {
    display: none;
}

.cso-modern-tab-content.active {
    display: block;
}

.cso-modern-step {
    display: none;
}

.cso-modern-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cso-modern-input-group {
    margin-bottom: 20px;
}

.cso-modern-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.cso-modern-input-wrapper {
    position: relative;
}

.cso-modern-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

.cso-modern-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.3s ease;
    background: #ffffff;
}

.cso-modern-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.cso-modern-input-wrapper input::placeholder {
    color: #cbd5e0;
}

.cso-modern-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cso-modern-btn-primary {
    background: #2d3748;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
}

.cso-modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.3);
    background: #1a202c;
}

.cso-modern-btn-primary:active {
    transform: translateY(0);
}

.cso-modern-btn-ghost {
    background: transparent;
    color: #718096;
    margin-top: 12px;
}

.cso-modern-btn-ghost:hover {
    background: #f7fafc;
    color: #2d3748;
}

.cso-modern-code-display {
    text-align: center;
    padding: 24px;
    background: #f7fafc;
    border-radius: 16px;
    margin-bottom: 24px;
}

.cso-modern-code-display svg {
    color: #2d3748;
    margin-bottom: 16px;
}

.cso-modern-code-display p {
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 16px;
    line-height: 1.6;
}

.cso-modern-code-display strong {
    color: #2d3748;
    font-weight: 700;
}

.cso-modern-code-box {
    background: #ffffff;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.cso-modern-code-box span {
    font-size: 24px;
    font-weight: 800;
    color: #2d3748;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.cso-modern-auth-footer {
    text-align: center;
    margin-top: 24px;
}

.cso-modern-auth-footer p {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.cso-modern-auth-footer a {
    color: #2d3748;
    text-decoration: underline;
    font-weight: 700;
}

.cso-modern-auth-footer a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 480px) {
    .cso-modern-auth-box {
        padding: 28px 24px;
        border-radius: 20px;
    }
    
    .cso-modern-auth-header h1 {
        font-size: 24px;
    }
    
    .cso-modern-auth-icon {
        width: 56px;
        height: 56px;
    }
}
