@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-dark: #071e12;
    --primary: #0f5132;
    --primary-light: #198754;
    --primary-glow: rgba(25, 135, 84, 0.15);
    --gold: #d4af37;
    --gold-hover: #b8962e;
    --gold-dark: #aa7c11;
    --gold-glow: rgba(212, 175, 55, 0.2);
    --bg-dark: #f4f9f6;
    --card-bg: #ffffff;
    --card-border: rgba(15, 81, 50, 0.1);
    --text-light: #1b2721;
    --text-gray: #5c6b62;
    --text-dark: #111111;
    --text-white: #ffffff;
    --danger: #dc3545;
    --success: #198754;
    --warning: #ffc107;
    --info: #0dcaf0;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(15, 81, 50, 0.1);
}

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

body {
    font-family: var(--font-ar);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(25, 135, 84, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Directionality Helpers */
[dir="rtl"] {
    text-align: right;
}
[dir="ltr"] {
    text-align: left;
    font-family: var(--font-en);
}
[dir="ltr"] .nav-brand { flex-direction: row; }
[dir="ltr"] .nav-links { flex-direction: row; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-brand img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--gold);
}

.nav-brand span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--text-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-gray);
    padding: 0.4rem 0.6rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold-glow);
    color: var(--gold-hover);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-white);
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light) 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 750px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

/* Features Section (How It Works) */
.how-it-works {
    padding: 4rem 2rem;
    background: rgba(15, 81, 50, 0.05);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    color: var(--gold);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.05);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gold);
    color: var(--primary-dark);
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--gold-glow);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Packages Showcase Section */
.packages-section {
    padding: 5rem 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(15, 81, 50, 0.15);
}

