@import url('/assets/fonts/kalpurush-embedded.css');

/* =========================================================
   SOHOZLAND.COM - MAIN STYLESHEET
   Design System: Deep Forest & Emerald Luxe Land Portal
   ========================================================= */

:root {
    --primary: #065f46;
    --primary-dark: #044332;
    --primary-light: #059669;
    --accent: #10b981;
    --accent-gold: #f59e0b;
    --accent-red: #e11d48;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #062b20;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-bn: 'Kalpurush', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body, html, input, button, select, textarea, table, th, td, p, span, h1, h2, h3, h4, h5, h6, a, label {
    font-family: 'Kalpurush', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 100% BULLETPROOF FONTAWESOME ICON SHIELD (Prevents missing glyph box error) */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
.fa::before, .fas::before, .far::before, .fab::before,
.fa-solid::before, .fa-regular::before, .fa-brands::before,
i[class*="fa-"]::before, i[class*="fa-"]::after,
i[class*="fa-"], i.fa, i.fas, i.far, i.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Bulletproof SweetAlert2 Highest z-index & Centering */
div.swal2-container {
    z-index: 99999999 !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.70) !important;
    backdrop-filter: blur(4px) !important;
}

div.swal2-popup {
    font-family: 'Kalpurush', sans-serif !important;
    z-index: 100000000 !important;
    margin: auto !important;
    position: relative !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55) !important;
    border-radius: 18px !important;
    max-width: min(90vw, 460px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

div.swal2-popup * {
    font-family: 'Kalpurush', sans-serif !important;
}

/* ================= UTILITIES ================= */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad {
    padding: 60px 0;
}

.text-gradient {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent);
}

.req {
    color: var(--accent-red);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 95, 70, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* ================= MAIN NAVBAR (CLEAN & SPACIOUS) ================= */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.35));
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.1;
}

.brand-domain {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.nav-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.nav-item.active i {
    color: #ffffff;
}

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

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.user-nav-btn {
    border-color: var(--primary);
    color: var(--primary);
    gap: 6px;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.user-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.footer-logo-img {
    max-width: 190px;
    height: auto;
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ================= DEDICATED PAGE HEADER BANNER ================= */
.page-header-banner {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 60%, var(--primary) 100%);
    color: #ffffff;
    padding: 45px 0 50px 0;
    position: relative;
    overflow: hidden;
}

.page-header-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-title {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 700px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #94a3b8;
    margin-top: 15px;
}

.breadcrumbs a {
    color: #a7f3d0;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* TOAST NOTIFICATION */
.sl-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 0.95rem;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sl-toast.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sl-toast.success {
    border-left: 4px solid var(--accent);
}

.sl-toast.error {
    border-left: 4px solid var(--accent-red);
}

/* ================= HERO SECTION ================= */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(6, 95, 70, 0.03) 90%), #ffffff;
    padding: 60px 0 80px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: #ecfdf5;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 18px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.stat-card h3 {
    font-size: 1.9rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.service-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.icon-emerald { background: #d1fae5; color: #059669; }
.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }

.service-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.service-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================= SECTION HEADERS ================= */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: #ecfdf5;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 10px;
}

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

/* ================= FEATURES GRID ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

/* ================= CALCULATOR STYLES ================= */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

.calc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--accent);
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.divider-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin: 15px 0 15px 0;
}

.calc-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* RESULT CARDS */
.result-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #d1fae5;
}

.res-summary-box {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
}

.res-summary-box span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.res-summary-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 4px 0;
}

.res-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.res-table th, .res-table td {
    padding: 10px 12px;
    font-size: 0.92rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.res-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

.res-table tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

.badge-share {
    background: #ecfdf5;
    color: var(--primary);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    white-space: nowrap;
}

.text-accent-bold {
    color: var(--primary);
    font-weight: 700;
}

.result-notice {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.result-notice i {
    color: var(--primary);
    margin-right: 4px;
}

/* Responsive Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

/* Mobile Faraiz Cards Layout */
.mobile-faraiz-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.heir-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

.heir-card:hover {
    border-color: var(--accent);
}

.heir-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.heir-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--primary-dark);
}

.heir-name i {
    color: var(--accent);
    font-size: 1.1rem;
}

