:root {
    --font-ui: 'Hind Siliguri', sans-serif;
    --font-document: 'Noto Sans Bengali', sans-serif;
}


/* ===== GLOBAL OVERFLOW FIX ===== */

/* ===== Full Width Section + 1200 Content System ===== */

:root {
    --content-width: 1200px;
    --content-gutter: 24px;
}


/* Headings */
h1, h2, h3, h4, h5 {
    font-family: var(--font-ui);
    font-weight: 600;
}

/* Buttons & links */
button,
a,
.draft-btn,
.action-btn {
    font-family: var(--font-ui);
    font-weight: 500;
}

/* Forms */
input,
textarea,
select {
    font-family: var(--font-ui);
}

:root {
    --primary-color: #06b6a6;
    --secondary-color: #334155;

    --dark-bg: #071827;
    --text-dark: #082033;
    --text-light: #64748b;

    --section-bg: #e4fbf6;
}

body {
    background: #f7f9fc;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Navbar Center Menu Fix ===== */

.modern-topbar {
    background: #fff;
    border-bottom: 1px solid #e5edf3;
}

.modern-nav-container {
    width: min(1280px, calc(100% - 64px));
    height: 70px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.modern-logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-center a {
    position: relative;
    color: #334155;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--primary-color);
}

.nav-center a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -23px;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #334155;
    background: transparent;
    text-decoration: none;
}

.icon-btn:hover {
    background: #f1f7fb;
    color: var(--primary-color);
}

.login-btn {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.draft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 22px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

@media(max-width: 900px) {
    .modern-nav-container {
        width: min(100% - 32px, 1280px);
        grid-template-columns: auto auto;
    }

    .nav-center {
        display: none;
    }

    .nav-right .icon-btn {
        display: none;
    }
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

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

.site-header a {
    text-decoration: none;
    color: #111827;
    margin-left: 18px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}


.hero,
.feature-box,
.deed-card,
.empty-box,
.page-header {
    margin: 40px auto;
    max-width: 1280px;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    padding: 28px;
    
}

.hero {
    padding: 60px 30px;
    margin-bottom: 30px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 14px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 20px;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: #fff;
}

.features,
.deed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.deed-card h3 {
    margin-bottom: 10px;
}

.deed-card p {
    margin-bottom: 16px;
    color: #4b5563;
}


/* ===== FORM ===== */

.share-summary {
    margin-top: 20px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #ddd;
    border-radius: 6px;
}

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;
}

/* ===== DOCUMENT PREVIEW ===== */

.document-preview {
    background: #fff;
    padding: 24px 0;
}

@page {
    size: 8.5in 14in;
    margin: 1in;
}

.legal-doc {
    width: 8.5in;
    margin: 0 auto;
}

.legal-paper .page {
    width: 6.5in;
    height: auto;
    min-height: 12in;
    margin: 0 auto 18px auto;
    padding: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    page-break-after: always;
    break-after: page;
}

.legal-paper .page:last-child {
    page-break-after: auto;
    break-after: auto;
}

.page-inner {
    width: 100%;
}

/* Partnership top alignment */
.partnership-doc .page {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.partnership-doc .page-inner {
    margin-bottom: auto;
}

/* Header center lines */
.center-line {
    text-align: center !important;
    text-align-last: center !important;
    font-size: 13px;
    margin-bottom: 8px;
}

.center-title,
.legal-doc h1.center-title {
    text-align: center !important;
    text-align-last: center !important;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Legal body text */
.body-heading {
    text-align: left;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.legal-doc p,
.body-text {
    font-size: 13.8px;
    line-height: 1.95;
    text-align: justify;
    text-align-last: left;
    margin-bottom: 10px;
}

/* Signature */
.signature-wrapper {
    display: table;
    width: 100%;
    margin-top: 40px;
}

.signature-left,
.signature-right {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.signature-left {
    padding-right: 24px;
}

.signature-right {
    padding-left: 24px;
}

.signature-left h3,
.signature-right h3 {
    margin-bottom: 20px;
    text-align: left;
}

.sign-item {
    margin-bottom: 24px;
}

.sign-gap {
    height: 50px;
    border-bottom: 1px solid #000;
    margin-bottom: 8px;
}

/* Watermark */
.watermark-wrap {
    position: relative;
}

.watermark-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 58px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    color: rgba(16, 117, 233, 0.07);
    z-index: 999;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    letter-spacing: 2px;
}

/* ===== PRINT ===== */

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .site-footer,
    .page-header,
    .btn,
    .preview-actions {
        display: none !important;
    }

    .site-main,
    .container,
    .document-preview {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
    }

    .legal-doc {
        width: 6.5in !important;
        margin: 0 auto !important;
    }

    .legal-paper .page {
        width: 6.5in !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
        page-break-after: always;
        break-after: page;
    }

    .legal-paper .page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .watermark-text {
        position: fixed;
        font-size: 80px;
        color: rgba(16, 117, 233, 0.10);
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .features,
    .deed-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .legal-doc,
    .legal-paper .page {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .watermark-text {
        font-size: 36px;
    }
}

/* ===== STAMP BACKGROUND - PREVIEW ONLY ===== */

.legal-paper .page {
    background:
        linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
        url("/assets/images/stamp-bg.png") center top / cover no-repeat;
}

/* Print/PDF download এ stamp background থাকবে না */
@media print {
    .stamp-preview .legal-paper .page {
        background: #fff !important;
    }
}

.continue-page {
                right: 0;
                bottom: 0;
                font-size: 12px !important;
                line-height: 1.2 !important;
                margin: 0 !important;
                text-align: right !important;
                text-align-last: right !important;
                margin-top:100px! important;
}

.legal-paper .page {
    position: relative;
}
.page-break {
    page-break-after: always;
}

.deed-page {
    width: 210mm;
    min-height: 297mm;
    padding: 40px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.8;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
}

.sign-item {
    width: 45%;
    text-align: center;
}

.sign-gap {
    height: 60px;
}

@media (max-width: 768px) {
    .print-copy-box #printForm > div:first-child {
        grid-template-columns: 1fr !important;
    }
}

.legal-paper .page {
    width: 8.5in;
    height: 14in;
    margin: 20px auto;
    box-sizing: border-box;
    position: relative;
    page-break-after: always;
}

.legal-paper .page-inner {
    width: 100%;
    height: auto; /* 🔥 important */
    padding-top: 600px; /* 🔥 your requirement */
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.body-text {
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}

.center-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.signature-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.sign-gap {
    height: 50px;
    border-bottom: 1px solid #000;
}

.rental-doc.legal-paper .page {
    width: 8.5in;
    height: 14in;
    margin: 20px auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    page-break-after: always;
    background: linear-gradient(rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.50)), url(/assets/images/stamp-bg.png) center top / cover no-repeat;
}

.rental-doc.legal-paper .page-inner {
    padding-top: 500px;
    padding-left: 0.75in;
    padding-right: 0.75in;
    padding-bottom: 0.6in;
    box-sizing: border-box;
}

@page {
    size: 8.5in 14in;
    margin: 0;
}

/* ===== Modern Deeds Page + Header ===== */

body {
    background: #fff;
}

.site-main > .container {
    max-width: 1280px;
}

.modern-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(215,221,235,.75);
    box-shadow: 0 4px 20px rgba(0,0,0,.035);
}

.modern-nav-container {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-nav-left,
.modern-nav-actions,
.modern-menu {
    display: flex;
    align-items: center;
}

.modern-nav-left {
    gap: 34px;
}


.modern-menu {
    gap: 28px;
}

.modern-menu a {
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    padding: 23px 0 18px;
    border-bottom: 2px solid transparent;
}

.modern-menu a.active,
.modern-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modern-nav-actions {
    gap: 12px;
}

.icon-btn,
.login-btn {
    text-decoration: none;
    color: #334155;
    font-weight: 800;
    font-size: 14px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.deeds-page {
    padding: 70px 0 90px;
}

.deeds-hero {
    margin-bottom: 46px;
}

.deeds-hero h1 {
    margin: 0 0 16px;
    color: #101a33;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 900;
}

.deeds-hero p {
    max-width: 710px;
    margin: 0;
    color: #465873;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 800;
}

.deeds-filter-bar {
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.deed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.deed-filter {
    border: 1px solid #d8deea;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    cursor: pointer;
}

.deed-filter.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.template-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-tools > span {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.template-search {
    height: 42px;
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: rgba(255,255,255,.8);
    border: 1px solid #d8deea;
    border-radius: 999px;
}

.template-search span {
    color: #94a3b8;
    font-size: 18px;
}

.template-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #334155;
    font-size: 13px;
}

.deed-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.deed-template-card {
    min-height: 230px;
    padding: 32px;
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    border: 1px solid #dce2ec;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 12px 28px rgba(15,23,42,.035);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .22s;
}

.deed-template-card:nth-child(even) {
    border-left-color: var(--primary-color);
}

.deed-template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15,23,42,.07);
}

.deed-card-top,
.deed-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deed-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--section-bg);
    color: var(--primary-color);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
}

.deed-lang {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.deed-lang.english {
    background: var(--section-bg);
    color: var(--primary-color);
}

.deed-lang.বাংলা {
    background: var(--section-bg);
    color: #334155;
}

.deed-template-card h3 {
    margin: 24px 0 12px;
    color: #101a33;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.deed-template-card p {
    margin: 0 0 26px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

.deed-card-bottom {
    padding-top: 20px;
    border-top: 1px solid #edf1f7;
}

.deed-card-bottom small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.deed-card-bottom a {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
}

.no-template-result {
    padding: 36px;
    text-align: center;
    background: #fff;
    border: 1px solid #dce2ec;
    border-radius: 16px;
    color: #64748b;
    font-weight: 800;
}

.deed-help-box {
    margin-top: 82px;
    padding: 44px 50px;
    border-radius: 28px;
    background: rgba(241,245,249,.7);
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 44px;
    align-items: center;
}

.deed-help-box h3 {
    margin: 0 0 16px;
    color: #101a33;
    font-size: 26px;
    font-weight: 900;
}

.deed-help-box p {
    color: #475569;
    line-height: 1.7;
    width: 80%;
}

.outline-btn,
.light-btn {
    display: inline-block;
    margin-top: 16px;
    margin-right: 10px;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.outline-btn {
    background: var(--primary-color);
    color: #fff;

}

.light-btn {
    background: #fff;
    border: 1px solid #dce2ec;
    color: #101a33;
}

.help-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 24px 40px rgba(15,23,42,.18);
}

.help-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width: 900px) {
    .modern-menu,
    .icon-btn {
        display: none;
    }

    .modern-nav-container {
        padding: 0 18px;
    }

    .deeds-hero h1 {
        font-size: 38px;
    }

    .deeds-filter-bar,
    .template-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .template-search {
        min-width: 100%;
    }

    .deed-template-grid,
    .deed-help-box {
        grid-template-columns: 1fr;
    }

    .deed-card-bottom {
        gap: 18px;
        align-items: flex-start;
        flex-direction: column;
    }
}



.site-main {
    background: #fff;
}

.site-main .container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.deeds-page {
    padding-top: 90px;
}

.deeds-hero,
.deeds-filter-bar,
.deed-template-grid,
.deed-help-box {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.deeds-filter-bar {
    align-items: center;
}

.template-tools {
    margin-left: auto;
}

.deed-template-card {
    min-height: 270px;
}

@media (max-width: 900px) {
    .site-main .container {
        width: min(100% - 32px, 1280px);
    }

    .deeds-page {
        padding-top: 50px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

strong, b {
    font-weight: 600;
}

/* Prevent accidental bold */
* {
    font-weight: 500;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

/* Disable heavy weights */
.font-bold,
.font-extrabold,
.font-black {
    font-weight: 600 !important;
}

/* =====================================================
   AI DEED GLOBAL DESIGN SYSTEM
   ===================================================== */



body {
    margin: 0;
    background: #fff;
    color: var(--text-dark);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
strong, b {
    font-weight: 600;
}

.section-full {
    width: 100%;
    padding: 50px 0;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.hero-cta-btn .fa-solid {    
    color: var(--primary-color);
}

i.fa-solid,
i.fa-regular {
    line-height: 1;
}

/* =====================================================
   HOME HERO
   ===================================================== */



.hero-soft-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 70px;
    align-items: center;
}

.mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 500;
    background: var(--section-bg);
    padding: 5px 25px;
    border-radius: 20px;
}

.mini-brand i {
    font-size: 7px;
}

.hero-soft-content h1 {
    margin: 20px 0 18px;
    color: var(--text-dark);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.2;
    letter-spacing: -0.05em;
    font-weight: 600;
}

.hero-soft-content h1 span {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-soft-content p {
    max-width: 560px;
    color: var(--secondary-color);
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-checks {
    display: grid;
    gap: 10px;
    margin: 24px 0 28px;
    max-width: 430px;
}

.hero-checks div {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f8ff;
    color: #25475a;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d1def2;
}

.hero-checks i {
    margin-right: 8px;
    color: var(--primary-color);
}

.soft-primary-btn,
.soft-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: .25s ease;
}

.soft-primary-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 28px;
}

.soft-secondary-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 13px 24px;
}

.soft-primary-btn:hover,
.soft-secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(6,182,166,.22);
}

.hero-soft-card {
    border-radius: 28px;
}

.doc-preview {
    min-height: 360px;
    padding: 34px;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(16,117,233,.12);
    box-shadow: 0 24px 60px rgba(15,23,42,.12);
}

.doc-top {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
}

.doc-top i {
    font-size: 26px;
}

.doc-preview h3 {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.doc-preview p {
    color: #65798b;
    font-size: 14px;
}

.doc-preview ul {
    padding: 0;
    margin-top: 30px;
    list-style: none;
}

.doc-preview li {
    height: 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #e9f2f7;
}

.doc-preview li:nth-child(2) {
    width: 80%;
}

.doc-preview li:nth-child(3) {
    width: 65%;
}


.hero-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.hero-image-wrap img {
    width: 100%;
    display: block;
}

/* ===== Compare Speed Section ===== */


.compare-speed-head {
    max-width: 720px;
    margin: 0 auto 70px;
    text-align: center;
}

.compare-speed-head h2 {
    margin: 0 0 18px;
    color: var(--text-dark);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 600;
}

.compare-speed-head p {
    margin: 0;
    color: #1f2d45;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
}

.compare-speed-grid {
    max-width: 1024px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
}

.speed-card {
    min-height: 520px;
    position: relative;
    padding: 42px 38px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #d7deea;
}



.new-card {
    border: 2px solid var(--primary-color);
    background: #eaf8f238;
}

.recommended-tag {
    position: absolute;
    top: 24px;
    right: 26px;
    padding: 6px 12px;
    border-radius: 10px;
    background: #fff;
    color: var(--primary-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

.speed-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.speed-icon.muted {
    background: #e2e6ef;
    color: #8290a4;
}

.speed-icon.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 16px 28px rgba(16,117,233,.22);
}

.speed-icon i {
    font-size: 28px;
}

.speed-card > h3 {
    margin: 0 0 6px;
    text-align: center;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
}

.new-card > h3 {
    color: var(--primary-color);
}

.speed-card > span {
    display: block;
    text-align: center;
    color: #66758c;
    font-size: 14px;
    font-weight: 400;
}

.new-card > span {
    color: var(--primary-color);
}

.speed-list {
    margin-top: 58px;
}

.speed-row {
    display: flex;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
}

.speed-row:last-child {
    border-bottom: none;
}

.speed-row > i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
}

.old-card .speed-row > i {
    color: #8795a8;
    border: 2px solid #aeb8c7;
}

.new-card .speed-row > i {
    background: #00877d;
    color: #fff;
}

.speed-row strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.speed-row p {
    margin: 0;
    color: #2b3850;
    font-size: 18px;
    line-height: 1.45;
}

.old-card .speed-row strong,
.old-card .speed-row p {
    color: #637086;
}

@media(max-width: 900px) {
    .compare-speed-grid {
        grid-template-columns: 1fr;
    }

    .speed-card {
        min-height: auto;
        padding: 34px 24px;
    }

    .compare-speed-head p {
        font-size: 16px;
    }
}

/* =====================================================
   SECTION TITLE
   ===================================================== */

.section-title {
    max-width: 680px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-title span {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
}

.section-title h2 {
    margin: 8px 0;
    color: var(--text-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    font-weight: 600;
}

.section-title p {
    color: var(--text-light);
    font-size: 15px;
}

/* =====================================================
   TEMPLATE SECTION
   ===================================================== */


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

.template-soft-card {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
    transition: .25s ease;
}

.template-soft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15,23,42,.10);
}

.template-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--section-bg);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.template-icon i {
    font-size: 23px;
}

.template-soft-card h3 {
    margin: 0 0 12px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
}

.template-soft-card p {
    color: #637789;
    font-size: 14px;
    line-height: 1.7;
}

.template-soft-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.center-btn {
    margin-top: 34px;
    text-align: center;
}

.empty-home-box {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */



.flow-zigzag {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.flow-card {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dceee7;
    box-shadow: 0 14px 35px rgba(15,23,42,.06);
}




.flow-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--section-bg);
    color: var(--secondary-color);
    margin-bottom: 18px;
    font-size: 17px;
}

.flow-card h3 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.flow-card p {
    margin: 0;
    color: #637789;
    font-size: 14px;
    line-height: 1.7;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.container.cta-strip-box {
    background: rgba(241,245,249,.7);
    padding: 50px 0.50px;
    border-radius: 28px;
}

.cta-strip-box {
    text-align: center;
    color: var(--secondary-color);
}

.cta-strip-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 5px 5px 5px 30px;
    border-radius: 999px;
    text-decoration: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: .25s ease;
}

.cta-strip-btn .btn-icon{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    font-size: 14px;
}


.cta-strip-box h2 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 600;
}

.cta-strip-box p {
    margin: 0 0 24px;
    font-weight: 400;
}

.cta-strip-box a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: var(--primary-color);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* =====================================================
   FOOTER
   ===================================================== */

.main-footer {
    color: #d9e8f2;
    padding-top: 70px;
}

.footer-about {
    margin-right: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.footer-about h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}

.footer-about p {
    color: #9fb4c6;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
}

.footer-links h4,
.footer-info h4 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid var(--section-bg);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-color);
    font-size: 13px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media(max-width: 900px) {
    .container {
        width: min(100% - 32px, 1280px);
    }


    .hero-soft-grid,
    .home-template-grid,
    .flow-zigzag,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-soft-hero {
        padding: 65px 0;
    }

    .flow-card:nth-child(even) {
        margin-top: 0;
    }


    .doc-preview {
        min-height: auto;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== HERO CTA BUTTON ===== */

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 5px 5px 5px 30px;

    border-radius: 999px;
    text-decoration: none;

    background:var(--primary-color);

    color: #fff;
    font-size: 15px;
    font-weight: 600;

    transition: .25s ease;
}

.hero-cta-btn span {
    display: inline-block;
}

.hero-cta-btn .btn-icon {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: #ffffff;

    display: grid;
    place-items: center;

    color: var(--secondary-color);
    font-size: 14px;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(6,182,166,.35);
}

/* =====================================================
   MOBILE OPTIMIZED DEEDS INDEX PAGE
   ===================================================== */

@media (max-width: 768px) {
    .deeds-page {
        padding: 35px 25px;
    }

    .deeds-hero {
        margin-bottom: 28px;
        text-align: left;
    }

    .deeds-hero h1 {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .deeds-hero p {
        font-size: 15px;
        line-height: 1.65;
        font-weight: 400;
        max-width: 100%;
    }

    .deeds-filter-bar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin-bottom: 24px;
    }

    .deed-tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .deed-tabs::-webkit-scrollbar {
        display: none;
    }

    .deed-filter {
        flex: 0 0 auto;
        padding: 10px 18px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
    }

    .template-tools {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .template-tools > span {
        font-size: 13px;
        font-weight: 500;
        color: #64748b;
    }

    .template-search {
        width: 100%;
        min-width: 0;
        height: 46px;
        border-radius: 14px;
        background: #fff;
    }

    .template-search input {
        font-size: 14px;
    }

    .deed-template-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .deed-template-card {
        min-height: auto;
        padding: 22px;
        border-radius: 18px;
        border-left-width: 4px;
    }

    .deed-card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 14px;
    }

    .deed-lang {
        padding: 5px 10px;
        font-size: 10px;
        font-weight: 600;
    }

    .deed-template-card h3 {
        margin: 20px 0 8px;
        font-size: 22px;
        line-height: 1.25;
        font-weight: 600;
    }

    .deed-template-card p {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .deed-card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-top: 16px;
    }

    .deed-card-bottom small {
        font-size: 12px;
        font-weight: 500;
    }

    .deed-card-bottom a {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        background: var(--primary-color);
    }

    .deed-help-box {
        margin-top: 42px;
        padding: 24px;
        border-radius: 22px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .deed-help-box h3 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .deed-help-box p {
        width: 100%;
        font-size: 14px;
        line-height: 1.65;
    }

    .outline-btn,
    .light-btn {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-top: 10px;
        border-radius: 999px;
        font-weight: 600;
    }

    .help-image {
        aspect-ratio: 16 / 10;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .deeds-hero h1 {
        font-size: 30px;
    }

    .deed-template-card {
        padding: 20px;
    }

    .deed-template-card h3 {
        font-size: 20px;
    }

    .deed-filter {
        padding: 9px 15px;
    }
}


/* ===== User Dashboard UI Improve ===== */

.user-dashboard-page {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: 260px 1fr;
    background:
        radial-gradient(circle at 90% 10%, rgba(11,92,255,.08), transparent 26%),
        #faf8ff;
}

.user-sidebar {
    min-height: calc(100vh - 70px);
    padding: 28px 18px;
    background: #fff;
    border-right: 1px solid #e4eaf3;
    display: flex;
    flex-direction: column;
}

.user-brand h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.user-brand span {
    color: #64748b;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.side-create-btn {
    margin: 28px 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(11,92,255,.22);
}

.side-menu {
    display: grid;
    gap: 8px;
}

.side-menu a,
.side-bottom a {
    padding: 13px 14px;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.side-menu a.active,
.side-menu a:hover {
    background: rgba(11,92,255,.08);
    color: var(--primary-color);
}

.side-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e4eaf3;
}

.user-dashboard-main {
    padding: 44px;
}

.dash-topbar {
    margin-bottom: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dash-topbar h1 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    font-weight: 600;
}

.dash-topbar p {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

.dash-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 34px;
}

.dash-stat-card {
    padding: 26px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dce4ef;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.stat-top span {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    background: rgba(11,92,255,.10);
}

.stat-top span.purple {
    color: var(--secondary-color);
    background: rgba(0,5,61,.08);
}

.stat-top span.green {
    color: #00877d;
    background: rgba(0,135,125,.12);
}

.stat-top small {
    color: #00877d;
    font-size: 13px;
    font-weight: 500;
}

.dash-stat-card p {
    margin: 0 0 4px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

.dash-stat-card h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 34px;
    font-weight: 600;
}

.dash-ai-banner {
    margin: 34px 0;
    padding: 44px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(11,92,255,.36), transparent 30%),
        linear-gradient(135deg, var(--secondary-color), #071827);
    color: #fff;
    box-shadow: 0 22px 50px rgba(0,5,61,.18);
}

.ai-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bcd7ff;
    letter-spacing: .14em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.dash-ai-banner h2 {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 600;
}

.dash-ai-banner p {
    max-width: 620px;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    margin-bottom: 28px;
}

.dash-ai-banner a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
}

.recent-deeds-panel {
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.recent-head {
    padding: 22px 26px;
    border-bottom: 1px solid #e6edf5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.recent-tools {
    display: flex;
    gap: 14px;
}

.recent-tools button {
    border: 0;
    background: transparent;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
}

.recent-table-wrap {
    overflow-x: auto;
}

.recent-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.recent-table th {
    padding: 15px 26px;
    background: #f6f8fc;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    text-align: left;
    font-weight: 600;
}

.recent-table td {
    padding: 18px 26px;
    border-top: 1px solid #edf1f7;
    color: var(--text-dark);
}

.deed-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deed-info > span {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(11,92,255,.08);
    color: var(--primary-color);
}

.deed-info strong,
.recent-table td strong {
    display: block;
    font-weight: 600;
}

.deed-info small,
.recent-table td small {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.status {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background: rgba(0,135,125,.12);
    color: #00877d;
}

.status.draft {
    background: rgba(0,5,61,.08);
    color: var(--secondary-color);
}

.status.expired {
    background: #fee2e2;
    color: #dc2626;
}

.action-form {
    display: flex;
    gap: 8px;
}

.action-btn {
    border: 1px solid #dce4ef;
    background: #fff;
    padding: 8px 13px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.action-btn.view {
    color: var(--primary-color);
}

.action-btn.edit {
    color: var(--secondary-color);
}

.action-btn.delete {
    color: #dc2626;
}

.dash-empty-state {
    padding: 60px 24px;
    text-align: center;
}

.dash-empty-state i {
    font-size: 42px;
    color: var(--primary-color);
}

.dash-empty-state h3 {
    margin: 18px 0 6px;
    font-size: 24px;
}

.dash-empty-state p {
    color: #64748b;
}

.dash-empty-state a {
    display: inline-flex;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

@media(max-width: 900px) {
    .user-dashboard-page {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid #e4eaf3;
    }

    .side-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-bottom {
        display: none;
    }

    .user-dashboard-main {
        padding: 28px 18px;
    }

    .dash-topbar {
        flex-direction: column;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-ai-banner {
        padding: 28px;
    }

    .recent-head {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .action-form {
        justify-content: flex-start;
    }
}

/* FULL WIDTH DASHBOARD */
.user-dashboard-page.full-width {
    display: block;
}

.user-dashboard-main.full {
    padding: 40px;
}

/* USER DROPDOWN */

.user-dropdown {
    position: relative;
}

.user-btn {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.user-menu {
    position: absolute;
    right: 0;
    top: 120%;
    width: 200px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4eaf3;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.user-menu a {
    padding: 12px 14px;
    text-decoration: none;
    color: #334155;
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-menu a:hover {
    background: #f4f8ff;
    color: var(--primary-color);
}

.user-dropdown:hover .user-menu {
    display: flex;
}

/* ===== Generic Header + Body Alignment Fix ===== */

:root {
    --site-container: 1280px;
    --site-gutter: 32px;
    --header-height: 70px;
}

.modern-nav-container,
.site-container,
.container,
.user-dashboard-main,
.deeds-page {
    width: min(var(--site-container), calc(100% - (var(--site-gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
}

/* Dashboard/main pages যেন header logo/menu container এর সাথে align করে */
.user-dashboard-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 44px;
}

/* যদি main wrapper full width থাকে */
.site-main {
    width: 100%;
}

/* section content alignment */
.section-full > .container {
    width: min(var(--site-container), calc(100% - (var(--site-gutter) * 2)));
}


/* top header consistent */
.modern-topbar {
    height: var(--header-height);
}

.modern-nav-container {
    height: var(--header-height);
}

/* mobile */
@media (max-width: 768px) {
    :root {
        --site-gutter: 16px;
    }

    .user-dashboard-main {
        padding-top: 28px;
    }
}

.draft-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.draft-btn i {
    font-size: 14px;
}


.deed-view-page {
    padding: 40px 0;
    margin-bottom: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.deed-view-card {
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    padding: 28px;
}

.deed-view-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.deed-view-head h1 {
    margin: 0;
    font-size: 30px;
}

.deed-preview-box {
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    line-height: 1.9;
}

.deed-preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.status-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.deed-preview-body p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.user-dashboard-main {
    font-size: 15.5px;
}

.deed-preview-box {
    font-size: 16px;
    line-height: 1.9;
}

/* UI font */
body,
.aideed-body,
button,
a,
p,
span,
div,
li,
small,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-ui);
}

/* Form + document font */
.deed-form,
.deed-form *,
.form-group,
.form-group *,
input,
textarea,
select,
.legal-doc,
.legal-paper,
.legal-paper *,
.document-preview,
.document-preview *,
.deed-preview-box,
.deed-preview-box *,
.deed-view-card,
.deed-view-card *,
.preview-html,
.preview-html *,
.generated-document,
.generated-document * {
    font-family: var(--font-document) !important;
}

@media print {
    .modern-topbar,
    .main-footer,
    .page-header,
    .preview-actions,
    .draft-preview-header,
    .draft-preview-actions,
    .deed-view-head,
    .btn,
    button {
        display: none !important;
    }

    body,
    .site-main,
    .document-preview {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .legal-paper,
    .legal-doc {
        margin: 0 auto !important;
    }
}

.pricing-page {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.pricing-hero {
    max-width: 720px;
    margin: 0 auto 46px;
    text-align: center;
}

.pricing-kicker {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--section-bg);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 14px;
}

.pricing-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.3;
    color: var(--text-dark);
}

.pricing-hero p {
    margin: 0;
    color: var(--text-light);
    font-size: 17px;
}

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

.pricing-card {
    position: relative;
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #dce4ef;
    box-shadow: 0 18px 45px rgba(15,23,42,.05);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: translateY(-10px);
}

.pricing-card h3 {
    margin: 0 0 24px;
    font-size: 24px;
    color: var(--text-dark);
}

.old-price {
    color: #475569;
    text-decoration: line-through;
    margin-bottom: 10px;
    font-size: 18px;
}

.price {
    color: var(--text-dark);
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 22px;
}

.pricing-card p {
    color: var(--secondary-color);
    margin-bottom: 22px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.pricing-card li {
    color: #334155;
}

.pricing-card li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.plan-btn.solid,
.plan-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

.subscription-checkout-page,
.subscription-success-page {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0;
}

.subscription-checkout-card,
.subscription-success-card {
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
}

.subscription-checkout-card h1,
.subscription-success-card h1 {
    margin: 0 0 14px;
    font-size: 36px;
    color: var(--text-dark);
}

.checkout-price {
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 24px;
}

.bkash-box {
    padding: 20px;
    border-radius: 16px;
    background: var(--section-bg);
    margin-bottom: 24px;
}

.bkash-box h3 {
    margin-top: 0;
}

.subscription-checkout-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.subscription-checkout-card input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d1d9e6;
    border-radius: 14px;
    margin-bottom: 18px;
}

.subscription-success-card {
    text-align: center;
}

.subscription-success-card i {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.deed-price-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deed-current-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
}

.deed-current-price.free {
    color: #16a34a;
}

.deed-old-price {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
}

/* ===== AUTH LOGIN / REGISTER REDESIGN ===== */

.auth-page {
    min-height: calc(100vh - var(--header-height));
    padding: 80px 16px;
    background: #faf8ff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.auth-bg {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.auth-bg-left {
    top: 12%;
    left: -120px;
    background: rgba(0, 89, 184, .10);
}

.auth-bg-right {
    right: -120px;
    bottom: 12%;
    background: rgba(106, 56, 212, .10);
}

.auth-card {
    width: min(520px, 100%);
    position: relative;
    z-index: 2;
    padding: 42px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px);
    border: 1px solid #cfd7e8;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
}

.auth-card-small {
    width: min(440px, 100%);
}

.auth-head {
    text-align: center;
    margin-bottom: 30px;
}

.auth-head h1 {
    margin: 0 0 8px;
    color: #131b2e;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
}

.auth-card-small .auth-head h1 {
    font-size: 34px;
}

.auth-head p {
    margin: 0;
    color: #414754;
    font-size: 16px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    margin-bottom: 18px;
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field label,
.auth-label-row label {
    display: block;
    margin-bottom: 8px;
    color: #283044;
    font-size: 14px;
    font-weight: 600;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-label-row a,
.auth-check a,
.auth-switch a {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-input {
    position: relative;
}

.auth-input input {
    width: 100%;
    height: 52px;
    padding: 0 44px;
    border-radius: 10px;
    border: 1px solid #c1c6d6;
    background: #f8faff;
    color: #131b2e;
    outline: none;
    font-size: 15px;
}

.auth-input input:focus {
    border-color:  var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 89, 184, .12);
}

.auth-input i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #727785;
    font-size: 17px;
}

.auth-input i:first-child {
    left: 15px;
}

.auth-input i:last-child {
    right: 15px;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #414754;
    font-size: 14px;
    line-height: 1.35;
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.auth-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background:  var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 89, 184, .18);
}

.auth-submit:hover {
    background: var(--secondary-color);
}

.auth-divider {
    position: relative;
    margin: 30px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #d8deea;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 16px;
    background: rgba(255,255,255,.92);
    color: #727785;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.auth-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.auth-social {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #c1c6d6;
    background: #fff;
    color: #283044;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.auth-social:hover {
    background: #f8faff;
}

.auth-switch {
    margin: 28px 0 0;
    text-align: center;
    color: #414754;
    font-size: 14px;
}

.password-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.password-meter span {
    height: 4px;
    border-radius: 999px;
    background: #008379;
}

.password-meter span.muted {
    background: #c1c6d6;
}

.password-help {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.password-help small:first-child {
    color: #00685f;
}

.password-help small:last-child {
    color: #727785;
}

.auth-trust {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 26px;
    color: #727785;
    font-size: 13px;
}

.auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 45px 16px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-head h1,
    .auth-card-small .auth-head h1 {
        font-size: 30px;
    }

    .auth-social-grid {
        grid-template-columns: 1fr;
    }

    .auth-trust {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ===== AUTH INPUT OVERFLOW FIX ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-card {
    overflow: hidden;
}

.auth-input {
    width: 100%;
}

.auth-input input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* login page left icon spacing */
.auth-card-small .auth-input input {
    padding-left: 44px !important;
    padding-right: 16px !important;
}

/* register page right icon spacing */
.auth-card:not(.auth-card-small) .auth-input input {
    padding-left: 16px !important;
    padding-right: 44px !important;
}

/* ===== AUTH SPLIT LAYOUT ===== */

.auth-split-wrap {
    width: min(1040px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 34px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.auth-visual {
    height: 664px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #e4fbf6, #f8faff);
    border: 1px solid #dce4ef;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
    width: auto;
}

.auth-visual img {
    height: 100%;
    object-fit: cover;
}

.auth-card,
.auth-card-small {
    width: 100% !important;
}

.auth-card {
    padding: 36px;
}

.auth-card-small {
    padding: 38px;
}

@media (max-width: 900px) {
    .auth-split-wrap {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }
}

.auth-visual-rg {
    height: 784px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #e4fbf6, #f8faff);
    border: 1px solid #dce4ef;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
    width: auto;
}

.auth-visual-rg img {
    height: 100%;
    object-fit: cover;
}

/* ===== MOBILE DASHBOARD + DEED VIEW FIX ===== */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .user-dashboard-page,
    .user-dashboard-page.full-width {
        display: block !important;
        width: 100%;
        min-height: auto;
        background: #faf8ff;
    }

    .user-dashboard-main,
    .user-dashboard-main.full {
        width: min(100% - 24px, 1440px) !important;
        padding: 22px 0 !important;
        margin: 0 auto !important;
    }

    .dash-topbar {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }

    .dash-topbar h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .dash-topbar p {
        font-size: 14px;
    }

    .dash-new-btn,
    .side-create-btn {
        width: 100%;
        justify-content: center;
    }

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

    .dash-stat-card {
        padding: 18px;
        border-radius: 14px;
    }

    .recent-deeds-panel {
        border-radius: 16px;
        overflow: hidden;
    }

    .recent-head {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .recent-tools {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .recent-tools button {
        flex: 1;
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
    }

    .recent-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .recent-table {
        min-width: 720px;
    }

    .recent-table th,
    .recent-table td {
        padding: 14px 16px;
        white-space: nowrap;
    }

    .deed-info {
        min-width: 240px;
    }

    .deed-info strong {
        font-size: 15px;
        white-space: normal;
        line-height: 1.35;
    }

    .action-form {
        flex-wrap: nowrap;
    }

    .dash-ai-banner {
        padding: 24px;
        border-radius: 18px;
    }

    .dash-ai-banner h2 {
        font-size: 24px;
    }

    .dash-ai-banner p {
        font-size: 14px;
    }

    /* Deed View / Preview Page */
    .deed-view-page {
        width: min(100% - 24px, 1440px) !important;
        padding: 24px 0 !important;
        margin: 0 auto 30px !important;
    }

    .deed-view-card {
        padding: 18px;
        border-radius: 16px;
    }

    .deed-view-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .deed-view-head h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .deed-view-head .btn,
    .deed-view-head a,
    .deed-view-head button {
        width: 100%;
        justify-content: center;
    }

    .deed-preview-box {
        padding: 18px;
        font-size: 14px;
        line-height: 1.8;
        overflow-x: auto;
    }

    .deed-preview-header {
        flex-direction: column;
        gap: 10px;
    }

    .status-badge {
        width: fit-content;
    }

    .legal-doc,
    .legal-paper,
    .document-preview {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
    }

    .legal-paper .page {
        transform: scale(.42);
        transform-origin: top left;
        margin-bottom: -430px;
    }
}



@media (max-width: 420px) {
    .recent-table {
        min-width: 680px;
    }

    .legal-paper .page {
        margin-bottom: -500px;
    }
}

/* ===== FINAL MOBILE HOMEPAGE FIX ===== */

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .site-main,
    .home-page,
    .home-section,
    .home-soft-hero,
    .compare-speed-section,
    .how-flow-section,
    .home-template-section,
    .home-cta-strip {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .container,
    .home-section > .container,
    .section-full > .container,
    .site-main > .container {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-soft-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        align-items: start !important;
    }

    .home-soft-hero {
        padding: 34px 0 45px !important;
    }

    .hero-soft-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-soft-content h1 {
        font-size: 34px !important;
        line-height: 1.18 !important;
        letter-spacing: -0.03em !important;
        margin: 18px 0 14px !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .hero-soft-content p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
        overflow-wrap: break-word !important;
    }

    .mini-brand {
        max-width: 100%;
        white-space: nowrap;
    }

    .hero-cta-btn {
        max-width: 100%;
        margin-top: 8px;
    }

    .hero-soft-card,
    .hero-image-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image-wrap img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .compare-speed-grid,
    .home-template-grid,
    .flow-zigzag {
        grid-template-columns: 1fr !important;
    }
}