/*
 * Emad Template - Modern Professional Theme
 * Built with CSS Variables, Glassmorphism & Modern Design
 * Compatible with Bootstrap 5.3.8 RTL/LTR
 */

/* ===== CSS Variables / Theme System ===== */
:root {
    --emad-primary: #6366f1;
    --emad-primary-rgb: 99, 102, 241;
    --emad-primary-dark: #4f46e5;
    --emad-primary-light: #a5b4fc;
    --emad-primary-lighter: #e0e7ff;
    --emad-secondary: #0ea5e9;
    --emad-secondary-rgb: 14, 165, 233;
    --emad-accent: #f59e0b;
    --emad-accent-rgb: 245, 158, 11;
    --emad-success: #10b981;
    --emad-success-rgb: 16, 185, 129;
    --emad-danger: #ef4444;
    --emad-danger-rgb: 239, 68, 68;
    --emad-warning: #f59e0b;
    --emad-warning-rgb: 245, 158, 11;
    --emad-info: #06b6d4;
    --emad-info-rgb: 6, 182, 212;
    --emad-gradient-1: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --emad-gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --emad-gradient-3: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --emad-gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4338ca 100%);
    --emad-gradient-mesh: radial-gradient(at 20% 80%, rgba(99,102,241,0.15) 0%, transparent 50%), radial-gradient(at 80% 20%, rgba(14,165,233,0.12) 0%, transparent 50%), radial-gradient(at 50% 50%, rgba(245,158,11,0.05) 0%, transparent 50%);
    --emad-bg: #ffffff;
    --emad-bg-secondary: #f8fafc;
    --emad-bg-card: #ffffff;
    --emad-bg-glass: rgba(255, 255, 255, 0.7);
    --emad-bg-glass-strong: rgba(255, 255, 255, 0.85);
    --emad-text: #1e293b;
    --emad-text-secondary: #64748b;
    --emad-text-muted: #94a3b8;
    --emad-border: #e2e8f0;
    --emad-border-light: #f1f5f9;
    --emad-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --emad-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --emad-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --emad-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --emad-shadow-glow: 0 0 20px rgba(var(--emad-primary-rgb), 0.15);
    --emad-radius: 12px;
    --emad-radius-lg: 20px;
    --emad-radius-xl: 28px;
    --emad-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --emad-transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --emad-transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --emad-navbar-bg: rgba(255, 255, 255, 0.85);
    --emad-footer-bg: #0f172a;
    --emad-footer-text: #cbd5e1;
}

/* Dark Mode */
[data-theme="dark"] {
    --emad-bg: #0a0e1a;
    --emad-bg-secondary: #111827;
    --emad-bg-card: #1a1f35;
    --emad-bg-glass: rgba(26, 31, 53, 0.85);
    --emad-bg-glass-strong: rgba(26, 31, 53, 0.95);
    --emad-text: #f1f5f9;
    --emad-text-secondary: #94a3b8;
    --emad-text-muted: #64748b;
    --emad-border: #2a3150;
    --emad-border-light: #1e2540;
    --emad-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --emad-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --emad-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --emad-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --emad-shadow-glow: 0 0 25px rgba(var(--emad-primary-rgb), 0.2);
    --emad-gradient-mesh: radial-gradient(at 20% 80%, rgba(99,102,241,0.08) 0%, transparent 50%), radial-gradient(at 80% 20%, rgba(14,165,233,0.06) 0%, transparent 50%);
    --emad-navbar-bg: rgba(10, 14, 26, 0.92);
    --emad-footer-bg: #050810;
    --emad-footer-text: #94a3b8;
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--emad-bg);
    background-image: var(--emad-gradient-mesh);
    background-attachment: fixed;
    color: var(--emad-text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: var(--emad-primary);
    transition: var(--emad-transition);
}

a:hover {
    color: var(--emad-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--emad-bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--emad-primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--emad-primary-dark);
}

/* ===== Selection ===== */
::selection {
    background: var(--emad-primary);
    color: #fff;
}

/* ===== Navbar ===== */
.emad-navbar {
    background: var(--emad-navbar-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(var(--emad-primary-rgb), 0.08);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--emad-transition-smooth);
}

