/**
 * CutShut Platform Master Stylesheet
 * Brand: CutShut (کات شات) - cutshut.ir
 * Colors: Primary #65AECC | Secondary #423B67
 * Fonts: Kalameh (Headings) | IRANSansXFaNum (Body & Numbers)
 */

/* ==========================================================================
   1. FONT FACES & TYPOGRAPHY
   ========================================================================== */
@font-face {
    font-family: 'Kalameh';
    src: url('../fonts/KalamehWeb(FaNum)-Bold.woff2') format('woff2'),
         url('../fonts/KalamehWeb(FaNum)-Bold.woff') format('woff'),
         url('../fonts/Kalameh(FaNum)-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('../fonts/KalamehWeb(FaNum)-Regular.woff2') format('woff2'),
         url('../fonts/KalamehWeb(FaNum)-Regular.woff') format('woff'),
         url('../fonts/Kalameh(FaNum)-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
         url('../fonts/IRANSansXFaNum-Bold.woff') format('woff'),
         url('../fonts/IRANSansXFaNum-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
         url('../fonts/IRANSansXFaNum-Regular.woff') format('woff'),
         url('../fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. ROOT VARIABLES & THEME TOKENS
   ========================================================================== */
:root {
    --primary: #65AECC;
    --primary-hover: #4ea0be;
    --primary-glow: rgba(101, 174, 204, 0.35);
    --primary-soft: rgba(101, 174, 204, 0.12);

    --secondary: #423B67;
    --secondary-hover: #342e52;
    --secondary-glow: rgba(66, 59, 103, 0.35);
    --secondary-soft: rgba(66, 59, 103, 0.1);

    --accent-cyan: #00f0ff;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;

    --bg-body: #f4f7fb;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 30px var(--primary-glow);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --sidebar-width: 270px;
    --header-height: 74px;
    --mobile-nav-height: 64px;
}

/* Dark Theme Overrides */
[data-theme="dark"], body.dark-mode {
    --bg-body: #0a0d18;
    --bg-surface: #121729;
    --bg-surface-elevated: #1a2038;
    --border-color: #1e2642;
    --border-subtle: #161c32;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   3. BASE RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'IRANSansXFaNum', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Kalameh', 'IRANSansXFaNum', Tahoma, sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

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

ul, ol {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ==========================================================================
   4. UTILITIES & HELPER CLASSES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 24px;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap !important; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.gap-4 { gap: 24px; }
.gap-5 { gap: 30px; }
.gap-6 { gap: 36px; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap !important; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-warning { color: var(--accent-orange) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap !important;
}

.badge-primary {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(101, 174, 204, 0.25);
}

.badge-secondary {
    background: var(--secondary-soft);
    color: var(--secondary);
    border: 1px solid rgba(66, 59, 103, 0.2);
}

/* Top Announcement Action Button */
.top-announcement-btn {
    background: rgba(101, 174, 204, 0.22);
    color: #ffffff !important;
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    padding: 3px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.top-announcement-btn i {
    color: var(--primary);
    font-size: 0.72rem;
    transition: all 0.25s ease;
}

.top-announcement-btn:hover {
    background: var(--primary);
    color: #1a1633 !important;
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(101, 174, 204, 0.55);
    transform: translateX(-3px);
}

.top-announcement-btn:hover i {
    color: #1a1633;
    transform: translateX(-2px);
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Status Indicator Dots */
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-dot.online::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

.status-dot.warning { background: var(--accent-orange); }
.status-dot.danger { background: var(--accent-red); }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #65AECC 0%, #4899b8 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(101, 174, 204, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #74bbd8 0%, #51a4c4 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(101, 174, 204, 0.55);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #423B67 0%, #2f294d 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(66, 59, 103, 0.35);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4f477a 0%, #38315c 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-control::placeholder {
    color: var(--text-dim);
}

/* Cards & Panels */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   5. PUBLIC HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

[data-theme="dark"] .site-header, body.dark-mode .site-header {
    background: rgba(18, 23, 41, 0.85);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 44px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.mobile-menu-toggle-btn:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Mobile Slide-out Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 310px;
    max-width: 85vw;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.45);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-elevated);
}

.mobile-nav-body {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid rgba(101, 174, 204, 0.25);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.mobile-nav-link.active i, .mobile-nav-link:hover i {
    color: var(--primary);
}

.mobile-nav-actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* Dashboard Mobile Backdrop & Mobile Toggle Button */
.dashboard-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dashboard-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dashboard-mobile-menu-btn {
    display: none !important;
}

/* ==========================================================================
   6. PUBLIC HERO & SECTIONS
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 110px 0 100px;
    background: radial-gradient(circle at 80% 20%, rgba(101, 174, 204, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(66, 59, 103, 0.18) 0%, transparent 50%),
                linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stat-item h4 {
    font-size: 1.9rem;
    color: var(--secondary);
}

.stat-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Glassmorphism Interactive Hero Terminal Widget */
.hero-widget {
    background: rgba(18, 23, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    overflow: hidden;
    color: #e2e8f0;
}

.widget-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'IRANSansXFaNum', sans-serif;
}

.widget-dots {
    display: flex;
    gap: 6px;
}

.widget-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.widget-dot.red { background: #ff5f56; }
.widget-dot.yellow { background: #ffbd2e; }
.widget-dot.green { background: #27c93f; }

.widget-body {
    padding: 24px;
    font-family: Consolas, 'IRANSansXFaNum', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    direction: ltr;
    text-align: left;
}

/* ==========================================================================
   7. PRODUCTS & PRICING GRID
   ========================================================================== */
.pricing-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(101, 174, 204, 0.18);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-surface) 40%);
    box-shadow: 0 15px 35px rgba(101, 174, 204, 0.18);
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
}

.pricing-code {
    font-family: Consolas, 'IRANSansXFaNum', monospace;
    font-size: 0.82rem;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap !important;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 16px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: nowrap;
}

.pricing-number {
    font-size: 2.3rem;
    font-weight: 800;
    font-family: 'Kalameh', sans-serif;
    color: var(--secondary);
    line-height: 1;
}

[data-theme="dark"] .pricing-number {
    color: var(--primary);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap !important;
}

.pricing-features {
    margin-bottom: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-main);
}

.pricing-feature-item i {
    color: var(--accent-green);
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    row-gap: 32px !important;
    column-gap: 30px !important;
    width: 100% !important;
}

.pricing-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
    row-gap: 32px !important;
    column-gap: 30px !important;
    width: 100% !important;
}

.builder-showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    margin-bottom: 45px !important;
}

@media (max-width: 992px) {
    .pricing-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
    .builder-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .pricing-grid-3, .pricing-grid-2, .builder-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .wallet-recharge-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* Product Catalog & Configurator Styles */
.products-hero-wrapper {
    background: radial-gradient(circle at 50% 0%, rgba(101, 174, 204, 0.12) 0%, transparent 60%),
                linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    padding: 60px 0 35px;
    border-bottom: 1px solid var(--border-color);
}

.main-cat-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.main-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.main-cat-tab:hover {
    color: var(--text-main);
    background: var(--bg-body);
}

.main-cat-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, #3ca1c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(101, 174, 204, 0.35);
    border-color: transparent;
}

.main-cat-tab.active i {
    color: #ffffff;
}

.billing-cycle-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.cycle-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 6px;
}

.cycle-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cycle-btn:hover {
    color: var(--text-main);
    background: var(--bg-body);
}

.cycle-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.cycle-btn.active .badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Configurator Box Container */
.configurator-box {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 45px;
}

.configurator-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.configurator-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.configurator-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1.75fr 1.25fr;
    gap: 32px;
    align-items: start;
}

.config-type-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-body);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.config-type-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.config-type-pill.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(101, 174, 204, 0.2);
}

.config-type-pill i {
    font-size: 1.6rem;
}

.config-type-pill strong {
    font-size: 0.92rem;
    color: var(--text-main);
}

.config-type-pill span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cycle-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.h-cycle-pill, .v-cycle-pill {
    flex: 1 1 auto;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* Sticky Summary Card */
.summary-card {
    background: var(--bg-surface-elevated);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
}

.summary-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.summary-spec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.summary-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-subtle);
    color: var(--text-muted);
}

