/* NPU Membership & Referral System Styles */

:root {
	--npu-primary: #107839;
	--npu-primary-dark: #0a5226;
	--npu-secondary: #d8a62e;
	--npu-secondary-dark: #b88a20;
	--npu-text-dark: #1f2937;
	--npu-text-muted: #6b7280;
	--npu-bg-light: #f9fafb;
	--npu-border: #e5e7eb;
	--npu-danger: #ef4444;
	--npu-success: #10b981;
	--npu-card-bg: #ffffff;
	--npu-radius: 12px;
	--npu-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	--npu-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
	--npu-transition: all 0.3s ease;
}

/* Base Elements */
.npu-wrapper, .npu-dashboard-app {
	font-family: 'Inter', 'Outfit', sans-serif, system-ui;
	color: var(--npu-text-dark);
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.npu-wrapper *, .npu-dashboard-app * {
	box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	color: var(--npu-primary);
}

/* Stepper */
.npu-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 800px;
	margin: 0 auto 2rem;
	background: var(--npu-card-bg);
	padding: 1.5rem;
	border-radius: var(--npu-radius);
	box-shadow: var(--npu-shadow);
}

.npu-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: var(--npu-text-muted);
}

.npu-step-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--npu-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--npu-transition);
}

.npu-step-icon svg {
	width: 20px;
	height: 20px;
}

.npu-step.npu-step-active .npu-step-icon,
.npu-step.npu-step-completed .npu-step-icon {
	background: var(--npu-primary);
	color: white;
}

.npu-step.npu-step-active span {
	font-weight: 600;
	color: var(--npu-primary);
}

.npu-step span {
	font-size: 0.85rem;
	font-weight: 500;
}

.npu-step-line {
	flex: 1;
	height: 2px;
	background: var(--npu-border);
	margin: 0 1rem;
	margin-bottom: 25px; /* align with circles */
}

/* Form Styles */
.npu-form-content {
	background: var(--npu-card-bg);
	padding: 2.5rem;
	border-radius: var(--npu-radius);
	box-shadow: var(--npu-shadow-lg);
	max-width: 800px;
	margin: 0 auto;
}

.npu-section {
	margin-bottom: 2.5rem;
}

.npu-section-title {
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--npu-bg-light);
}

.npu-field-group {
	margin-bottom: 1.25rem;
}

.npu-field-group label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--npu-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.npu-field-group input,
.npu-field-group select {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid var(--npu-border);
	border-radius: 8px;
	font-size: 1rem;
	color: var(--npu-text-dark);
	background: #fff;
	transition: var(--npu-transition);
}

.npu-field-group select, .npu-field-group select option {
	color: #000000;
	font-weight: 500;
}

.npu-field-group input:focus,
.npu-field-group select:focus {
	outline: none;
	border-color: var(--npu-primary);
	box-shadow: 0 0 0 3px rgba(16, 120, 57, 0.1);
}

.npu-field-group input:read-only {
	background: var(--npu-bg-light);
	color: var(--npu-text-muted);
}

.npu-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

/* Buttons */
.npu-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--npu-border);
}

.npu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 30px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: var(--npu-transition);
	border: none;
	text-decoration: none;
}

.npu-btn-primary {
	background: var(--npu-primary);
	color: white !important;
}

.npu-btn-primary:hover {
	background: var(--npu-primary-dark);
	transform: translateY(-2px);
}

.npu-btn-dark {
	background: #0f172a; /* Dark sleek color like in mockup */
	color: white !important;
}
.npu-btn-dark:hover {
	background: #1e293b;
}

.npu-btn-outline {
	background: transparent;
	border: 1px solid var(--npu-border);
	color: var(--npu-text-dark);
}

.npu-btn-outline:hover {
	background: var(--npu-bg-light);
}

.npu-btn-block {
	width: 100%;
}

/* Modal */
.npu-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15, 23, 42, 0.85); /* Dark blueish slate overlay */
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.npu-modal {
	background: white;
	padding: 3rem;
	border-radius: 24px;
	width: 90%;
	max-width: 450px;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: npuModalOpen 0.4s ease-out;
}