.emad-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 0.4rem 0;
}

.emad-navbar .navbar-brand img {
    max-height: 45px;
    transition: var(--emad-transition);
}

.emad-navbar .nav-link {
    color: var(--emad-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--emad-transition);
    position: relative;
}

.emad-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    background: var(--emad-gradient-1);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emad-navbar .nav-link:hover::after,
.emad-navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.emad-navbar .nav-link.dropdown-toggle::after {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.emad-navbar .nav-link:hover,
.emad-navbar .nav-link.active {
    color: var(--emad-primary) !important;
    background: rgba(var(--emad-primary-rgb), 0.08);
}

.emad-navbar .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-inline-end: 4px;
}

.emad-navbar .dropdown-menu {
    background: var(--emad-bg-glass-strong);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--emad-border);
    border-radius: var(--emad-radius);
    box-shadow: var(--emad-shadow-xl), 0 0 0 1px rgba(var(--emad-primary-rgb), 0.05);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.emad-navbar .dropdown-item {
    color: var(--emad-text);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: var(--emad-transition);
}

.emad-navbar .dropdown-item:hover {
    background: rgba(var(--emad-primary-rgb), 0.08);
    color: var(--emad-primary);
}

.emad-navbar .navbar-toggler {
    border: 1px solid var(--emad-border);
    border-radius: 8px;
    padding: 6px 10px;
}

.emad-navbar .navbar-toggler-icon {
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emad-navbar .navbar-toggler-icon::before {
    content: "\f479";
    font-family: "bootstrap-icons";
    font-size: 1.2rem;
    color: var(--emad-text);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--emad-border);
    background: var(--emad-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--emad-transition-spring);
    font-size: 1.1rem;
    color: var(--emad-text);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(var(--emad-primary-rgb), 0.1);
    border-color: var(--emad-primary);
    color: var(--emad-primary);
    transform: rotate(30deg) scale(1.1);
    box-shadow: var(--emad-shadow-glow);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(var(--emad-primary-rgb), 0.06);
    transition: var(--emad-transition);
    cursor: pointer;
}

.lang-switch:hover {
    background: rgba(var(--emad-primary-rgb), 0.12);
}

.lang-switch img {
    width: 22px;
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.emad-hero {
    background: var(--emad-gradient-hero);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.emad-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--emad-primary-rgb), 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite;
}

.emad-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--emad-secondary-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 10s ease-in-out infinite reverse;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33% { transform: translate(30px, -20px) scale(1.15); opacity: 1; }
    66% { transform: translate(-20px, 15px) scale(0.9); opacity: 0.8; }
}

/* Hero floating orbs */
.emad-hero .hero-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}

.emad-hero .hero-orb:nth-child(1) {
    width: 120px; height: 120px; top: 15%; left: 8%;
    animation-delay: 0s;
}
.emad-hero .hero-orb:nth-child(2) {
    width: 60px; height: 60px; top: 65%; right: 12%;
    animation-delay: -4s;
}
.emad-hero .hero-orb:nth-child(3) {
    width: 80px; height: 80px; bottom: 20%; left: 40%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-10px) rotate(2deg); }
}

.emad-hero .hero-content {
    position: relative;
    z-index: 2;
}

.emad-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    text-wrap: balance;
}

.emad-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 550px;
    text-wrap: balance;
}

.emad-hero .hero-img {
    max-height: 420px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
    animation: heroFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Buttons ===== */
.emad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--emad-transition-spring);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Shimmer effect on hover */
.emad-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.emad-btn:hover::before {
    left: 100%;
}

.emad-btn-primary {
    background: var(--emad-gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--emad-primary-rgb), 0.35);
}

.emad-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(var(--emad-primary-rgb), 0.5);
    color: #fff;
}

.emad-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.emad-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
}

.emad-btn-outline {
    background: transparent;
    color: var(--emad-primary);
    border: 2px solid var(--emad-primary);
}

.emad-btn-outline:hover {
    background: var(--emad-primary);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(var(--emad-primary-rgb), 0.35);
}

