:root{
    --mak-green:#27c93f;
    --mak-grey:#6F6F6F;
    --mak-dark:#222222;
    --mak-light:#f6f1e7;
    --mak-border:#d9d1c3;
    --white:#ffffff;
    --black:#000000;
    --text:#1f1f1f;
    --muted:#6b6b6b;
    --soft-bg:#fbfaf7;
    --card-shadow:0 12px 30px rgba(0,0,0,0.08);
    --radius:18px;
    --radius-sm:12px;
    --transition:0.25s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    line-height:1.6;
    color:var(--text);
    background:var(--white);
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

button,
input,
textarea,
select{
    font:inherit;
}

body.menu-open{
    overflow:hidden;
}

.container{
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
}

.section{
    padding:80px 0;
}

.section-dark{
    background:var(--mak-dark);
    color:var(--white);
}

.section-title{
    text-align:center;
    max-width:820px;
    margin:0 auto 44px;
}

.section-title span{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(57,255,0,0.12);
    color:#1b7d00;
    font-weight:700;
    font-size:13px;
    letter-spacing:0.3px;
    margin-bottom:14px;
}

.section-dark .section-title span{
    background:rgba(57,255,0,0.18);
    color:var(--mak-green);
}

.section-title h2{
    font-size:clamp(30px, 4vw, 46px);
    line-height:1.2;
    color:var(--mak-dark);
    margin-bottom:14px;
    font-weight:800;
}

.section-dark .section-title h2{
    color:var(--white);
}

.section-title p{
    font-size:17px;
    color:var(--muted);
}

.section-dark .section-title p{
    color:rgba(255,255,255,0.78);
}

.topbar{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,0.96);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(0,0,0,0.06);
}

.nav{
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.brand-link{
    flex-shrink:0;
}

.logo-box{
    width:52px;
    height:52px;
    border-radius:14px;
    background:var(--mak-green);
    color:#000;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:800;
    box-shadow:0 10px 25px rgba(57,255,0,0.25);
}

.brand-text h1{
    font-size:20px;
    line-height:1.1;
    color:var(--mak-dark);
    font-weight:800;
    margin:0;
}

.brand-text p{
    font-size:13px;
    color:var(--mak-grey);
    margin-top:4px;
}

.menu{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
}

.menu a{
    font-size:15px;
    font-weight:700;
    color:var(--mak-dark);
    transition:var(--transition);
    position:relative;
}

.menu a:hover{
    color:var(--mak-green);
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:48px;
    padding:12px 22px;
    border-radius:999px;
    border:none;
    cursor:pointer;
    font-weight:800;
    font-size:15px;
    transition:var(--transition);
    text-align:center;
}

.primary-btn,
.whatsapp-btn,
.progress-fill,
.chatbot-float,
.chatbot-header,
.chatbot-send-btn,
.chatbot-message.user{
    background:var(--mak-green);
    color:#000;
    border:none;
}

.primary-btn:hover,
.chatbot-send-btn:hover,
.chatbot-float:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 22px rgba(57,255,0,0.25);
}

.secondary-btn{
    border:2px solid var(--mak-green);
    color:var(--mak-green);
    background:transparent;
}

.secondary-btn:hover{
    background:var(--mak-green);
    color:#000;
}

