/**
 * ====================================================================
 * Hesabgaran Modern Design System - استایل مدرن حسابگران تفکر برتر
 * ====================================================================
 */

/* --------------------------------------------------
 * 1. Font Definitions & Typography
 * -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'iranSans';
    src: url('/mainPage/Fonts/iran_sans_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranSans';
    src: url('/mainPage/Fonts/iran_sans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranSans';
    src: url('/mainPage/Fonts/iran_sans_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranSans';
    src: url('/mainPage/Fonts/iran_sans_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranSans';
    src: url('/mainPage/Fonts/iran_sans_black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------
 * 2. Design Tokens / CSS Variables
 * -------------------------------------------------- */
:root {
    /* Brand Colors */
    --hg-primary: #0f2b5c;
    --hg-primary-dark: #0a1b3a;
    --hg-primary-light: #1e4587;
    --hg-primary-gradient: linear-gradient(135deg, #0a1e3f 0%, #163e7c 50%, #1e52a4 100%);
    --hg-hero-gradient: linear-gradient(135deg, #071936 0%, #0f2b5c 100%);
    
    /* Accent Colors */
    --hg-accent: #2563eb;
    --hg-accent-hover: #1d4ed8;
    --hg-accent-light: #eff6ff;
    --hg-amber: #f59e0b;
    --hg-amber-dark: #d97706;
    --hg-amber-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --hg-orange: #f97316;
    --hg-orange-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    --hg-emerald: #10b981;
    --hg-emerald-dark: #059669;
    --hg-emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --hg-cyan: #06b6d4;

    /* Neutrals & Surfaces */
    --hg-bg: #f8fafc;
    --hg-surface: #ffffff;
    --hg-surface-muted: #f1f5f9;
    --hg-border: #e2e8f0;
    --hg-border-subtle: #edf2f7;
    --hg-border-strong: #cbd5e1;

    /* Text Colors */
    --hg-text-heading: #0f172a;
    --hg-text-body: #334155;
    --hg-text-muted: #64748b;
    --hg-text-light: #94a3b8;

    /* Shadows */
    --hg-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --hg-shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --hg-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --hg-shadow-lg: 0 12px 28px -4px rgba(15, 43, 92, 0.12), 0 4px 8px -4px rgba(15, 43, 92, 0.06);
    --hg-shadow-xl: 0 20px 35px -8px rgba(15, 43, 92, 0.18);
    --hg-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);
    --hg-shadow-emerald-glow: 0 0 20px rgba(16, 185, 129, 0.35);

    /* Radii */
    --hg-radius-sm: 8px;
    --hg-radius-md: 12px;
    --hg-radius-lg: 16px;
    --hg-radius-xl: 22px;
    --hg-radius-pill: 9999px;

    /* Transitions */
    --hg-transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --hg-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --hg-transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------
 * 3. Base & Reset
 * -------------------------------------------------- */
html {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'iranSans', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    background-color: var(--hg-bg) !important;
    color: var(--hg-text-body) !important;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'iranSans', 'Vazirmatn', sans-serif !important;
    color: var(--hg-text-heading);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: 0.95rem; }

p {
    color: var(--hg-text-body);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

a {
    color: var(--hg-accent);
    text-decoration: none;
    transition: var(--hg-transition-fast);
}

a:hover {
    color: var(--hg-accent-hover);
}

/* Persian selection */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--hg-primary-dark);
}

/* --------------------------------------------------
 * 4. Header & Navigation Components
 * -------------------------------------------------- */

/* Top Info Bar */
.hg-topbar {
    background: #091a33;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hg-topbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: var(--hg-transition-fast);
}

.hg-topbar a:hover {
    color: #38bdf8;
}

.hg-topbar .badge-status {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 2px 10px;
    border-radius: var(--hg-radius-pill);
    font-size: 11px;
    font-weight: 500;
}

/* Main Brand Header (Logo + Search + Fast CTA) */
.hg-main-header {
    background: var(--hg-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--hg-border-subtle);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.hg-brand-logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--hg-transition);
}

.hg-brand-logo:hover img {
    transform: scale(1.02);
}

