/* ══════════════════════════════════════════════════════════════
   Injaz Software Marketplace - CSS Styles
   Matches Aether theme design system
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --mp-primary: #2563eb;
    --mp-primary-dark: #1d4ed8;
    --mp-primary-light: #3b82f6;
    --mp-success: #10b981;
    --mp-warning: #f59e0b;
    --mp-danger: #ef4444;
    --mp-info: #06b6d4;
    --mp-dark: #0f172a;
    --mp-text: #334155;
    --mp-text-muted: #64748b;
    --mp-text-light: #94a3b8;
    --mp-bg: #f8fafc;
    --mp-bg-card: #ffffff;
    --mp-border: #e2e8f0;
    --mp-border-light: #f1f5f9;
    --mp-radius: 12px;
    --mp-radius-sm: 8px;
    --mp-radius-lg: 16px;
    --mp-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --mp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --mp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --mp-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --mp-transition: all 0.2s ease;
    --mp-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mp-font-ar: 'Cairo', 'Inter', sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
.mp-wrapper {
    font-family: var(--mp-font);
    color: var(--mp-text);
    line-height: 1.6;
}

[dir="rtl"] .mp-wrapper,
.aether-rtl .mp-wrapper {
    font-family: var(--mp-font-ar);
}

.mp-wrapper a {
    color: var(--mp-primary);
    text-decoration: none;
    transition: var(--mp-transition);
}

.mp-wrapper a:hover {
    color: var(--mp-primary-dark);
}

/* ── Hero Section ─────────────────────────────────────────── */
.mp-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e3a5f 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    border-radius: var(--mp-radius-lg);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.mp-hero::before {
    content: '';
    position: absolute;
    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");
    opacity: 0.5;
}

.mp-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.mp-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.mp-hero-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.mp-hero-search input {
    width: 100%;
    padding: 16px 60px 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
    backdrop-filter: blur(10px);
    transition: var(--mp-transition);
}

.mp-hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mp-hero-search input:focus {
    border-color: var(--mp-primary-light);
    background: rgba(255, 255, 255, 0.15);
}

.mp-hero-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    width: 48px;
    border: none;
    border-radius: 50%;
    background: var(--mp-primary);
    color: #fff;
    cursor: pointer;
    transition: var(--mp-transition);
}

[dir="rtl"] .mp-hero-search button {
    right: auto;
    left: 6px;
}

.mp-hero-search button:hover {
    background: var(--mp-primary-dark);
    transform: scale(1.05);
}

/* ── Section Headers ──────────────────────────────────────── */
.mp-section {
    margin-bottom: 48px;
}

.mp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mp-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-dark);
    margin: 0;
}

.mp-section-header .mp-view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--mp-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-section-header .mp-view-all:hover {
    gap: 10px;
}

/* ── Categories Grid ──────────────────────────────────────── */
.mp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.mp-category-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--mp-transition);
    cursor: pointer;
    display: block;
    color: var(--mp-text);
}

.mp-category-card:hover {
    border-color: var(--mp-primary);
    box-shadow: var(--mp-shadow-md);
    transform: translateY(-2px);
    color: var(--mp-primary);
}

.mp-category-card i {
    font-size: 28px;
    color: var(--mp-primary);
    margin-bottom: 12px;
    display: block;
}

.mp-category-card .mp-cat-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.mp-category-card .mp-cat-count {
    font-size: 12px;
    color: var(--mp-text-muted);
}

/* ── Product Card ─────────────────────────────────────────── */
.mp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.mp-product-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    transition: var(--mp-transition);
    display: flex;
    flex-direction: column;
}