.heir-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}

.heir-stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.heir-stat-item .lbl {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 2px;
}

.heir-stat-item .val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.heir-stat-item.highlight .val {
    color: var(--primary);
    font-size: 0.95rem;
}

/* Mobile Deed Cards Layout */
.mobile-deed-cards {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.deed-fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.deed-fee-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deed-fee-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
}

.deed-fee-rate {
    font-size: 0.75rem;
    color: #64748b;
}

.deed-fee-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

/* ================= DIRECTORY SEARCH ================= */
.search-filter-card {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.search-input-box .form-control {
    padding-left: 45px;
}

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

.directory-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.directory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.dir-header {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}

.dir-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dir-title h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.dir-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-block;
}

.dir-info-list {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 16px;
}

.dir-info-list p {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dir-info-list i {
    color: var(--primary);
    width: 16px;
}

/* ================= CONTACT & RECOVERY ================= */
.contact-box-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.form-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotline-badge {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-md);
}

.hotline-badge i {
    font-size: 2.2rem;
    color: var(--accent-gold);
}

.hotline-badge span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hotline-badge h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.info-steps {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-steps h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--primary-dark);
}

.step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.step-num {
    width: 26px;
    height: 26px;
    background: #ecfdf5;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.emergency-box {
    background: #ecfdf5;
    border: 1.5px dashed var(--accent);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: start;
}

.emergency-box i {
    font-size: 2.2rem;
    color: #10b981;
}

.emergency-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.emergency-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ================= CAREER SECTION ================= */
.career-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.career-benefits {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.career-benefits h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.benefit-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.benefit-item i {
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.career-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.career-form-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

/* ================= MAIN FOOTER (HIGH VISIBILITY & RICH CONTRAST) ================= */
.main-footer {
    background: linear-gradient(180deg, #062e22 0%, #031c15 100%);
    color: #f1f5f9;
    padding-top: 48px;
    border-top: 3.5px solid #10b981;
    position: relative;
}

.footer-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand-emblem {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.4));
}

.footer-brand-name {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}

.footer-brand-sub {
    font-size: 0.84rem;
    color: #a7f3d0;
    font-weight: 500;
}

.footer-hotline-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-hotline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-hotline-btn.btn-wa {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.footer-hotline-btn.btn-wa:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.footer-hotline-btn.btn-gov {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-hotline-btn.btn-gov:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 32px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.footer-social-row {
    display: flex;
    gap: 10px;
}

.soc-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.soc-btn:hover {
    background: #10b981;
    transform: translateY(-2px);
    color: #ffffff;
    border-color: #10b981;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-nav-list a i {
    color: #34d399;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-nav-list a:hover {
    color: #34d399;
    transform: translateX(4px);
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #f1f5f9;
}

.contact-line i {
    margin-top: 3px;
    font-size: 1.05rem;
    color: #34d399;
}

.contact-line strong {
    color: #ffffff;
    font-weight: 700;
}

.contact-line span {
    color: #a7f3d0;
    font-size: 0.86rem;
}

.footer-bottom-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 10px;
}

.credit-highlight {
    color: #34d399;
    font-weight: 700;
}

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: scaleUp 0.25s ease-out;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-phone-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
}

.phone-link {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-top: 4px;
}

/* ================= AUTH SYSTEM (LOGIN / REGISTER) ================= */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 15px;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    padding: 35px 30px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 25px;
}

.auth-brand-img {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.demo-account-box {
    background: #ecfdf5;
    border: 1px dashed var(--accent);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 15px;
    color: var(--primary-dark);
}

/* ================= USER PROFILE DASHBOARD ================= */
.profile-wrapper {
    padding: 40px 0 60px 0;
}

.profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.profile-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.profile-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.profile-details p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.profile-nav-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 25px;
    overflow-x: auto;
}