@keyframes npuModalOpen {
	from { opacity: 0; transform: translateY(20px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.npu-modal h2 {
	font-size: 2.5rem;
	line-height: 1.1;
	margin-bottom: 1rem;
}

.npu-modal p {
	color: var(--npu-text-muted);
	margin-bottom: 2rem;
}

.npu-modal-icon {
	color: var(--npu-primary);
	margin-bottom: 1rem;
}

.npu-modal-icon svg {
	width: 32px; height: 32px;
}

.npu-modal-actions-inline {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}
.npu-modal-actions-inline .npu-btn {
	flex: 1;
}

/* OTP Settings */
.npu-otp-container {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.npu-otp-input {
	width: 45px;
	height: 55px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: bold;
	border: 1px solid var(--npu-primary);
	border-radius: 8px;
	color: var(--npu-text-dark);
}

.npu-otp-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(16, 120, 57, 0.2);
}

.npu-error-text {
	color: var(--npu-danger);
	font-size: 0.875rem;
	margin-bottom: 1rem;
	min-height: 20px;
}

/* Utility classes */
.npu-loading {
	opacity: 0.7;
	pointer-events: none;
}
.npu-text-muted { color: var(--npu-text-muted); }

/* Dashboard Specific Styles */
.npu-profile-header {
	background: var(--npu-primary);
	background: linear-gradient(135deg, var(--npu-primary) 0%, var(--npu-primary-dark) 100%);
	color: white;
	padding: 3rem 2rem;
	border-radius: var(--npu-radius);
	margin-bottom: -40px; /* Overlap effect */
	position: relative;
	z-index: 1;
	box-shadow: var(--npu-shadow-lg);
}

.npu-container {
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.npu-flex-middle {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.npu-avatar-large {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--npu-secondary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.npu-profile-info {
	flex: 1;
}

.npu-badge-role {
	font-size: 0.75rem;
	color: var(--npu-secondary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.npu-profile-name {
	color: white;
	margin: 0.25rem 0 0.5rem 0;
	font-size: 2rem;
}

.npu-profile-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.875rem;
	opacity: 0.9;
}

.npu-profile-meta span {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.npu-profile-meta svg {
	width: 16px; height: 16px;
}

.npu-badge {
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	color: white;
}

.npu-badge-success { background: var(--npu-success); }
.npu-badge-danger { background: var(--npu-danger); }

/* Dashboard Cards Grid */
.npu-dashboard-body {
	padding-top: 60px; /* To account for overlap */
}

.npu-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.npu-stat-card {
	background: var(--npu-card-bg);
	padding: 1.5rem;
	border-radius: var(--npu-radius);
	box-shadow: var(--npu-shadow);
	display: flex;
	flex-direction: column;
	transition: var(--npu-transition);
}
.npu-stat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--npu-shadow-lg);
}

.npu-stat-icon {
	width: 48px; height: 48px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1rem;
}

.npu-stat-label {
	font-size: 0.75rem;
	color: var(--npu-text-muted);
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.npu-stat-val {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--npu-text-dark);
}

.npu-dashboard-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 2rem;
}

.npu-card {
	background: var(--npu-card-bg);
	border-radius: var(--npu-radius);
	box-shadow: var(--npu-shadow);
	padding: 2rem;
}

.npu-card-title {
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.npu-detail-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.npu-detail-item {
	display: flex;
	justify-content: space-between;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--npu-bg-light);
}
.npu-detail-item:last-child { border-bottom: none; }

.npu-detail-label { color: var(--npu-text-muted); font-size: 0.875rem; }
.npu-detail-value { font-weight: 500; font-size: 0.875rem; text-align:right;}

.npu-referral-box {
	display: flex;
	background: rgba(16, 120, 57, 0.05);
	border: 1px solid rgba(16, 120, 57, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.npu-referral-box input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.75rem 1rem;
	color: var(--npu-primary);
	font-size: 0.875rem;
	outline: none;
}

.npu-btn-copy {
	background: var(--npu-primary);
	color: white;
	border: none;
	padding: 0 1rem;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: var(--npu-transition);
}
.npu-btn-copy:hover {
	background: var(--npu-primary-dark);
}

.npu-referral-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--npu-bg-light);
}

.npu-avatar-small {
	width: 36px; height: 36px; border-radius: 50%;
	display:flex; align-items:center; justify-content:center;
	font-size: 0.75rem; font-weight:600;
}

.npu-ref-info {
	flex: 1; display:flex; flex-direction:column;
}
.npu-ref-info strong { font-size: 0.875rem; }
.npu-ref-info span { font-size: 0.75rem; color: var(--npu-text-muted); }

.npu-status-verified { color: var(--npu-success); font-size: 0.75rem; font-weight: 500; }
.npu-status-pending { color: var(--npu-danger); font-size: 0.75rem; font-weight: 500; }

/* Responsive Adjustments */
@media (max-width: 768px) {
	.npu-grid-2, .npu-dashboard-grid, .npu-stats-grid {
		grid-template-columns: 1fr;
	}
	.npu-flex-middle {
		flex-direction: column;
		text-align: center;
	}
	.npu-profile-meta {
		justify-content: center;
		flex-wrap: wrap;
	}
	.npu-stepper { display: none; } /* Hide stepper on mobile to save space */
}
