/*
Theme Name: الماس نوین
Theme URI: https://almasnovin.com
Author: شما
Description: قالب اختصاصی نرم‌افزار حسابداری الماس نوین
Version: 1.0
Text Domain: almas-novin
*/

:root {
    --primary: #0d2137;
    --primary-light: #15304f;
    --accent: #1a5fb4;
    --accent-light: #3584e4;
    --accent-glow: #62a0ea;
    --gold: #b8942f;
    --gold-light: #d4af37;
    --gold-pale: #f5ecd7;
    --bg-light: #f3f6fb;
    --bg-white: #ffffff;
    --bg-card: #fafcfe;
    --text-dark: #0d1b2a;
    --text-medium: #2c3e50;
    --text-light: #5d6d7e;
    --border: #dde4ef;
    --border-light: #e8edf4;
    --shadow-xs: 0 1px 3px rgba(13, 33, 55, 0.04);
    --shadow-sm: 0 2px 8px rgba(13, 33, 55, 0.06);
    --shadow-md: 0 6px 22px rgba(13, 33, 55, 0.09);
    --shadow-lg: 0 14px 38px rgba(13, 33, 55, 0.12);
    --shadow-gold: 0 6px 24px rgba(184, 148, 47, 0.20);
    --shadow-blue: 0 6px 22px rgba(26, 95, 180, 0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IRANSans', 'Vazir', 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== STICKY NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: #cdd8e8;
}
.navbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 62px;
    padding: 0 1.5rem;
    gap: 0.8rem;
    /* حذف justify-content: space-between - دست خودمون ترتیب رو مشخص می‌کنیم */
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;  /* لوگو رو به سمت راست (در RTL یعنی چپ) می‌فرسته */
}
.logo-diamond {
    width: 42px;
    height: 42px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-diamond svg {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 3px 8px rgba(26, 95, 180, 0.30));
}
.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.navbar-brand-text .brand-main {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.navbar-brand-text .brand-sub {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.3px;
    white-space: nowrap;
}
/* Nav Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    flex-wrap: nowrap;
    margin-left: 0;        /* حذف هرگونه حاشیه خودکار */
    margin-right: 0;
}
.navbar-links li a {
    display: block;
    padding: 0.38rem 0.55rem;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 7px;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: -0.1px;
}
.navbar-links li a:hover {
    color: var(--accent);
    background: #eaf1fb;
}
.navbar-links li a.nav-btn-accent {
    background: var(--accent);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.68rem;
    box-shadow: var(--shadow-blue);
    letter-spacing: 0;
}
.navbar-links li a.nav-btn-accent:hover {
    background: #1e6ccf;
    box-shadow: 0 6px 24px rgba(26, 95, 180, 0.35);
    transform: translateY(-1px);
}
.navbar-links li a.nav-btn-gold {
    background: linear-gradient(135deg, #b8942f 0%, #9a7a20 100%);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.68rem;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0;
}
.navbar-links li a.nav-btn-gold:hover {
    box-shadow: 0 8px 26px rgba(184, 148, 47, 0.40);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #c9a53a 0%, #a88528 100%);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.3rem;
    margin-right: 0;  /* اطمینان از نبود حاشیه اضافه */
}
html[dir="rtl"] .navbar-links {
    margin-right: auto !important;
    margin-left: 0 !important;
}
html[dir="rtl"] .navbar-brand {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(175deg, #edf3fa 0%, #f7f9fc 28%, #ffffff 65%, #eef3f9 100%);
    padding: 3rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -280px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(26, 95, 180, 0.05) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -160px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(184, 148, 47, 0.045) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}
.hero-text {
    flex: 1 1 50%;
    min-width: 0;
}
.hero-badge {
    display: inline-block;
    background: #e2ecf8;
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 18px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}
.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.45;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}
.hero-text h1 .highlight {
    color: var(--accent);
    position: relative;
}
.hero-tagline {
    font-size: 1.05rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    opacity: 0.7;
}
.hero-text .hero-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 2;
}
.hero-buttons {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.6rem;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: -0.1px;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    background: #1e6ccf;
    box-shadow: 0 8px 28px rgba(26, 95, 180, 0.38);
    transform: translateY(-2px);
}
.btn-outline {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: #eaf1fb;
    transform: translateY(-2px);
}
.btn-gold {
    background: linear-gradient(135deg, #b8942f 0%, #9a7a20 100%);
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    box-shadow: 0 8px 28px rgba(184, 148, 47, 0.40);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #c9a53a 0%, #a88528 100%);
}
/* Hero Image */
.hero-image-wrapper {
    flex: 0 0 520px;
    position: relative;
    perspective: 900px;
}
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(26, 95, 180, 0.15);
    transition: transform 0.4s ease;
    display: block;
    transform: rotateY(-6deg) rotateX(3deg);
}
.hero-image-wrapper img:hover {
    transform: rotateY(-3deg) rotateX(1.5deg);
}
.hero-floating-badge {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatBadge 4.5s ease-in-out infinite;
    z-index: 2;
}
.hero-floating-badge.top-right {
    top: 10px;
    right: -20px;
    animation-delay: 0s;
}
.hero-floating-badge.bottom-left {
    bottom: 30px;
    left: -10px;
    animation-delay: 2.2s;
}
.hero-floating-badge i {
    color: var(--gold);
    font-size: 1rem;
}
@keyframes floatBadge {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 4rem 1.5rem;
}
.section-alt {
    background: var(--bg-light);
}
.section-inner {
    max-width: 1360px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-label {
    display: inline-block;
    background: #e2ecf8;
    color: var(--accent);
    padding: 0.3rem 0.9rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0.7rem;
}
.section-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}
.section-header h2 .highlight {
    color: var(--accent);
}
.section-header p {
    color: var(--text-light);
    font-size: 0.88rem;
    max-width: 500px;
    margin: 0 auto;
}
.divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    border-radius: 2px;
    margin: 0.8rem auto 0;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.4rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #c5d4e8;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(26, 95, 180, 0.06) 0%, transparent 70%);
    border-radius: 0 0 0 70px;
}
.feature-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #eaf1fb 0%, #dce7f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent);
}
.feature-card h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 700;
}
.feature-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== ENV SECTION ========== */
.env-showcase {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.env-image-wrap {
    flex: 0 0 480px;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
}
.env-image-placeholder {
    width: 100%;
    height: 310px;
    background: linear-gradient(160deg, #f7f9fc 0%, #e9eef6 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mock-window {
    width: 92%;
    height: 88%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.mock-window-header {
    background: #f0f4f8;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #dde4ef;
}
.mock-window-body {
    padding: 12px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 8px;
}
.mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.5rem;
}
.mock-table th {
    background: #f7f9fc;
    padding: 5px 6px;
    text-align: right;
    color: var(--primary);
    font-weight: 700;
}
.mock-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #eef2f7;
    color: #4a5b6c;
}
.env-text {
    flex: 1;
    min-width: 260px;
}
.env-text h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.env-text ul {
    list-style: none;
    padding: 0;
}
.env-text ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.82rem;
    border-bottom: 1px solid #eef2f7;
}
.env-text ul li i {
    color: #4caf84;
    margin-top: 3px;
    font-size: 0.9rem;
}

