* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --PhoneInput-color--focus: #4d3818;
    --primary-color: #6b5230;
    --secondary-color: #D3CBB7;
    --accent-color: #4d3818;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --bg-primary: #1a1a1a;
    --bg-secondary: #D3CBB7;
    --bg-accent: #e6dfc9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.section {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem;
    padding-top: 6rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

header {
    background-color: var(--bg-secondary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(107, 82, 48, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.hand-logo {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
    fill: var(--accent-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}


/* Hero Section */
#home {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background-color: var(--bg-secondary);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(107, 82, 48, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(107, 82, 48, 0.2);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.home-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--primary-color);
    color: var(--bg-secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-secondary);
    transform: translateY(-2px);
}

.phone-image-container {
    position: relative;
    display: inline-block;
    max-width: 480px;
    margin: 2rem auto 0;
}

.phone-image-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-secondary) 85%);
    pointer-events: none;
}

.phone-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    box-shadow: none;
    transition: transform 0.3s ease;
    aspect-ratio: 480 / 670;
    object-fit: contain;
}


.supported-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.gap-logo {
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.gap-logo:hover {
    opacity: 1;
}

/* Features Section */
#features {
    /* background-color: var(--bg-primary); */
    padding: 4rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 82, 48, 0.1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-secondary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Offering Section */
#offering {
    padding: 4rem 2rem;
    text-align: center;
}
#how-it-works {
    padding: 4rem 2rem;
    text-align: center;
}

.offering-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.offering-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.offering-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    margin-bottom: 3rem;
}

.offering-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 480px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 82, 48, 0.1);
    position: relative;
    overflow: hidden;
}

.offering-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.offering-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.offering-box.featured {
    transform: scale(1.02);
    border: 2px solid var(--primary-color);
}

