:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --color-primary: #2563EB;
    --color-text: #FFFFFF;
    --color-text-secondary: #A0AEC0;
    --color-orange: #F97316;
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #9333EA 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: 0.3s ease;
    --font-family: system-ui, sans-serif;
    --top-bar-height: 60px;
    --bottom-nav-height: 70px;
    --sidebar-width: 280px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
}

[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--color-text);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text);
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:active,
[data-theme="light"] .btn-primary:focus {
    color: white !important;
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-secondary:active,
[data-theme="light"] .btn-secondary:focus {
    color: white !important;
}

[data-theme="light"] .category-btn:hover,
[data-theme="light"] .category-btn.active {
    color: white !important;
}

[data-theme="light"] .amount-btn:hover,
[data-theme="light"] .amount-btn.selected {
    color: white !important;
}

[data-theme="light"] .lang-btn:hover,
[data-theme="light"] .lang-btn.active {
    color: white !important;
}

.btn-danger {
    background: #EF4444;
    color: var(--color-text);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
}

.theme-toggle i {
    color: var(--color-text);
}

.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: var(--top-bar-height);
    position: fixed;
    top: 0;
    inset-inline-start: var(--sidebar-width);
    inset-inline-end: 0;
    z-index: 1000;
}

body.login-page .top-bar {
    display: none;
}

.top-bar-container {
    height: 100%;
    padding-inline: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Desktop logo positioning */
.top-bar-left .desktop-logo {
    margin-right: auto;
}

[dir="rtl"] .top-bar-left .desktop-logo {
    margin-right: 0;
    margin-left: auto;
}

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.lang-select {
    background: var(--bg-primary);
    color: var(--color-text);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.profile-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.profile-icon:hover {
    transform: scale(1.1);
}

.profile-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    max-width: 250px;
    z-index: 1001;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.dropdown-header {
    padding: var(--space-sm);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-email {
    color: var(--color-text-secondary);
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--space-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-primary);
    color: var(--color-primary);
}

.dropdown-item.logout-dropdown {
    color: #DC2626 !important;
}

.dropdown-item.logout-dropdown .dropdown-icon {
    color: #DC2626 !important;
}

.dropdown-item.logout-dropdown:hover {
    background: #EF4444 !important;
    color: white !important;
}

.dropdown-item.logout-dropdown:hover .dropdown-icon {
    color: white !important;
}

.theme-toggle-item {
    padding-right: var(--space-sm) !important;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.theme-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 24px;
}

.theme-switch-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.theme-switch-input:checked + .theme-switch-label {
    background: var(--gradient-primary);
}

.theme-switch-input:checked + .theme-switch-label:before {
    transform: translateX(20px);
}

[data-theme="dark"] .theme-switch-label {
    background-color: #555;
}

.dropdown-icon {
    font-size: 16px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: none;
}

.mobile-menu-btn:hover {
    background: var(--bg-primary);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.drawer-content {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-inline-end: 1px solid var(--border-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
[dir="rtl"] .top-bar-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .top-bar-left {
    order: 3;
}

[dir="rtl"] .top-bar-right {
    order: 1;
}

[dir="rtl"] .top-bar-center {
    order: 2;
}

}

[dir="rtl"] .drawer-content {
    transform: translateX(100%);
}

.mobile-drawer:not(.hidden) .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 18px;
}

.close-drawer {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-drawer:hover {
    background: rgba(255, 255, 255, 0.2);
}

.drawer-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.drawer-link:hover,
.drawer-link.active {
    background: var(--bg-primary);
    color: var(--color-primary);
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    border-radius: 8px;
}

.drawer-link#drawer-logout-btn {
    color: #DC2626 !important;
}

.drawer-link#drawer-logout-btn .drawer-icon {
    color: #DC2626 !important;
}

.drawer-link#drawer-logout-btn:hover {
    background: #EF4444 !important;
    color: white !important;
}

.drawer-link#drawer-logout-btn:hover .drawer-icon {
    color: white !important;
}

.drawer-icon {
    font-size: 20px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.1);
}

.bottom-nav-icon {
    font-size: 20px;
}

.bottom-nav-text {
    font-size: 12px;
    font-weight: 500;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: none !important;
}

.logo:hover {
    transform: none !important;
    color: inherit !important;
}

.logo * {
    transition: none !important;
}