.mp-product-card:hover {
    box-shadow: var(--mp-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.mp-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--mp-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mp-product-card:hover .mp-product-img img {
    transform: scale(1.05);
}

.mp-product-img .mp-no-image {
    font-size: 48px;
    color: var(--mp-text-light);
}

.mp-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

[dir="rtl"] .mp-product-badge {
    left: auto;
    right: 12px;
}

.mp-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mp-badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.mp-badge-type {
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.mp-badge-new {
    background: var(--mp-success);
    color: #fff;
}

.mp-product-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mp-product-category {
    font-size: 12px;
    color: var(--mp-primary);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--mp-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-product-name a {
    color: inherit;
}

.mp-product-name a:hover {
    color: var(--mp-primary);
}

.mp-product-desc {
    font-size: 13px;
    color: var(--mp-text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.mp-product-seller {
    font-size: 12px;
    color: var(--mp-text-muted);
    margin-bottom: 12px;
}

.mp-product-seller i {
    margin-right: 4px;
}

[dir="rtl"] .mp-product-seller i {
    margin-right: 0;
    margin-left: 4px;
}

.mp-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--mp-border-light);
}

.mp-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mp-dark);
}

.mp-product-price .mp-price-currency {
    font-size: 13px;
    font-weight: 500;
    color: var(--mp-text-muted);
}

.mp-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-stars {
    display: inline-flex;
    gap: 1px;
}

.mp-stars i {
    font-size: 12px;
    color: #fbbf24;
}

.mp-stars i.empty {
    color: #e2e8f0;
}

.mp-rating-num {
    font-size: 12px;
    color: var(--mp-text-muted);
    margin-left: 4px;
}

[dir="rtl"] .mp-rating-num {
    margin-left: 0;
    margin-right: 4px;
}

/* ── Product Detail Page ──────────────────────────────────── */
.mp-product-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-bottom: 48px;
}

.mp-gallery {
    border-radius: var(--mp-radius);
    overflow: hidden;
}

.mp-gallery-main {
    width: 100%;
    height: 400px;
    background: var(--mp-border-light);
    border-radius: var(--mp-radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.mp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.mp-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.mp-gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--mp-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--mp-transition);
}

.mp-gallery-thumb.active,
.mp-gallery-thumb:hover {
    border-color: var(--mp-primary);
}

.mp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-product-info {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 28px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.mp-product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-dark);
    margin-bottom: 8px;
}

.mp-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mp-border-light);
}

.mp-meta-item {
    font-size: 13px;
    color: var(--mp-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-meta-item i {
    color: var(--mp-primary);
}

.mp-product-price-box {
    background: var(--mp-bg);
    border-radius: var(--mp-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.mp-product-price-box .mp-big-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mp-dark);
}

.mp-product-price-box .mp-price-note {
    font-size: 13px;
    color: var(--mp-text-muted);
    margin-top: 4px;
}

.mp-buy-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--mp-primary);
    color: #fff;
    border: none;
    border-radius: var(--mp-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    text-align: center;
    margin-bottom: 12px;
}

.mp-buy-btn:hover {
    background: var(--mp-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.mp-demo-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--mp-primary);
    border: 2px solid var(--mp-primary);
    border-radius: var(--mp-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    text-align: center;
}

.mp-demo-btn:hover {
    background: var(--mp-primary);
    color: #fff;
}

.mp-compare-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    color: var(--mp-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--mp-transition);
    margin-top: 8px;
}

.mp-compare-btn:hover {
    color: var(--mp-primary);
}

/* ── Seller Card ──────────────────────────────────────────── */
.mp-seller-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--mp-bg);
    border-radius: var(--mp-radius-sm);
    margin-bottom: 20px;
}

.mp-seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.mp-seller-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-dark);
    margin: 0 0 2px;
}

.mp-seller-info p {
    font-size: 12px;
    color: var(--mp-text-muted);
    margin: 0;
}

/* ── Hosting Plans ────────────────────────────────────────── */
.mp-hosting-plans {
    margin-bottom: 20px;
}

.mp-hosting-plans h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-dark);
    margin-bottom: 12px;
}

.mp-hosting-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--mp-transition);
}

.mp-hosting-option:hover,
.mp-hosting-option.selected {
    border-color: var(--mp-primary);
    background: rgba(37, 99, 235, 0.03);
}

.mp-hosting-option.recommended {
    border-color: var(--mp-success);
    background: rgba(16, 185, 129, 0.03);
}

.mp-hosting-option input[type="radio"] {
    accent-color: var(--mp-primary);
}

.mp-hosting-option .mp-plan-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.mp-hosting-option .mp-plan-price {
    font-weight: 700;
    color: var(--mp-primary);
}