.profile-nav-btn {
    padding: 12px 18px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-nav-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.status-pill {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-verified { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }

/* ================= ADMIN PORTAL ================= */
.admin-login-wrapper {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background: #062b20;
}

.admin-login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.admin-header-bar {
    background: #04291e;
    color: #ffffff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    background: #083b2a;
    color: #cbd5e1;
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--accent);
    color: #ffffff;
}

.admin-main {
    background: #f8fafc;
    padding: 30px;
    overflow-y: auto;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ecfdf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.admin-stat-card h4 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.admin-stat-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.admin-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* ================= MOBILE BOTTOM BAR (DOCK) ================= */
.mobile-bottom-bar {
    display: none;
}

/* ================= RESPONSIVE DESIGN SYSTEM ================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .features-grid, .directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calc-wrapper, .contact-box-grid, .career-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TABLETS & MOBILES (Max 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 68px; /* Safe area for floating bottom dock */
    }

    .container {
        padding: 0 14px;
        max-width: 100%;
    }

    .section-pad {
        padding: 32px 0;
    }

    /* Main Navbar */
    .main-header {
        top: 0;
    }
    .navbar {
        height: 58px;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
        border-radius: 10px;
    }
    .brand-title {
        font-size: 1.15rem;
        line-height: 1.1;
    }
    .brand-domain {
        font-size: 0.7rem;
    }
    .navbar {
        height: 56px;
        padding: 0;
        box-sizing: border-box;
    }
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    .btn-header-consult {
        display: none !important;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #f1f5f9;
        border-radius: 8px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 58px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 20px 24px 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        border-bottom: 3px solid var(--primary);
        z-index: 1002;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-item {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 8px;
        border-bottom: 1px solid #f8fafc;
    }

    /* App-like Floating Bottom Dock */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.07);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
    }
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 600;
        gap: 2px;
        flex: 1;
        height: 100%;
        transition: all 0.2s;
    }
    .bottom-nav-item i {
        font-size: 1.15rem;
        transition: transform 0.2s;
    }
    .bottom-nav-item.active {
        color: var(--primary);
    }
    .bottom-nav-item.active i {
        transform: translateY(-2px);
        color: var(--accent);
    }
    .bottom-nav-item.hotline-item {
        color: #059669;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 24px 0 32px 0;
    }
    .hero-badge {
        font-size: 0.78rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.32;
        margin-bottom: 12px;
    }
    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 24px;
        padding: 12px 8px;
        border-radius: 12px;
    }
    .stat-card h3 {
        font-size: 1.35rem;
    }
    .stat-card p {
        font-size: 0.74rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 22px;
    }
    .section-header h2 {
        font-size: 1.55rem;
        line-height: 1.3;
    }
    .section-header p {
        font-size: 0.88rem;
    }

    /* Calculator Cards & Inputs */
    .calc-card {
        padding: 18px 14px;
        border-radius: 16px;
    }
    .card-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .grid-3-col {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .grid-3-col .form-group:nth-child(4),
    .grid-3-col .form-group:nth-child(5) {
        grid-column: span 1;
    }
    .form-group {
        margin-bottom: 12px;
    }
    .form-group label {
        font-size: 0.88rem;
        margin-bottom: 4px;
    }
    .form-control {
        padding: 10px 12px;
        font-size: 16px !important; /* Critical to avoid iOS zoom */
        border-radius: 10px;
    }
    .divider-text {
        font-size: 0.85rem;
        margin: 12px 0;
        padding: 5px 10px;
    }
    .calc-btn-row {
        display: flex;
        gap: 10px;
        margin-top: 18px;
    }
    .calc-btn-row .btn-primary {
        flex: 2;
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    .calc-btn-row .btn-outline {
        flex: 1;
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    /* Results Summary Box */
    .res-summary-box {
        padding: 16px 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .res-summary-box span, .res-summary-box .summary-label {
        font-size: 0.82rem;
    }
    .res-summary-box h2 {
        font-size: 1.85rem;
        line-height: 1.2;
        margin: 4px 0;
    }
    .res-summary-box .summary-sub {
        font-size: 0.82rem;
        opacity: 0.9;
    }

    /* Toggle: Show Mobile Cards, Hide Desktop Tables */
    .mobile-faraiz-cards {
        display: flex !important;
    }
    .desktop-faraiz-table {
        display: none !important;
    }
    .mobile-deed-cards {
        display: flex !important;
    }
    .desktop-deed-table {
        display: none !important;
    }

    /* Grids & Cards */
    .features-grid, .directory-grid, .hero-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .feature-card {
        padding: 18px 16px;
    }
    .search-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    /* Mobile Footer Enhancements */
    .main-footer {
        padding-top: 36px;
        padding-bottom: 95px;
        background: #031c15;
    }
    .footer-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    .footer-hotline-pills {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .footer-hotline-btn {
        justify-content: center;
        padding: 9px 8px;
        font-size: 0.82rem;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }
    .footer-nav-list li {
        margin-bottom: 10px;
    }
    .footer-nav-list a {
        padding: 9px 12px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        font-size: 0.94rem;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.09);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .footer-nav-list a:active,
    .footer-nav-list a:hover {
        background: rgba(16, 185, 129, 0.22);
        border-color: #10b981;
        color: #a7f3d0;
    }
    .contact-line {
        background: rgba(255, 255, 255, 0.05);
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-bottom-strip {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding-top: 15px;
    }
}

/* SMALL SMARTPHONES (Max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .hero-title {
        font-size: 1.52rem;
    }
    .brand-title {
        font-size: 1.05rem;
    }
    .btn-header-consult {
        padding: 5px 9px;
        font-size: 0.76rem;
    }
    .res-summary-box h2 {
        font-size: 1.65rem;
    }
    .heir-card {
        padding: 12px 10px;
    }
    .heir-name {
        font-size: 0.88rem;
    }
    .badge-share {
        font-size: 0.78rem;
        padding: 2px 7px;
    }
    .heir-card-body {
        gap: 4px;
        padding: 8px 6px;
    }
    .heir-stat-item .lbl {
        font-size: 0.68rem;
    }
    .heir-stat-item .val {
        font-size: 0.82rem;
    }
    .modal-card {
        width: 95%;
        padding: 22px 16px;
    }
    .phone-link {
        font-size: 1.25rem;
    }
}

/* ================= FARAIZ ADVANCED CALCULATOR STYLES ================= */
@media (max-width: 991px) {
    .calc-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

.calc-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

.faraiz-tab-content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* SweetAlert2 Bengali styling */
.swal2-popup {
    font-family: 'Kalpurush', sans-serif !important;
    border-radius: 16px !important;
    max-width: 92vw !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18) !important;
}
.swal2-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #065f46 !important;
}
.swal2-html-container {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
}
.swal2-confirm {
    background: #059669 !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 12px rgba(5,150,105,0.25) !important;
}

.faraiz-prop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 991px) {
    .faraiz-prop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 640px) {
    .faraiz-prop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    .prop-card {
        padding: 10px 10px !important;
        border-radius: 10px !important;
    }
    .prop-card-head {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    .prop-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
    }
    .prop-title {
        font-size: 0.82rem !important;
    }
    .prop-unit {
        font-size: 0.65rem !important;
        display: block !important;
    }
    .prop-input {
        padding: 6px 8px !important;
        font-size: 0.95rem !important;
        border-radius: 6px !important;
    }
    .prop-conversion-preview {
        font-size: 0.68rem !important;
        min-height: 14px !important;
        margin-top: 3px !important;
    }
    .page-header-banner {
        padding: 18px 0 22px 0 !important;
    }
    .page-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }
    .page-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }
    .page-badge {
        font-size: 0.72rem !important;
        padding: 3px 10px !important;
        margin-bottom: 6px !important;
    }
    .breadcrumbs {
        font-size: 0.74rem !important;
    }
    .faraiz-tabs-nav {
        gap: 5px !important;
        margin-bottom: 14px !important;
    }
    .faraiz-tab-btn {
        padding: 7px 11px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }
    .heir-selection-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .heir-select-item {
        padding: 9px 10px !important;
        border-radius: 10px !important;
    }
    .heir-title-text {
        font-size: 0.88rem !important;
    }
    .heir-limit-hint {
        font-size: 0.68rem !important;
    }
    .counter-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }
    .counter-num-input {
        width: 38px !important;
        font-size: 0.9rem !important;
    }
    .faraiz-action-bar {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .faraiz-btn-group {
        display: flex !important;
        gap: 8px !important;
    }
    .faraiz-btn-group .btn {
        flex: 1 !important;
    }
}

.prop-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.prop-card:focus-within, .prop-card:hover {
    border-color: #059669;
    box-shadow: 0 6px 18px rgba(5,150,105,0.12);
}
.prop-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.prop-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #059669;
    background: rgba(5,150,105,0.1);
}
.prop-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}
.prop-unit {
    font-size: 0.78rem;
    color: #64748b;
}
.prop-input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    transition: border 0.2s;
    background: #f8fafc;
}
.prop-input:focus {
    background: #ffffff;
    border-color: #059669;
    outline: none;
}
.prop-conversion-preview {
    margin-top: 8px;
    font-size: 0.76rem;
    color: #059669;
    font-weight: 600;
    min-height: 18px;
}