.hero{
    position:relative;
    padding:100px 0 90px;
    background:
        radial-gradient(circle at top right, rgba(57,255,0,0.12), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f8fff3 50%, #f6f1e7 100%);
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(57,255,0,0.08);
    filter:blur(10px);
}

.hero-text-only{
    max-width:860px;
}

.tag{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(57,255,0,0.12);
    color:#1b7d00;
    font-size:13px;
    font-weight:800;
    letter-spacing:0.3px;
    margin-bottom:18px;
}

.hero h2{
    font-size:clamp(38px, 6vw, 68px);
    line-height:1.05;
    color:var(--mak-dark);
    margin-bottom:12px;
    font-weight:900;
}

.hero h3{
    font-size:clamp(20px, 3vw, 30px);
    color:var(--mak-green);
    margin-bottom:18px;
    font-weight:800;
}

.hero p{
    max-width:760px;
    font-size:18px;
    color:#4a4a4a;
}

.stats{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
    margin-top:34px;
}

.stat-card{
    background:rgba(255,255,255,0.85);
    border:1px solid rgba(0,0,0,0.06);
    box-shadow:var(--card-shadow);
    border-radius:20px;
    padding:24px 18px;
    text-align:center;
    transition:var(--transition);
}

.stat-card:hover{
    transform:translateY(-4px);
}

.stat-card h4{
    font-size:30px;
    line-height:1.1;
    color:var(--mak-green);
    margin-bottom:8px;
    font-weight:900;
}

.stat-card p{
    font-size:14px;
    color:var(--muted);
    margin:0;
}

.hero-buttons{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-top:30px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:22px;
}

.card{
    background:var(--white);
    border:1px solid rgba(0,0,0,0.06);
    border-radius:22px;
    box-shadow:var(--card-shadow);
    padding:28px 24px;
    transition:var(--transition);
    height:100%;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 16px 32px rgba(0,0,0,0.10);
}

.card h3{
    font-size:22px;
    line-height:1.25;
    margin-bottom:12px;
    color:var(--mak-green);
    font-weight:800;
}

.card p{
    font-size:15px;
    color:#565656;
}

.dark-cards .card{
    background:#2c2c2c;
    border-color:rgba(255,255,255,0.08);
    box-shadow:none;
}

.dark-cards .card h3{
    color:var(--mak-green);
}

.dark-cards .card p{
    color:rgba(255,255,255,0.78);
}

.dashboard-box,
.legal-box{
    background:var(--white);
    border:1px solid rgba(0,0,0,0.08);
    border-radius:22px;
    padding:28px 24px;
    box-shadow:var(--card-shadow);
}

.dashboard-mini-card{
    background:var(--white);
    border:1px solid rgba(0,0,0,0.07);
    border-radius:18px;
    padding:20px;
    box-shadow:0 10px 24px rgba(0,0,0,0.06);
}

.dashboard-mini-card h4,
.legal-box h3,
.hero h3,
.card h3,
.stat-card h4{
    color:var(--mak-green);
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    color:var(--mak-dark);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea{
    width:100%;
    min-height:50px;
    padding:12px 14px;
    border:1px solid #d8d8d8;
    border-radius:14px;
    background:#fff;
    color:#111;
    outline:none;
    transition:var(--transition);
}

textarea{
    min-height:130px;
    resize:vertical;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus{
    border-color:var(--mak-green);
    box-shadow:0 0 0 4px rgba(57,255,0,0.14);
}

table{
    width:100%;
    border-collapse:collapse;
}

table th,
table td{
    padding:14px 12px;
    text-align:left;
    border-bottom:1px solid #e8e8e8;
    font-size:14px;
}

table th{
    color:var(--mak-dark);
    font-weight:800;
    background:#f8f8f8;
}

.progress{
    width:100%;
    height:12px;
    background:#e9e9e9;
    border-radius:999px;
    overflow:hidden;
}

.progress-fill{
    height:100%;
    border-radius:999px;
}

.footer{
    background:#151515;
    color:rgba(255,255,255,0.82);
    padding:50px 0 24px;
    margin-top:40px;
}

.footer a{
    color:rgba(255,255,255,0.82);
}

.footer a:hover{
    color:var(--mak-green);
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:24px;
    margin-bottom:28px;
}

.footer-bottom{
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,0.10);
    font-size:14px;
    text-align:center;
}

.whatsapp-btn{
    position:fixed;
    left:20px;
    bottom:20px;
    z-index:9998;
    min-width:58px;
    min-height:58px;
    border-radius:999px;
    font-weight:800;
    box-shadow:0 10px 24px rgba(0,0,0,0.16);
}

.chatbot-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.22);
    z-index:99998;
    display:none;
}

.chatbot-overlay.active{
    display:block;
}

.chatbot-float{
    position:fixed;
    right:20px;
    bottom:20px;
    padding:14px 20px;
    border-radius:999px;
    font-weight:700;
    z-index:99999;
    box-shadow:0 8px 20px rgba(0,0,0,0.18);
    cursor:pointer;
}

