/* ==========================================================================
   Tally Solutions Saudi Agent Landing Page Stylesheet
   Theme: Clean Corporate / SaaS Light
   Author: Antigravity AI
   ========================================================================== */

:root {
    /* Color Palette */
    --white: #FFFFFF;
    --bg-light: #F7F9FB;          /* Off-white background for alternating sections */
    --gray-light: #E9EEF3;        /* Soft borders and divider lines */
    --text-main: #1F1F1F;         /* Charcoal/Black for maximum readability */
    --text-muted: #5C6773;        /* Slate gray for secondary text */
    --tally-accent: #14B5E5;      /* Primary Tally Sky Blue for buttons/highlights */
    --tally-sky: #7FD7F2;         /* Calmer sky blue for secondary actions/borders */
    --navy-dark: #14324A;         /* Dark Navy for header accents, hero titles, badges */
    --whatsapp-green: #25D366;    /* WhatsApp Green */
    --whatsapp-hover: #20ba59;
    --border-color: #E2E8F0;
    
    /* UI States */
    --color-success: #10B981;
    --color-danger: #EF4444;
    
    /* Styling Attributes */
    --font-primary: 'Cairo', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(20, 50, 74, 0.04);
    --shadow-md: 0 8px 24px rgba(20, 50, 74, 0.06);
    --shadow-lg: 0 16px 40px rgba(20, 50, 74, 0.1);
}

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy-dark);
    font-weight: 800;
    line-height: 1.35;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Badges & Section Headers */