/* ========== WHY SECTION ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.3rem;
}
.why-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.3rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.why-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.why-card .why-number {
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #0d2137);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.65;
    margin-bottom: 0.2rem;
}
.why-card h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.why-card p {
    color: var(--text-light);
    font-size: 0.73rem;
}

/* ========== SUPPORT ========== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.support-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.support-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.support-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.support-card h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.support-card p {
    color: var(--text-light);
    font-size: 0.73rem;
}

/* ========== DEMO SECTION ========== */
.demo-section {
    background: linear-gradient(160deg, #0d2137 0%, #15304f 100%);
    padding: 3.5rem 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.demo-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}
.demo-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.demo-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}
.demo-inner p {
    color: #bcc8d8;
    margin-bottom: 1.8rem;
    font-size: 0.82rem;
}
.demo-form {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}
.demo-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
}
.demo-form label {
    font-size: 0.7rem;
    color: #bcc8d8;
    font-weight: 500;
}
.demo-form input {
    padding: 0.6rem 0.9rem;
    border-radius: 9px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.82rem;
    width: 185px;
    transition: all var(--transition);
    font-family: inherit;
}
.demo-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.demo-form input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}
.demo-form .btn-gold {
    padding: 0.6rem 1.8rem;
    font-size: 0.82rem;
    cursor: pointer;
    border-radius: 9px;
    height: 42px;
}