.mp-hosting-option .mp-recommended-badge {
    font-size: 10px;
    background: var(--mp-success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* ── Reviews Section ──────────────────────────────────────── */
.mp-reviews-section {
    margin-top: 48px;
}

.mp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    margin-bottom: 24px;
}

.mp-reviews-avg {
    text-align: center;
    min-width: 120px;
}

.mp-reviews-avg .mp-big-rating {
    font-size: 3rem;
    font-weight: 800;
    color: var(--mp-dark);
    line-height: 1;
}

.mp-reviews-avg .mp-total-reviews {
    font-size: 13px;
    color: var(--mp-text-muted);
    margin-top: 4px;
}

.mp-reviews-breakdown {
    flex: 1;
}

.mp-rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mp-rating-bar .mp-bar-label {
    font-size: 13px;
    font-weight: 500;
    width: 20px;
    text-align: center;
}

.mp-rating-bar .mp-bar-track {
    flex: 1;
    height: 8px;
    background: var(--mp-border-light);
    border-radius: 4px;
    overflow: hidden;
}

.mp-rating-bar .mp-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mp-rating-bar .mp-bar-count {
    font-size: 12px;
    color: var(--mp-text-muted);
    width: 30px;
    text-align: right;
}

.mp-review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--mp-border-light);
}

.mp-review-item:last-child {
    border-bottom: none;
}

.mp-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mp-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mp-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--mp-text-muted);
}

.mp-review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--mp-dark);
}

.mp-review-date {
    font-size: 12px;
    color: var(--mp-text-light);
    margin-left: auto;
}

[dir="rtl"] .mp-review-date {
    margin-left: 0;
    margin-right: auto;
}

.mp-review-verified {
    font-size: 11px;
    color: var(--mp-success);
    font-weight: 500;
}

.mp-review-body h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.mp-review-body p {
    font-size: 14px;
    color: var(--mp-text);
    line-height: 1.6;
}

/* ── Review Form ──────────────────────────────────────────── */
.mp-review-form {
    background: var(--mp-bg);
    border-radius: var(--mp-radius);
    padding: 24px;
    margin-top: 24px;
}

.mp-review-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mp-star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin-bottom: 16px;
}

.mp-star-rating input {
    display: none;
}

.mp-star-rating label {
    font-size: 24px;
    color: var(--mp-border);
    cursor: pointer;
    transition: color 0.15s;
}

.mp-star-rating input:checked ~ label,
.mp-star-rating label:hover,
.mp-star-rating label:hover ~ label {
    color: #fbbf24;
}

/* ── Search & Filters ─────────────────────────────────────── */
.mp-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mp-search-input {
    flex: 1;
    position: relative;
}

.mp-search-input input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    font-size: 15px;
    outline: none;
    transition: var(--mp-transition);
}

.mp-search-input input:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mp-search-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mp-text-light);
}

[dir="rtl"] .mp-search-input i {
    left: auto;
    right: 16px;
}

[dir="rtl"] .mp-search-input input {
    padding: 12px 44px 12px 16px;
}

.mp-filters-sidebar {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 20px;
}

.mp-filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mp-border-light);
}

.mp-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mp-filter-group h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-dark);
    margin-bottom: 12px;
}

.mp-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--mp-text);
    cursor: pointer;
}

.mp-filter-option input {
    accent-color: var(--mp-primary);
}

/* ── Compare Table ────────────────────────────────────────── */
.mp-compare-table {
    width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    background: var(--mp-bg-card);
}

.mp-compare-table th,
.mp-compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mp-border-light);
    font-size: 14px;
    vertical-align: middle;
}

.mp-compare-table th {
    background: var(--mp-bg);
    font-weight: 600;
    color: var(--mp-dark);
    width: 160px;
    text-align: left;
}

[dir="rtl"] .mp-compare-table th {
    text-align: right;
}

.mp-compare-table td {
    text-align: center;
}

.mp-compare-table .mp-compare-header td {
    padding: 20px;
    vertical-align: top;
}

.mp-compare-table .mp-compare-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 8px;
}

.mp-compare-table .mp-compare-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--mp-dark);
}

/* ── Seller Dashboard ─────────────────────────────────────── */
.mp-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.mp-dash-stat {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 20px;
    text-align: center;
}

.mp-dash-stat .mp-dash-icon {
    font-size: 24px;
    color: var(--mp-primary);
    margin-bottom: 8px;
}

.mp-dash-stat .mp-dash-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mp-dark);
}

.mp-dash-stat .mp-dash-label {
    font-size: 13px;
    color: var(--mp-text-muted);
    margin-top: 2px;
}