.emad-btn-success {
    background: var(--emad-gradient-3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.emad-btn-success:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.emad-btn-danger {
    background: var(--emad-danger);
    color: #fff;
}

.emad-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    box-shadow: 0 8px 25px rgba(var(--emad-danger-rgb), 0.4);
}

.emad-btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.emad-btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.emad-btn-block {
    width: 100%;
}

.emad-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* ===== Cards ===== */
.emad-card {
    background: var(--emad-bg-card);
    border: 1px solid var(--emad-border);
    border-radius: var(--emad-radius);
    padding: 1.5rem;
    transition: var(--emad-transition-spring);
    box-shadow: var(--emad-shadow);
    position: relative;
}

.emad-card:hover {
    box-shadow: var(--emad-shadow-xl), var(--emad-shadow-glow);
    transform: translateY(-6px);
    border-color: rgba(var(--emad-primary-rgb), 0.2);
}

.emad-card-glass {
    background: var(--emad-bg-glass);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--emad-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .emad-card-glass {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.emad-card-gradient {
    background: var(--emad-gradient-1);
    border: none;
    color: #fff;
    border-radius: var(--emad-radius-lg);
}

.emad-feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.emad-feature-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    background: rgba(var(--emad-primary-rgb), 0.1);
    color: var(--emad-primary);
    transition: var(--emad-transition-spring);
}

.emad-feature-card:hover .feature-icon {
    background: var(--emad-gradient-1);
    color: #fff;
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 12px 35px rgba(var(--emad-primary-rgb), 0.35);
}

.emad-feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--emad-text);
}

.emad-feature-card p {
    color: var(--emad-text-secondary);
    font-size: 0.9rem;
}

/* ===== Login Section ===== */
.emad-login-section {
    padding: 3rem 0;
}

.emad-login-card {
    background: var(--emad-bg-card);
    border: 1px solid var(--emad-border);
    border-radius: var(--emad-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--emad-shadow-xl);
    position: relative;
    overflow: hidden;
}

.emad-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--emad-gradient-1);
}

.login-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: var(--emad-transition);
}

.login-icon-box.apple {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

[data-theme="dark"] .login-icon-box.apple {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login-icon-box.android {
    background: rgba(61, 220, 132, 0.1);
    color: #3DDC84;
}

/* ===== Section Styles ===== */
.emad-section {
    padding: 4rem 0;
}

.emad-section-alt {
    background: var(--emad-bg-secondary);
}

.emad-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.emad-section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--emad-text);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.emad-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--emad-gradient-1);
    border-radius: 2px;
}

.emad-section-title p {
    color: var(--emad-text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0.8rem auto 0;
}

/* ===== Package Cards ===== */
.emad-package-card {
    background: var(--emad-bg-card);
    border: 1px solid var(--emad-border);
    border-radius: var(--emad-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--emad-transition-spring);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.emad-package-card.featured {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--emad-bg-card), var(--emad-bg-card)), var(--emad-gradient-1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 30px rgba(var(--emad-primary-rgb), 0.15), var(--emad-shadow-xl);
}

.emad-package-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--emad-gradient-1);
    z-index: 2;
}

.emad-package-card.featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--emad-gradient-1);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(12px);
}

.emad-package-card.featured:hover::after {
    opacity: 0.4;
}

.emad-package-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--emad-shadow-xl);
}

.emad-package-card .package-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--emad-gradient-1);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.emad-package-card .package-price {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--emad-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.emad-package-card .package-price small {
    font-size: 1rem;
    color: var(--emad-text-secondary);
    font-weight: 500;
}

.emad-package-card .package-features li {
    padding: 0.5rem 0;
    color: var(--emad-text-secondary);
    border-bottom: 1px solid var(--emad-border);
    font-size: 0.9rem;
}

.emad-package-card .package-features li:last-child {
    border-bottom: none;
}

.emad-package-card .package-features li i {
    color: var(--emad-success);
    margin-inline-end: 6px;
}

/* ===== Product / Shop Cards ===== */
.emad-product-card {
    background: var(--emad-bg-card);
    border: 1px solid var(--emad-border);
    border-radius: var(--emad-radius);
    overflow: hidden;
    transition: var(--emad-transition);
}

.emad-product-card:hover {
    box-shadow: var(--emad-shadow-xl), var(--emad-shadow-glow);
    transform: translateY(-6px);
}

.emad-product-card .product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: var(--emad-transition);
}

