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

:root {
    /* Premium Classic Theme (Light) */
    --primary: #0B1B2A;          /* Deep Navy */
    --primary-hover: #102a42;
    --secondary: #C6A15B;        /* Brass / Gold */
    --accent: #2BAE66;           /* Emerald */

    --success: #2BAE66;
    --warning: #C6A15B;
    --info: #2F6FED;
    --purple: #6D5BD0;
    --teal: #0EA5A0;

    --bg-body: #F6F2EA;          /* Warm Ivory */
    --bg-card: #FFFFFF;
    --text-main: #0B1B2A;
    --text-muted: #5C6770;
    --border: #E6DFD4;
    --shadow: 0 12px 30px rgba(11, 27, 42, 0.08);
    --gradient-hero: radial-gradient(1200px circle at 10% 10%, rgba(198,161,91,0.18) 0%, rgba(246,242,234,0.0) 45%),
                     radial-gradient(900px circle at 90% 25%, rgba(43,174,102,0.10) 0%, rgba(246,242,234,0.0) 50%),
                     linear-gradient(135deg, #F6F2EA 0%, #FFFFFF 100%);

    --font-main: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
    /* Premium Classic Theme (Dark) */
    --primary: #C6A15B;          /* Gold as primary accent */
    --primary-hover: #d3b27a;
    --secondary: #38BDF8;
    --accent: #2BAE66;

    --bg-body: #070B10;
    --bg-card: #0E1620;
    --text-main: #F4F1EA;
    --text-muted: #B8C0C8;
    --border: #1C2A38;
    --shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
    --gradient-hero: radial-gradient(1200px circle at 10% 10%, rgba(198,161,91,0.14) 0%, rgba(7,11,16,0.0) 55%),
                     radial-gradient(900px circle at 90% 25%, rgba(43,174,102,0.10) 0%, rgba(7,11,16,0.0) 55%),
                     linear-gradient(135deg, #070B10 0%, #0E1620 100%);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    /* Compensation for fixed header */
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Table Responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}


.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-4 {
    gap: 4rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

.btn-outline:hover,
.nav-links a.btn-outline:hover {
    background-color: var(--primary);
    color: white !important;
}

.card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.3);
    border-color: var(--primary);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
}

.card h3 {
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--primary);
}

/* Icon Rotation Effect */
.btn:hover i,
.card:hover .service-icon i,
.card:hover .bx {
    transform: rotate(15deg) scale(1.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensure smooth transition for icons */
.btn i,
.card .service-icon i,
.card .bx {
    transition: transform 0.3s ease;
    display: inline-block;
    /* Required for transform */
}

/* Header */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

/* Link Underline Effect */
.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    margin: 0 auto;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    left: 0;
    border: 1px solid var(--border);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Theme & RTL Toggles */
.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s;
}

.icon-btn:hover {
    background-color: var(--border);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
}

#sidebar-toggle {
    display: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-links {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .dropdown-content {
    left: auto;
    right: 0;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .phone-number {
    direction: ltr;
    unicode-bidi: embed;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 100;
    }

    html[dir="rtl"] .nav-links {
        left: auto !important;
        right: 0 !important;
    }

    #sidebar-toggle {
        display: inline-flex !important;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero {
        text-align: center;
    }

    .hero .container {
        flex-direction: column-reverse;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .pricing-pro {
        transform: scale(1) !important;
        /* Disable scale on mobile */
        margin: 1rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }

    /* Dashboard-specific mobile optimizations */
    .dashboard-page header .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }

    .dashboard-page nav {
        order: 5;
        width: 100%;
    }

    .dashboard-page .user-profile {
        order: 4;
        margin: 0 !important;
    }

    .dashboard-page .user-profile span {
        display: inline;
        order: 3;
    }

    .dashboard-page .controls {
        order: 1;
        margin: 0 !important;
        display: flex;
        gap: 0.5rem;
    }

    .dashboard-page .controls #rtl-toggle {
        order: 1;
    }

    .dashboard-page .controls #theme-toggle {
        order: 2;
    }

    .dashboard-page .controls #menu-toggle {
        order: 3;
    }

    .dashboard-page .controls #sidebar-toggle {
        order: 4;
    }

    .dashboard-page .logo {
        order: 0;
        font-size: 1.2rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        /* Full width buttons on small screens */
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .flex.gap-1 {
        flex-direction: column;
    }
}

