:root {
  --dark-green: #0B7A43;
  --primary: #25d366;
  --light-bg: #f8f9fa;
  --surface: #ffffff;
  --line: #e9ecef;
  --muted: #6c757d;
}

html, body { background: #f8f9fa; color: #333; font-family: "Segoe UI", system-ui, sans-serif; margin: 0; padding: 0; }
a { text-decoration: none; }

/* ========== LANDING PAGE ========== */
.landing-body { background: #fff; color: #333; }
.landing-topbar { background: var(--dark-green); color: #fff; padding: 8px 0; font-size: 0.9rem; }
.landing-navbar { background: #fff; border-bottom: 1px solid var(--line); padding: 15px 0; }
.landing-navbar .brand { color: var(--dark-green); font-weight: 800; font-size: 1.4rem; margin: 0; text-transform: capitalize; }
.landing-navbar .nav-links { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.landing-navbar .nav-links a { color: #333; font-weight: 500; }
.landing-navbar .nav-links a:hover { color: var(--dark-green); }

.landing-btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-weight: 600; text-align: center; border: none; cursor: pointer; transition: all 0.2s; }
.landing-btn-primary { background: var(--dark-green); color: #fff; box-shadow: 0 4px 10px rgba(11, 122, 67, 0.2); }
.landing-btn-primary:hover { background: #065c30; color: #fff; transform: translateY(-2px); }
.landing-btn-outline { border: 1px solid #dee2e6; color: #333; background: #fff; }
.landing-btn-outline:hover { border-color: var(--dark-green); color: var(--dark-green); background: #f0fdf4; }
.landing-btn-light { background: #fff; color: var(--dark-green); }
.landing-btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.landing-btn-sm { padding: 6px 16px; font-size: 0.9rem; }

.landing-body .form-control, .landing-body .form-select { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; color: #333; padding: 10px 15px; }
.landing-body .form-control:focus { border-color: var(--dark-green); box-shadow: 0 0 0 0.2rem rgba(11, 122, 67, 0.1); }

/* Hero, Phone, Features, Footer CSS (Aapki existing jo match karti hai) */
.hero-section { background: linear-gradient(180deg, #f0fdf4, #fff); padding: 80px 0; }
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.1; color: #111; }
.hero-subtitle { font-size: 1.1rem; color: var(--muted); }
.trust-list { display: flex; flex-wrap: wrap; gap: 15px; list-style: none; padding: 0; margin: 0; color: #333; font-size: 0.9rem; }
.trust-list li { display: flex; align-items: center; gap: 5px; }
.trust-list i { color: var(--dark-green); }

.phone-frame { position: relative; max-width: 340px; margin: 0 auto; }
.phone-mock { background: #111; border-radius: 40px; padding: 20px; border: 10px solid #000; position: relative; z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.phone-island { width: 120px; height: 25px; background: #000; border-radius: 20px; margin: 0 auto 20px; }
.phone-head { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 20px; }
.phone-avatar { width: 40px; height: 40px; background: #075E54; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.phone-body { display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 10px 15px; border-radius: 12px; font-size: 0.85rem; position: relative; max-width: 80%; }
.bubble-in { background: #fff; color: #333; align-self: flex-start; border-top-left-radius: 2px; }
.bubble-out { background: #dcf8c6; color: #333; align-self: flex-end; border-top-right-radius: 2px; }
.bubble-time { font-size: 0.7rem; opacity: 0.7; margin-left: 5px; float: right; }
.float-card { position: absolute; background: #fff; padding: 10px 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); font-weight: 600; font-size: 0.9rem; z-index: 3; }
.float-1 { top: -20px; left: -50px; }
.float-2 { bottom: -20px; right: -40px; }
.float-3 { bottom: 50px; left: -40px; }

.section-bg-soft { background: #f0fdf4; }
.eyebrow { display: inline-flex; align-items: center; gap: 5px; background: #e7f6ec; color: var(--dark-green); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 25px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: all .2s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
.icon-tile { width: 60px; height: 60px; background: #e7f6ec; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--dark-green); font-size: 28px; margin: 0 auto 20px; }

.step-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.step-num { width: 50px; height: 50px; background: var(--dark-green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 15px; }

.code-window { background: #1e1e1e; border-radius: 10px; padding: 20px; color: #fff; font-family: monospace; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.code-dot-r { background: #ff5f56; }
.code-dot-y { background: #ffbd2e; }
.code-dot-g { background: #27c93f; }

.benefit-item { display: flex; gap: 15px; margin-bottom: 20px; }
.benefit-item i { color: var(--dark-green); font-size: 1.5rem; }
.benefit-item strong { display: block; font-size: 1.1rem; }
.benefit-item p { margin: 0; color: var(--muted); }

.cta-banner { background: var(--dark-green); padding: 60px; border-radius: 20px; text-align: center; color: #fff; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); }

.footer { background: #0d1f17; color: #fff; padding-top: 50px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b0c4b8; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #b0c4b8; border-top: 1px solid #1c392e; margin-top: 30px; }

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-body { background: #f8f9fa; }
.app-container { display: flex; min-height: calc(100vh - 64px); }
.side-panel { width: 240px; background: #fff; border-right: 1px solid var(--line); padding: 20px 15px; display: flex; flex-direction: column; }
.side-logo { margin-bottom: 20px; }
.side-logo .brand { font-weight: 800; font-size: 1.4rem; color: var(--dark-green); text-transform: capitalize; }
.side-links { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.side-links a { display: flex; align-items: center; padding: 10px 15px; border-radius: 8px; color: #333; font-weight: 500; transition: all 0.2s; }
.side-links a i { font-size: 1.2rem; margin-right: 12px; color: var(--muted); }
.side-links a:hover { background: #f0fdf4; color: var(--dark-green); }
.side-links a:hover i { color: var(--dark-green); }
.side-links a.active { background: var(--dark-green); color: #fff; }
.side-links a.active i { color: #fff; }

.main-content { flex: 1; padding: 30px; }
.page-header { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.page-header h1 { font-size: 26px; font-weight: 700; margin: 0; color: #111; }

/* ========== COMMON COMPONENTS ========== */
.card-wp { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }

/* Stat Items (Consolidated) */
.stat-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 15px; }
.stat-item i { font-size: 32px; }
.stat-item span { display: block; font-size: 0.85rem; color: var(--muted); }
.stat-item strong { display: block; font-size: 1.4rem; font-weight: 700; color: #111; }

/* Icon Colors (Consolidated) */
.ic-gold { color: #f59e0b; }
.ic-blue { color: #2196f3; }
.ic-green { color: #4caf50; }
.ic-teal { color: #009688; }
.ic-orange { color: #ff9800; }
.ic-red { color: #f44336; }

/* Forms & Buttons */
.form-control, .form-select { background: #fff; border: 1px solid #dee2e6; color: #333; border-radius: 8px; }
.form-control:focus { border-color: var(--dark-green); box-shadow: 0 0 0 0.2rem rgba(11, 122, 67, 0.1); }
.btn-wa { background: var(--dark-green); color: #fff; font-weight: 600; border: 0; border-radius: 8px; padding: 8px 16px; }
.btn-wa:hover { background: #065c30; color: #fff; }

/* Instance Buttons (Consolidated) */
.btn-instance { padding: 7px 14px; font-size: 0.9rem; font-weight: 700; border-radius: 8px; border: none; color: #fff; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.btn-instance i { font-size: 1.3rem; }
.btn-instance-green { background: var(--dark-green); color: #fff; }
.btn-instance-green:hover { background: #065c30; color: #fff; transform: translateY(-2px); }
.btn-instance-red { background: #e74c3c; color: #fff; }
.btn-instance-red:hover { background: #c0392b; color: #fff; transform: translateY(-2px); }
.btn-instance-orange { background: #f39c12; color: #fff; }
.btn-instance-orange:hover { background: #e67e22; color: #fff; transform: translateY(-2px); }
.btn-instance-cyan { background: #00bcd4; color: #fff; }
.btn-instance-cyan:hover { background: #0097a7; color: #fff; transform: translateY(-2px); }

/* Table Buttons (Consolidated) */
.btn-table { padding: 4px 10px; font-size: 0.8rem; font-weight: 700; border-radius: 6px; border: none; color: #fff; display: inline-flex; align-items: center; gap: 5px; transition: all 0.2s; }
.btn-table i { font-size: 1rem; }
.btn-table:hover { transform: translateY(-2px); }

/* Disclaimer Modal */
.disclaimer-header { background: linear-gradient(135deg, #0B7A43, #25d366); color: #fff; text-align: center; padding: 20px; }
.disclaimer-icon { width: 50px; height: 50px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 24px; color: #0B7A43; }
.disclaimer-header h4 { font-weight: 700; font-size: 1.3rem; margin: 0 0 5px; }
.disclaimer-header p { margin: 0; opacity: 0.9; font-size: 0.85rem; }
.disclaimer-warning { background: #fff5f5; border: 1px solid #fcd5d5; border-radius: 8px; color: #b91c1c; padding: 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; line-height: 1.4; }
.disclaimer-warning i { font-size: 1.2rem; margin-top: 2px; }
.disclaimer-list { list-style: none; padding: 0; margin: 0; }
.disclaimer-list li { margin-bottom: 8px; color: #333; display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.disclaimer-list li i { color: #25d366; font-size: 1.1rem; margin-top: 3px; }

/* Inbox WhatsApp Style */
.wa-inbox-container { display: flex; height: calc(100vh - 140px); overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.wa-sidebar { width: 350px; border-right: 1px solid #e9ecef; display: flex; flex-direction: column; }
.wa-sidebar-header { background: #f0f2f5; padding: 15px; border-bottom: 1px solid #e9ecef; }
.wa-chat-list { flex: 1; overflow-y: auto; background: #fff; }
.wa-chat-item { padding: 15px 20px; border-bottom: 1px solid #f0f2f5; cursor: pointer; display: flex; gap: 15px; align-items: center; transition: background 0.2s; }
.wa-chat-item:hover { background: #f0f2f5; }
.wa-chat-item.active { background: #e6f4ea; border-right: 4px solid var(--dark-green); }
.wa-chat-avatar { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 1.2rem; }
.wa-chat-info { flex: 1; overflow: hidden; }
.wa-chat-name { font-weight: 600; font-size: 0.95rem; color: #111; }
.wa-chat-last { font-size: 0.8rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-chat-window { flex: 1; display: flex; flex-direction: column; background: #efeae2; }
.wa-chat-window-header { background: #f0f2f5; padding: 10px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e9ecef; }
.wa-messages-area { flex: 1; overflow-y: auto; padding: 20px; }
.wa-bubble { max-width: 70%; padding: 10px 15px; margin-bottom: 10px; border-radius: 8px; font-size: 0.9rem; position: relative; word-wrap: break-word; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.wa-bubble-in { background: #fff; align-self: flex-start; border-top-left-radius: 0; }
.wa-bubble-out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 0; }
.wa-time { display: block; font-size: 0.7rem; color: #999; text-align: right; margin-top: 5px; }
.wa-input-area { background: #f0f2f5; padding: 15px; display: flex; gap: 10px; }
.wa-input-area input { border-radius: 20px; border: 1px solid #dee2e6; }
.wa-send-btn { border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: var(--dark-green); color: #fff; border: none; }
.wa-disconnected { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; background: #f8f9fa; }
.wa-disconnected i { font-size: 64px; color: #c5c5c5; margin-bottom: 15px; }
.wa-disconnected h5 { font-weight: 700; }
.wa-disconnected p { color: #6c757d; max-width: 300px; }

/* Flatpickr Calendar */
.flatpickr-calendar { border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: none; width: 320px; }
.flatpickr-months .flatpickr-month { color: #333; fill: #333; }
.flatpickr-weekdays { background: #fff; }
.flatpickr-weekday { color: #6c757d; font-weight: 600; }
.flatpickr-day { color: #333; border-radius: 8px; font-size: 0.9rem; }
.flatpickr-day:hover { background: #e7f6ec; }
.flatpickr-day.selected { background: #0B7A43; border-color: #0B7A43; color: #fff; box-shadow: 0 2px 8px rgba(11, 122, 67, 0.3); }
.flatpickr-day.today { border-color: #0B7A43; }
.flatpickr-day.today:hover { background: #e7f6ec; color: #0B7A43; }
.flatpickr-time input:hover, .flatpickr-time input:focus { border-color: #0B7A43; }
.flatpickr-time { border-top: 1px solid #e9ecef; background: #fff; border-radius: 0 0 12px 12px; }
.flatpickr-time .flatpickr-am-pm { color: #0B7A43; font-weight: 600; }

/* Personalized Field Buttons */
.btn-field { border-radius: 10px; color: #fff; font-weight: 700; border: none; padding: 8px 16px; font-size: 0.9rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.2s ease; cursor: pointer; }
.btn-field:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-field:active { transform: scale(0.95); }
.btn-field-a { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.btn-field-b { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.btn-field-c { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.btn-field-d { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.btn-field-e { background: linear-gradient(135deg, #f6d365, #fda085); }
.btn-field-f { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.btn-field-g { background: linear-gradient(135deg, #fdcbf1, #e6dee9); }
.btn-field-h { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.btn-field-q { background: linear-gradient(135deg, #0B7A43, #25d366); }

/* Phonebook Cards & Avatars */
.group-card { transition: all 0.2s; border-left: 4px solid #25d366; }
.group-card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.08); }
.contact-avatar { width: 35px; height: 35px; border-radius: 50%; background: #e7f6ec; color: #0B7A43; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-list { max-height: 200px; overflow-y: auto; }

/* Settings Tabs & Buttons */
.settings-tabs .nav-link { color: #333; font-weight: 600; border: none; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; padding: 10px 15px; }
.settings-tabs .nav-link:hover { background: #f0fdf4; color: var(--dark-green); }
.settings-tabs .nav-link.active { background: var(--dark-green); color: #fff; border-radius: 8px; border: none; }
.btn-update { background: #00bcd4; color: #fff; font-weight: 700; border: none; padding: 6px 15px; border-radius: 6px; }
.btn-update:hover { background: #0097a7; color: #fff; }
.form-switch .form-check-input { width: 3em; height: 1.5em; cursor: pointer; }
.form-switch .form-check-input:checked { background-color: var(--dark-green); border-color: var(--dark-green); }
/* Billing Package Cards */
.package-card {
    transition: all 0.2s;
    border-top: 4px solid #0B7A43;
}
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.package-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e7f6ec;
    color: #0B7A43;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
}