/* Fast Actions (Quick Buttons) */
.hg-fast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--hg-radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hg-transition);
    border: none;
    box-shadow: var(--hg-shadow-sm);
    white-space: nowrap;
}

.hg-fast-btn-education {
    background: var(--hg-orange-gradient);
    color: #ffffff !important;
}

.hg-fast-btn-education:hover {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.hg-fast-btn-circular {
    background: var(--hg-primary-gradient);
    color: #ffffff !important;
}

.hg-fast-btn-circular:hover {
    background: linear-gradient(135deg, #0f2b5c 0%, #1e4587 100%);
    box-shadow: 0 6px 18px rgba(15, 43, 92, 0.3);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Modern Search Box */
.search-inline {
    position: relative;
    width: 100%;
}

.search-inline .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-inline .form-control {
    width: 100%;
    height: 48px;
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--hg-radius-pill);
    border: 1.5px solid var(--hg-border);
    padding: 0 48px 0 20px;
    background-color: var(--hg-surface-muted);
    color: var(--hg-text-heading);
    transition: var(--hg-transition);
}

.search-inline .form-control:focus {
    background-color: #ffffff;
    border-color: var(--hg-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.search-inline .form-control::placeholder {
    color: var(--hg-text-light);
    font-size: 13.5px;
}

.search-inline .search-icon-inside {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hg-text-muted);
    font-size: 16px;
    pointer-events: none;
}

/* Search Dropdown Results */
#searchResult {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius-lg);
    box-shadow: var(--hg-shadow-xl);
    margin: 0;
    padding: 8px;
    list-style: none;
}

#searchResult:empty {
    display: none;
}

#searchResult li {
    margin-bottom: 4px;
    border-radius: var(--hg-radius-sm);
    transition: var(--hg-transition-fast);
}

#searchResult li:last-child {
    margin-bottom: 0;
}

#searchResult li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--hg-radius-sm);
    color: var(--hg-text-heading);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--hg-transition-fast);
}

#searchResult li a:hover {
    background-color: var(--hg-surface-muted);
    color: var(--hg-accent);
    padding-right: 18px;
}

#searchResult li a .search-item-cat {
    font-size: 11.5px;
    color: var(--hg-accent);
    background: var(--hg-accent-light);
    padding: 3px 8px;
    border-radius: var(--hg-radius-pill);
    font-weight: 500;
}

/* Modern Primary Navigation Bar */
.hg-navbar-wrap {
    background: #ffffff;
    border-bottom: 1px solid var(--hg-border);
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    padding: 0 !important;
}

.navbar .navbar-nav .nav-link {
    color: var(--hg-text-body) !important;
    font-size: 14.5px;
    font-weight: 600;
    padding: 16px 14px !important;
    position: relative;
    transition: var(--hg-transition);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--hg-accent) !important;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--hg-accent);
    border-radius: 3px 3px 0 0;
    transition: transform 0.25s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    transform: translateX(50%) scaleX(1);
}

/* Navbar Action Items (User Profile / Cart) */
.hg-nav-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--hg-radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hg-transition);
    border: 1.5px solid var(--hg-border);
    background: var(--hg-surface);
    color: var(--hg-text-heading) !important;
}

.hg-nav-action:hover {
    border-color: var(--hg-accent);
    color: var(--hg-accent) !important;
    background: var(--hg-accent-light);
    transform: translateY(-1px);
    box-shadow: var(--hg-shadow-xs);
}

.hg-nav-action-primary {
    background: var(--hg-primary-gradient);
    color: #ffffff !important;
    border: none;
}

.hg-nav-action-primary:hover {
    background: linear-gradient(135deg, #13346d 0%, #205ab0 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.25);
}

.hg-cart-badge {
    background: var(--hg-orange);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--hg-radius-pill);
}

/* Mobile Toggler */
.navbar-toggler {
    border: 1px solid var(--hg-border);
    padding: 8px 12px;
    border-radius: var(--hg-radius-sm);
    color: var(--hg-text-heading);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------
 * 5. Modern Cards & Sections
 * -------------------------------------------------- */

/* Section Titles */
.hg-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.hg-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hg-accent-light);
    color: var(--hg-accent);
    padding: 6px 14px;
    border-radius: var(--hg-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hg-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--hg-text-heading);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.hg-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--hg-accent);
    border-radius: 4px;
    margin: 10px auto 0 auto;
}