.chatbot-panel{
    position:fixed;
    right:20px;
    bottom:84px;
    width:420px;
    max-width:calc(100% - 24px);
    height:620px;
    background:#fff;
    border:1px solid var(--mak-border);
    border-radius:20px;
    box-shadow:0 20px 50px rgba(0,0,0,0.22);
    z-index:100000;
    display:none;
    overflow:hidden;
    flex-direction:column;
}

.chatbot-panel.active{
    display:flex;
}

.chatbot-header{
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.chatbot-header h3{
    margin:0 0 4px 0;
    font-size:18px;
    color:#000;
}

.chatbot-header p{
    margin:0;
    font-size:13px;
    color:#000;
    opacity:0.9;
}

.chatbot-close{
    background:transparent;
    border:none;
    color:#000;
    font-size:28px;
    cursor:pointer;
    line-height:1;
}

.chatbot-body{
    flex:1;
    padding:16px;
    overflow-y:auto;
    background:#fafafa;
}

.chatbot-message{
    padding:12px 14px;
    border-radius:14px;
    margin-bottom:12px;
    line-height:1.6;
    font-size:14px;
    word-break:break-word;
}

.chatbot-message.bot{
    background:#f0f7f4;
    border:1px solid #d9e7e1;
    color:#222;
}

.chatbot-message.user{
    margin-left:40px;
}

.chatbot-options{
    display:grid;
    gap:10px;
    margin-top:10px;
}

.chat-option{
    width:100%;
    text-align:left;
    background:#fff;
    border:1px solid var(--mak-border);
    border-radius:12px;
    padding:12px 14px;
    cursor:pointer;
    font-weight:600;
    transition:0.2s ease;
}

.chat-option:hover{
    background:#f6f1e7;
}

.chatbot-input-wrap{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px;
    border-top:1px solid #e5e5e5;
    background:#fff;
}

.chatbot-input{
    flex:1;
    min-width:0;
    height:48px;
    padding:0 14px;
    border:1px solid #ccc;
    border-radius:12px;
    font-size:14px;
    outline:none;
    background:#fff;
    color:#111;
}

.chatbot-input:focus{
    border-color:var(--mak-green);
}

.chatbot-send-btn{
    height:48px;
    min-width:88px;
    border-radius:12px;
    padding:0 18px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.receipt-page-wrap{
    padding:40px 0;
}

.receipt-card{
    max-width:850px;
    margin:0 auto;
    background:#fff;
    border:1px solid #dcdcdc;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
    overflow:hidden;
}

.receipt-print-area{
    background:#fff;
    color:#111;
}

.receipt-header{
    padding:22px 28px 16px;
    border-bottom:2px solid #0f5c4a;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;
}

.receipt-brand h1{
    margin:0;
    font-size:28px;
    line-height:1.2;
    color:#0f5c4a;
}

.receipt-brand p{
    margin:6px 0 0;
    font-size:14px;
    color:#444;
}

.receipt-title-box{
    text-align:right;
    min-width:220px;
}

.receipt-title-box h2{
    margin:0;
    font-size:24px;
    color:#111;
}

.receipt-title-box p{
    margin:8px 0 0;
    font-size:13px;
    color:#555;
}

.receipt-body{
    padding:22px 28px 10px;
}

.receipt-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:18px;
}

.receipt-box{
    border:1px solid #e4e4e4;
    border-radius:10px;
    padding:14px 16px;
    background:#fcfcfc;
}

.receipt-box h3{
    margin:0 0 10px;
    font-size:16px;
    color:#0f5c4a;
    border-bottom:1px solid #e9e9e9;
    padding-bottom:8px;
}

.receipt-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding:6px 0;
    border-bottom:1px dashed #ececec;
    font-size:14px;
}

.receipt-row:last-child{
    border-bottom:none;
}

.receipt-label{
    font-weight:600;
    color:#333;
    min-width:140px;
}

.receipt-value{
    text-align:right;
    color:#111;
    word-break:break-word;
}

.receipt-highlight{
    margin-top:6px;
    border:1.5px solid #0f5c4a;
    border-radius:12px;
    padding:14px 16px;
    background:#f7fcfa;
}

.receipt-highlight h3{
    margin:0 0 10px;
    font-size:17px;
    color:#0f5c4a;
}

.receipt-highlight-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
}