.emad-product-card:hover .product-img {
    transform: scale(1.05);
}

.emad-product-card .product-img-wrap {
    overflow: hidden;
    position: relative;
}

.emad-product-card .product-body {
    padding: 1.2rem;
}

.emad-product-card .product-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--emad-text);
}

.emad-product-card .product-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--emad-primary);
}

.emad-product-card .product-old-price {
    text-decoration: line-through;
    color: var(--emad-text-muted);
    font-size: 0.85rem;
    margin-inline-start: 6px;
}

/* ===== Forms ===== */
.emad-form-control {
    background: var(--emad-bg-card);
    border: 1.5px solid var(--emad-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--emad-text);
    transition: var(--emad-transition);
    width: 100%;
}

.emad-form-control:focus {
    border-color: var(--emad-primary);
    box-shadow: 0 0 0 4px rgba(var(--emad-primary-rgb), 0.12);
    outline: none;
}

.emad-form-control::placeholder {
    color: var(--emad-text-muted);
}

/* Focus-visible for accessibility */
:focus-visible {
    outline: 2px solid var(--emad-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--emad-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.form-control {
    background: var(--emad-bg-card) !important;
    border: 1.5px solid var(--emad-border) !important;
    border-radius: 10px !important;
    color: var(--emad-text) !important;
    transition: var(--emad-transition) !important;
}

.form-control:focus {
    border-color: var(--emad-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--emad-primary-rgb), 0.12) !important;
}

.form-select {
    background-color: var(--emad-bg-card) !important;
    border: 1.5px solid var(--emad-border) !important;
    border-radius: 10px !important;
    color: var(--emad-text) !important;
}

.form-select:focus {
    border-color: var(--emad-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--emad-primary-rgb), 0.12) !important;
}

.form-label {
    font-weight: 600;
    color: var(--emad-text);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* ===== Tables ===== */
.emad-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.emad-table thead th {
    background: rgba(var(--emad-primary-rgb), 0.06);
    font-weight: 700;
    color: var(--emad-text);
    padding: 12px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--emad-border);
}

.emad-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--emad-border);
    color: var(--emad-text);
    vertical-align: middle;
}

.emad-table tbody tr:hover {
    background: rgba(var(--emad-primary-rgb), 0.03);
}

.table {
    color: var(--emad-text) !important;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--emad-text) !important;
}

/* ===== Badges ===== */
.emad-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.emad-badge-primary {
    background: rgba(var(--emad-primary-rgb), 0.1);
    color: var(--emad-primary);
}

.emad-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emad-success);
}

.emad-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--emad-danger);
}

.emad-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--emad-warning);
}

/* ===== Footer ===== */
.emad-footer {
    background: var(--emad-footer-bg);
    color: var(--emad-footer-text);
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

.emad-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--emad-gradient-1);
}

.emad-footer::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--emad-primary-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.emad-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.emad-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emad-footer ul li {
    margin-bottom: 0.6rem;
}

.emad-footer ul li a {
    color: var(--emad-footer-text);
    font-size: 0.9rem;
    transition: var(--emad-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.emad-footer ul li a:hover {
    color: var(--emad-primary-light);
    padding-inline-start: 6px;
}

.emad-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--emad-footer-text);
    margin-inline-end: 8px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    transition: var(--emad-transition);
}

.emad-footer-social a:hover {
    background: var(--emad-gradient-1);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--emad-primary-rgb), 0.3);
}

.emad-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

.payment-methods img {
    height: 30px;
    margin: 4px;
    border-radius: 6px;
    background: #fff;
    padding: 3px 8px;
    transition: var(--emad-transition);
}

.payment-methods img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ===== ALerts / Messages ===== */
.alert {
    border-radius: var(--emad-radius) !important;
    border: none !important;
}

/* ===== CTA Section ===== */
.emad-cta {
    background: var(--emad-gradient-1);
    border-radius: var(--emad-radius-xl);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emad-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: ctaPulse 6s ease-in-out infinite;
}

