/* 
 * Script Satış - Ana Stil Dosyası
 * Modern ve şık tasarım
 */

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --dark-light: #334155;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    --font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.75rem;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transition: var(--transition);
    overflow-y: auto;
    padding-top: 70px;
}

[dir="rtl"] .sidebar-menu {
    left: auto;
    right: -300px;
}

.sidebar-menu.active {
    left: 0;
}

[dir="rtl"] .sidebar-menu.active {
    left: auto;
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.sidebar-menu a:hover i {
    color: var(--primary-color);
}

.sidebar-section-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 0.05em;
}

/* Profile Dropdown */
.profile-area {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.profile-btn:hover {
    background: var(--gray-100);
}

.profile-btn .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}

[dir="rtl"] .profile-dropdown {
    right: auto;
    left: 0;
}

.profile-area:hover .profile-dropdown,
.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 1rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-header .name {
    font-weight: 600;
    color: var(--text-color);
}

.profile-dropdown-header .balance {
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 600;
}

.profile-dropdown ul {
    list-style: none;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.profile-dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.profile-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.profile-dropdown a:hover i {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-form {
    display: flex;
    background: white;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--gray-100);
}

.card-header h2, .card-header h3 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--gray-100);
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-card .image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-200);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

[dir="rtl"] .product-card .badge {
    left: auto;
    right: 1rem;
}

.product-card .content {
    padding: 1.25rem;
}