/* -------------------------------------------------------------------------- */
/*                               New Components                               */
/* -------------------------------------------------------------------------- */

/* Pricing Tables */
.pricing-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(to bottom, var(--bg-card), rgba(79, 70, 229, 0.05));
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

/* FAQ Accordion */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-body);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    /* Arbitrary large height */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

.badge-accent {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-body);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* -------------------------------------------------------------------------- */
/*                                 Animations                                 */
/* -------------------------------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    /* Star invisible */
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* -------------------------------------------------------------------------- */
/*                           Theme-Aware Utilities                            */
/* -------------------------------------------------------------------------- */

.bg-subtle-success {
    background-color: #ecfdf5;
    color: #065f46;
}

.bg-subtle-warning {
    background-color: #fffbeb;
    color: #92400e;
}

.bg-subtle-info {
    background-color: #eff6ff;
    color: #1e40af;
}

.bg-subtle-danger {
    background-color: #fff1f2;
    color: #9f1239;
}

[data-theme="dark"] .bg-subtle-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

[data-theme="dark"] .bg-subtle-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

[data-theme="dark"] .bg-subtle-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

[data-theme="dark"] .bg-subtle-danger {
    background-color: rgba(244, 63, 94, 0.15);
    color: #fda4af;
}

/* -------------------------------------------------------------------------- */
/*                            Pricing Customization                           */
/* -------------------------------------------------------------------------- */

/* Starter Plan - Green */
.pricing-starter {
    border-top: 4px solid var(--success) !important;
}

.pricing-starter h3,
.pricing-starter .price-value,
.pricing-starter i {
    color: var(--success) !important;
}

.pricing-starter .btn-outline {
    color: var(--success);
    border-color: var(--success);
}

.pricing-starter .btn-outline:hover {
    background-color: var(--success);
    color: white;
}

/* Professional Plan - Yellow/Gold */
.pricing-pro {
    border-top: 4px solid var(--warning) !important;
    border-color: var(--warning);
    background: linear-gradient(to bottom, var(--bg-card), rgba(245, 158, 11, 0.05));
    position: relative;
}

.pricing-pro h3,
.pricing-pro .price-value,
.pricing-pro i {
    color: var(--warning) !important;
}

.pricing-pro .pop-badge {
    background: var(--warning) !important;
    color: #fff;
}

.pricing-pro .btn-primary {
    background-color: var(--warning);
}

.pricing-pro .btn-primary:hover {
    background-color: #d97706;
    /* Darker amber */
}

/* Enterprise Plan - Red */
.pricing-enterprise {
    border-top: 4px solid var(--accent) !important;
}

.pricing-enterprise h3,
.pricing-enterprise .price-value,
.pricing-enterprise i {
    color: var(--accent) !important;
}

.pricing-enterprise .btn-outline {
    color: var(--accent);
    border-color: var(--accent);
}

.pricing-enterprise .btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

/* RTL Button */
.btn-icon-animate {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-card);
    cursor: pointer;
    font-size: 1.2rem;
}

.btn-icon-animate:hover {
    background-color: var(--primary);
    color: white;
    transform: rotate(180deg);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

/* Text Shine Effect */
.text-shine-hover {
    background: linear-gradient(to right, currentColor 0%, var(--primary) 50%, currentColor 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease;
    color: var(--text-heading);
    /* Fallback */
}

.text-shine-hover:hover {
    background-position: right center;
    -webkit-text-fill-color: transparent;
}

/* Trusted By Section */
.trusted-by {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--bg-card);
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    opacity: 0.7;
}

.trusted-logos img {
    height: 40px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.trusted-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
    opacity: 1;
}

/* New Visual Enhancements */
.text-xl {
    font-size: 3.5rem;
    line-height: 1.2;
}

.text-lg {
    font-size: 2.5rem;
    line-height: 1.3;
}

@media(max-width: 768px) {
    .text-xl {
        font-size: 2.5rem;
    }

    .text-lg {
        font-size: 2rem;
    }
}

.card-hover-pop {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.card-hover-pop:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Vibrant Icon Styles */
@keyframes float-y {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.vibrant-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    margin-bottom: 1rem;
    animation: float-y 4s ease-in-out infinite;
}

.card-vibrant {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.05) 100%);
}