.emad-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: ctaPulse 8s ease-in-out infinite reverse;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.emad-cta h2 {
    color: #fff;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.emad-cta p {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

/* ===== News Ticker ===== */
.emad-news-ticker {
    background: rgba(var(--emad-primary-rgb), 0.06);
    border: 1px solid rgba(var(--emad-primary-rgb), 0.1);
    border-radius: var(--emad-radius);
    padding: 10px 20px;
    margin: 1rem 0;
    overflow: hidden;
}

.emad-news-ticker .news-label {
    background: var(--emad-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-inline-end: 12px;
    white-space: nowrap;
}

/* ===== Slideshow ===== */
.emad-slideshow .swiper-slide img {
    border-radius: var(--emad-radius-lg);
    box-shadow: var(--emad-shadow-md);
}

/* ===== Breadcrumb ===== */
.emad-breadcrumb {
    background: var(--emad-bg-secondary);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--emad-border);
}

.emad-breadcrumb .breadcrumb-item a {
    color: var(--emad-text-secondary);
    font-size: 0.9rem;
}

.emad-breadcrumb .breadcrumb-item.active {
    color: var(--emad-primary);
    font-weight: 600;
}

/* ===== Page Header ===== */
.emad-page-header {
    background: var(--emad-gradient-hero);
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emad-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--emad-primary-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 12s ease-in-out infinite;
}

.emad-page-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--emad-secondary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 10s ease-in-out infinite reverse;
}

.emad-page-header h1,
.emad-page-header h4 {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.emad-page-header p {
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
}

.emad-page-header .breadcrumb {
    justify-content: center;
    position: relative;
    z-index: 1;
}

.emad-page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65);
    transition: var(--emad-transition);
}

.emad-page-header .breadcrumb-item a:hover {
    color: #fff;
}

.emad-page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.emad-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Floating Cart ===== */
#MyCart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

[dir="rtl"] #MyCart {
    right: auto;
    left: 30px;
}

#MyCart a {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--emad-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 30px rgba(var(--emad-primary-rgb), 0.45);
    transition: var(--emad-transition-spring);
    animation: cartPulse 3s ease-in-out infinite;
}

@keyframes cartPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(var(--emad-primary-rgb), 0.45); }
    50% { box-shadow: 0 8px 40px rgba(var(--emad-primary-rgb), 0.65); }
}

#MyCart a:hover {
    transform: translateY(-5px) scale(1.1);
    animation: none;
    box-shadow: 0 12px 40px rgba(var(--emad-primary-rgb), 0.6);
}

#MyCart span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--emad-danger);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Modal Overrides ===== */
.modal-content {
    background: var(--emad-bg-card) !important;
    border: 1px solid var(--emad-border) !important;
    border-radius: var(--emad-radius-lg) !important;
    box-shadow: var(--emad-shadow-xl) !important;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    border-bottom-color: var(--emad-border) !important;
}

.modal-footer {
    border-top-color: var(--emad-border) !important;
}

.modal-title {
    color: var(--emad-text) !important;
    font-weight: 700;
}

/* ===== Utilities ===== */
.emad-text-gradient {
    background: var(--emad-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emad-bg-pattern {
    background-image: 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='%236366f1' 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");
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ===== Empty State ===== */
.emad-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.emad-empty-state i {
    font-size: 4rem;
    color: var(--emad-text-muted);
    margin-bottom: 1rem;
    display: block;
}

.emad-empty-state h5 {
    color: var(--emad-text);
    font-weight: 700;
}

.emad-empty-state p {
    color: var(--emad-text-secondary);
}

/* ===== Loading Skeleton ===== */
.emad-skeleton {
    background: linear-gradient(90deg, var(--emad-border) 25%, var(--emad-bg-secondary) 50%, var(--emad-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Animations ===== */
.emad-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: emadFadeIn 0.6s ease forwards;
}

@keyframes emadFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emad-fade-in-delay-1 { animation-delay: 0.1s; }
.emad-fade-in-delay-2 { animation-delay: 0.2s; }
.emad-fade-in-delay-3 { animation-delay: 0.3s; }
.emad-fade-in-delay-4 { animation-delay: 0.4s; }

/* ===== Close/Maintenance Page ===== */
.emad-maintenance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emad-gradient-hero);
    text-align: center;
    padding: 2rem;
}

.emad-maintenance i {
    font-size: 5rem;
    color: var(--emad-primary-light);
    margin-bottom: 1.5rem;
}

.emad-maintenance h1 {
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
}

.emad-maintenance p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 1rem auto;
}

/* ===== Error Page ===== */
.emad-error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.emad-error-page .error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--emad-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Invoice / Orders ===== */
.emad-order-card {
    background: var(--emad-bg-card);
    border: 1px solid var(--emad-border);
    border-radius: var(--emad-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--emad-transition);
}

.emad-order-card:hover {
    border-color: rgba(var(--emad-primary-rgb), 0.2);
    box-shadow: var(--emad-shadow-md);
}

/* ===== Pagination ===== */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    border-color: var(--emad-border);
    color: var(--emad-text);
    background: var(--emad-bg-card);
    transition: var(--emad-transition);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--emad-primary);
    border-color: var(--emad-primary);
    color: #fff;
}