.hg-section-desc {
    color: var(--hg-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Product Card */
.hg-product-card {
    background: #ffffff;
    border-radius: var(--hg-radius-lg);
    border: 1px solid var(--hg-border);
    overflow: hidden;
    transition: var(--hg-transition);
    box-shadow: var(--hg-shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hg-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hg-shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.hg-product-thumb {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: #f1f5f9;
}

.hg-product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-product-card:hover .hg-product-thumb img {
    transform: scale(1.06);
}

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

.hg-product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hg-text-heading);
    margin-bottom: 14px;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-product-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hg-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hg-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--hg-surface-muted);
    color: var(--hg-primary);
    border-radius: var(--hg-radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--hg-transition-fast);
}

.hg-product-card:hover .hg-product-btn {
    background: var(--hg-primary-gradient);
    color: #ffffff;
}

/* Article Card */
.hg-article-card {
    background: #ffffff;
    border-radius: var(--hg-radius-lg);
    border: 1px solid var(--hg-border);
    overflow: hidden;
    box-shadow: var(--hg-shadow-xs);
    transition: var(--hg-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hg-article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hg-shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.hg-article-thumb-wrap {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: #f1f5f9;
}

.hg-article-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-article-card:hover .hg-article-thumb-wrap img {
    transform: scale(1.06);
}

.hg-article-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--hg-primary-gradient);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--hg-radius-pill);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hg-article-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hg-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--hg-text-muted);
    margin-bottom: 10px;
}

.hg-article-meta i {
    color: var(--hg-accent);
}

.hg-article-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hg-text-heading);
    margin-bottom: 10px;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-article-title a {
    color: var(--hg-text-heading);
}

.hg-article-title a:hover {
    color: var(--hg-accent);
}

.hg-article-excerpt {
    font-size: 13.5px;
    color: var(--hg-text-body);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-article-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hg-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hg-article-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--hg-accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hg-article-more i {
    transition: transform 0.2s ease;
}

.hg-article-card:hover .hg-article-more i {
    transform: translateX(-4px);
}

/* Circular (بخشنامه‌ها) Modern Card */
.hg-circular-card {
    background: #ffffff;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--hg-transition);
    box-shadow: var(--hg-shadow-xs);
    margin-bottom: 14px;
}

.hg-circular-card:hover {
    border-color: var(--hg-accent);
    box-shadow: var(--hg-shadow-md);
    transform: translateX(-4px);
}

.hg-circular-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--hg-radius-md);
    background: var(--hg-accent-light);
    color: var(--hg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hg-circular-content {
    flex-grow: 1;
}

.hg-circular-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hg-text-heading);
    margin-bottom: 6px;
}

.hg-circular-title a {
    color: var(--hg-text-heading);
}

.hg-circular-title a:hover {
    color: var(--hg-accent);
}

.hg-circular-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--hg-text-muted);
}

.hg-circular-badge {
    background: var(--hg-surface-muted);
    color: var(--hg-primary);
    padding: 2px 10px;
    border-radius: var(--hg-radius-pill);
    font-size: 11.5px;
    font-weight: 600;
}

/* Circulars Announcement Hero Banner */
.hg-circular-banner-wrap {
    border-radius: var(--hg-radius-xl);
    overflow: hidden;
    box-shadow: var(--hg-shadow-md);
    border: 1px solid var(--hg-border);
    transition: var(--hg-transition);
    margin: 28px auto;
}

.hg-circular-banner-wrap:hover {
    box-shadow: var(--hg-shadow-xl);
    transform: translateY(-3px);
}

.hg-circular-banner-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.hg-service-card {
    background: #ffffff;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--hg-transition);
    box-shadow: var(--hg-shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hg-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hg-shadow-lg);
    border-color: var(--hg-accent);
}

.hg-service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--hg-radius-lg);
    background: var(--hg-accent-light);
    color: var(--hg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    transition: var(--hg-transition);
}

