* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}
.topbar {
    background: #1e293b;
    color: #fff;
}
.topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}
.topbar nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
}
.topbar nav a:hover { color: #fff; }

/* ---- Sidebar layout (logged-in dashboard) ---- */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 230px;
    flex-shrink: 0;
    background: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-brand {
    font-size: 19px;
    font-weight: bold;
    color: #fff;
    padding: 22px 20px;
    border-bottom: 1px solid #334155;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px 0;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 20px;
    border-left: 3px solid transparent;
}
.nav-item .nav-icon { font-size: 15px; }
.nav-item:hover {
    background: #273549;
    color: #fff;
}
.nav-item.active {
    background: #273549;
    color: #fff;
    border-left-color: #2563eb;
    font-weight: 600;
}
.nav-logout {
    margin-top: auto;
    border-top: 1px solid #334155;
}
.main-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.topbar-slim {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 30px;
    font-size: 14px;
    color: #555;
}

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

@media (max-width: 768px) {
    .app-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-brand { display: none; }
    .sidebar-nav { flex-direction: row; }
    .nav-item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
    .nav-item.active { border-left: none; border-bottom-color: #2563eb; }
    .nav-logout { margin-top: 0; border-top: none; }
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.form-box {
    max-width: 420px;
    margin: 40px auto;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

textarea { resize: vertical; }

button, .btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 16px;
}
button:hover, .btn:hover { background: #1d4ed8; }

.btn-secondary { background: #64748b; }
.btn-secondary:hover { background: #475569; }

.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

.btn-small { padding: 5px 10px; font-size: 12px; margin-top: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
th { background: #f1f5f9; }

.alert {
    padding: 10px 14px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef9c3; color: #854d0e; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-trial { background: #fef9c3; color: #854d0e; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-expired { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #e0e7ff; color: #3730a3; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-unpaid { background: #fee2e2; color: #991b1b; }

.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #888;
}

.center { text-align: center; }
.muted { color: #777; font-size: 13px; }

.invoice-items-row td { padding: 6px 10px; }

/* ==== Landing page (Zoho-style) ==== */
:root {
    --lp-navy: #0f172a;
    --lp-navy-2: #1e2a45;
    --lp-primary: #2563eb;
    --lp-primary-dark: #1741a6;
    --lp-accent: #f59e0b;
}

body.landing {
    background: #fff;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.landing .btn, body.landing button {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.landing .btn-primary {
    box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}
body.landing .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37,99,235,0.32);
}
body.landing .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
body.landing h1, body.landing h2, body.landing h3, body.landing h4 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    letter-spacing: -0.02em;
}
body.landing .lp-section h2, body.landing .lp-section-alt h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
}

.lp-nav {
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.lp-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-brand {
    font-size: 21px;
    font-weight: 800;
    color: var(--lp-navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.lp-nav-links { display: flex; gap: 28px; }
.lp-nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.lp-nav-links a:hover { color: var(--lp-navy); }
.lp-nav-actions { display: flex; align-items: center; gap: 18px; }
.lp-nav-actions a:first-child { color: #475569; text-decoration: none; font-size: 14px; }

.btn-primary { background: var(--lp-primary); }
.btn-primary:hover { background: var(--lp-primary-dark); }
.btn-ghost {
    background: transparent;
    color: var(--lp-navy);
    border: 1.5px solid #d7dce3;
}
.btn-ghost:hover { background: #f8fafc; }
.lp-hero .btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.lp-hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }

.lp-hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 10%, rgba(37,99,235,0.35), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(99,102,241,0.25), transparent 45%),
        linear-gradient(160deg, var(--lp-navy-2), var(--lp-navy) 70%);
    color: #fff;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}
.lp-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

#features{ padding-bottom: 60px;  }
.lp-eyebrow {
        display: inline-block;
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.lp-hero h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.lp-hero-sub { font-size: 17px; color: #cbd5e1; margin-bottom: 28px; }
.lp-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 14px 28px; font-size: 15px; font-weight: 700; margin-top: 0; }

.lp-tagline {
    background: #eef2ff;
    padding: 22px 24px;
    text-align: center;
    border-bottom: 1px solid #e0e7ff;
}
.lp-tagline p {
    margin: 0;
    color: #3730a3;
    font-weight: 600;
    font-size: 15px;
}

.lp-footer {
    background: var(--lp-navy);
    color: #94a3b8;
    padding: 56px 24px 0;
}
.lp-footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-footer-brand p { font-size: 13px; margin-top: 10px; line-height: 1.6; max-width: 260px; }
.lp-footer-col h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}
.lp-footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}
.lp-footer-col a:hover { color: #fff; }
.lp-footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 800px) {
    .lp-footer-top { grid-template-columns: 1fr 1fr; }
}

.lp-section { padding: 70px 24px; scroll-margin-top: 70px; }
.lp-section-main {    padding-top: 90px !important;
    padding-bottom: 90px !important;}
.lp-section-alt { background: #f8fafc; padding: 70px 24px; scroll-margin-top: 70px; }
.lp-kicker {
    display: block;
    color: var(--lp-primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#faq{ padding-top: 60px; padding-bottom: 60px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}
.feature-card {
    text-align: center;
    padding: 32px 26px;
}
.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
    box-shadow: 0 6px 16px rgba(37,99,235,0.15);
}
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f2f5;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.10) !important;
}
.feature-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
.feature-card p { color: #64748b; font-size: 14px; margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .modules-grid { grid-template-columns: 1fr; }
}
.module-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.module-card.module-live { border-top: 3px solid #22c55e; }
.module-card.module-soon { border-top: 3px solid #cbd5e1; opacity: 0.9; }
.module-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.module-icon { font-size: 20px; }
.module-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 20px;
}
.module-live .module-badge { background: #dcfce7; color: #166534; }
.module-soon .module-badge { background: #f1f5f9; color: #64748b; }
.module-card h4 { margin: 4px 0 6px; font-size: 15px; }
.module-card p { margin: 0; font-size: 13px; color: #64748b; }

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}
.industry-tag {
    background: #eef2ff;
    color: #3730a3;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing { padding: 20px 24px 70px; scroll-margin-top: 70px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 960px;
    margin: 30px auto 0;
}
.pricing-card {
    text-align: center;
    position: relative;
    border: 1px solid #f0f2f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.10) !important;
}
.pricing-card .price { font-size: 28px; font-weight: bold; color: var(--lp-primary); margin: 5px 0; }
.pricing-card-best {
    border: 2px solid var(--lp-primary);
    box-shadow: 0 10px 28px rgba(37,99,235,0.16) !important;
}
.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}
@media (max-width: 800px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.why-card { text-align: center; padding: 10px; }
.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(37,99,235,0.12);
    margin: 0 auto 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 620px;
    margin: 30px auto 0;
}
.contact-card {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 28px 20px;
}
.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    box-shadow: 0 6px 16px rgba(37,99,235,0.12);
}
.contact-card h4 { margin: 0 0 6px; font-size: 14px; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-card p { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; }
.contact-card p a { color: var(--lp-primary); text-decoration: none; }
.contact-card p a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.why-card h4 { margin: 0 0 8px; font-size: 15px; }
.why-card p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }

.faq-list { max-width: 760px; margin: 30px auto 0; }
.faq-item {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 4px 20px;
    margin-bottom: 12px;
}
.faq-item summary {
    padding: 16px 0;
    font-weight: 700;
    font-size: 14.5px;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 20px;
    color: var(--lp-primary);
    font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; font-size: 14px; color: #64748b; line-height: 1.6; }

.lp-hero-inner.lp-hero-split {
    max-width: 1140px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
    text-align: left;
}
.lp-hero-split .lp-hero-cta { justify-content: flex-start; }
.hero-mock {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.hero-mock-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.hero-mock-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}
.hero-mock-body {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
}
.hero-mock-side { display: flex; flex-direction: column; gap: 8px; }
.hero-mock-side span {
    height: 10px;
    border-radius: 4px;
    background: #e2e8f0;
}
.hero-mock-side span:first-child { background: #2563eb; }
.hero-mock-main { display: flex; flex-direction: column; gap: 10px; }
.hero-mock-stat {
    height: 46px;
    border-radius: 6px;
    background: #eef2ff;
}
.hero-mock-row { height: 12px; border-radius: 4px; background: #f1f5f9; }
.hero-mock-row.short { width: 60%; }

@media (max-width: 860px) {
    .lp-hero-inner.lp-hero-split { grid-template-columns: 1fr; text-align: center; }
    .lp-hero-split .lp-hero-cta { justify-content: center; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .lp-nav-links { display: none; }
    .lp-hero h1 { font-size: 30px; }
    .lp-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}


/* Product search autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.autocomplete-results div {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.autocomplete-results div:hover { background: #f1f5f9; }

.logo-preview {
    max-width: 150px;
    max-height: 80px;
    margin-top: 10px;
    display: block;
}

.badge-lead-new { background: #e0e7ff; color: #3730a3; }
.badge-lead-contacted { background: #dbeafe; color: #1e40af; }
.badge-lead-demo { background: #fef9c3; color: #854d0e; }
.badge-lead-proposal { background: #fed7aa; color: #9a3412; }
.badge-lead-won { background: #dcfce7; color: #166534; }
.badge-lead-lost { background: #fee2e2; color: #991b1b; }
.badge-overdue { background: #fee2e2; color: #991b1b; }
.badge-today { background: #fef9c3; color: #854d0e; }
.badge-upcoming { background: #dbeafe; color: #1e40af; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-expense-office { background: #e0e7ff; color: #3730a3; }
.badge-expense-travel { background: #fef9c3; color: #854d0e; }
.badge-expense-purchase { background: #dbeafe; color: #1e40af; }
.badge-expense-other { background: #f1f5f9; color: #475569; }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.stat-value { font-size: 24px; font-weight: 600; color: #1e293b; }
.stat-good .stat-value { color: #166534; }
.stat-bad .stat-value { color: #991b1b; }

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 220px;
    padding-top: 20px;
    margin-top: 10px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.bar-value { font-size: 11px; color: #64748b; margin-bottom: 6px; }
.bar-fill {
    width: 100%;
    max-width: 50px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-radius: 6px 6px 0 0;
}
.bar-label { font-size: 12px; color: #334155; margin-top: 8px; font-weight: 600; }

.invoice-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.invoice-paper {
    max-width: 850px;
    margin: 0 auto;
}

.cell-with-avatar { display: inline-flex; align-items: center; gap: 10px; }
.row-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 20px;
}
.page-header h2 { margin: 0; }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-header-actions .btn, .page-header-actions a.btn { margin-top: 0; }

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 18px 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.quick-link:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #dbe3ee;
}
.quick-link-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 50%;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.filter-tabs a {
    padding: 9px 16px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.filter-tabs a:hover { color: #1e293b; }
.filter-tabs a.active { color: #2563eb; border-bottom-color: #2563eb; }

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.cal-header h3 { margin: 0; }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-grid-head {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    text-transform: uppercase;
}
.cal-cell {
    min-height: 90px;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 6px;
    font-size: 12px;
}
.cal-empty { background: transparent; border: none; }
.cal-today { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; }
.cal-day-num {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}
.cal-add {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 700;
    padding: 0 4px;
}
.cal-add:hover { color: #2563eb; }
.cal-chip {
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    padding: 2px 5px;
    margin-bottom: 3px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-chip-done { background: #dcfce7; color: #166534; text-decoration: line-through; }

@media (max-width: 700px) {
    .cal-grid { grid-template-columns: repeat(7, minmax(60px, 1fr)); overflow-x: auto; }
}

.task-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid #f0f0f0;
}
.task-row:last-child { border-bottom: none; }
.task-check {
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: 0;
}
.task-body { flex: 1; }
.task-title { font-size: 14px; font-weight: 600; }
.task-row.task-done .task-title { text-decoration: line-through; color: #94a3b8; }

/* ---- Slide-in panel (used for Add Follow-up / Add Task etc.) ---- */
.slide-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 200;
}
.slide-panel-overlay.open { opacity: 1; pointer-events: auto; }
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 201;
    overflow-y: auto;
    padding: 26px;
}
.slide-panel.open { transform: translateX(0); }
.slide-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
}
.slide-panel-header h3 { margin: 0; }
.slide-panel-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
}
.slide-panel-close:hover { color: #1e293b; }
.slide-panel form label:first-of-type { margin-top: 0; }
@media (max-width: 480px) {
    .slide-panel { width: 100%; max-width: 100%; }
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(210px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-top: 20px;
}
@media (max-width: 1300px) {
    .kanban-board { grid-template-columns: repeat(6, minmax(210px, 1fr)); }
}
.kanban-col {
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0 0 12px;
    min-width: 210px;
}
.kanban-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.kanban-col-new .kanban-col-head { background: #e0e7ff; color: #3730a3; border-color: #6366f1; }
.kanban-col-contacted .kanban-col-head { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }
.kanban-col-demo .kanban-col-head { background: #fef9c3; color: #854d0e; border-color: #eab308; }
.kanban-col-proposal .kanban-col-head { background: #fed7aa; color: #9a3412; border-color: #f97316; }
.kanban-col-won .kanban-col-head { background: #dcfce7; color: #166534; border-color: #22c55e; }
.kanban-col-lost .kanban-col-head { background: #fee2e2; color: #991b1b; border-color: #ef4444; }

.kanban-count {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 1px 9px;
    font-size: 12px;
    font-weight: 700;
}
.kanban-cards { padding: 12px; }
.kanban-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #edf0f3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 13px;
    transition: box-shadow 0.15s ease;
}
.kanban-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.10); }
.kanban-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.kanban-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kanban-select {
    width: 100%;
    padding: 6px;
    font-size: 12px;
    margin-top: 8px;
    border-radius: 5px;
}
.kanban-empty {
    padding: 0 12px 12px;
    font-size: 12px;
    color: #94a3b8;
}

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 15px;
}
.page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.page-link:hover { background: #f1f5f9; }
.page-link.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}


@media print {
    .topbar, .sidebar, .topbar-slim, .footer, .no-print { display: none !important; }
    body { background: #fff; }
    .container { max-width: 100%; margin: 0; padding: 0; }
}