.highlight-item{
    background:#fff;
    border:1px solid #dcefe9;
    border-radius:10px;
    padding:12px;
    text-align:center;
}

.highlight-item span{
    display:block;
    font-size:12px;
    color:#666;
    margin-bottom:6px;
}

.highlight-item strong{
    font-size:18px;
    color:#111;
}

.receipt-note{
    margin-top:18px;
    border:1px solid #ececec;
    border-radius:10px;
    padding:12px 14px;
    font-size:13px;
    color:#444;
    background:#fafafa;
    line-height:1.6;
}

.receipt-footer{
    padding:18px 28px 24px;
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    flex-wrap:wrap;
}

.receipt-footer-left{
    font-size:12px;
    color:#666;
    line-height:1.6;
}

.receipt-signature{
    text-align:center;
    min-width:220px;
}

.receipt-signature-line{
    margin-top:30px;
    border-top:1px solid #222;
    padding-top:8px;
    font-size:13px;
    font-weight:600;
    color:#222;
}

.receipt-actions{
    max-width:850px;
    margin:18px auto 0;
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

@media (max-width:991px){
    .nav{
        flex-wrap:wrap;
        padding:14px 0;
    }

    .menu{
        width:100%;
        justify-content:flex-start;
        gap:14px;
    }

    .hero{
        padding:80px 0 70px;
    }

    .stats{
        grid-template-columns:repeat(2, 1fr);
    }

    .cards{
        grid-template-columns:1fr 1fr;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:768px){
    .section{
        padding:64px 0;
    }

    .container{
        width:min(100% - 24px, 1180px);
    }

    .brand{
        width:100%;
    }

    .brand-text h1{
        font-size:18px;
    }

    .brand-text p{
        font-size:12px;
    }

    .menu{
        gap:12px;
    }

    .menu a{
        font-size:14px;
    }

    .hero h2{
        font-size:38px;
    }

    .hero h3{
        font-size:22px;
    }

    .hero p{
        font-size:16px;
    }

    .stats,
    .cards,
    .receipt-grid,
    .receipt-highlight-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:stretch;
    }

    .btn{
        width:100%;
    }

    .receipt-header,
    .receipt-footer{
        flex-direction:column;
        align-items:stretch;
    }

    .receipt-title-box{
        text-align:left;
    }

    .receipt-row{
        flex-direction:column;
        gap:4px;
    }

    .receipt-value{
        text-align:left;
    }

    .chatbot-panel{
        right:10px;
        left:10px;
        width:auto;
        bottom:70px;
        height:72vh;
    }

    .chatbot-float{
        right:10px;
        bottom:10px;
    }

    .whatsapp-btn{
        left:10px;
        bottom:10px;
    }
}

@media print{
    @page{
        size:A4 portrait;
        margin:8mm;
    }

    body{
        background:#fff !important;
        margin:0 !important;
        padding:0 !important;
    }

    body *{
        visibility:hidden !important;
    }

    .receipt-print-area,
    .receipt-print-area *{
        visibility:visible !important;
    }

    .receipt-print-area{
        position:absolute;
        left:0;
        top:0;
        width:100%;
        box-shadow:none !important;
        border:none !important;
        border-radius:0 !important;
        overflow:visible !important;
    }

    .receipt-actions,
    header,
    footer,
    nav,
    .section-title,
    .breadcrumb,
    .navbar,
    .site-header,
    .site-footer,
    .chatbot-overlay,
    .chatbot-panel,
    .chatbot-float,
    .whatsapp-btn{
        display:none !important;
    }

    .receipt-card{
        max-width:100% !important;
        margin:0 !important;
        border:none !important;
        box-shadow:none !important;
    }

    .receipt-box,
    .receipt-highlight,
    .receipt-note{
        break-inside:avoid;
        page-break-inside:avoid;
    }

    .receipt-brand h1{
        font-size:24px !important;
    }

    .receipt-title-box h2{
        font-size:22px !important;
    }

    .receipt-row,
    .receipt-note,
    .receipt-footer-left,
    .receipt-title-box p,
    .receipt-brand p{
        font-size:12px !important;
    }

    .highlight-item strong{
        font-size:16px !important;
    }
}