.hg-service-card:hover .hg-service-icon {
    background: var(--hg-primary-gradient);
    color: #ffffff;
    transform: scale(1.08);
}

.hg-service-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--hg-text-heading);
    margin-bottom: 12px;
}

.hg-service-desc {
    color: var(--hg-text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Testimonial Section */
.hg-testimonial-card {
    background: #ffffff;
    border-radius: var(--hg-radius-lg);
    border: 1px solid var(--hg-border);
    padding: 28px;
    box-shadow: var(--hg-shadow-sm);
    margin: 15px;
    transition: var(--hg-transition);
    position: relative;
}

.hg-testimonial-card::before {
    content: "\f10e";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 32px;
    color: rgba(37, 99, 235, 0.1);
}

.hg-testimonial-card:hover {
    box-shadow: var(--hg-shadow-lg);
    border-color: var(--hg-accent);
}

.hg-testimonial-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hg-testimonial-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hg-accent);
}

.hg-testimonial-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--hg-text-heading);
    margin-bottom: 2px;
}

.hg-testimonial-role {
    font-size: 12.5px;
    color: var(--hg-text-muted);
}

.hg-testimonial-stars {
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 14px;
}

.hg-testimonial-quote {
    color: var(--hg-text-body);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Contact Modern Section */
.hg-contact-card {
    background: #ffffff;
    border-radius: var(--hg-radius-lg);
    border: 1px solid var(--hg-border);
    padding: 24px;
    box-shadow: var(--hg-shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    transition: var(--hg-transition);
}

.hg-contact-card:hover {
    box-shadow: var(--hg-shadow-md);
    border-color: var(--hg-accent);
    transform: translateY(-3px);
}

.hg-contact-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--hg-radius-md);
    background: var(--hg-primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hg-contact-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hg-text-heading);
    margin-bottom: 6px;
}

.hg-contact-info a,
.hg-contact-info p {
    font-size: 14px;
    color: var(--hg-text-body);
    margin: 0;
    line-height: 1.6;
}

.hg-contact-form-card {
    background: #ffffff;
    border-radius: var(--hg-radius-xl);
    border: 1px solid var(--hg-border);
    padding: 36px;
    box-shadow: var(--hg-shadow-md);
}

.hg-form-control {
    width: 100%;
    border-radius: var(--hg-radius-sm);
    border: 1.5px solid var(--hg-border);
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--hg-text-heading);
    background-color: var(--hg-surface-muted);
    transition: var(--hg-transition);
}

.hg-form-control:focus {
    background-color: #ffffff;
    border-color: var(--hg-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* --------------------------------------------------
 * 6. Interior & Content Pages (.theme Modernized)
 * -------------------------------------------------- */
.theme,
.hg-content-card {
    background: #ffffff !important;
    border: 1px solid var(--hg-border) !important;
    border-radius: var(--hg-radius-xl) !important;
    box-shadow: var(--hg-shadow-sm) !important;
    padding: 36px !important;
    margin-top: 28px !important;
    margin-bottom: 36px !important;
    line-height: 1.85 !important;
    text-align: justify;
    direction: rtl;
}

@media (max-width: 768px) {
    .theme,
    .hg-content-card {
        padding: 20px !important;
    }
}

.theme h1, .theme h2, .theme h3 {
    color: var(--hg-primary-dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.theme hr {
    border-color: var(--hg-border-subtle);
    margin: 24px 0 !important;
    opacity: 0.8;
}

.theme p {
    color: var(--hg-text-body) !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
}

/* Call to Action Box inside Interior Pages */
.cta,
.hg-cta-box {
    background: var(--hg-primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--hg-radius-lg) !important;
    padding: 32px !important;
    margin-top: 36px !important;
    box-shadow: var(--hg-shadow-md) !important;
    text-align: center;
}

.cta h2, .cta h3,
.hg-cta-box h2, .hg-cta-box h3 {
    color: #ffffff !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta p,
.hg-cta-box p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px;
    margin-bottom: 20px;
}

.cta .btn-primary,
.hg-cta-box .btn {
    background: #ffffff !important;
    color: var(--hg-primary) !important;
    font-weight: 700;
    border: none !important;
    border-radius: var(--hg-radius-pill);
    padding: 10px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--hg-transition);
}

.cta .btn-primary:hover,
.hg-cta-box .btn:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------
 * 7. Modern Footer
 * -------------------------------------------------- */
.hg-footer {
    background: #091a33;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    direction: rtl;
}

.hg-footer-brand img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
}

.hg-footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.hg-footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.hg-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--hg-accent);
    border-radius: 3px;
}

