/* ==========================================================================
   SHOPIFY FUDUGO - GLOBAL STYLE SYSTEM
   Consolidated Design tokens and component styles
   ========================================================================== */

/* --- 1. GLOBAL BASE & RESET (globals.css) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    background: #0f172a;
    /* Consistent dark background */
}

#root {
    width: 100%;
    height: 100%;
}

.hide {
    display: none;
}

/* --- 2. COMMON COMPONENTS --- */

/* --- DataTable Component (DataTable.css) --- */
.datatable-wrapper {
    overflow: hidden;
    margin-top: 1rem;
}
.datatable-toolbar {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    max-width: 350px;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.filters-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #1a1a3e;
    color: #fff;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.page-size-selector select {
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.page-size-selector select option {
    background: #1a1a3e;
    color: #fff;
}

.table-container {
    overflow-x: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn.edit:hover {
    color: #667eea;
    border-color: #667eea;
}

.icon-btn.delete:hover {
    color: #f56565;
    border-color: #f56565;
}

.datatable-footer {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
    flex-wrap: wrap;
    gap: 1rem;
}

.datatable-footer .info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 38px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pagination-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Common Status Badges --- */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active,
.status-badge.paid,
.status-badge.delivered,
.status-badge.completed,
.status-badge.payment-paid,
.status-badge.order-delivered {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.inactive,
.status-badge.pending,
.status-badge.payment-pending,
.status-badge.order-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.cancelled,
.status-badge.failed,
.status-badge.payment-failed,
.status-badge.order-cancelled,
.status-badge.payment-refunded {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-badge.order-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-badge.order-shipped {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.status-badge.order-returned {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-badge.order-exchanged {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.order-rto,
.status-badge.rto {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

/* --- 3. PAGE SPECIFIC STYLES --- */

/* --- Category Page (categories.css) --- */
.category-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.category-icon {
    font-size: 18px;
}

/* --- Customers Page (customers.css, add-customer.css, edit-customer.css) --- */
.email-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

.form-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.customer-form,
.addresses-section {
    padding: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
}

.tab {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #fff;
}

.tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.address-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.address-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Enquiry Page (enquiry.css) --- */
.message-content {
    margin-bottom: 3rem;
}

.message-text {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    white-space: pre-wrap;
    font-style: italic;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem 4rem;
    margin-bottom: 4rem;
}

.detail-item label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

/* --- Orders Page (orders.css) --- */
/* --- Orders Page (orders-detail.css) --- */
.back-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-4px);
}

.order-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.order-title-group h1 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 28px;
    margin-bottom: 0.5rem;
}

.order-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.status-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    transition: all 0.2s;
}

.status-select:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
}

.status-select option {
    background: #1a1a3e;
    color: #fff;
    padding: 8px 12px;
}

.order-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
    align-items: self-start;
}

.detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.items-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.items-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.item-prod-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-name {
    font-weight: 600;
    color: #fff;
}

.item-sku {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.order-summary-box {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.summary-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.customer-basic {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cust-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.discount-value {
    color: #ef4444;
}

.address-box {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* --- Products Page (products.css) --- */
.product-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image-mini {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-count {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 500;
}

.inventory-count.low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.image-upload-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.image-upload-card {
    aspect-ratio: 1;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.image-upload-card:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-upload-card:hover .image-preview {
    transform: scale(1.08);
}

.primary-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px 8px 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.image-upload-card:hover .image-actions {
    opacity: 1;
}

.image-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.image-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: scale(1.1);
}

.image-btn.remove:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.hidden-input {
    display: none !important;
}

.add-image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
    width: 100%;
    height: 100%;
}

.image-upload-card:hover .add-image-content {
    color: #8b5cf6;
}

.add-image-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.image-upload-card:hover .add-image-icon {
    background: rgba(139, 92, 246, 0.1);
    transform: rotate(90deg);
}

.add-image-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.variant-upload-btn {
    cursor: pointer;
    width: 42px;
    height: 42px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px dashed rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    color: #fff;
}

.variant-upload-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
    transform: scale(1.05);
}

/* --- Pages Page (pages.css) --- */
.page-title-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.banner-upload-area {
    width: 100%;
    height: 150px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

/* --- Pricing Page (pricing.css) --- */
.pricing-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 4rem 2rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    margin-top: 3rem;
    gap: 3rem!important;
}

.pricing-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.highlight {
    border: 2px solid #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.popular-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #6366f1;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.check-icon {
    color: #10b981;
    font-weight: 700;
}

.cta-button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover:not(:disabled) {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment Modal Specifics */
.modal-content {
    max-width: 440px !important;
    background: #13132d !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 18px;
    padding: 1.5rem;
}
.order-summary { 
    display: flex; justify-content: space-between; align-items: center; 
    margin: 1.5rem; padding: 1.25rem; background: rgba(255, 255, 255, 0.05); 
    border-radius: 12px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.08); 
}
.summary-price { color: #6366f1; font-size: 1.25rem; }
.payment-methods { display: flex; gap: 0.75rem; padding: 0 1.5rem 1.5rem; }
.method-button { 
    flex: 1; padding: 0.85rem; border-radius: 10px; cursor: pointer; 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); 
    color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.method-button.active { 
    background: #6366f1; border-color: #6366f1; color: #fff; 
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}
.payment-form { padding: 0 1.5rem 1.5rem; }
.pay-button { 
    width: 100%; padding: 1.15rem; margin-top: 1.25rem; border-radius: 12px; 
    border: none; background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); 
    color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25); transition: all 0.3s;
}
.pay-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35); }
.pay-button:active:not(:disabled) { transform: scale(0.98); }
.pay-button:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- 4. FORM ELEMENTS & LAYOUTS --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    text-align: left;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
}

/* --- 5. THIRD PARTY OVERRIDES --- */

/* Quill Editor */
.ql-container {
    font-family: inherit !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.ql-toolbar {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.ql-snow.ql-toolbar button,
.ql-snow .ql-toolbar button {
    color: #fff !important;
}

.ql-snow .ql-stroke {
    stroke: #fff !important;
}

.ql-snow .ql-fill {
    fill: #fff !important;
}

.ql-snow .ql-picker {
    color: #fff !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-header {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 2rem;
}

.pricing-card,
.detail-card,
.profile-card {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Category Image Upload Styles */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.image-preview-box {
    width: 120px;
    height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-preview-box:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.upload-placeholder span {
    font-size: 24px;
}

.upload-placeholder p {
    font-size: 11px;
    text-align: center;
    margin: 0;
}

.remove-img-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s;
}
.remove-img-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}
/* Tabs CSS */
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    border-radius: 4px 4px 0px 0px;
    color: #ffffff;
}
.tab-btn:hover,
.tab-btn.active {
    border-bottom-color: #4f46e5;
    color: #6a6fd5;
    background: #f8f9fa;
    color: #0f0f23;
}
.tab-content {
    padding: 10px 0;
}

.radio-group {
  display: flex;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.radio-group input[type="radio"] { margin-right: 10px; }

/* --- Themes Management Page --- */
.themes-management-page .themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.themes-management-page .theme-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: white;
}

.themes-management-page .theme-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.themes-management-page .theme-card.active {
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.themes-management-page .theme-preview {
    height: 220px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.themes-management-page .theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.themes-management-page .theme-card:hover .theme-preview img {
    transform: scale(1.05);
}

.themes-management-page .no-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4b5563;
    font-size: 14px;
    background: #141414;
}

.themes-management-page .active-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #8b5cf6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    z-index: 2;
}

.themes-management-page .theme-info {
    padding: 1.5rem;
}

.themes-management-page .theme-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.themes-management-page .theme-identifier {
    font-size: 0.8rem;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.themes-management-page .theme-sections {
    margin-top: 1.25rem;
}

.themes-management-page .sections-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.themes-management-page .sections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.themes-management-page .section-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.themes-management-page .section-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.themes-management-page .theme-activate-btn {
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
}
.dashboard-secondary {
    max-width: 1400px;
    /* margin: 0 auto; */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Error Styling */
.error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.error-border {
    border-color: #ef4444 !important;
}

/* Themes Showcase Section */
.themes-section {
    padding: 120px 24px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto 0;
}

.theme-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.theme-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.theme-preview-box {
    aspect-ratio: 16/10;
    width: 100%;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.theme-card:hover .theme-image {
    transform: scale(1.05);
}

.theme-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.theme-card:hover .theme-overlay {
    opacity: 1;
}

.theme-info {
    padding: 24px;
}

.theme-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.theme-tags {
    display: flex;
    gap: 8px;
}

.theme-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #94a3b8;
}

.themes-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-text {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-text:hover {
    gap: 15px;
    color: #818cf8;
}

/* Skeleton Loader */
.skeleton .skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
/* ==== New Css ==== */
.p-15 {
    padding: 1.5rem;
}
.pb-0 {
  padding-bottom: 0px;
}
.mt-0 {
  margin-top: 0px!important;
}
.mb-0 {
    margin-bottom: 0px!important;
}
.mt-1 {
    margin-top: 10px;
}
.fs-btn,
.step-form .btn-primary {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.fs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.fs-btn.fl-1 {
    flex: 1;
}
.form-group {
    margin-bottom: 10px;
}
.dashboard-main {
    max-width: 100% !important;
}
.table-container {
    padding: 0;
}
.seo-form-container {
    background: transparent!important;
    border: 0!important;
    border-radius: 0!important;
}
.datatable-wrapper button.order-number {
    color: #000;
    border: 0px;
    padding: 3px;
}
.welcome-actions .btn-primary {
    text-decoration: none;
}
.favicon-upload-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.favicon-upload-actions .input-hint {
    text-align: center;
}
form.profile-form .form-row {
    margin-bottom: 0px;
}
.form-section.danger-zone {
    margin-top: 0px;
}
.dash-stats-grid,
.dash-breakdown-row,
.dash-recent-row {
    margin-bottom: 0px!important;
}
.all-tabs {
    margin: 0px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.admin-ct .card-header {
    flex-direction: column;
    align-items: flex-start;
}
.admin-ct .admin-form-section {
    margin-top: 1.5rem;
}
.admin-ct .action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)!important;
    color: white!important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4)!important;
    padding: 0.875rem 1.5rem!important;
    border: none;
    border-radius: 12px!important;
    font-size: 14px;
    font-weight: 600!important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-ct .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
}
.logo-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: rgb(241, 245, 249);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgb(203, 213, 225);
    overflow: hidden;
}
.logo-preview i {
    color: rgb(148, 163, 184);
    font-size: 24px;
}
.pr-cont .pricing-grid {
    gap: 14px !important;
}
/* ==== Sidebar Menu ==== */
.sidebar-nav-group.current {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.3);
    border-radius: 12px;
}
.sidebar-nav-group.current .sidebar-link {
    border-radius: 0px;
}
.sidebar-nav-group.current > .sidebar-link:first-of-type {
    border-radius: 12px 12px 0 0;
}
.sidebar-nav-group.current .sidebar-submenu .sidebar-link:last-child {
    border-radius: 0 0 12px 12px;
}
/* ==== onboarding ==== */
.step-header h2 {
    color: #212529 !important;
}
.onboarding-container .step-form {
    gap: 0.8rem;
}
.onboarding-container input, 
.onboarding-container select,
.onboarding-container textarea,
.onboarding-container label {
    color: #000 !important;
}
.onboarding-container input::placeholder, 
.onboarding-container textarea::placeholder {
    color: #000 !important;
}
.onboarding-footer {
    padding-bottom: 15px;
    text-align: center;
    color: rgb(148, 163, 184);
    font-size: 0.85rem;
}