/* ========== CAROUSEL ========== */
.carousel-wrap {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}
.carousel-track {
    display: flex;
    gap: 1.4rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carousel-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: #c5d4e8;
}
.carousel-card .carousel-icon {
    font-size: 2.1rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.carousel-card h4 {
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.carousel-card p {
    color: var(--text-light);
    font-size: 0.73rem;
    line-height: 1.7;
}
.carousel-card .carousel-badge {
    display: inline-block;
    background: #e2ecf8;
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.7rem;
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c5d4e8;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}
.carousel-dot.active {
    background: var(--accent);
    width: 25px;
    border-radius: 9px;
}
.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    color: var(--primary);
    font-size: 0.9rem;
}
.carousel-arrows:hover {
    box-shadow: var(--shadow-md);
    background: #f8fafd;
}
.carousel-arrow-right {
    right: 0;
}
.carousel-arrow-left {
    left: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: #0f1923;
    color: #b8c5d4;
    padding: 3rem 1.5rem 1.8rem;
}
.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: #94a6ba;
    text-decoration: none;
    font-size: 0.78rem;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-col ul li a i {
    font-size: 0.6rem;
    color: var(--accent-glow);
}
.footer-col p {
    font-size: 0.78rem;
    color: #94a6ba;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}
.footer-col p i {
    color: var(--accent-glow);
    margin-top: 4px;
    flex-shrink: 0;
}
.footer-bottom {
    max-width: 1360px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #1f2b37;
    text-align: center;
    font-size: 0.7rem;
    color: #6e7f92;
}
.social-links a {
    color: #fff;
    font-size: 1.15rem;
    margin-left: 8px;
    transition: color var(--transition);
}
.social-links a:hover {
    color: var(--accent-glow);
}

/* ========== FLOATING BUTTONS ========== */
.floating-vertical-btns {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.floating-vertical-btns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition);
    position: relative;
}
.floating-vertical-btns a:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: scale(1.07);
}
.floating-vertical-btns a .tooltip-text {
    position: absolute;
    left: 50px;
    background: #0f1923;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.floating-vertical-btns a:hover .tooltip-text {
    opacity: 1;
}

/* ========== STICKY CHAT ========== */
.sticky-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #1ebe5b 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.38);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseChat 3s ease-in-out infinite;
}
.sticky-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 26px rgba(37, 211, 102, 0.50);
}
@keyframes pulseChat {
    0%,
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.38);
    }
    50% {
        box-shadow: 0 5px 32px rgba(37, 211, 102, 0.62), 0 0 0 12px rgba(37, 211, 102, 0.06);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text .hero-desc {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper {
        flex: 0 0 auto;
        width: 80%;
        max-width: 500px;
        margin-top: 1rem;
    }
    .hero-image-wrapper img {
        transform: none;
    }
    .hero-image-wrapper img:hover {
        transform: none;
    }
    .hero-floating-badge {
        display: none;
    }
    .env-showcase {
        flex-direction: column;
    }
    .env-image-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 480px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .navbar-inner {
        height: 56px;
    }
    .navbar-links {
        display: none;
        position: absolute;
        top: 56px;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 14px 14px;
        gap: 0.2rem;
        border: 1px solid var(--border-light);
    }
    .navbar-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero-text h1 {
        font-size: 1.6rem;
    }
    .hero-image-wrapper {
        width: 100%;
        max-width: 400px;
    }
    .carousel-card {
        flex: 0 0 220px;
        min-height: 220px;
        padding: 1.2rem 1rem;
    }
    .carousel-card h4 {
        font-size: 0.8rem;
    }
    .demo-form {
        flex-direction: column;
        align-items: stretch;
    }
    .demo-form input {
        width: 100%;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .floating-vertical-btns {
        left: 6px;
        gap: 5px;
    }
    .floating-vertical-btns a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .floating-vertical-btns a .tooltip-text {
        display: none;
    }
    .sticky-chat-btn {
        width: 44px;
        height: 44px;
        bottom: 14px;
        right: 14px;
    }
}
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.35rem;
    }
    .hero-tagline {
        font-size: 0.85rem;
    }
    .navbar-brand-text .brand-main {
        font-size: 0.7rem;
    }
    .logo-diamond svg {
        width: 32px;
        height: 32px;
    }
    .logo-diamond {
        width: 32px;
        height: 32px;
    }
    .hero-image-wrapper {
        max-width: 300px;
    }
}
/* نمایش زیرمنو */
.navbar-links li {
    position: relative;
}
.navbar-links li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 180px;
    z-index: 100;
}
.navbar-links li:hover > .sub-menu {
    display: block;
}
.sub-menu li a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--text-medium);
    font-size: 0.68rem;
    white-space: nowrap;
}
.sub-menu li a:hover {
    background: #eaf1fb;
    color: var(--accent);
}
/* دکمه‌های ویژه (خرید و سامانه مودیان) */
.navbar-links-extras {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin-right: auto; /* چسبیدن به سمت چپ (در راست‌چین یعنی سمت راست) */
}
.navbar-links-extras li a {
    display: block;
    padding: 0.4rem 0.85rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.68rem;
    text-decoration: none;
    white-space: nowrap;
}
/* در موبایل منوی همبرگری */
@media (max-width: 768px) {
    .navbar-links-extras {
        margin-top: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .navbar-links-extras li a {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }
}
/* حذف فاصله اضافی سمت چپ لوگو (در RTL) */
.navbar-brand { margin-left: 0 !important; margin-right: 0 !important; }
.navbar-inner { gap: 0.5rem !important; }
.navbar-links { margin: 0 !important; }