.logo:hover * {
    transform: none !important;
    color: inherit !important;
}

.logo-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.logo-text {
    color: var(--color-text);
    font-weight: 600;
}

.sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-inline-end: 1px solid var(--border-color);
    overflow-y: auto;
}

.sidebar-logo {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 18px;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-sm);
}

.sidebar-logo .logo-icon {
    font-size: 18px;
    font-weight: 800;
}

.sidebar-logo .logo-text {
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--space-md) var(--space-sm) 20px var(--space-sm);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--space-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-link:hover{
    background: var(--bg-primary);
    color: var(--color-primary);
}

.sidebar-link.active {
    background: var(--bg-primary);
    color: var(--color-primary);
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    border-radius: 8px;
}

.sidebar-link#logout-btn {
    color: #DC2626 !important;
}

.sidebar-link#logout-btn .sidebar-icon {
    color: #DC2626 !important;
}

.sidebar-link#logout-btn:hover {
    background: #EF4444 !important;
    color: white !important;
}

.sidebar-link#logout-btn:hover .sidebar-icon {
    color: white !important;
}

/* Social Media Section Styles */
.social-media-section {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.social-media-section h3 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 18px;
}

.social-media-section p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 14px;
}

.social-service-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-service-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-service-form .input-group label {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.social-service-form .input-group input,
.social-service-form .input-group select {
    padding: 12px var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: var(--transition);
}

.social-service-form .quantity-input {
    width: 120px;
    text-align: center;
}

.social-service-form .input-group input:focus,
.social-service-form .input-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-secondary);
}

.social-service-form .input-group input::placeholder {
    color: var(--color-text-secondary);
}

#main-social-buy-btn {
    margin-top: var(--space-sm);
    align-self: flex-start;
    min-width: 120px;
}

.sidebar-icon {
    font-size: 20px;
}