.hg-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg-footer-links li {
    margin-bottom: 10px;
}

.hg-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--hg-transition-fast);
}

.hg-footer-links a:hover {
    color: #38bdf8;
    transform: translateX(-5px);
}

.hg-footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hg-footer-contact a:hover {
    color: #38bdf8;
}

.hg-footer-contact a i {
    color: var(--hg-amber);
    margin-top: 4px;
}

.hg-enamad-box {
    background: #ffffff;
    padding: 12px;
    border-radius: var(--hg-radius-md);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hg-footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------
 * 8. Modern Floating Action Buttons (FAB)
 * -------------------------------------------------- */
.hg-fab-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}

.hg-fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: var(--hg-shadow-lg);
    transition: var(--hg-transition);
    position: relative;
    cursor: pointer;
}

.hg-fab-btn:hover {
    transform: scale(1.1) translateY(-2px);
    color: #ffffff !important;
}

.hg-fab-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.hg-fab-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    z-index: -1;
    animation: hg-pulse 2s infinite;
}

.hg-fab-phone {
    background: #0ea5e9;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.hg-fab-btn i {
    font-size: 24px;
}

.hg-fab-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--hg-radius-pill);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--hg-transition-fast);
    box-shadow: var(--hg-shadow-md);
}

.hg-fab-btn:hover .hg-fab-tooltip {
    opacity: 1;
    transform: translateX(-4px);
}

@keyframes hg-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Back to Top Floating Button */
.hg-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--hg-primary) !important;
    border: 1px solid var(--hg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hg-shadow-md);
    cursor: pointer;
    z-index: 1040;
    transition: var(--hg-transition);
}

.hg-back-to-top:hover {
    background: var(--hg-primary-gradient);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--hg-shadow-lg);
}

/* --------------------------------------------------
 * 9. Responsive Adjustments
 * -------------------------------------------------- */
@media (max-width: 991.98px) {
    .hg-brand-logo img {
        height: 55px;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 16px;
        border-radius: var(--hg-radius-lg);
        margin-top: 10px;
        box-shadow: var(--hg-shadow-xl);
        border: 1px solid var(--hg-border);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 14px !important;
    }

    .navbar .navbar-nav .nav-link::after {
        display: none;
    }

    .hg-fab-container {
        bottom: 16px;
        left: 16px;
    }

    .hg-back-to-top {
        bottom: 16px;
        right: 16px;
    }
}

/* ==================================================
 * 19. Modern Unified Authentication Suite
 * ================================================== */
.hg-auth-section {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #f1f5f9 100%);
    position: relative;
    direction: rtl;
}

.hg-auth-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
    width: 100%;
    max-width: 460px;
    padding: 38px 34px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hg-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00415d 0%, #2563eb 50%, #10b981 100%);
}

.hg-auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.hg-auth-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00415d 0%, #002535 100%);
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 65, 93, 0.25);
}

.hg-auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.hg-auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Auth Dual Switcher Tabs */
.hg-auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 24px;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.hg-auth-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-radius: 10px;
    text-decoration: none !important;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hg-auth-tab i {
    font-size: 15px;
}

.hg-auth-tab:hover:not(.active) {
    color: #00415d;
    background: rgba(255, 255, 255, 0.6);
}

