/* NextInRaushan Pro v5.0 — Extra CSS (Group 2 Features) */

/* ── Analytics Dashboard ── */
.nir-analytics { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.nir-analytics-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.nir-analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.nir-analytics-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); position: relative; overflow: hidden; }
.nir-analytics-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #6c63ff, #a855f7); }
.nir-ac-icon { font-size: 2rem; margin-bottom: .5rem; }
.nir-analytics-card strong { display: block; font-size: 2.2rem; font-weight: 800; color: #1a1a2e; line-height: 1.1; }
.nir-analytics-card span { font-size: .8rem; color: #6b7280; }
.nir-ac-trend { font-size: .78rem; margin-top: .3rem; font-weight: 600; }
.nir-trend-up { color: #10b981; }
.nir-trend-down { color: #ef4444; }

/* Bar Chart */
.nir-chart-wrap { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); margin-bottom: 1.5rem; }
.nir-chart-wrap h4 { margin-bottom: 1.25rem; font-size: 1rem; }
.nir-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 1.5rem 0 1.5rem; border-bottom: 2px solid #e5e7eb; position: relative; }
.nir-bar { flex: 1; background: linear-gradient(180deg, #6c63ff, #a855f7); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; cursor: pointer; transition: opacity .2s; }
.nir-bar:hover { opacity: .8; }
.nir-bar-label { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: .62rem; color: #6b7280; white-space: nowrap; }
.nir-bar-val { position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%); font-size: .68rem; color: #1a1a2e; font-weight: 600; white-space: nowrap; }

/* Analytics Two-Col */
.nir-analytics-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.nir-traffic-sources { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nir-traffic-sources h4 { margin-bottom: 1rem; font-size: 1rem; }
.nir-source-item { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.nir-source-item span:first-child { font-size: .85rem; min-width: 80px; }
.nir-source-bar { flex: 1; background: #f3f4f6; border-radius: 4px; height: 8px; overflow: hidden; }
.nir-source-fill { height: 100%; border-radius: 4px; }
.nir-source-item span:last-child { font-size: .78rem; font-weight: 600; color: #1a1a2e; min-width: 35px; text-align: right; }

/* ── CRM Pipeline ── */
.nir-crm { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.nir-crm-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.nir-crm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.nir-crm-stat { background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); text-align: center; }
.nir-crm-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: #1a1a2e; }
.nir-crm-stat span { font-size: .78rem; color: #6b7280; }
.nir-pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.nir-pipeline-col { background: #f3f4f6; border-radius: 12px; padding: 1rem; min-height: 300px; min-width: 160px; }
.nir-pipeline-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; margin-bottom: .75rem; text-align: center; padding-bottom: .5rem; border-bottom: 2px solid #e5e7eb; }
.nir-lead-card { background: #fff; border-radius: 8px; padding: .85rem; margin-bottom: .6rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); font-size: .82rem; cursor: pointer; transition: transform .2s; border-left: 3px solid #6c63ff; }
.nir-lead-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.nir-lead-card strong { display: block; margin-bottom: .2rem; color: #1a1a2e; }
.nir-lead-card .nir-lc-email { color: #6b7280; font-size: .75rem; display: block; margin-bottom: .2rem; }
.nir-lead-card .nir-lc-budget { color: #10b981; font-weight: 700; }
.nir-lead-card .nir-lc-date { color: #9ca3af; font-size: .72rem; }
.nir-col-new .nir-lead-card { border-left-color: #6b7280; }
.nir-col-contacted .nir-lead-card { border-left-color: #3b82f6; }
.nir-col-proposal .nir-lead-card { border-left-color: #f59e0b; }
.nir-col-won .nir-lead-card { border-left-color: #10b981; }
.nir-col-lost .nir-lead-card { border-left-color: #ef4444; }
.nir-crm-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.nir-crm-action-btn { flex: 1; padding: .3rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .72rem; cursor: pointer; text-align: center; background: #fff; transition: all .2s; }
.nir-crm-action-btn:hover { background: #6c63ff; color: #fff; border-color: #6c63ff; }

/* Lead Detail Modal */
.nir-lead-modal-body h3 { margin-bottom: 1rem; }
.nir-lead-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.nir-lead-detail-item label { display: block; font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.nir-lead-detail-item span { font-size: .9rem; font-weight: 500; color: #1a1a2e; }
.nir-lead-notes { margin-bottom: 1rem; }
.nir-lead-notes label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .85rem; }
.nir-lead-notes textarea { width: 100%; padding: .6rem .85rem; border: 2px solid #e5e7eb; border-radius: 8px; resize: vertical; min-height: 80px; font-size: .85rem; outline: none; font-family: inherit; }
.nir-lead-notes textarea:focus { border-color: #6c63ff; }
.nir-stage-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nir-stage-btn { padding: .35rem .85rem; border-radius: 20px; font-size: .78rem; font-weight: 600; cursor: pointer; border: 2px solid #e5e7eb; background: #fff; transition: all .2s; }
.nir-stage-btn:hover, .nir-stage-btn.active { border-color: #6c63ff; background: #6c63ff; color: #fff; }

/* ── Project Management ── */
.nir-projects { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.nir-projects-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.nir-project-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); margin-bottom: 1rem; border-left: 4px solid #6c63ff; }
.nir-project-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.nir-project-hd h3 { font-size: 1rem; margin-bottom: .2rem; }
.nir-project-hd p { font-size: .82rem; color: #6b7280; margin: 0; }
.nir-progress-bar { background: #e5e7eb; border-radius: 8px; height: 8px; overflow: hidden; margin: .5rem 0; }
.nir-progress-fill { height: 100%; background: linear-gradient(90deg, #6c63ff, #a855f7); border-radius: 8px; transition: width .8s ease; }
.nir-progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: #6b7280; margin-bottom: .75rem; }
.nir-project-stages { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.nir-stage { padding: .25rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 600; background: #f3f4f6; color: #6b7280; display: flex; align-items: center; gap: .3rem; }
.nir-stage.nir-stage-done { background: #dcfce7; color: #16a34a; }
.nir-stage.nir-stage-active { background: #ede9fe; color: #6c63ff; }
.nir-stage::before { content: '○'; font-size: .7rem; }
.nir-stage.nir-stage-done::before { content: '●'; }
.nir-stage.nir-stage-active::before { content: '◉'; }
.nir-project-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f3f4f6; flex-wrap: wrap; gap: .5rem; }
.nir-project-team { display: flex; gap: .35rem; }
.nir-team-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #6c63ff, #a855f7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; border: 2px solid #fff; margin-left: -6px; }
.nir-team-avatar:first-child { margin-left: 0; }
.nir-project-deadline { font-size: .78rem; color: #6b7280; }

/* ── Email Automation ── */
.nir-automation { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.nir-automation-list { display: flex; flex-direction: column; gap: 1rem; }
.nir-auto-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nir-auto-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #ede9fe, #dbeafe); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.nir-auto-info { flex: 1; }
.nir-auto-info h4 { margin-bottom: .25rem; font-size: .95rem; }
.nir-auto-info p { font-size: .82rem; color: #6b7280; margin: 0; }
.nir-auto-trigger { font-size: .75rem; background: #f3f4f6; color: #374151; padding: .2rem .6rem; border-radius: 6px; margin-top: .4rem; display: inline-block; }
.nir-toggle-wrap { display: flex; align-items: center; gap: .5rem; }
.nir-toggle { width: 44px; height: 24px; background: #e5e7eb; border-radius: 12px; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.nir-toggle.on { background: #10b981; }
.nir-toggle::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.nir-toggle.on::after { left: 23px; }

/* ── Subscription Plans ── */
.nir-sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.nir-sub-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 16px; padding: 2rem; text-align: center; position: relative; transition: all .3s; }
.nir-sub-card.nir-sub-popular { border-color: #6c63ff; box-shadow: 0 8px 32px rgba(108,99,255,.2); }
.nir-sub-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.nir-sub-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #6c63ff; color: #fff; padding: .25rem 1rem; border-radius: 20px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.nir-sub-name { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7280; margin-bottom: .5rem; font-weight: 600; }
.nir-sub-price { font-size: 3rem; font-weight: 800; color: #1a1a2e; line-height: 1; }
.nir-sub-period { font-size: .85rem; color: #6b7280; margin-bottom: 1.5rem; }
.nir-sub-features { text-align: left; margin-bottom: 1.75rem; }
.nir-sub-features li { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: .85rem; color: #374151; border-bottom: 1px solid #f9fafb; }
.nir-sub-features li::before { content: '✅'; flex-shrink: 0; font-size: .8rem; }
.nir-sub-features li.nir-sub-no { color: #9ca3af; }
.nir-sub-features li.nir-sub-no::before { content: '❌'; }

/* ── Niche Demo Pages ── */
.nir-demo-hero { padding: 4rem 0; text-align: center; }
.nir-demo-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; }
.nir-demo-showcase.nir-reverse { direction: rtl; }
.nir-demo-showcase.nir-reverse > * { direction: ltr; }
.nir-demo-screen { background: #f8f9fa; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.nir-demo-screen-bar { background: #e5e7eb; padding: .5rem .85rem; display: flex; align-items: center; gap: .4rem; }
.nir-demo-screen-bar span { width: 10px; height: 10px; border-radius: 50%; }
.nir-demo-screen-bar span:nth-child(1) { background: #ef4444; }
.nir-demo-screen-bar span:nth-child(2) { background: #f59e0b; }
.nir-demo-screen-bar span:nth-child(3) { background: #10b981; }
.nir-demo-screen-body { padding: 1.5rem; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nir-demo-content h2 { margin-bottom: 1rem; }
.nir-demo-content p { color: #6b7280; margin-bottom: 1.5rem; }
.nir-demo-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nir-demo-tag { background: #ede9fe; color: #6c63ff; padding: .25rem .65rem; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.nir-demo-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Multi-language ── */
.nir-lang-switcher { position: relative; }
.nir-lang-btn { display: flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .82rem; cursor: pointer; background: #fff; }
.nir-lang-drop { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 140px; z-index: 1000; display: none; }
.nir-lang-switcher:hover .nir-lang-drop { display: block; }
.nir-lang-drop a { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; font-size: .82rem; color: #374151; transition: background .15s; }
.nir-lang-drop a:hover { background: #f3f4f6; }

/* ── Currency Switcher ── */
.nir-currency-switcher { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.nir-currency-btn { padding: .3rem .7rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .78rem; cursor: pointer; background: #fff; transition: all .2s; }
.nir-currency-btn.active, .nir-currency-btn:hover { background: #6c63ff; color: #fff; border-color: #6c63ff; }

/* ── Vendor Upload ── */
.nir-vendor { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.nir-vendor-box { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nir-vendor-box h3 { margin-bottom: 1.5rem; }
.nir-upload-zone { border: 2px dashed #e5e7eb; border-radius: 12px; padding: 2.5rem; text-align: center; cursor: pointer; transition: all .2s; }
.nir-upload-zone:hover { border-color: #6c63ff; background: #f9f7ff; }
.nir-upload-zone p { color: #6b7280; font-size: .9rem; margin-top: .5rem; }
.nir-vendor-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Niche Pages ── */
.nir-niche-hero { padding: 5rem 0; background: var(--niche-bg, linear-gradient(135deg, #1a1a2e, #16213e)); color: #fff; text-align: center; }
.nir-niche-hero h1 { color: #fff; margin-bottom: 1rem; }
.nir-niche-hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.nir-niche-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; padding: 3rem 0; }
.nir-niche-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.08); transition: transform .25s; }
.nir-niche-card:hover { transform: translateY(-4px); }
.nir-niche-card-icon { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.nir-niche-card-body { padding: 1.25rem; }
.nir-niche-card-body h3 { font-size: .95rem; margin-bottom: .4rem; }
.nir-niche-card-body p { font-size: .82rem; color: #6b7280; margin-bottom: .75rem; }
.nir-niche-price { font-weight: 700; color: #10b981; font-size: .95rem; }

/* ── Responsive Group 2 ── */
@media (max-width: 900px) {
  .nir-pipeline { grid-template-columns: 1fr 1fr; }
  .nir-analytics-2col { grid-template-columns: 1fr; }
  .nir-demo-showcase { grid-template-columns: 1fr; }
  .nir-vendor-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nir-pipeline { grid-template-columns: 1fr; }
  .nir-lead-detail-grid { grid-template-columns: 1fr; }
  .nir-sub-plans { grid-template-columns: 1fr; }
}