.product-card .category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.4;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .old-price {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

[dir="rtl"] .product-card .old-price {
    margin-left: 0;
    margin-right: 0.5rem;
}

.product-card .btn-buy {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.product-card .btn-buy:hover {
    background: var(--primary-dark);
}

/* Products Slider */
.products-slider {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.slider-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-container .product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

[dir="rtl"] .slider-nav.prev {
    left: auto;
    right: 10px;
}

[dir="rtl"] .slider-nav.next {
    right: auto;
    left: 10px;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    padding-left: 1rem;
}

[dir="rtl"] .section-title h2 {
    padding-left: 0;
    padding-right: 1rem;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
}

[dir="rtl"] .section-title h2::before {
    left: auto;
    right: 0;
}

.section-title a {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Product Page */
.product-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .product-page {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.product-info {
    position: sticky;
    top: 90px;
}

.purchase-box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.purchase-box-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.purchase-box-header h2 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.purchase-box-body {
    padding: 1.25rem;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.addon-item:hover {
    background: var(--gray-200);
}

.addon-item.selected {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary-color);
}

.addon-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
}

.addon-price {
    font-weight: 600;
    color: var(--primary-color);
}

.price-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.price-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0.5rem;
    border-top: 2px dashed var(--border-color);
    margin-top: 0.5rem;
}

/* Demo Box */
.demo-box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.demo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.demo-info {
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.demo-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.demo-info strong {
    color: var(--text-color);
}

/* Description & License */
.description-box, .license-box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.description-box h3, .license-box h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.license-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .license-info-grid {
        grid-template-columns: 1fr;
    }
}

.license-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.license-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.license-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.license-item .value {
    font-weight: 600;
    color: var(--text-color);
}

/* Coupon Box */
.coupon-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-box input {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Demo Mode Banner */
.demo-banner {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

[dir="rtl"] th, [dir="rtl"] td {
    text-align: right;
}

th {
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-color);
}

tr:hover {
    background: var(--gray-100);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

/* Footer */
.footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-section i {
    margin-right: 0.5rem;
    width: 20px;
}

[dir="rtl"] .footer-section i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    font-size: 0.875rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* User Pages */
.user-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .user-dashboard {
        grid-template-columns: 1fr;
    }
}

.user-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    height: fit-content;
}

.user-sidebar .user-info {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.user-sidebar .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.user-sidebar .name {
    font-weight: 600;
    font-size: 1.125rem;
}

.user-sidebar .balance {
    color: var(--success-color);
    font-weight: 600;
}

.user-sidebar nav ul {
    list-style: none;
}

.user-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-sidebar nav a:hover,
.user-sidebar nav a.active {
    background: var(--gray-100);
    color: var(--primary-color);
}

.user-sidebar nav a i {
    width: 20px;
    text-align: center;
}

.user-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

/* Balance Load Page */
.balance-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.balance-method {
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.balance-method:hover {
    border-color: var(--primary-color);
}

.balance-method.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.balance-method i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.balance-method h4 {
    font-weight: 600;
}

/* Admin Panel */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .logo h2 {
    font-size: 1.25rem;
    color: white;
}

.admin-sidebar nav ul {
    list-style: none;
    padding: 1rem 0;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar nav a i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-100);
}

[dir="rtl"] .admin-sidebar {
    left: auto;
    right: 0;
}

[dir="rtl"] .admin-main {
    margin-left: 0;
    margin-right: 260px;
}

.admin-header {
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-content {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .icon.blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.stat-card .icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card .icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-card .icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-card .info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .info p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Language & Currency Switcher */
.switchers {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.switcher {
    position: relative;
}

.switcher select {
    appearance: none;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
}

[dir="rtl"] .switcher select {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
}

.switcher::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.75rem;
    color: var(--gray-500);
}

[dir="rtl"] .switcher::after {
    right: auto;
    left: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: white;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .active {
    background: var(--primary-color);
    color: white;
}

/* Login & Register Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    opacity: 0.9;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--border-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Product Card Border */
.product-card .image-wrapper {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card:hover .image-wrapper {
    border-color: var(--primary-color);
}

/* Search Box Extended */
.search-box {
    max-width: 700px;
}

.search-form input {
    min-width: 0;
}

/* Footer Language/Currency Switcher */
.footer-switchers {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-switchers select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.footer-switchers select option {
    background: var(--dark-color);
    color: white;
}

/* Mobile License Box */
.mobile-license-box {
    display: none;
}

/* Admin Table Scroll */
.admin-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-content table {
    min-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    [dir="rtl"] .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    [dir="rtl"] .admin-main {
        margin-right: 0;
    }
    
    .product-page {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        position: static;
    }
    
    /* Mobile License Box - Show on mobile */
    .mobile-license-box {
        display: block;
        margin-top: 1rem;
    }
    
    .desktop-license-box {
        display: none;
    }
    
    /* Admin Tables Mobile */
    .admin-content .card-body {
        padding: 0.75rem;
    }
    
    .admin-content table th,
    .admin-content table td {
        padding: 0.5rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
    
    /* Balance Methods Mobile */
    .balance-methods {
        grid-template-columns: 1fr;
    }
    
    /* User Dashboard Mobile */
    .user-dashboard {
        grid-template-columns: 1fr;
    }
    
    .user-sidebar {
        margin-bottom: 1rem;
    }
    
    /* Search Box Mobile */
    .search-box {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .search-form {
        flex-direction: row;
    }
    
    .search-form input {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .search-form button {
        padding: 0.75rem 1.25rem;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card .icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-card .info h3 {
        font-size: 1.25rem;
    }
    
    /* Form Groups Mobile */
    .d-grid[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    .d-grid[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-switchers {
        justify-content: center;
    }
}

/* ===========================================
   ORDERS PAGE - Mobile Responsive
   =========================================== */

/* Desktop view - hide mobile cards */
.orders-mobile {
    display: none;
}

.orders-desktop {
    display: block;
}

/* Mobile Card Styles */
.order-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.order-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--border-color);
}

.order-product-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.order-product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-400);
}

.order-product-info {
    flex: 1;
    min-width: 0;
}

.order-product-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-product-name:hover {
    color: var(--primary-color);
}

.order-card-body {
    padding: 1rem;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.order-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-label i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.order-value {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Mobile - show cards, hide table */
@media (max-width: 768px) {
    .orders-mobile {
        display: block;
    }
    
    .orders-desktop {
        display: none;
    }
}

/* ===========================================
   BALANCE PAGE - Mobile Responsive
   =========================================== */

.balance-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.balance-method {
    flex: 1;
    min-width: 140px;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.balance-method:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.balance-method.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.balance-method i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.balance-method h4 {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 576px) {
    .balance-methods {
        flex-direction: column;
    }
    
    .balance-method {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .balance-method i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    /* User Dashboard Mobile */
    .user-dashboard {
        gap: 1rem;
    }
    
    .user-sidebar {
        padding: 1rem;
    }
    
    .user-sidebar .user-info {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .user-sidebar .avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .user-content {
        padding: 0;
    }
    
    .user-content h2 {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    .user-content .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Price Summary Mobile */
    .price-summary {
        padding: 1rem;
    }
    
    .price-summary .price-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ===========================================
   BALANCE PAGE - Extra Styles
   =========================================== */

.balance-display {
    padding: 2rem 1rem;
}

.balance-amount {
    font-size: 2.5rem;
    color: var(--success-color);
    font-weight: 700;
    margin: 0;
}

.balance-method-single {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.balance-method-single i {
    font-size: 1.5rem;
}

.balance-form .form-control-lg {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

/* History Mobile/Desktop Toggle */
.history-mobile {
    display: none;
}

.history-desktop {
    display: block;
}

/* History Card Styles */
.history-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.history-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .history-mobile {
        display: block;
    }
    
    .history-desktop {
        display: none;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .balance-display {
        padding: 1.5rem 1rem;
    }
    
    .balance-method-single {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .balance-method-single i {
        font-size: 1.25rem;
    }
    
    /* User Dashboard Mobile Improvements */
    .user-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .user-sidebar {
        border-radius: 0;
        margin: 0 -1rem;
        padding: 1rem;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .user-sidebar .user-info {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .user-sidebar .avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .user-sidebar .name {
        flex: 1;
        margin-left: 0.75rem;
        font-size: 1rem;
    }
    
    .user-sidebar .balance {
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    .user-sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .user-sidebar nav a {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        justify-content: center;
    }
    
    .user-content {
        border-radius: 0;
        margin: 0 -1rem;
        padding: 1rem;
        box-shadow: none;
    }
    
    .user-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .user-content .card {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .user-content .card-header {
        padding: 1rem;
    }
    
    .user-content .card-header h3 {
        font-size: 1rem;
    }
    
    .user-content .card-body {
        padding: 1rem;
    }
    
    /* Form Mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-control-lg {
        font-size: 1.125rem;
        padding: 0.875rem;
    }
    
    /* Order Cards Mobile */
    .order-card {
        margin-bottom: 1rem;
        border-radius: var(--radius);
    }
    
    .order-card-header {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .order-product-image {
        width: 50px;
        height: 40px;
    }
    
    .order-card-body {
        padding: 0.875rem;
    }
    
    .order-detail-row {
        padding: 0.625rem 0;
        flex-wrap: wrap;
    }
    
    .order-label {
        font-size: 0.8125rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .order-value {
        width: 100%;
        text-align: left;
        max-width: 100%;
        font-size: 0.875rem;
    }
    
    /* History Cards Mobile */
    .history-card {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .history-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .history-type {
        font-size: 0.875rem;
    }
    
    .history-amount {
        font-size: 1rem;
    }
    
    .history-card-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8125rem;
    }
    
    /* Balance Form Mobile */
    .balance-form {
        padding: 0;
    }
    
    .balance-form .form-control-lg {
        font-size: 1.125rem;
    }
    
    /* Price Summary Mobile */
    .price-summary {
        padding: 1rem;
        background: var(--gray-100);
        border-radius: var(--radius);
        margin: 1rem 0;
    }
    
    .price-summary .price-row {
        font-size: 0.9375rem;
        padding: 0.5rem 0;
    }
    
    .price-summary .price-row.total {
        font-size: 1.125rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        border-top: 2px solid var(--border-color);
    }
    
    /* Container Mobile */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Table Responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.625rem 0.5rem;
        white-space: nowrap;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .user-sidebar nav a {
        min-width: 100%;
        font-size: 0.8125rem;
    }
    
    .balance-amount {
        font-size: 1.75rem;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-product-image {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }
    
    .order-product-image.no-image {
        height: 120px;
    }
    
    .history-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-amount {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ===========================================
   ADMIN PANEL - Mobile Responsive Tables
   =========================================== */

/* Admin Table - Desktop: Show all columns (PC'de tüm sütunlar görünsün) */
.admin-table .detail-col,
.admin-table .action-col {
    display: table-cell;
}

/* Admin Table - Mobile: Hide detail columns, show only 2 main columns */
@media (max-width: 768px) {
    /* Desktop'ta normal tablo görünümü korunur, sadece mobilde değişir */
    .admin-table {
        display: block;
        width: 100%;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tbody {
        display: block;
        width: 100%;
    }
    
    .admin-table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }
    
    .admin-table tbody tr.expanded {
        box-shadow: var(--shadow-md);
    }
    
    /* İlk 2 sütun (ana sütunlar) her zaman görünür */
    .admin-table tbody td:first-child,
    .admin-table tbody td:nth-child(2) {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border: none;
        text-align: left !important;
        font-weight: 500;
    }
    
    /* Detail columns - sadece expanded olduğunda görünür */
    .admin-table tbody tr:not(.expanded) .detail-col {
        display: none;
    }
    
    .admin-table tbody tr.expanded .detail-col {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border: none;
        text-align: left !important;
        border-top: 1px solid var(--gray-100);
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }
    
    /* Detail column labels */
    .admin-table tbody tr.expanded .detail-col[data-label]:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-muted);
        display: inline;
        margin-right: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Action column always visible */
    .admin-table tbody .action-col {
        display: block;
        text-align: center;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }
    
    .toggle-detail {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .detail-actions {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .detail-actions .btn {
        width: 100%;
    }
    
    /* Settings page mobile - tüm form elemanları alt alta */
    .admin-content .d-grid[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    .admin-content .d-grid[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    .admin-content .card-body {
        padding: 1rem;
    }
    
    .admin-content .form-group {
        margin-bottom: 1rem;
    }
    
    /* Orders page - ürün görseli mobilde küçült */
    .order-product-image {
        width: 50px !important;
        height: 40px !important;
        flex-shrink: 0;
    }
    
    .order-product-image.no-image {
        width: 50px !important;
        height: 40px !important;
    }
}