/* ===== Accordion ===== */
.accordion-item {
    background: var(--emad-bg-card) !important;
    border-color: var(--emad-border) !important;
    border-radius: var(--emad-radius) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--emad-bg-card) !important;
    color: var(--emad-text) !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: rgba(var(--emad-primary-rgb), 0.05) !important;
    color: var(--emad-primary) !important;
}

/* ===== Whatsapp Button ===== */
.emad-whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--emad-transition);
}

[dir="rtl"] .emad-whatsapp-btn {
    right: auto;
    left: 30px;
}

.emad-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* ===== Status Steps ===== */  
.emad-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem 0;
    position: relative;
}

.emad-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    max-width: 160px;
}

/* Connector line between steps */
.emad-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--emad-border);
    z-index: 0;
}

.emad-step.completed:not(:last-child)::after {
    background: var(--emad-gradient-3);
}

.emad-step .step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--emad-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--emad-text-muted);
    transition: var(--emad-transition-spring);
    position: relative;
    z-index: 1;
    border: 3px solid var(--emad-bg);
}

.emad-step.active .step-circle {
    background: var(--emad-gradient-1);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--emad-primary-rgb), 0.2);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(var(--emad-primary-rgb), 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(var(--emad-primary-rgb), 0.1); }
}

.emad-step.completed .step-circle {
    background: var(--emad-success);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--emad-success-rgb), 0.3);
}

.emad-step .step-label {
    font-size: 0.8rem;
    color: var(--emad-text-secondary);
    font-weight: 500;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .emad-hero { min-height: 400px; padding: 3rem 0; }
    .emad-hero h1 { font-size: 1.8rem; }
    .emad-section { padding: 3rem 0; }
    .emad-page-header { padding: 2.5rem 0 2rem; }
    .emad-page-header h1,
    .emad-page-header h4 { font-size: 1.6rem; }
}

@media (max-width: 767px) {
    .emad-hero { min-height: auto; padding: 2.5rem 0; text-align: center; }
    .emad-hero p { margin: 0.8rem auto 1.5rem; }
    .emad-hero .hero-img { max-height: 280px; margin-top: 2rem; }
    .emad-section-title h2 { font-size: 1.6rem; }
    .emad-login-card { padding: 1.5rem; }
    .emad-cta { padding: 2rem 1.5rem; border-radius: var(--emad-radius-lg); }
    .emad-footer { padding-top: 3rem; }
    .emad-page-header { padding: 2rem 0 1.5rem; }
    .emad-page-header h1,
    .emad-page-header h4 { font-size: 1.4rem; }
    .emad-step:not(:last-child)::after { display: none; }
    .emad-steps { gap: 0.5rem; }
}

@media (max-width: 575px) {
    .emad-hero h1 { font-size: 1.5rem; }
    .emad-package-card { padding: 1.5rem; }
    .emad-card { padding: 1.2rem; }
    .emad-section-title h2 { font-size: 1.4rem; }
    .emad-btn-lg { padding: 12px 28px; font-size: 0.95rem; }
}

/* ================================================================
   PREMIUM 2026 UTILITIES & EFFECTS
   ================================================================ */