.card-image {
    height: 220px;
    background-color: var(--primary-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(5, 20, 11, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.card-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Footer styling */
footer {
    background-color: #030d07;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem 2rem;
    color: var(--text-gray);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.footer-about img {
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gold);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.85rem;
}

/* Page Banner */
.page-banner {
    padding: 4rem 2rem;
    background: linear-gradient(185deg, rgba(15, 81, 50, 0.2), transparent);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Form Container Style */
.form-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    background: rgba(5, 20, 11, 0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    background: rgba(5, 20, 11, 0.8);
}

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

.form-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    border: 1px solid var(--success);
    color: #a3cfbb;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger);
    color: #ea868f;
}

/* Custom Basket Builder UI */
.builder-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 2rem;
}

@media (max-width: 992px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
}

.catalog-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding-right: 2.5rem;
}

.search-box i {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.category-tabs {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-tab.active,
.category-tab:hover {
    background: var(--primary);
    border-color: var(--gold);
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    background: rgba(15, 81, 50, 0.08);
}

.product-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background-color: var(--primary-dark);
}

.product-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-item .category {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

/* Basket Panel */
.basket-panel {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(15, 81, 50, 0.1);
}

.container-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.container-option {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.container-option.selected {
    border-color: var(--gold);
    background: var(--primary-glow);
    box-shadow: 0 0 10px var(--gold-glow);
}

.container-option .icon {
    font-size: 1.8rem;
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

.container-option.selected .icon {
    color: var(--gold);
}

.container-option .name {
    font-size: 0.85rem;
    font-weight: 700;
}

.progress-container {
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.03);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--primary-light));
    transition: width 0.4s ease;
}

.basket-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.basket-item-info {
    display: flex;
    flex-direction: column;
}

.basket-item-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.basket-item-qty {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.basket-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-qty {
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty:hover {
    background: var(--primary-light);
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* File Upload Premium Style */
.upload-dropzone {
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(15, 81, 50, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.upload-dropzone:hover {
    border-color: var(--gold);
    background: var(--primary-glow);
}

.upload-dropzone i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.upload-dropzone input[type="file"] {
    display: none;
}

/* Order Tracker Stepper */
.order-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0;
    position: relative;
    padding: 0 1rem;
}

.order-stepper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.step-node.completed .step-circle {
    background: var(--primary);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.step-node.active .step-circle {
    background: var(--gold);
    border-color: var(--gold-hover);
    color: var(--primary-dark);
    box-shadow: 0 0 15px var(--gold-glow);
}

.step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gray);
    text-align: center;
}

.step-node.completed .step-title,
.step-node.active .step-title {
    color: var(--text-light);
}

/* Stepper Line Progression */
.stepper-progress {
    position: absolute;
    top: 20px;
    right: 2rem;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-light));
    z-index: 1;
    transition: width 0.5s ease;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
}

.user-profile-summary {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem auto;
}

.user-profile-summary h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.user-profile-summary p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li {
    margin-bottom: 0.5rem;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition);
}

.dashboard-menu a:hover,
.dashboard-menu li.active a {
    background: var(--primary-glow);
    color: var(--gold);
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.dashboard-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Orders List Table & Cards */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.orders-table th {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
}

.orders-table td {
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-new { background: rgba(13, 202, 240, 0.15); color: #6edff6; border: 1px solid var(--info); }
.badge-reviewing { background: rgba(255, 193, 7, 0.15); color: #ffda6a; border: 1px solid var(--warning); }
.badge-awaiting_approval { background: rgba(255, 193, 7, 0.25); color: #ffe69c; border: 1px solid var(--warning); }
.badge-approved { background: rgba(25, 135, 84, 0.15); color: #a3cfbb; border: 1px solid var(--success); }
.badge-preparing { background: rgba(13, 202, 240, 0.2); color: #9eeaf9; border: 1px solid var(--info); }
.badge-ready { background: rgba(25, 135, 84, 0.2); color: #a3cfbb; border: 1px solid var(--success); }
.badge-delivered { background: rgba(25, 135, 84, 0.3); color: #75b798; border: 1px solid var(--success); }
.badge-cancelled { background: rgba(220, 53, 69, 0.2); color: #ea868f; border: 1px solid var(--danger); }

/* Invoice Details Styling */
.invoice-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.invoice-items {
    margin-bottom: 1.5rem;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.invoice-item.total {
    border-top: 2px solid var(--gold);
    border-bottom: none;
    padding-top: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
}

.invoice-item.subtotal {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Admin Styling adjustments */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-info h5 {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kpi-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

.kpi-icon {
    font-size: 2.2rem;
    color: var(--gold);
    opacity: 0.8;
}

/* Arabic Text Adjustments */
input, textarea, select {
    text-align: right;
}

/* Delivery Slots Styling */
.day-tab { 
    padding: 10px 15px; 
    background: rgba(15, 81, 50, 0.05); 
    border: 1px solid rgba(15, 81, 50, 0.15); 
    border-radius: 8px; 
    cursor: pointer; 
    text-align: center; 
    min-width: 100px; 
    white-space: nowrap; 
    transition: 0.3s; 
    color: var(--text-light);
}
.day-tab:hover { 
    background: rgba(15, 81, 50, 0.1); 
}
.day-tab.active { 
    background: rgba(212,175,55,0.2); 
    border-color: var(--gold); 
    color: var(--gold-dark); 
    font-weight: bold; 
}

.time-btn { 
    padding: 10px; 
    background: rgba(15, 81, 50, 0.05); 
    border: 1px solid rgba(15, 81, 50, 0.15); 
    border-radius: 8px; 
    cursor: pointer; 
    text-align: center; 
    transition: 0.3s; 
    color: var(--text-light); 
}
.time-btn:hover:not(:disabled) { 
    background: rgba(15, 81, 50, 0.1); 
    border-color: var(--gold); 
}
.time-btn.active { 
    background: var(--gold); 
    color: #000; 
    font-weight: bold; 
    border-color: var(--gold); 
}
.time-btn:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
}

/* Copper Card styling for LY Pay */
.copper-card {
    background: linear-gradient(135deg, #b87333 0%, #d27d2d 30%, #8b4513 70%, #a0522d 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.3), inset 0 1px 1px rgba(255,255,255,0.2);
    border: 1px solid #c97d3e;
    font-family: 'Cairo', sans-serif;
    margin-top: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: right;
    direction: rtl;
}
.copper-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    animation: copper-shine 4s infinite linear;
}
@keyframes copper-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.copper-card .card-brand {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd8b3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.copper-card .card-chip {
    width: 45px; height: 35px;
    background: linear-gradient(135deg, #e6c280, #c09040);
    border-radius: 6px;
    margin-bottom: 1.25rem;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}
.copper-card .card-number {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    font-family: monospace;
    color: #ffe6cc;
    direction: ltr;
    text-align: right;
}
.copper-card .card-holder-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.copper-card .card-label {
    display: block;
    font-size: 0.72rem;
    color: #ffd8b3;
    margin-bottom: 3px;
    text-transform: uppercase;
}
.copper-card .card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float-btn:hover {
    background: #1eb954;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.whatsapp-float-btn i {
    font-size: 1.4rem;
}

/* Footer Social Media Links */
.footer-social-links .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-links .social-icon:hover {
    background: var(--gold);
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.footer-social-links .social-icon.fb:hover {
    background: #1877F2 !important;
    color: #ffffff !important;
    border-color: #1877F2;
}

.footer-social-links .social-icon.insta:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
    border-color: transparent;
}

.footer-social-links .social-icon.tw:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #333333;
}

/* =============================================
   MOBILE RESPONSIVE
   Breakpoints: 992px | 768px | 480px
   ============================================= */

/* ── Tablet (≤992px) ── */
@media (max-width: 992px) {

    /* Hero: عمود واحد */
    .split-hero .hero-container,
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .hero-showcase-panel {
        display: none; /* أخفِ الصورة على التابلت والموبايل */
    }

    /* Builder */
    .builder-layout {
        grid-template-columns: 1fr;
    }
    .basket-panel {
        position: static;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

    /* ---- Navbar ---- */
    .navbar {
        padding: 0.5rem 0.8rem;
        position: relative;
    }
    .nav-brand img {
        height: 36px;
        width: 36px;
    }
    .nav-brand span {
        font-size: 1rem;
    }

    /* أزرار الـ nav-actions: أيقونة فقط بدون نص */
    .nav-actions {
        gap: 0.3rem;
    }
    .nav-actions .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0;
        min-width: 36px;
    }
    /* أخفِ النصوص وأبقِ الأيقونات فقط */
    #login-nav-link,
    #register-nav-link,
    #admin-nav-link,
    #user-nav-profile {
        font-size: 0;  /* يخفي النص */
        padding: 0.4rem 0.6rem;
        min-width: 36px;
        justify-content: center;
    }
    #login-nav-link i,
    #register-nav-link i,
    #admin-nav-link i,
    #user-nav-profile i {
        font-size: 1rem; /* يُظهر الأيقونة فقط */
    }
    #logout-nav-link {
        padding: 0.4rem 0.6rem;
        min-width: 36px;
    }

    /* ---- Hero ---- */
    .hero, .hero-info-panel {
        padding: 2rem 1rem;
        text-align: center;
    }
    .hero h1,
    .hero-headline {
        font-size: 1.9rem !important;
        line-height: 1.3;
    }
    .hero p,
    .hero-paragraph {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }
    .hero-button-group,
    .hero-actions {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        align-items: center;
    }
    .hero-button-group .btn,
    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    /* Trust Bar: 3 في صف */
    .hero-trust-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    .trust-item span {
        font-size: 0.72rem;
    }

    /* Badge Tag */
    .badge-tag {
        justify-content: center;
        font-size: 0.82rem;
    }

    /* ---- Sections ---- */
    .section-title {
        font-size: 1.55rem;
        margin-bottom: 1.5rem;
    }
    .packages-section,
    .how-it-works {
        padding: 2.5rem 1rem;
    }

    /* ---- Steps ---- */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* ---- Cards ---- */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.2rem;
    }
    .card-image {
        height: 200px;
    }
    .card-content {
        padding: 1.2rem;
    }

    /* ---- Packages Filter ---- */
    .packages-filter-bar,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .packages-filter-bar select,
    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

    /* ---- Builder ---- */
    .catalog-panel,
    .basket-panel {
        padding: 1rem;
        border-radius: 12px;
    }
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .search-box {
        max-width: 100%;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .product-item img {
        height: 100px;
    }
    .container-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .container-option {
        padding: 0.6rem 0.3rem;
    }

    /* ---- Page Banner ---- */
    .page-banner {
        padding: 2rem 1rem;
    }
    .page-banner h1 {
        font-size: 1.7rem;
    }

    /* ---- Order Stepper ---- */
    .order-stepper {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    .step-title {
        font-size: 0.68rem;
        max-width: 60px;
    }

    /* ---- Footer ---- */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    footer {
        padding: 2rem 1rem 1.2rem;
    }
    .footer-about img {
        height: 38px;
    }

    /* ---- Dashboard ---- */
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 0 0.8rem;
        margin: 1rem auto;
    }

    /* Tables → scroll أفقي */
    .orders-table {
        display: block;
        overflow-x: auto;
    }

    /* Form */
    .form-container {
        margin: 1.5rem 0.8rem;
        padding: 1.4rem;
    }

    /* WhatsApp button */
    .whatsapp-float-btn {
        bottom: 14px;
        left: 14px;
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    .whatsapp-float-btn span {
        display: none;
    }
    .whatsapp-float-btn i {
        font-size: 1.25rem;
    }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
    .hero h1,
    .hero-headline {
        font-size: 1.6rem !important;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .product-item h4 {
        font-size: 0.8rem;
    }
    .btn-lg {
        font-size: 0.88rem;
        padding: 0.65rem 1rem;
    }
    .hero-trust-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    .trust-item span {
        font-size: 0.65rem;
    }
    .nav-brand span {
        font-size: 0.9rem;
    }
}

/* =============================================
   CUSTOMER ACCOUNT & PORTAL MOBILE OPTIMIZATION (بالسانتي)
   ============================================= */

@media (max-width: 992px) {
    /* 1. Dashboard Layout Grid */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        padding: 0 0.8rem !important;
        margin: 1.2rem auto !important;
    }

    /* 2. Compact User Summary Header & Sticky Navigation Bar for Mobile */
    .dashboard-sidebar {
        padding: 0.8rem !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        position: sticky;
        top: 60px;
        z-index: 99;
        box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
    }

    .user-profile-summary {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding-bottom: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        text-align: right !important;
    }
    .user-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.4rem !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    .user-profile-summary h4 {
        font-size: 1.05rem !important;
        margin: 0 !important;
    }
    .user-profile-summary p {
        font-size: 0.8rem !important;
        margin: 2px 0 0 0 !important;
    }

    /* 3. Horizontal Scrollable Pill Navigation Menu for Mobile */
    .dashboard-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 4px 2px 8px 2px !important;
        margin: 0 !important;
        list-style: none !important;
        scrollbar-width: none; /* Firefox */
    }
    .dashboard-menu::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .dashboard-menu li {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    .dashboard-menu a {
        padding: 0.55rem 1rem !important;
        font-size: 0.82rem !important;
        border-radius: 50px !important;
        white-space: nowrap !important;
        background: #f1f5f9 !important;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .dashboard-menu a i {
        font-size: 0.9rem !important;
    }
    .dashboard-menu li.active a {
        background: linear-gradient(135deg, var(--gold) 0%, #b88d21 100%) !important;
        color: #fff !important;
        border-color: var(--gold) !important;
        box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3) !important;
        transform: none !important;
    }

    /* 4. Dashboard Cards & Forms */
    .dashboard-card {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
    }
    .dashboard-card-title {
        font-size: 1.15rem !important;
        margin-bottom: 1.2rem !important;
    }

    /* Form Fields Pixel-Perfect Touch Target Height (48px) & Font Size (16px to avoid iOS auto-zoom) */
    .dashboard-card .form-control, 
    .form-control, 
    input[type="text"], 
    input[type="tel"], 
    input[type="email"], 
    input[type="password"], 
    input[type="number"], 
    select, 
    textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        min-height: 48px !important;
        padding: 0.75rem 1rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    textarea {
        min-height: 90px !important;
    }

    /* Touch-friendly full-width buttons */
    .btn, 
    .btn-gold, 
    .btn-primary, 
    .btn-navy, 
    button[type="submit"] {
        min-height: 48px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
        padding: 0.75rem 1.2rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-weight: 700 !important;
    }

    /* Form Grids: convert multi-column forms to single-column on mobile */
    .form-grid, 
    .settings-grid, 
    .profile-grid, 
    .address-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* 5. Mobile Order Block Cards */
    .order-block {
        padding: 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 1.2rem !important;
    }
    .order-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* 6. Responsive Tables to Scroll Cards */
    .table-responsive, 
    .orders-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
    }

    /* 7. Wallet & Copper Cards on Mobile */
    .copper-card {
        max-width: 100% !important;
        padding: 1.2rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .card-number {
        font-size: 1.2rem !important;
        letter-spacing: 2px !important;
    }
    .card-holder-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* 8. Page Banners */
    .page-banner {
        padding: 2rem 1rem !important;
    }
    .page-banner h1 {
        font-size: 1.6rem !important;
    }
    .page-banner p {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 1rem 0.8rem !important;
    }
    .page-banner h1 {
        font-size: 1.4rem !important;
    }
    .dashboard-menu a {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness System for All Key Pages
   ========================================================================== */

/* Base Component Styles for Subscriptions, Packages & Builder Grids */
.sabeeza-grid, .cards-grid, .packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.sabeeza-card, .package-card, .card {
    background: #ffffff;
    border: 1px solid rgba(15, 81, 50, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(15, 81, 50, 0.04);
}
.sabeeza-card:hover, .package-card:hover, .card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.12);
}
.address-summary-banner {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.address-details {
    display: flex;
    align-items: center;
    gap: 12px;
}
.address-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(15, 81, 50, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.no-address-card {
    background: #fff;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* 1. Layout & Grid Structural Adaptations */
@media (max-width: 992px) {
    .container, .main-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Builder Layout Responsive Grid (builder.php) */
    .builder-layout {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 1.5rem !important;
    }
    .catalog-panel, .basket-panel-wrapper {
        width: 100% !important;
    }
    .basket-panel {
        position: static !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Navbar & Header Mobile Adaptations */
    .navbar {
        padding: 0.6rem 1rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .nav-brand img {
        height: 38px !important;
    }
    .nav-brand span {
        font-size: 1.05rem !important;
    }
    .nav-links {
        gap: 0.5rem !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 2. Builder Page (builder.php) Mobile Responsiveness */
    .category-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 8px !important;
        gap: 6px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .category-tab {
        flex: 0 0 auto !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
        gap: 0.85rem !important;
    }
    .product-item {
        padding: 0.85rem !important;
    }
    .product-item h4 {
        font-size: 0.88rem !important;
        line-height: 1.3 !important;
    }
    .container-selector {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    .container-option {
        padding: 0.75rem 0.4rem !important;
    }
    .container-option .name {
        font-size: 0.8rem !important;
    }

    /* 3. Packages Page (packages.php) Mobile Responsiveness */
    .packages-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .package-card {
        padding: 1.25rem 1rem !important;
    }
    .package-title {
        font-size: 1.25rem !important;
    }
    .package-items-list {
        max-height: 200px !important;
    }

    /* 4. Subscriptions Page (subscriptions.php) Mobile Responsiveness */
    .subscriptions-grid, .subs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .sub-card, .plan-card {
        padding: 1.25rem 1rem !important;
    }
    .calendar-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .calendar-table {
        min-width: 600px !important;
    }

    /* 5. Charity Page (charity.php) Mobile Responsiveness */
    .charity-kpi-grid, .impact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .charity-packages-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .charity-hero-banner {
        padding: 2rem 1rem !important;
        text-align: center !important;
    }
    .charity-hero-banner h1 {
        font-size: 1.5rem !important;
    }

    /* 6. Special Request Page (special-request.php) Mobile Responsiveness */
    .sr-stepper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .sr-step-node {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.8rem !important;
    }
    .sr-step-line {
        display: none !important;
    }
    #special-req-map {
        height: 240px !important;
    }
    .sr-summary-card {
        padding: 1.25rem 1rem !important;
    }

    /* 7. Dashboard Orders Page (dashboard.php?view=orders) Mobile Offcanvas Drawer Responsiveness */
    .dashboard-mobile-nav-bar {
        display: block !important;
    }
    .dashboard-sidebar {
        display: none !important;
    }
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem !important;
        margin: 1rem auto !important;
    }
    .dashboard-content {
        width: 100% !important;
    }

    .dashboard-card {
        padding: 1.25rem 0.85rem !important;
        border-radius: 16px !important;
    }

    .order-stepper {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 1rem 0.5rem !important;
        gap: 1.2rem !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .order-stepper::after {
        display: none !important;
    }
    .step-node {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .step-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
    .step-title {
        font-size: 0.75rem !important;
        max-width: 90px !important;
        text-align: center !important;
        white-space: normal !important;
    }
    
    /* Touch Target buttons and inputs */
    .btn, input, select, textarea {
        min-height: 48px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .charity-kpi-grid, .impact-grid {
        grid-template-columns: 1fr !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    .container-selector {
        grid-template-columns: 1fr !important;
    }
}