.badge {
    display: inline-block;
    background-color: rgba(20, 181, 229, 0.08);
    border: 1px solid rgba(20, 181, 229, 0.2);
    color: var(--navy-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.badge-green {
    background-color: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: var(--whatsapp-green);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    color: var(--tally-accent);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    color: var(--navy-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background-color: var(--tally-accent);
    border-radius: 2px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    gap: 10px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--tally-accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(20, 181, 229, 0.2);
}

.btn-primary:hover {
    background-color: #0fa2cf;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 181, 229, 0.35);
}

.btn-accent {
    background-color: var(--navy-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(20, 50, 74, 0.15);
}

.btn-accent:hover {
    background-color: #0b1f30;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 50, 74, 0.25);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--tally-accent);
    color: var(--navy-dark);
}

.btn-outline:hover {
    background-color: rgba(20, 181, 229, 0.05);
    transform: translateY(-2px);
}

.whatsapp-direct-btn svg {
    margin-left: 8px;
    vertical-align: middle;
}

html[dir="ltr"] .whatsapp-direct-btn svg {
    margin-left: 0;
    margin-right: 8px;
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Top Announcement Bar */
.header-top-bar {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header Section */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 2px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-block {
    display: flex;
    align-items: center;
}

.agent-logo {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    gap: 26px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    display: block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--tally-accent);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--tally-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--navy-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-menu .nav-cta-mobile,
.nav-menu .mobile-lang-li {
    display: none !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #F0F6FA 0%, #FFFFFF 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--gray-light);
}

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



.hero-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--navy-dark);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-bullets {
    margin-bottom: 36px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.bullet-icon {
    width: 20px;
    height: 20px;
    color: var(--tally-accent);
    margin-left: 12px;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    width: 100%;
}

.software-window {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.window-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--gray-light);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr; /* Keeps mockup dots on left */
}

.window-buttons {
    display: flex;
    gap: 6px;
}

.win-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.win-close { background-color: #FF5F56; }
.win-minimize { background-color: #FFBD2E; }
.win-maximize { background-color: #27C93F; }

.window-address-bar {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 2px 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: sans-serif;
    min-width: 160px;
    text-align: center;
}

.window-body {
    background-color: var(--white);
    line-height: 0;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating overlay cards */
.overlay-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.overlay-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tally-accent);
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(20, 181, 229, 0.08);
    color: var(--tally-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 1.1rem;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.card-val {
    font-size: 0.88rem;
    color: var(--navy-dark);
    font-weight: 800;
}

.card-overlay-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    margin-left: 12px;
    flex-shrink: 0;
}

.card-vat {
    top: 20px;
    right: -20px;
}

.card-invoice {
    bottom: 20px;
    left: -20px;
}

/* Global Trust Section */
.global-trust-section {
    padding: 80px 0;
    background-color: rgba(20, 181, 229, 0.04);
    border-bottom: 1px solid rgba(20, 181, 229, 0.08);
}

.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.trust-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.trust-stat-col:not(:last-child) {
    border-left: 2px solid rgba(20, 181, 229, 0.3);
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--tally-accent);
    margin-bottom: 12px;
    line-height: 1.2;
    direction: ltr; /* Keeps numbers and symbol #1 aligned properly */
}

.stat-badge {
    background-color: rgba(20, 181, 229, 0.08);
    color: var(--tally-accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.stat-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

/* Responsive styles for trust section */
@media (max-width: 768px) {
    .trust-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .trust-stat-col:not(:last-child) {
        border-left: none;
        border-bottom: 2px solid rgba(20, 181, 229, 0.1);
        padding-bottom: 30px;
    }
}

/* Why TallyPrime Section */
.why-tally-section {
    padding: 100px 0;
    background-color: var(--white);
}

.why-tally-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.why-tally-card {
    background-color: var(--bg-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: var(--transition-normal);
}

.why-tally-card:hover {
    background-color: var(--white);
    border-color: var(--tally-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.why-tally-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(20, 181, 229, 0.08);
    color: var(--tally-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-tally-icon svg {
    width: 24px;
    height: 24px;
}

.why-tally-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--navy-dark);
}

.why-tally-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--tally-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-normal);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-dark);
}

/* e-Invoicing (ZATCA) Section */
.compliance-section {
    padding: 100px 0;
    background-color: var(--white);
}

.compliance-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.compliance-visual {
    display: flex;
    justify-content: center;
}

.compliance-trust-box {
    background-color: var(--navy-dark);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
}

.compliance-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.compliance-agent-logo {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

.compliance-product-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.compliance-fatoora-logo-wrapper {
    background-color: var(--white);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}

.compliance-fatoora-logo {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.compliance-logos-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    font-weight: 700;
}

.compliance-trust-box h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.compliance-trust-box p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.compliance-content h2 {
    font-size: 2.2rem;
}

.compliance-content .badge {
    background-color: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: var(--whatsapp-green);
}

.compliance-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.compliance-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-feature-item {
    display: flex;
    align-items: flex-start;
}

.comp-feature-icon {
    color: var(--whatsapp-green);
    margin-left: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.comp-feature-text h4 {
    font-size: 1.05rem;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.comp-feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Sectors Section */
.sectors-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sector-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.sector-card:hover {
    border-color: var(--tally-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.sector-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

html[dir="ltr"] .sector-icon {
    margin-left: 0;
    margin-right: 20px;
}

.sector-icon svg {
    width: 100%;
    height: 100%;
}

.sector-card:hover .sector-icon {
    transform: scale(1.08);
}

.sector-card span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-dark);
}

/* Why Us Section */
.why-us-section {
    padding: 100px 0;
    background-color: var(--white);
}

.why-us-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.why-us-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-us-bullets li {
    display: flex;
    align-items: flex-start;
}

.why-bullet-icon {
    color: var(--tally-accent);
    margin-left: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.why-bullet-text h4 {
    font-size: 1.05rem;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.why-bullet-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.agent-badge-card {
    background-color: var(--bg-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
}

.agent-badge-visual-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.agent-avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--tally-accent);
    padding: 3px;
    box-shadow: 0 4px 15px rgba(20, 181, 229, 0.1);
}

.agent-support-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.agent-flag-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-light);
}

.agent-badge-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.agent-badge-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.agent-toll-free-box {
    background-color: rgba(20, 181, 229, 0.04);
    border: 1px dashed rgba(20, 181, 229, 0.18);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toll-free-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.toll-free-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tally-accent);
    text-decoration: none;
    direction: ltr;
    display: inline-block;
    letter-spacing: 1px;
}

.toll-free-number:hover {
    color: var(--navy-dark);
}

/* Steps Section */
.steps-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: var(--tally-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.15rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
}

.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--tally-accent);
}

.pricing-card .card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.pricing-card .badge-silver {
    background-color: #D9DEE5;
    color: #4A525D;
    border: 1px solid #C0C7D1;
}

.pricing-card .badge-gold {
    background-color: #F2D77A;
    color: #7F650C;
    border: 1px solid #E6C35A;
}

.silver-card {
    border-top: 4px solid #C0C7D1 !important;
}

.gold-card {
    border-top: 4px solid #D4AF37 !important;
}

/* Card Brand Logo Header & Halo Effect */
.plan-brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 10px 0;
}

.brand-halo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.halo-silver {
    background-color: #F4F6F9;
    border: 2px solid #E1E5EC;
}

.halo-gold {
    background-color: #FFFDF2;
    border: 2px solid #F3DB85;
}

.plan-prime-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.plan-name {
    font-size: 1.45rem;
    color: var(--navy-dark);
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 6px;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 66px;
}

.plan-price-box {
    margin-bottom: 24px;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.plan-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.1;
}

.plan-currency {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.plan-type {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tally-accent);
    background-color: rgba(20, 181, 229, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--text-dark);
    position: relative;
    padding-right: 22px;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--whatsapp-green);
    font-weight: 900;
    font-size: 0.95rem;
}

.subscription-section-container {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
}

.subscription-header h3 {
    font-size: 1.8rem;
    color: var(--navy-dark);
    font-weight: 800;
    margin-bottom: 12px;
}

.subscription-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.sub-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

/* Light Card Specific Styles */
.sub-plan-card {
    border: 1px solid var(--gray-light);
    border-top: 1px solid var(--gray-light) !important;
    box-shadow: var(--box-shadow-sm);
    background-color: var(--white);
}

.sub-plan-card:hover {
    border-color: var(--tally-accent);
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.halo-sub {
    background-color: #F8FAFC;
    border: 2px solid #E2E8F0;
}

/* Badge colors for subscription cards */
.pricing-card .badge-sub-monthly {
    background-color: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.pricing-card .badge-sub-3month {
    background-color: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.pricing-card .badge-sub-annual {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Featured card highlight */
.sub-plan-card.featured-sub-card {
    border: 2px solid var(--tally-accent);
    border-top: 2px solid var(--tally-accent) !important;
    background-color: rgba(20, 181, 229, 0.01);
    box-shadow: var(--box-shadow-md);
}

.sub-plan-card.featured-sub-card:hover {
    box-shadow: 0 12px 24px rgba(20, 181, 229, 0.15);
}

.plan-price-start {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: -4px;
}

.sub-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 20px auto 0 !important;
    line-height: 1.6;
    border-top: none;
    padding-top: 0;
    width: 100%;
}

.pricing-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 30px auto 0;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .sub-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .sub-cards-grid > :nth-child(3) {
        grid-column: span 2;
        justify-self: center;
        width: 100%;
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .sub-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pricing-card.sub-plan-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .pricing-card {
        padding: 32px 24px;
    }
}

/* What's New Section */
.whats-new-section {
    padding: 100px 0;
    background-color: var(--white);
}

.whats-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.new-feature-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
}

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

.new-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.new-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.icon-tally-blue {
    background-color: rgba(20, 181, 229, 0.08);
    color: var(--tally-accent);
}

.icon-whatsapp {
    background-color: rgba(37, 211, 102, 0.08);
    color: var(--whatsapp-green);
}

.new-feature-card h4 {
    font-size: 1.12rem;
    color: var(--navy-dark);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.new-feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.whats-new-cta-banner {
    background-color: rgba(20, 181, 229, 0.04);
    border: 1px solid rgba(20, 181, 229, 0.15);
    border-radius: var(--border-radius-md);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    box-shadow: var(--box-shadow-sm);
}

.cta-banner-text h3 {
    font-size: 1.22rem;
    color: var(--navy-dark);
    font-weight: 800;
    margin: 0;
    line-height: 1.5;
}

.cta-banner-button {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .whats-new-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .whats-new-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }
    .cta-banner-button {
        width: 100%;
    }
    .cta-banner-button .btn {
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    .whats-new-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 40px auto 0;
    }
}

/* Lead Form Section */
.lead-form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #14324A 0%, #0A1B28 100%);
    color: var(--white);
}

.form-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.form-intro h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.form-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.form-trust-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-trust-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.form-card-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 18px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--tally-accent);
    margin-right: 4px;
}

.form-group label .optional {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: normal;
    margin-right: 4px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    min-height: 44px;
}

.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--tally-accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group select option {
    background-color: var(--navy-dark);
    color: var(--white);
}

/* Phone prefix wrapper */
.phone-input-wrapper {
    display: flex;
    direction: ltr; /* Keeps +966 on the left visually */
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition-fast);
}

.phone-prefix {
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 0.9rem;
    user-select: none;
}

.phone-input-wrapper input {
    border: none !important;
    background-color: transparent !important;
    flex-grow: 1;
    padding: 10px 14px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
}

.phone-input-wrapper:focus-within {
    border-color: var(--tally-accent);
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-left: 8px;
    position: relative;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--tally-accent);
    border-color: var(--tally-accent);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 4.5px;
    top: 1px;
    width: 3.5px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

/* Error message state */
.error-msg {
    color: #FFA3A3;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea,
.form-group.error .phone-input-wrapper {
    border-color: #FFA3A3;
    background-color: rgba(239, 68, 68, 0.03);
}

/* FAQ Accordion Styles */
.faq-section {
    padding: 100px 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--tally-accent);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy-dark);
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--white);
    border-top: 0 solid var(--gray-light);
}

.faq-answer-inner {
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    color: var(--tally-accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active {
    border-color: var(--tally-accent);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    border-top: 1px solid var(--gray-light);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Footer Section */
.main-footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-agent-logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-agent-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-agent-text {
    display: flex;
    flex-direction: column;
}

.footer-agent-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.footer-agent-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.branding-col p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 2px;
    background-color: var(--tally-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--tally-accent);
    transform: translateX(-4px);
}

.whatsapp-link {
    color: var(--whatsapp-green) !important;
}

.whatsapp-link:hover {
    color: var(--whatsapp-hover) !important;
}

.footer-tally-logo-box {
    margin-top: 28px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.footer-tally-logo {
    max-height: 60px;
    width: auto;
    display: block;
    opacity: 0.95;
    transition: opacity var(--transition-fast);
}

.footer-tally-logo:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--tally-accent);
}

.disclaimer-text {
    font-size: 0.72rem;
    opacity: 0.55;
    line-height: 1.5;
    margin-top: 10px;
    text-align: justify;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

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

.whatsapp-float {
    background-color: var(--whatsapp-green);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Tooltip Text */
.tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: var(--navy-dark);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius-sm);
    padding: 6px 0;
    position: absolute;
    z-index: 1;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 50, 74, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.85);
    transition: transform var(--transition-normal);
    border: 1px solid var(--gray-light);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--color-success);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-content h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-subtext {
    font-size: 0.78rem !important;
    opacity: 0.8;
    margin-bottom: 20px !important;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-in-delayed {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.animate-active {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* ==========================================================================
   Responsive Viewports
   ========================================================================== */

/* Laptop & Large Screens (>1024px) */
@media (min-width: 1025px) {
    .why-tally-grid,
    .whats-new-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Mobile Hamburger Viewports (<=1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        height: 80px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        border-top: 1px solid var(--gray-light);
        transition: var(--transition-normal);
        padding: 40px 24px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* English layout transition for mobile menu */
    html[dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }
    html[dir="ltr"] .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-menu a {
        font-size: 1.15rem;
    }
    
    /* Hide desktop actions and header language buttons */
    .header-actions {
        display: none !important;
    }
    
    /* Show mobile-specific options inside hamburger menu */
    .nav-menu .nav-cta-mobile {
        display: inline-block !important;
        background-color: var(--tally-accent);
        color: var(--white) !important;
        padding: 10px 24px !important;
        border-radius: var(--border-radius-sm);
        font-weight: 700;
        margin-top: 10px;
    }
    
    .nav-menu .mobile-lang-li {
        display: block !important;
    }

    /* Mobile Hamburger Transform */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Layouts to stacked columns */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-bullets li {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Safe positioning of floating overlay cards */
    .card-vat {
        right: 0px !important;
        left: auto !important;
    }
    .card-invoice {
        left: 0px !important;
        right: auto !important;
    }
    
    /* Ensure English direction doesn't overflow cards */
    html[dir="ltr"] .card-vat {
        left: 0px !important;
        right: auto !important;
    }
    html[dir="ltr"] .card-invoice {
        right: 0px !important;
        left: auto !important;
    }
    
    .compliance-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .compliance-visual {
        order: 2;
    }
    
    .why-us-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .branding-col {
        grid-column: span 2;
    }

    /* Grids scaling down to 2 columns on Tablet */
    .why-tally-grid,
    .whats-new-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Pricing card stacked layout */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 40px auto 0;
        gap: 24px;
    }
}

/* Large Mobile Viewports (<=767px) */
@media (max-width: 767px) {
    /* Stack stats and main grids to 1 column */
    .trust-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .trust-stat-col:not(:last-child) {
        border-left: none !important;
        border-right: none !important;
        border-bottom: 2px solid rgba(20, 181, 229, 0.1);
        padding-bottom: 30px;
    }
    
    .why-tally-grid,
    .whats-new-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .branding-col {
        grid-column: span 1;
    }
}

/* Small Mobile Viewports (<=480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .form-card-box {
        padding: 24px 16px;
    }
    
    /* ZATCA Trust Card Padding & Logos Row layout */
    .compliance-trust-box {
        padding: 24px 16px;
    }
    
    .compliance-logos-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .compliance-agent-logo {
        max-width: 110px;
    }
    
    .compliance-product-logo {
        max-height: 38px;
    }
    
    .compliance-fatoora-logo-wrapper {
        height: 32px;
    }
}

/* ==========================================================================
   Bilingual Support & LTR Overrides
   ========================================================================== */

/* LTR Body Overrides */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

html[dir="ltr"] .section-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* Checkbox spacing in LTR */
html[dir="ltr"] .checkmark {
    margin-left: 0;
    margin-right: 8px;
}

/* Language switcher containers */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

html[dir="ltr"] .lang-switcher {
    margin-right: 0;
    margin-left: 20px;
}

.lang-btn {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: var(--tally-accent);
}

.lang-btn.active {
    color: var(--tally-accent);
    background-color: rgba(20, 181, 229, 0.08);
}

.lang-divider {
    color: var(--gray-light);
    user-select: none;
}

.lang-switcher-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.lang-switcher-mobile .lang-btn {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Fix step direction in LTR */
html[dir="ltr"] .step-card {
    text-align: left;
}

html[dir="ltr"] .feature-card {
    text-align: left;
}

html[dir="ltr"] .sec-card {
    text-align: left;
}

html[dir="ltr"] .price-card {
    text-align: left;
}

html[dir="ltr"] .support-card {
    text-align: left;
}

html[dir="ltr"] .faq-question {
    flex-direction: row;
    text-align: left;
}

html[dir="ltr"] .form-intro {
    text-align: left;
}

html[dir="ltr"] .form-group label {
    text-align: left;
}

html[dir="ltr"] .footer-agent-logo-block {
    flex-direction: row;
}

html[dir="ltr"] .footer-agent-text {
    text-align: left;
}

html[dir="ltr"] .footer-col h4 {
    text-align: left;
}

html[dir="ltr"] .footer-links {
    text-align: left;
}

html[dir="ltr"] .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
}

@media (max-width: 768px) {
    html[dir="ltr"] .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}

/* Footer Social Links styles */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.footer-social-links a:hover {
    background-color: var(--tally-accent);
    color: var(--white);
    transform: translateY(-2px);
}

html[dir="ltr"] .footer-social-links {
    justify-content: flex-start;
}



.riyal-symbol {
    height: 1.1em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    margin-inline-start: 4px;
}

.compliance-fatoora-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