.hg-auth-tab.active {
    background: #ffffff;
    color: #00415d;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Auth Inputs */
.hg-auth-group {
    margin-bottom: 18px;
    position: relative;
    text-align: right;
}

.hg-auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.hg-auth-label a {
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hg-auth-label a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.hg-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hg-auth-input-wrap .hg-auth-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.hg-auth-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 42px 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    direction: rtl;
    text-align: right;
}

.hg-auth-input:focus {
    background: #ffffff;
    border-color: #00415d;
    box-shadow: 0 0 0 3px rgba(0, 65, 93, 0.12);
}

.hg-auth-input:focus ~ .hg-auth-icon {
    color: #00415d;
}

.hg-auth-input.ltr-mode {
    direction: ltr !important;
    text-align: left !important;
    padding: 10px 14px 10px 42px !important;
}

.hg-auth-input.ltr-mode ~ .hg-auth-icon {
    right: auto !important;
    left: 14px !important;
}

.hg-auth-toggle-pwd {
    position: absolute;
    left: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    z-index: 2;
    transition: color 0.15s ease;
}

.hg-auth-toggle-pwd:hover {
    color: #334155;
}

/* Remember me Checkbox */
.hg-auth-check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.hg-auth-check-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    accent-color: #00415d;
    cursor: pointer;
}

/* Buttons */
.hg-btn-auth-submit {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00415d 0%, #002d41 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 65, 93, 0.25);
    transition: all 0.2s ease;
}

.hg-btn-auth-submit:hover {
    background: linear-gradient(135deg, #005275 0%, #00364e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 65, 93, 0.32);
    color: #ffffff;
}

.hg-btn-auth-submit:active {
    transform: translateY(0);
}

/* OTP Code Box */
.hg-otp-input {
    width: 100%;
    height: 54px;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 12px;
    text-align: center;
    direction: ltr;
    color: #00415d;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.hg-otp-input:focus {
    background: #ffffff;
    border-color: #00415d;
    box-shadow: 0 0 0 4px rgba(0, 65, 93, 0.15);
}

/* Countdown & Resend SMS Timer */
.hg-otp-timer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 20px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.hg-otp-resend-btn {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color 0.15s ease;
}

.hg-otp-resend-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.hg-otp-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #00415d;
    direction: ltr;
}

/* Footer / Switcher Links */
.hg-auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.hg-auth-footer-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.hg-auth-footer-link {
    font-weight: 700;
    color: #00415d;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hg-auth-footer-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Validation Alert in Auth */
.hg-auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: right;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hg-auth-alert ul {
    margin: 0;
    padding-right: 18px;
    list-style: disc;
}

.hg-auth-alert li {
    margin-bottom: 4px;
}

.hg-auth-alert li:last-child {
    margin-bottom: 0;
}

.hg-auth-phone-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    direction: ltr;
}

/* ==================================================
 * 20. Modern User Panel & Customer Dashboard Suite
 * ================================================== */
.usr-dashboard-wrapper {
    margin: 30px 0 50px 0;
    direction: rtl;
}

/* User Sidebar */
.usr-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.usr-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
}

.usr-avatar-wrap img {
    width: 90px;
    height: 90px;
    border-radius: 50% !important;
    border: 3px solid #e2e8f0;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.usr-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
}

.usr-profile-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.usr-profile-role {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 3px 12px;
    border-radius: 20px;
}

/* Quick Action Pills in Sidebar */
.usr-quick-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.usr-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.usr-btn-pill-primary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.usr-btn-pill-primary:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.usr-btn-pill-secondary {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}
.usr-btn-pill-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.usr-btn-pill-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.usr-btn-pill-danger:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Sidebar Navigation Menu */
.usr-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: right;
}

.usr-nav-item {
    margin: 0;
}

.usr-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.usr-nav-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usr-nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.usr-nav-link:hover {
    background: #f8fafc;
    color: #00415d;
    transform: translateX(-4px);
}

.usr-nav-link:hover i {
    color: #00415d;
}

.usr-nav-link.active,
.usr-nav-item.active .usr-nav-link {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
}

.usr-nav-link.active i,
.usr-nav-item.active .usr-nav-link i {
    color: #0284c7;
}

/* User Content Main Card */
.usr-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    min-height: 520px;
}

/* Content Page Header */
.usr-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.usr-page-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usr-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.usr-page-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.usr-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

/* Dashboard Metric Stat Cards */
.usr-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.usr-stat-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.usr-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.1);
}

.usr-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.usr-stat-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.usr-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.usr-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 16px;
}

.usr-stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    transition: gap 0.2s ease;
}