/* Category Tabs */
.faraiz-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.faraiz-tabs-nav::-webkit-scrollbar {
    height: 4px;
}
.faraiz-tabs-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.faraiz-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.faraiz-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.faraiz-tab-btn.active {
    background: #059669;
    color: #ffffff;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}
.tab-badge {
    background: rgba(0,0,0,0.12);
    color: inherit;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
}
.faraiz-tab-btn.active .tab-badge {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* Heir Cards Grid */
.heir-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 991px) {
    .heir-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .heir-selection-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.heir-select-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.heir-select-item:hover {
    border-color: #94a3b8;
    background: #fafafa;
}
.heir-select-item.selected {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(5,150,105,0.1);
}

.heir-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.heir-checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.heir-select-item.selected .heir-checkbox-custom {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}
.heir-info-col {
    flex: 1;
}
.heir-title-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    display: block;
    line-height: 1.3;
}
.heir-limit-hint {
    font-size: 0.74rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.heir-counter-wrap {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
    margin-top: 8px;
}
.heir-select-item.selected .heir-counter-wrap {
    display: flex;
}
.counter-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #334155;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.counter-btn:hover {
    background: #e2e8f0;
    color: #059669;
}
.counter-num-input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
}
.counter-num-input:focus {
    outline: none;
}