/* ── Coupon Banners ───────────────────────────────────────── */
.mp-coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.mp-coupon-card {
    background: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-primary-dark) 100%);
    border-radius: var(--mp-radius);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mp-coupon-card::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mp-coupon-code {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.mp-coupon-value {
    font-size: 14px;
    opacity: 0.9;
}

/* ── Pagination ───────────────────────────────────────────── */
.mp-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}

.mp-pagination a,
.mp-pagination span {
    padding: 8px 14px;
    border-radius: var(--mp-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--mp-text);
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    transition: var(--mp-transition);
}

.mp-pagination a:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary);
}

.mp-pagination .active {
    background: var(--mp-primary);
    color: #fff;
    border-color: var(--mp-primary);
}

/* ── Forms ────────────────────────────────────────────────── */
.mp-form-group {
    margin-bottom: 20px;
}

.mp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-dark);
    margin-bottom: 6px;
}

.mp-form-group .mp-form-hint {
    font-size: 12px;
    color: var(--mp-text-muted);
    margin-top: 4px;
}

.mp-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--mp-transition);
    background: var(--mp-bg-card);
}

.mp-form-control:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.mp-form-control {
    min-height: 120px;
    resize: vertical;
}

select.mp-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

[dir="rtl"] select.mp-form-control {
    background-position: left 12px center;
    padding-right: 14px;
    padding-left: 36px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--mp-radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--mp-transition);
    text-decoration: none;
}

.mp-btn-primary,
.mp-wrapper a.mp-btn-primary {
    background: var(--mp-primary);
    color: #fff;
}

.mp-btn-primary:hover,
.mp-wrapper a.mp-btn-primary:hover {
    background: var(--mp-primary-dark);
    color: #fff;
}

.mp-btn-outline {
    background: transparent;
    color: var(--mp-primary);
    border: 2px solid var(--mp-primary);
}

.mp-btn-outline:hover {
    background: var(--mp-primary);
    color: #fff;
}

.mp-btn-success {
    background: var(--mp-success);
    color: #fff;
}

.mp-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ── Tables ───────────────────────────────────────────────── */
.mp-table {
    width: 100%;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
}

.mp-table th {
    background: var(--mp-bg);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mp-text-muted);
    text-align: left;
    border-bottom: 1px solid var(--mp-border);
}

[dir="rtl"] .mp-table th {
    text-align: right;
}

.mp-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--mp-border-light);
}

.mp-table tr:last-child td {
    border-bottom: none;
}

.mp-table tr:hover td {
    background: var(--mp-bg);
}

/* ── Status badges ────────────────────────────────────────── */
.mp-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mp-status-active,
.mp-status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.mp-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.mp-status-rejected,
.mp-status-suspended,
.mp-status-expired,
.mp-status-refunded {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.mp-status-draft {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

/* ── Empty State ──────────────────────────────────────────── */
.mp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--mp-text-muted);
}

.mp-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.mp-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 8px;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.mp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mp-border);
    margin-bottom: 24px;
}

.mp-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mp-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--mp-transition);
    cursor: pointer;
}

.mp-tab:hover {
    color: var(--mp-text);
}

.mp-tab.active {
    color: var(--mp-primary);
    border-bottom-color: var(--mp-primary);
    font-weight: 600;
}

/* ── Alerts / Messages ────────────────────────────────────── */
.mp-alert {
    padding: 14px 18px;
    border-radius: var(--mp-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mp-alert-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.mp-alert-info {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .mp-product-detail {
        grid-template-columns: 1fr;
    }

    .mp-product-info {
        position: static;
    }

    .mp-hero h1 {
        font-size: 1.8rem;
    }

    .mp-reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .mp-hero {
        padding: 40px 20px;
    }

    .mp-hero h1 {
        font-size: 1.5rem;
    }

    .mp-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .mp-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .mp-section-header h2 {
        font-size: 1.25rem;
    }

    .mp-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .mp-gallery-main {
        height: 250px;
    }
}

@media (max-width: 575px) {
    .mp-products-grid {
        grid-template-columns: 1fr;
    }

    .mp-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mp-dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .mp-search-bar {
        flex-direction: column;
    }

    .mp-coupons-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .mp-hero,
    .mp-compare-btn,
    .mp-buy-btn,
    .mp-demo-btn {
        display: none !important;
    }
}