.summary-price-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.summary-price-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.summary-price-val {
    font-family: 'Kalameh', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.summary-price-unit {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ==========================================================================
   8. DASHBOARD / CLIENT AREA (Single Pane of Glass Layout)
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-body);
}

/* Sidebar */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 990;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 12px;
}

.sidebar-user {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--primary-soft);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-info h5 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.user-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 20px 16px;
    flex-grow: 1;
}

.nav-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    padding: 12px 14px 6px;
    letter-spacing: 0.5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    white-space: nowrap !important;
}

.sidebar-link .link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap !important;
}

.sidebar-link .link-content span {
    white-space: nowrap !important;
}

.sidebar-link i {
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

/* Floating Action Widgets */
.floating-widgets-wrap {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.floating-btn.back-to-top {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.floating-btn.quick-support {
    background: linear-gradient(135deg, var(--primary) 0%, #3ba2c7 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(101, 174, 204, 0.45);
    position: relative;
}

.floating-btn.quick-support .online-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
    border: 2px solid #ffffff;
}

.sidebar-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-link:hover i {
    color: var(--primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #4da2c2 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(101, 174, 204, 0.35);
}

.sidebar-link.active i {
    color: #ffffff;
}

/* Main Dashboard Body */
.dashboard-main {
    flex-grow: 1;
    margin-right: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dashboard Topbar */
.dashboard-topbar {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.dashboard-content {
    padding: 30px;
    flex-grow: 1;
}

/* Metrics / Gauge Cards */
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.metric-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.metric-icon-box.cyan { background: var(--primary-soft); color: var(--primary); }
.metric-icon-box.purple { background: var(--secondary-soft); color: var(--secondary); }
.metric-icon-box.green { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.metric-icon-box.orange { background: rgba(245, 158, 11, 0.12); color: var(--accent-orange); }

.metric-val {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Kalameh', sans-serif;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Progress bar */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-bar-fill.primary { background: linear-gradient(90deg, #65AECC, #38bdf8); }
.progress-bar-fill.purple { background: linear-gradient(90deg, #423B67, #8b5cf6); }
.progress-bar-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-bar-fill.orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ==========================================================================
   9. CARD-TO-CARD PAYMENT WIDGET
   ========================================================================== */
.c2c-card-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.c2c-card-widget::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.c2c-card-number {
    font-size: 1.6rem;
    font-family: 'Kalameh', 'IRANSansXFaNum', sans-serif;
    letter-spacing: 4px;
    direction: ltr;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.receipt-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-surface);
    transition: all 0.25s;
}

.receipt-dropzone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* ==========================================================================
   10. MOBILE BOTTOM NAVIGATION (Web App Feel)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mobile-bottom-nav, body.dark-mode .mobile-bottom-nav {
    background: rgba(18, 23, 41, 0.95);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: color 0.2s;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--primary);
}

/* ==========================================================================
   11. COMPREHENSIVE RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Smaller Screens (<= 1024px) */
@media (max-width: 1024px) {
    /* Dashboard Sidebar Drawer */
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 290px !important;
        max-width: 85vw !important;
        z-index: 9999 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -6px 0 25px rgba(0, 0, 0, 0.4) !important;
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0) !important;
    }
    
    .dashboard-sidebar-close-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .dashboard-mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .dashboard-main {
        margin-right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .dashboard-topbar {
        padding: 0 18px !important;
        height: 60px !important;
    }

    .dashboard-topbar > div:first-child {
        max-width: calc(100vw - 160px) !important;
        overflow: hidden !important;
    }

    .dashboard-topbar h3 {
        font-size: 1.05rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .dashboard-topbar span {
        display: none !important;
    }

    /* Public Header */
    .mobile-menu-toggle-btn {
        display: inline-flex !important;
    }

    .nav-menu {
        display: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-desc {
        margin: 0 auto 25px !important;
    }

    .hero-stats {
        justify-content: center !important;
    }

    .top-announcement-bar .hide-mobile {
        display: none !important;
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    /* Header & Brand */
    .header-container {
        height: 60px !important;
    }

    .brand-logo img {
        height: 34px !important;
    }

    .header-actions {
        gap: 6px !important;
    }

    .header-actions .btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }

    .hide-sm {
        display: none !important;
    }

    /* Grids & Cards */
    .grid-cols-4, .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .pricing-grid-3, .pricing-grid-2, .builder-showcase-grid, .configurator-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .card {
        padding: 20px 16px !important;
    }

    /* Hero */
    .hero-section {
        padding: 45px 0 40px !important;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.35 !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 16px 12px !important;
    }

    .hero-stats .stat-item {
        text-align: center !important;
    }

    .hero-stats .stat-item h4 {
        font-size: 1.35rem !important;
    }

    .hero-stats .stat-item p {
        font-size: 0.72rem !important;
    }

    /* Products Page Navigation Pills Swipe */
    .main-cat-nav {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
        margin-bottom: 25px !important;
        justify-content: flex-start !important;
        scrollbar-width: none !important;
    }

    .main-cat-nav::-webkit-scrollbar {
        display: none !important;
    }

    .main-cat-btn {
        flex: 0 0 auto !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    .cycle-pill-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .cycle-pill-btn {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 110px !important;
        padding: 8px 10px !important;
        text-align: center !important;
    }

    /* Dashboard Areas */
    .dashboard-topbar {
        padding: 0 14px !important;
        height: 56px !important;
    }

    .dashboard-topbar h3 {
        font-size: 0.95rem !important;
    }

    .dashboard-content {
        padding: 14px !important;
        padding-bottom: 85px !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    .floating-widgets-wrap {
        bottom: 75px !important;
        left: 14px !important;
    }

    /* Tables Responsive */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        display: block !important;
        border-radius: var(--radius-md) !important;
    }

    /* CTA Button Groups & Scroll Hints */
    .cta-btn-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .cta-btn-group .btn {
        width: 100% !important;
    }

    .mobile-table-scroll-hint {
        display: block !important;
    }

    /* Footer Mobile Overhaul */
    footer {
        padding: 45px 0 25px !important;
        margin-top: 45px !important;
    }

    footer .grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .footer-badges-box {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .trust-badge-card {
        height: 52px !important;
        padding: 4px !important;
    }

    .trust-badge-card img {
        max-height: 40px !important;
    }

    /* Card to Card Widget */
    .c2c-card-number {
        font-size: 1.15rem !important;
        letter-spacing: 2px !important;
    }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
    .hide-xs {
        display: none !important;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .dashboard-topbar > div:first-child {
        max-width: calc(100vw - 140px) !important;
    }
}

.grid.grid-cols-4.gap-4.mb-6 {
	margin-bottom: 20px;
}

.flex.items-center.gap-2.mb-3 {
	margin-bottom: 15px;
}

.grid.grid-cols-2.gap-4.mb-4 {
	margin-bottom: 15px;
}