/* Deceased children dynamic section */
.deceased-sub-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    margin-bottom: 20px;
    display: none;
}
.deceased-sub-box.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.deceased-sub-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Floating / Sticky Control Bar */
.faraiz-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 12px;
}
.faraiz-summary-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}
.faraiz-pill-badge {
    background: rgba(5,150,105,0.12);
    color: #059669;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.faraiz-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Result Styles */
.res-stat-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-radius: 14px;
    padding: 20px;
    color: #ffffff;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .res-stat-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.res-stat-item {
    text-align: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
}
.res-stat-lbl {
    font-size: 0.8rem;
    color: #a7f3d0;
    margin-bottom: 4px;
}
.res-stat-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

/* Steps list */
.faraiz-step-card {
    background: #f8fafc;
    border-left: 4px solid #059669;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.faraiz-step-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 4px;
}
.faraiz-step-desc {
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.5;
}

/* Official Print Certificate styling */
@page {
    size: A4 portrait;
    margin: 8mm 6mm;
}

@media print {
    header, footer, nav, .navbar, .main-header, .main-footer, .mobile-bottom-bar,
    .page-header-banner, .breadcrumbs, .section-pad, .faraiz-track-bar, #qrVerifyAlertBox,
    .active-law-bar, .law-selection-section, #calculatorSectionMuslim, #calculatorSectionHindu,
    .btn, button, .modal-backdrop, .no-print {
        display: none !important;
    }

    html, body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    #printCertificateModal {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }

    #printCertificateModal > div {
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .cert-sheet-a4 {
        width: 198mm !important;
        max-width: 198mm !important;
        height: 278mm !important;
        max-height: 278mm !important;
        min-height: 278mm !important;
        margin: 0 auto !important;
        padding: 10mm 12mm !important;
        box-sizing: border-box !important;
        border: 2px solid #059669 !important;
        border-radius: 6px !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .cert-header {
        display: grid !important;
        grid-template-columns: 200px 1fr 200px !important;
        align-items: center !important;
        border-bottom: 2px solid #059669 !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }

    .cert-brand-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        max-width: 200px !important;
    }

    .cert-logo-img {
        width: 44px !important;
        height: 44px !important;
    }

    .cert-title-block {
        text-align: center !important;
        width: 100% !important;
        padding: 0 4px !important;
    }

    .cert-title-main {
        font-size: 1.25rem !important;
        font-weight: 900 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .cert-title-sub {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        margin: 2px 0 0 0 !important;
    }

    .cert-qr-box {
        text-align: center !important;
        justify-self: end !important;
        width: 80px !important;
    }

    .cert-qr-img {
        width: 58px !important;
        height: 58px !important;
    }

    .cert-verified-banner {
        padding: 5px 10px !important;
        margin-bottom: 8px !important;
        font-size: 0.80rem !important;
    }

    .cert-meta-grid {
        padding: 6px 10px !important;
        margin-bottom: 8px !important;
        font-size: 0.80rem !important;
    }

    .cert-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 8px !important;
    }

    .cert-table th, .cert-table td {
        padding: 4px 5px !important;
        font-size: 0.80rem !important;
    }

    .cert-islamic-box {
        padding: 6px 10px !important;
        margin-bottom: 8px !important;
        font-size: 0.76rem !important;
    }

    #certStepsWrapper {
        font-size: 0.74rem !important;
        margin-bottom: 10px !important;
    }

    .cert-signatures {
        margin-top: 10px !important;
    }
}