.offering-box.featured::after {
    content: 'Most Popular';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.box-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.included-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.feature-list {
    flex-grow: 1;
    list-style: none;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.checkmark {
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: var(--bg-secondary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.book-btn {
    margin-top: auto;
    background: var(--primary-color);
    color: var(--bg-secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.book-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pricing-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.pricing-note a:hover {
    text-decoration: underline;
}

/* How it works section styles */
.howitworks-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.howitworks-pill {
    border: none;
    outline: none;
    background: var(--bg-secondary);
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(107, 82, 48, 0.1);
}

.howitworks-pill.active {
    background: var(--primary-color);
    color: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.howitworks-pill:hover:not(.active) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.howitworks-carousel-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.swiper, .swiper-slide {
    height: auto;
    padding-bottom: 4rem;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
}

.howitworks-carousel-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 4rem;
}

.howitworks-carousel-img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    background: white;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.howitworks-carousel-img:hover {
    transform: scale(1.02);
}

.howitworks-carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.howitworks-carousel-caption p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

/* WhatsApp specific styling */
.howitworks-carousel-img[src*="demo-wa-"] {
    max-width: 280px;
}

/* Web platform specific styling */
.howitworks-carousel-img[src*="demo-web-"] {
    max-width: 600px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--text-primary) !important;
    background: var(--bg-secondary) !important;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 35%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.9;
    transition: all 0.2s ease;
    border: 1px solid rgba(107, 82, 48, 0.1);
}

.swiper-button-prev {
    left: 1rem !important;
}

.swiper-button-next {
    right: 1rem !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.25rem;
    font-weight: 600;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.swiper-pagination-bullet {
    background: var(--text-light) !important;
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.swiper-pagination-bullet-active {
    background: var(--text-primary) !important;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Testimonials Section */
#testimonials {
    background-color: var(--bg-primary);
    padding: 4rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(107, 82, 48, 0.1);
}

.testimonial-content {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-secondary);
    font-weight: 600;
    font-size: 1.125rem;
}

.author-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Section */
#contact {
    padding: 4rem 2rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.contact-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(107, 82, 48, 0.1);
    transition: all 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.contact-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-value {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 6rem;
    }

    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        gap: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .mobile-nav-toggle {
        background: none;
        border: none;
        color: var(--accent-color);
        font-size: 2rem;
        display: flex;
        align-items: center;
        cursor: pointer;
        z-index: 1201;
        margin-left: auto;
        position: relative;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100vw;
        padding: 1.5rem 0 1rem 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s;
        z-index: 999;
    }
    nav.open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.2s;
    }
    nav a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 0;
        border-radius: 8px;
        font-size: 1.1rem;
    }
    nav a.login-btn {
        margin-top: 0.75rem;
        background: var(--primary-color);
        color: var(--bg-secondary);
        width: 90%;
        max-width: 250px;
        align-self: center;
        font-size: 1.1rem;
        font-weight: 700;
        box-shadow: var(--shadow-sm);
        text-align: center;
        display: block;
    }
    nav .login-btn::before {
        content: '';
        display: block;
        height: 1px;
        background: rgba(107, 82, 48, 0.15);
        border-radius: 1px;
    }
    /* Hide nav and show toggle by default */
    nav {
        display: flex;
    }
    @media (min-width: 769px) {
        .mobile-nav-toggle {
            display: none;
        }
        nav {
            position: static;
            flex-direction: row;
            align-items: center;
            gap: 2rem;
            max-height: none;
            opacity: 1;
            pointer-events: auto;
            padding: 0;
            box-shadow: none;
            border-radius: 0;
            width: auto;
        }
        nav.open {
            max-height: none;
            opacity: 1;
        }
    }

    .section {
        padding: 2rem 1rem;
    }

    #home {
        padding: 6rem 1rem 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .offering-boxes {
        grid-template-columns: 1fr;
    }

    .offering-box.featured {
        transform: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .swiper-button-prev {
        left: 0.5rem !important;
    }

    .swiper-button-next {
        right: 0.5rem !important;
    }

    .swiper, .swiper-slide {
        min-height: 400px;
        height: 400px;
    }

    .phone-image-container {
        max-width: 320px;
    }

    .phone-image {
        aspect-ratio: 480 / 670;
        object-fit: contain;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

/* Referral Code Styles */
.referral-message-box {
    max-width: 400px;
    margin: 1.5rem auto 0;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(107, 82, 48, 0.1);
    transition: all 0.3s ease;
}

.referral-message-box.success {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.referral-message-box.error {
    background: var(--bg-secondary);
    border-color: #dc2626;
}

.referral-message-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.6;
}

.referral-message-box.error .referral-message-text {
    color: #dc2626;
}

.referral-code-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(107, 82, 48, 0.1);
}

.referral-code-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.referral-code-display {
    background: var(--bg-accent);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.referral-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.referral-code-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .referral-message-box {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .referral-code-display {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }
}

/* Keep existing table styles and other specific styles */
.table-breakout {
    width: 60vw;
    max-width: 1200px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    overflow-x: auto;
}

.balance-table {
    width: 100%;
    color: var(--accent-color);
    background: none;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1rem;
    margin: 0 auto 25px auto;
}

.balance-table th,
.balance-table td {
    padding: 8px 10px;
    background: none;
    border: 1px solid #9f9f9f;
    min-width: 70px;
    text-align: left;
}

.balance-table th {
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--bg-secondary);
    text-align: center;
    border: none;
    font-size: 1rem;
}

.balance-table td {
    color: var(--text-primary);
    font-size: 1rem;
}

.numeric {
    text-align: right;
    font-weight: normal;
}

.header-row {
    font-weight: bold;
    color: var(--text-primary) !important;
}

.total-row {
    font-weight: bold;
    color: var(--text-primary);
}

.indent {
    padding-left: 20px;
}

.balance-table tbody tr:nth-child(even) {
    background-color: #a7a29172;
}

.balance-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.balance-table input[type="text"],
.balance-table input[type="number"],
.balance-table input[type="date"] {
    background: rgba(245, 242, 227, 0.8);
    border: none;
    min-width: 60px;
    font-size: 1rem;
    padding: 10px;
    height: 40px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.balance-table button {
    padding: 0;
    font-size: 1.3rem;
    margin: 0;
    background: none;
    color: var(--primary-color);
    border: none;
    min-width: 24px;
    cursor: pointer;
}

.section-heading {
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem 0;
    display: block;
    text-align: left;
    font-weight: bold;
    color: var(--text-primary);
}

.field-heading {
    font-size: 1.05rem;
    margin: 1.2rem 0 0.5rem 0;
    display: block;
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.warning-box {
    background: rgba(245, 242, 227, 0.8);
    color: var(--text-primary);
    border: 1.5px solid var(--bg-accent);
    padding: 18px 22px;
    border-radius: 10px;
    margin: 18px 0 32px 0;
    display: flex;
    font-size: 1.08rem;
    font-weight: 400;
    box-shadow: var(--shadow-sm);
    gap: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    align-items: center;
}

.warning-box .warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 0;
    color: var(--text-primary);
    filter: drop-shadow(0 1px 0 var(--bg-accent));
    height: 24px;
    width: 24px;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: transparent;
    border-radius: 2rem;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.table-scroll-container {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.report-body {
    background-color: var(--bg-secondary);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Force Material React Table and MUI table backgrounds to be transparent */
.MuiTable-root,
.MuiTableContainer-root,
.MuiPaper-root,
.MuiTableCell-root,
.MuiTableRow-root,
.MuiBox-root {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.MuiTableBody-root .MuiTableRow-root {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.MuiTableCell-root {
    border-bottom: 1px solid rgba(102, 102, 102, 0.5) !important;
}

.modal-box {
    background-color: var(--bg-secondary) !important;
}

/* Input and button styles for balance table */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.whatsapp-number-note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 8px 0 8px 0;
    text-align: left;
    display: block;
}

/* Chat Icon */
.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-svg {
    width: 30px;
    height: 30px;
    fill: var(--bg-secondary);
}

/* Login button styling to match dashboard */
.login-btn {
    background: var(--primary-color);
    color: var(--bg-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.login-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

.email-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.email-input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--text-light);
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.25);
    color: var(--text-primary);
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    line-height: 1.2;
    vertical-align: middle;
}

/* Override height for textarea elements to respect rows attribute */
textarea.email-input {
    height: auto;
    min-height: auto;
    resize: vertical;
}

select.email-input, input[type='date'].email-input {
    height: 40px !important;
    min-height: 40px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

/* Make select.email-input look exactly like input.email-input */
select.email-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 40px; /* match input height (8px top + 8px bottom + 1rem line height) */
    line-height: 1.2;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234d3818" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    padding-right: 36px;
    cursor: pointer;
}

/* Rich Text Editor Styles */
.ProseMirror {
    outline: none !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    min-height: 120px !important;
    padding: 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ProseMirror p {
    margin: 0 0 0.5rem 0 !important;
    color: var(--text-primary) !important;
}

.ProseMirror p:last-child {
    margin-bottom: 0 !important;
}

.ProseMirror ul,
.ProseMirror ol {
    margin: 0.5rem 0 !important;
    padding-left: 1.5rem !important;
    color: var(--text-primary) !important;
}

.ProseMirror li {
    margin: 0.25rem 0 !important;
    color: var(--text-primary) !important;
}

.ProseMirror a {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.ProseMirror a:hover {
    color: var(--accent-color) !important;
}

.ProseMirror strong {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.ProseMirror em {
    font-style: italic !important;
    color: var(--text-primary) !important;
}

.ProseMirror u {
    text-decoration: underline !important;
    color: var(--text-primary) !important;
}

.ProseMirror h1,
.ProseMirror h2,
.ProseMirror h3,
.ProseMirror h4,
.ProseMirror h5,
.ProseMirror h6 {
    margin: 0.5rem 0 !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.ProseMirror h1:first-child,
.ProseMirror h2:first-child,
.ProseMirror h3:first-child,
.ProseMirror h4:first-child,
.ProseMirror h5:first-child,
.ProseMirror h6:first-child {
    margin-top: 0 !important;
}

.ProseMirror h1:last-child,
.ProseMirror h2:last-child,
.ProseMirror h3:last-child,
.ProseMirror h4:last-child,
.ProseMirror h5:last-child,
.ProseMirror h6:last-child {
    margin-bottom: 0 !important;
}

select.email-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Remove default arrow for IE */
select.email-input::-ms-expand {
    display: none;
}

.custom-hr {
    border: none;
    border-top: 1px solid var(--text-secondary);
    width: 100%;
    max-width: 400px;
    margin: 16px 0;
}

.table-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    overflow-x: auto;
    width: 100%;
    background: transparent;
}

.table-container table {
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 0.75rem;
}

.add-btn {
    text-align: center;
    display: block;
    margin: 0 auto;
}

.table-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(107,82,48,0.12);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
}

.text-primary {
    color: var(--text-primary) !important;
}



@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
}