.usr-stat-footer i {
    transition: transform 0.2s ease;
}

.usr-stat-card:hover .usr-stat-footer i {
    transform: translateX(-4px);
}

/* Stat Card Color Themes */
.usr-stat-blue {
    border-top: 4px solid #2563eb;
}
.usr-stat-blue .usr-stat-icon {
    background: #eff6ff;
    color: #2563eb;
}
.usr-stat-blue .usr-stat-footer {
    color: #2563eb;
}

.usr-stat-green {
    border-top: 4px solid #10b981;
}
.usr-stat-green .usr-stat-icon {
    background: #ecfdf5;
    color: #10b981;
}
.usr-stat-green .usr-stat-footer {
    color: #10b981;
}

.usr-stat-amber {
    border-top: 4px solid #f59e0b;
}
.usr-stat-amber .usr-stat-icon {
    background: #fffbeb;
    color: #f59e0b;
}
.usr-stat-amber .usr-stat-footer {
    color: #d97706;
}

/* Dashboard Quick Shortcut Cards */
.usr-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.usr-shortcut-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: #334155;
    transition: all 0.2s ease;
}

.usr-shortcut-card:hover {
    background: #ffffff;
    border-color: #00415d;
    box-shadow: 0 4px 14px rgba(0, 65, 93, 0.1);
    transform: translateY(-2px);
    color: #00415d;
}

.usr-shortcut-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #00415d;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.usr-shortcut-card:hover .usr-shortcut-icon {
    background: #00415d;
    color: #ffffff;
    border-color: #00415d;
}

.usr-shortcut-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.usr-shortcut-desc {
    font-size: 11.5px;
    color: #64748b;
}

/* Customer Tables */
.usr-table-responsive {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    background: #ffffff;
    margin-bottom: 20px;
}

.usr-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    color: #334155;
}

.usr-table thead th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
    white-space: nowrap;
}

.usr-table tbody td {
    padding: 13px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.usr-table tbody tr:hover {
    background-color: #f8fafc;
}

/* User Status Badges */
.usr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.usr-badge-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.usr-badge-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.usr-badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.usr-badge-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Mobile Order Cards */
.usr-mobile-order-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.usr-mobile-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.usr-mobile-order-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 6px;
    color: #64748b;
}

.usr-mobile-order-row strong {
    color: #0f172a;
}

/* Empty State */
.usr-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.usr-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.usr-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.usr-empty-desc {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 20px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* SpotPlayer Platform Hub */
.usr-spotplayer-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.usr-spotplayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.usr-spotplayer-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.usr-spotplayer-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.usr-spotplayer-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.usr-spotplayer-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.usr-spotplayer-ver {
    font-size: 11px;
    color: #64748b;
    direction: ltr;
}

/* License Box with Instant Copy */
.usr-license-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 22px;
    margin: 20px 0;
}

.usr-license-textarea {
    width: 100%;
    height: 90px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    direction: ltr;
    text-align: left;
    background: #ffffff;
    color: #0f172a;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

.usr-btn-copy {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: all 0.2s ease;
}

.usr-btn-copy:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* User Form Inputs */
.usr-form-card {
    max-width: 620px;
}

.usr-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.usr-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.usr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.usr-input-wrap .usr-input-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.usr-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 42px 10px 14px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    direction: rtl;
    text-align: right;
}

.usr-input:focus {
    background: #ffffff;
    border-color: #00415d;
    box-shadow: 0 0 0 3px rgba(0, 65, 93, 0.12);
}

.usr-input:focus ~ .usr-input-icon {
    color: #00415d;
}

.usr-input.ltr-mode {
    direction: ltr !important;
    text-align: left !important;
    padding: 10px 14px 10px 42px !important;
}

.usr-input.ltr-mode ~ .usr-input-icon {
    right: auto !important;
    left: 14px !important;
}

.usr-btn-submit {
    height: 46px;
    padding: 0 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00415d 0%, #002d41 100%);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 65, 93, 0.25);
    transition: all 0.2s ease;
}

.usr-btn-submit:hover {
    background: linear-gradient(135deg, #005275 0%, #00364e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 65, 93, 0.32);
    color: #ffffff;
}