/* ================= A4 CERTIFICATE & WATERMARK ================= */
.cert-sheet-a4 {
    width: 794px;
    max-width: 100%;
    min-height: 1120px;
    box-sizing: border-box;
    background: #ffffff;
    margin: 0 auto;
    padding: 28px 34px;
    border: 2.5px solid #059669;
    border-radius: 8px;
    position: relative;
    font-family: 'Kalpurush', 'SolaimanLipi', serif !important;
    color: #1e293b;
    overflow: hidden;
    background-color: #ffffff;
}

.cert-sheet-a4 * {
    font-family: 'Kalpurush', 'SolaimanLipi', serif !important;
}

.cert-watermark {
    position: absolute;
    top: 310px;
    left: calc(50% - 190px);
    width: 380px;
    height: 380px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 20;
    display: block;
}

.cert-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cert-content-inner {
    position: relative;
    z-index: 2;
}

.cert-header {
    display: grid;
    grid-template-columns: 210px 1fr 210px;
    align-items: center;
    border-bottom: 2px solid #059669;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.cert-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 210px;
}

.cert-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.cert-title-block {
    text-align: center;
    width: 100%;
    padding: 0 4px;
}

.cert-title-main {
    font-size: 1.32rem;
    font-weight: 800;
    color: #059669;
    margin: 0;
    line-height: 1.25;
}

.cert-title-sub {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 3px 0 0 0;
    line-height: 1.3;
}

.cert-qr-box {
    text-align: center;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 85px;
}

.cert-qr-img {
    width: 68px;
    height: 68px;
    display: block;
    margin: 0 auto 3px auto;
}

.cert-qr-lbl {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.1;
    font-weight: 600;
}

/* Verification alert box */
.cert-verified-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    color: #065f46;
    font-size: 0.86rem;
    font-weight: 600;
}

.cert-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.84rem;
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 0.86rem;
}

.cert-table th {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 8px 6px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.cert-table td {
    border: 1px solid #cbd5e1;
    padding: 7px 6px;
    text-align: center;
    color: #1e293b;
}

.cert-islamic-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #14532d;
    word-break: normal;
    white-space: normal;
}

#certStepsWrapper {
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 18px;
    line-height: 1.6;
    word-break: normal;
    white-space: normal;
}

.cert-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
    padding-top: 10px;
}