.wallet-balance {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

.main-content {
    margin-inline-start: var(--sidebar-width);
    margin-top: var(--top-bar-height);
    padding: var(--space-md);
    min-height: calc(100vh - var(--top-bar-height));
}

.main-content.centered {
    margin-inline-start: 0 !important;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 20px;
}

.category-nav {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px var(--space-lg);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.category-btn.active,
.category-btn:hover {
    background: var(--gradient-primary);
    color: var(--color-text);
    border-color: transparent;
}

.category-btn.popular::after {
    content: 'Popular';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-orange);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.service-card {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 18px;
}

.service-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 14px;
}

.service-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: var(--space-sm);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clickable-logo {
    cursor: pointer;
}

.auth-logo .logo {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.auth-title {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.input-group input,
.input-group select {
    padding: 12px var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.input-group input::placeholder {
    color: var(--color-text-secondary);
}

.auth-switch {
    text-align: center;
    margin-top: var(--space-sm);
}

.auth-switch p {
    color: var(--color-text-secondary);
}

.page-header {
    margin-bottom: var(--space-lg);
}

.page-header h1 {
    color: var(--color-text);
    font-size: 32px;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.search-filter-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
}

.filter-select {
    padding: 12px var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
    min-width: 150px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.balance-card {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.balance-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.balance-actions button {
    flex: 1;
    min-width: 120px;
}

.balance-amount {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--space-sm) 0;
}

.transactions-section h2 {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}
.table-container {
    width: 100%;
    overflow-x: auto;  /* يسمح بالسكرول يمين/شمال */
    -webkit-overflow-scrolling: touch; /* سكرول سلس على الموبايل */
}

.table-container table {
    width: 100%;
    min-width: 800px; /* حط أقل عرض للجدول عشان يظهر السكرول */
    border-collapse: collapse;
    white-space: nowrap; /* يمنع نزول الكلام لسطر جديد */
}
.transactions-table,
.orders-table, .users-table{
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-primary);
    font-weight: bold;
    color: var(--color-text);
}

.transactions-table .table-header {
    grid-template-columns: repeat(6, 1fr);
}

.transactions-table.user .table-header {
    grid-template-columns: repeat(4, 1fr) !important;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-top: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.table-row:hover {
    background: rgba(37, 99, 235, 0.1);
}

.transactions-table .table-row {
    grid-template-columns: repeat(6, 1fr);
}

.transactions-table.user .table-row {
    grid-template-columns: repeat(4, 1fr) !important;
}

.amount-positive {
    color: #10B981;
}

.amount-negative {
    color: #EF4444;
}

.status-completed,
.status-delivered {
    color: #10B981;
}

.status-pending {
    color: #F59E0B;
}

.status-cancelled {
    color: #EF4444;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-secondary);
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
}

.modal-header h3 {
    color: var(--color-text);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--space-md);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.payment-method {
    padding: var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.1);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.amount-btn {
    padding: var(--space-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.selected {
    background: var(--gradient-primary);
    color: var(--color-text);
    border-color: transparent;
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-md);
}

.purchase-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--color-text);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 80px;
    text-align: center;
    padding: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--color-text);
}

.total-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    padding: var(--space-sm);
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    margin: var(--space-sm) 0;
}

.notification {
    position: fixed;
    top: 50px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

[dir="rtl"] .notification {
    transform: translateX(-100%);
}

.notification-success {
    background: #10B981;
    color: white;
}

.notification-error {
    background: #EF4444;
    color: white;
}

.notification-info {
    background: var(--color-primary);
    color: white;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-md);
}

.settings-card {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.settings-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.language-options {
    display: flex;
    gap: var(--space-sm);
}

.lang-btn {
    padding: 12px var(--space-md);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gradient-primary);
    color: var(--color-text);
    border-color: transparent;
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.setting-option {
    display: flex;
    align-items: center;
}

.setting-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.setting-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.service-item {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.service-info h3 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 18px;
}

.service-status,
.service-date {
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    font-size: 14px;
}

.service-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: var(--space-sm);
}

.service-messages {
    margin-top: var(--space-sm);
}

.service-messages h4 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 16px;
}

.message-box {
    background: var(--bg-primary);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.message-box:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
}

.message-box p {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.message-box p:last-child {
    margin-bottom: 0;
}

.number-select {
    margin-bottom: var(--space-sm);
}

.number-select select {
    width: 100%;
    padding: 12px var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
}

.quantity-note {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

.social-service-select {
    width: 100%;
    padding: 12px var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
}

.social-service-select optgroup {
    font-weight: bold;
    color: var(--color-primary);
}

.social-service-select option {
    padding: 8px;
    color: var(--color-text);
}
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.card-select-row {
    display: flex;
    gap: var(--space-sm);
}

.card-select-row .input-group {
    flex: 1;
}

.card-select-row select {
    width: 100%;
    padding: 12px var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
}




/* new style */

/* Sidebar Footer Links */
.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-sm) var(--space-sm);
}

.sidebar-footer-link {
    font-size: 0.85rem;
    opacity: 0.8;
    padding: 8px var(--space-sm);
}

.sidebar-footer-link .sidebar-text {
    font-size: 0.85rem;
}

.sidebar-footer-link .sidebar-icon {
    font-size: 16px;
}

.sidebar-footer-link:hover {
    opacity: 1;
}

/* Mobile Drawer Footer Links */
.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-sm) 20px;
}

.drawer-footer-link {
    font-size: 0.85rem;
    opacity: 0.8;
    padding: 8px 20px;
}

.drawer-footer-link .drawer-icon {
    font-size: 16px;
}

.drawer-footer-link:hover {
    opacity: 1;
}

/* Content Pages Styles */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.content-section {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.content-section h3 {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin: var(--space-sm) 0 8px 0;
}

.content-section p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.content-section ul {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.last-updated {
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.benefits-list i {
    color: var(--color-primary);
    font-size: 16px;
}

.contact-info {
    background: var(--bg-primary);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.contact-info-card,
.contact-form-card {
    background: var(--bg-secondary);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before,
.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.contact-info-card h2,
.contact-form-card h2 {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-details h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-details small {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-form textarea {
    padding: 12px var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: var(--transition);
    resize: vertical;
    font-family: inherit;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.contact-form textarea::placeholder {
    color: var(--color-text-secondary);
}

/* FAQ Section */
.faq-section {
    margin-top: var(--space-lg);
}

.faq-section h2 {
    color: var(--color-text);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Features Grid for About Page */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.feature-item {
    text-align: center;
    padding: var(--space-sm);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.feature-icon i {
    font-size: 24px;
    color: var(--color-primary);
}

.feature-item h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}
.trustpilot-widget.mobile{
    display:none !important;
}