/* Dashboard Layout Standardization */
.dashboard-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
}

.dashboard-page header {
    position: sticky;
    top: 0;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    flex: 1;
    overflow: hidden;
    /* Container itself doesn't scroll, children do */
    position: relative;
}

.dashboard-fluid-container {
    padding: 1rem;
    width: 100%;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
    position: relative;
    width: 100%;
    min-height: 100%;
    /* Ensure it fills the grid cell */
}

.tab-content,
.sub-tab-content {
    width: 100%;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .dashboard-fluid-container {
        padding: 2rem;
    }

    .main-content {
        padding: 2rem;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 2000;
    background-color: var(--bg-card);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

/* RTL Mobile Sidebar */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    border-right: none;
    border-left: 1px solid var(--border);
}

[dir="rtl"] .sidebar.active {
    transform: translateX(0);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-menu {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu a {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    border-left-color: var(--primary);
}

.sidebar-menu a i {
    font-size: 1.25rem;
}

@media(min-width: 769px) {
    .dashboard-container {
        grid-template-columns: 250px 1fr;
    }

    .sidebar {
        position: relative;
        right: auto;
        left: 0;
        height: 100%;
        transform: none;
        width: 100%;
        box-shadow: none;
        overflow-y: auto;
        border-right: 1px solid var(--border);
        border-left: none;
    }

    /* RTL Desktop Sidebar Reset */
    [dir="rtl"] .sidebar {
        transform: none;
        /* Ensure no translation on desktop */
        box-shadow: none;
        border-right: none;
        border-left: 1px solid var(--border);
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* --- Mobile Responsiveness Utilities --- */

/* Global Overflow Safety */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* User Profile Header Optimization */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .user-profile span {
        display: none !important;
        /* Hide name on mobile to save space */
    }

    .user-profile {
        margin-left: auto;
    }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.table-responsive table {
    margin-bottom: 0 !important;
    min-width: 700px;
    /* Ensure table doesn't squish too much */
}

/* Mobile Typography & Spacing */
@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }

    .card {
        padding: 1.25rem;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .section-title h2 {
        font-size: 1.75rem !important;
    }

    .main-content {
        padding: 1rem !important;
    }

    /* Contact page specific mobile fixes */
    .section-title {
        text-align: center !important;
        margin-bottom: 2rem;
    }

    .flex.items-center.gap-1 {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .icon-btn {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    .flex.gap-2 {
        gap: 1.5rem;
    }
}

/* Fix for Grid Stacking on Mobile */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Premium background texture (subtle, CSS-only) */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(900px circle at 20% 10%, rgba(198,161,91,0.10), transparent 55%),
        radial-gradient(800px circle at 80% 20%, rgba(43,174,102,0.08), transparent 55%),
        repeating-linear-gradient(0deg, rgba(11,27,42,0.03), rgba(11,27,42,0.03) 1px, transparent 1px, transparent 6px);
    opacity:0.55;
    mix-blend-mode:multiply;
    z-index:-1;
}
[data-theme="dark"] body::before{
    mix-blend-mode:screen;
    opacity:0.25;
}

/* Premium typography */
h1,h2,h3,.logo{ font-family: var(--font-heading); letter-spacing: 0.2px; }
p,li,button,input,textarea,select{ font-family: var(--font-main); }

/* Premium buttons */
.btn{
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.btn-primary{
    background: var(--secondary);
    border-color: var(--secondary);
    color: #0B1B2A;
}
.btn-primary:hover{
    filter: brightness(0.97);
}
.btn-outline{
    border-color: rgba(11,27,42,0.22);
}
[data-theme="dark"] .btn-outline{
    border-color: rgba(244,241,234,0.22);
}

/* Premium cards */
.card{
    border: 1px solid var(--border);
    border-radius: 18px;
}
.card-hover-pop:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11,27,42,0.12);
}

/* Floating actions: WhatsApp + Chat */
.floating-actions{
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}
.fab{
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
}
.fab:hover{ transform: translateY(-2px); }
.fab-whatsapp{
    background: #25D366;
    border-color: rgba(0,0,0,0.08);
    color: white;
}
.fab-chat{
    background: var(--primary);
    border-color: rgba(0,0,0,0.08);
    color: white;
}

/* Chat widget */
.chat-widget{
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: min(360px, calc(100vw - 36px));
    height: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
    z-index: 9999;
}
.chat-widget.open{ display: flex; flex-direction: column; }
.chat-header{
    padding: 14px 16px;
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
}
.chat-header strong{ font-family: var(--font-heading); }
.chat-body{
    padding: 14px;
    overflow: auto;
    display:flex;
    flex-direction:column;
    gap: 10px;
}
.chat-bubble{
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    line-height: 1.5;
    font-size: 0.95rem;
}
.chat-bubble.bot{ background: rgba(198,161,91,0.10); }
.chat-bubble.user{ background: rgba(43,174,102,0.10); align-self: flex-end; }
.chat-footer{
    padding: 12px;
    border-top: 1px solid var(--border);
    display:flex;
    gap: 8px;
}
.chat-input{
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
}
.chat-send{
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: #0B1B2A;
    font-weight: 700;
}



/* ===============================
   Infiro Tech: Premium Widgets
   =============================== */
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  box-shadow:0 14px 35px rgba(0,0,0,.22);
  z-index:9999;
  transition:transform .2s ease, filter .2s ease;
}
.whatsapp-float:hover{ transform:translateY(-2px) scale(1.04); filter:brightness(1.03); }

.chat-launcher{
  position:fixed;
  right:22px;
  bottom:90px;
  width:56px;
  height:56px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(17,24,39,.92);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  box-shadow:0 14px 35px rgba(0,0,0,.28);
  z-index:9999;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.chat-launcher:hover{ transform:translateY(-2px); background:rgba(17,24,39,.98); }

.chat-widget{
  position:fixed;
  right:22px;
  bottom:155px;
  width:320px;
  max-width:calc(100vw - 44px);
  border-radius:18px;
  overflow:hidden;
  background:rgba(17,24,39,.96);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 55px rgba(0,0,0,.38);
  z-index:9999;
  transform:translateY(10px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.chat-widget.open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.chat-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:14px 14px 10px 14px;
  background:linear-gradient(135deg, rgba(37,99,235,.25), rgba(236,72,153,.18));
}
.chat-title{ font-weight:700; color:#fff; line-height:1.1; }
.chat-subtitle{ font-size:.78rem; color:rgba(255,255,255,.75); margin-top:2px; }
.chat-close{
  background:transparent;
  border:none;
  color:rgba(255,255,255,.85);
  font-size:22px;
  cursor:pointer;
  padding:4px 6px;
}
.chat-body{ padding:14px; }
.chat-bubble{
  padding:10px 12px;
  border-radius:14px;
  font-size:.95rem;
  line-height:1.35;
  margin-bottom:10px;
}
.chat-bubble.bot{
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.92);
}
.chat-actions{ display:grid; gap:10px; margin-top:10px; }
.chat-action{
  display:block;
  text-align:center;
  padding:10px 12px;
  border-radius:12px;
  font-weight:600;
  color:#fff !important;
  background:rgba(37,99,235,.92);
  text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
}
.chat-action:nth-child(2){ background:rgba(99,102,241,.85); }
.chat-action:nth-child(3){ background:rgba(34,197,94,.85); }
.chat-action:nth-child(4){ background:rgba(255,255,255,.10); }
.chat-action:hover{ filter:brightness(1.03); }
.chat-note{ margin-top:10px; font-size:.8rem; color:rgba(255,255,255,.70); }


/* Added project enhancements */
.login-hint { margin-top: 1rem; color: var(--text-muted); font-size: 0.92rem; }
.form-feedback { margin-top: 1rem; font-size: 0.95rem; color: var(--primary); }
.eyebrow { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .75rem; border-radius:999px; background: rgba(79,70,229,.1); color: var(--primary); font-size:.85rem; font-weight:700; margin-bottom:1rem; }
.payment-showcase-section { padding-top: 0; }
.payment-showcase { display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items:center; border:1px solid var(--border); overflow:hidden; }
.payment-feature-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.mini-feature { display:flex; align-items:center; gap:.75rem; padding:1rem; border-radius:16px; background: var(--bg-body); border:1px solid var(--border); }
.mini-feature i { font-size:1.25rem; color:var(--primary); }
.gateway-preview { padding: 1rem; border-radius: 24px; background: linear-gradient(180deg, rgba(79,70,229,.12), rgba(79,70,229,.04)); border:1px solid rgba(79,70,229,.18); }
.gateway-topbar { display:flex; gap:.4rem; margin-bottom: 1rem; }
.gateway-topbar span { width:.7rem; height:.7rem; border-radius:50%; background: rgba(79,70,229,.35); }
.gateway-card { background: var(--bg-card); border:1px solid var(--border); border-radius: 20px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(15, 23, 42, .08); }
.gateway-row { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom: 1rem; }
.gateway-row.subtle { color: var(--text-muted); font-size: .95rem; }
.gateway-card p, .gateway-card small { color: var(--text-muted); }
.gateway-card .btn { width:100%; margin: 1rem 0 .8rem; }
.checkout-page { min-height: calc(100vh - 90px); display:flex; align-items:center; }
.checkout-section { width:100%; padding: 4rem 0; }
.checkout-grid { display:grid; grid-template-columns: 1fr 480px; gap: 2rem; align-items:center; }
.checkout-copy h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height:1.05; margin-bottom:1rem; }
.checkout-trust-list { display:grid; gap: .9rem; margin-top: 1.5rem; }
.checkout-trust-list div { display:flex; align-items:center; gap:.75rem; font-weight:600; }
.checkout-trust-list i { color: var(--primary); font-size:1.2rem; }
.checkout-card { border-radius: 28px; border:1px solid var(--border); box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.checkout-card-header { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin-bottom:1.2rem; }
.subtle-label { color: var(--text-muted); text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; margin-bottom:.35rem; }
.checkout-price { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.checkout-summary { background: var(--bg-body); border:1px solid var(--border); border-radius: 18px; padding: 1rem 1.1rem; margin: 1rem 0 1.25rem; }
.summary-line { display:flex; justify-content:space-between; gap:1rem; padding:.8rem 0; border-bottom:1px solid var(--border); }
.summary-line:last-child { border-bottom:none; }
.summary-line.total { font-size: 1.1rem; }
.premium-pay-btn { width:100%; padding: 1rem 1.25rem; border-radius: 16px; box-shadow: 0 18px 40px rgba(79,70,229,.28); }
.payment-status-message { margin-top: .9rem; color: var(--text-muted); }
.payment-badges { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem; }
.payment-badges span { display:inline-flex; align-items:center; gap:.45rem; padding:.55rem .8rem; border-radius:999px; background: var(--bg-body); border:1px solid var(--border); color: var(--text-muted); font-size:.88rem; }
.dashboard-shell { padding-bottom: 3rem; }
.dashboard-hero { padding: 3rem 0 1rem; }
.dashboard-hero-grid { display:grid; grid-template-columns: 1.3fr .7fr; gap: 1.5rem; align-items:center; }
.admin-summary-card { border:1px solid var(--border); }
.summary-pill { display:inline-flex; align-items:center; gap:.45rem; padding:.5rem .8rem; border-radius:999px; background: rgba(16,185,129,.12); color:#059669; font-weight:700; margin-bottom:1rem; }
.summary-metrics { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
.summary-metrics div { padding:1rem; border-radius:18px; background: var(--bg-body); text-align:center; }
.summary-metrics strong { display:block; font-size:1.6rem; margin-bottom:.25rem; }
.summary-metrics span { color: var(--text-muted); font-size:.9rem; }
.admin-table-card { border:1px solid var(--border); }
.admin-toolbar { display:flex; justify-content:space-between; gap:1rem; align-items:flex-end; margin-bottom:1.25rem; }
.admin-toolbar-actions { display:flex; gap:.75rem; align-items:center; }
.empty-state { text-align:center; padding: 2rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 2rem; color: var(--primary); margin-bottom: .75rem; }
.status-select { min-width: 130px; }
.ticket-meta { color: var(--text-muted); font-size: .85rem; }
.simple-message-page { min-height:100vh; display:grid; place-items:center; padding:2rem; background: var(--bg-body); }
.simple-message-card { text-align:center; max-width: 420px; width:100%; }
.simple-message-card i { font-size:3rem; color: var(--primary); margin-bottom:1rem; }
@media (max-width: 991px) {
  .payment-showcase, .checkout-grid, .dashboard-hero-grid { grid-template-columns: 1fr; }
  .admin-toolbar { align-items:stretch; }
  .admin-toolbar-actions { flex-direction:column; }
}
@media (max-width: 640px) {
  .payment-feature-grid, .summary-metrics { grid-template-columns: 1fr; }
}