/* ================= MANUAL TRACKING SEARCH BAR ================= */
.faraiz-track-bar {
    max-width: 600px;
    margin: 0 auto 20px auto;
    background: #ffffff;
    border: 1.5px solid #10b981;
    border-radius: 50px;
    padding: 5px 6px 5px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(16,185,129,0.12);
    transition: all 0.25s ease;
}
.faraiz-track-bar:focus-within {
    border-color: #059669;
    box-shadow: 0 6px 22px rgba(5,150,105,0.22);
}
.faraiz-track-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    padding: 6px 0;
    font-family: var(--font-bn);
}
.faraiz-track-btn {
    border-radius: 40px !important;
    padding: 8px 18px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .faraiz-track-bar {
        padding: 4px 5px 4px 12px;
        margin-bottom: 16px;
    }
    .faraiz-track-input {
        font-size: 0.84rem;
    }
    .faraiz-track-btn {
        padding: 7px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ================= DUAL INHERITANCE LAW SELECTION ================= */
.law-selection-section {
    max-width: 1040px;
    margin: 0 auto 36px auto;
    transition: all 0.35s ease;
}

.law-selection-header {
    text-align: center;
    margin-bottom: 26px;
}

.law-selection-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.law-selection-sub {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.law-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.law-select-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
}

.law-select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transition: height 0.3s ease;
}

.law-select-card.muslim-card {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.law-select-card.muslim-card::before {
    background: linear-gradient(90deg, #059669, #10b981);
}
.law-select-card.muslim-card:hover {
    transform: translateY(-5px);
    border-color: #059669;
    box-shadow: 0 16px 36px rgba(5, 150, 105, 0.16);
}

.law-select-card.hindu-card {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}
.law-select-card.hindu-card::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}
.law-select-card.hindu-card:hover {
    transform: translateY(-5px);
    border-color: #d97706;
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.16);
}

.law-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.law-card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}
.law-select-card:hover .law-card-icon-box {
    transform: scale(1.08) rotate(4deg);
}

.muslim-card .law-card-icon-box {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.hindu-card .law-card-icon-box {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.law-badge-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.muslim-card .law-badge-pill {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.hindu-card .law-badge-pill {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.law-card-title {
    font-size: 1.38rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}
.muslim-card .law-card-title {
    color: #065f46;
}
.hindu-card .law-card-title {
    color: #92400e;
}

.law-card-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
}

.law-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.law-features-list li {
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.45;
}
.muslim-card .law-features-list li i {
    color: #059669;
}
.hindu-card .law-features-list li i {
    color: #d97706;
}

.law-cta-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.muslim-card .law-cta-btn {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.muslim-card .law-cta-btn:hover {
    background: #047857;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}
.hindu-card .law-cta-btn {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.hindu-card .law-cta-btn:hover {
    background: #b45309;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* ================= TOP STICKY LAW SWITCHER BAR ================= */
.active-law-bar {
    max-width: 1040px;
    margin: 0 auto 20px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1.5px solid #e2e8f0;
    gap: 12px;
    flex-wrap: wrap;
}

.active-law-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.active-law-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulseSlow 2s infinite;
}
.active-law-indicator.hindu {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.active-law-segmented-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}
.law-segment-btn {
    border: none;
    outline: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-bn);
}
.law-segment-btn.active.muslim {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.law-segment-btn.active.hindu {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.law-change-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-bn);
}
.law-change-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ================= HINDU MODE SPECIFIC STYLING ================= */
.hindu-theme .faraiz-tab-btn.active {
    background: #d97706 !important;
    border-color: #d97706 !important;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.25) !important;
}
.hindu-theme .heir-select-item.selected {
    border-color: #d97706 !important;
    background: #fffbeb !important;
}
.hindu-theme .heir-select-item.selected .heir-checkbox-custom {
    background: #d97706 !important;
    border-color: #d97706 !important;
}
.hindu-theme .prop-card:focus-within, .hindu-theme .prop-card:hover {
    border-color: #d97706 !important;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12) !important;
}
.hindu-theme .prop-input:focus {
    border-color: #d97706 !important;
}
.hindu-theme .prop-conversion-preview {
    color: #d97706 !important;
}
.hindu-theme .btn-primary {
    background: #d97706 !important;
    border-color: #d97706 !important;
}
.hindu-theme .btn-primary:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
}

/* Estate type badges in Hindu calculation */
.estate-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
}
.estate-badge.life {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.estate-badge.absolute {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.15); }
}

@media (max-width: 768px) {
    .law-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .law-select-card {
        padding: 20px 18px;
    }
    .law-card-title {
        font-size: 1.25rem;
    }
    .active-law-bar {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .active-law-segmented-tabs {
        width: 100%;
    }
    .law-segment-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}