/* ===== Gradient Border Utility ===== */
.emad-gradient-border {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--emad-bg-card), var(--emad-bg-card)), var(--emad-gradient-1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ===== Animated Gradient Text ===== */
.emad-text-gradient-animated {
    background: linear-gradient(270deg, #6366f1, #0ea5e9, #10b981, #f59e0b, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Glow Box ===== */
.emad-glow {
    box-shadow: var(--emad-shadow-glow);
    transition: box-shadow 0.4s ease;
}

.emad-glow:hover {
    box-shadow: 0 0 35px rgba(var(--emad-primary-rgb), 0.25), 0 0 60px rgba(var(--emad-primary-rgb), 0.1);
}

/* ===== Hover Lift (stronger) ===== */
.emad-hover-lift {
    transition: var(--emad-transition-spring);
}

.emad-hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--emad-shadow-xl);
}

/* ===== Scroll Reveal Animation ===== */
.emad-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.emad-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.emad-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.emad-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.emad-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.emad-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Status Dot / Pulse ===== */
.emad-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.emad-status-dot.online {
    background: var(--emad-success);
}

.emad-status-dot.online::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--emad-success);
    animation: statusPing 1.5s ease-in-out infinite;
}

@keyframes statusPing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Premium Badge with Shine ===== */
.emad-badge-premium {
    background: var(--emad-gradient-1);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.emad-badge-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* ===== Noise Texture Overlay ===== */
.emad-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ===== Divider ===== */
.emad-divider {
    height: 3px;
    width: 60px;
    background: var(--emad-gradient-1);
    border-radius: 2px;
    margin: 1rem auto;
}

/* ===== Counter / Stats Card ===== */
.emad-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.emad-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--emad-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.emad-stat-card .stat-label {
    color: var(--emad-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* ===== Glass Input Group ===== */
.emad-input-glass {
    background: var(--emad-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--emad-primary-rgb), 0.1);
    border-radius: var(--emad-radius);
    padding: 4px;
    display: flex;
    gap: 4px;
}

.emad-input-glass input {
    border: none;
    background: transparent;
    padding: 10px 16px;
    flex: 1;
    color: var(--emad-text);
    outline: none;
    font-size: 0.95rem;
}

.emad-input-glass button {
    border-radius: 8px;
}

/* ===== Tooltip Glow ===== */
.tooltip-inner {
    background: var(--emad-bg-card) !important;
    color: var(--emad-text) !important;
    border: 1px solid var(--emad-border);
    box-shadow: var(--emad-shadow-lg);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* ===== Image Hover Zoom ===== */
.emad-img-zoom {
    overflow: hidden;
    border-radius: var(--emad-radius);
}

.emad-img-zoom img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.emad-img-zoom:hover img {
    transform: scale(1.08);
}

/* ===== Floating Label Enhancement ===== */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--emad-primary) !important;
    font-weight: 600;
}

/* ===== Login Card Gradient Top ===== */
.emad-login-card::before {
    background: var(--emad-gradient-1) !important;
    height: 4px;
    border-radius: 2px 2px 0 0;
}

/* ===== Card Ribbon ===== */
.emad-ribbon {
    position: absolute;
    top: 16px;
    right: -8px;
    background: var(--emad-gradient-1);
    color: #fff;
    padding: 4px 16px 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 8px rgba(var(--emad-primary-rgb), 0.3);
}

[dir="rtl"] .emad-ribbon {
    right: auto;
    left: -8px;
    border-radius: 0 4px 4px 0;
}

.emad-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    border: 4px solid transparent;
    border-top-color: var(--emad-primary-dark);
    border-right-color: var(--emad-primary-dark);
}

[dir="rtl"] .emad-ribbon::after {
    right: auto;
    left: 0;
    border-right-color: transparent;
    border-left-color: var(--emad-primary-dark);
}

/* ===== Print Styles ===== */
@media print {
    .emad-navbar,
    .emad-footer,
    .emad-whatsapp-btn,
    #MyCart,
    .theme-toggle {
        display: none !important;
    }
    .emad-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .emad-hero .hero-img { animation: none; }
    .emad-card:hover { transform: none; }
    .emad-btn:hover { transform: none; }
    .emad-package-card:hover { transform: none; }
    #MyCart a { animation: none; }
}
