@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--primary-blue: #3858e9;
	--primary-blue-hover: #183ad6;
	--dark-bg: #0f172a;
	--card-bg: #ffffff;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--body-bg: #f8fafc;
	--accent-purple: #6366f1;
}

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

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--body-bg);
	color: var(--text-main);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   WP MANAGE NINJA HEADER NAVBAR
   ========================================================================== */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.5px;
}

.brand-logo svg {
	width: 32px;
	height: 32px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
}

.nav-item {
	position: relative;
}

.nav-link {
	font-size: 15px;
	font-weight: 500;
	color: #334155;
	padding: 24px 0;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
	color: var(--primary-blue);
}

.btn-community {
	background-color: var(--primary-blue);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.btn-community:hover {
	background-color: var(--primary-blue-hover);
}

/* ==========================================================================
   MEGA DROPDOWN MENU (WP MANAGE NINJA STYLE)
   ========================================================================== */
.mega-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 960px;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
	padding: 28px;
	display: none;
	grid-template-columns: 2.2fr 1fr;
	gap: 24px;
	z-index: 1100;
}

.nav-item:hover .mega-menu {
	display: grid;
}

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

.mega-product-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px;
	border-radius: 10px;
	transition: background-color 0.2s ease;
}

.mega-product-item:hover {
	background-color: #f1f5f9;
}

.mega-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #e0e7ff;
	color: var(--primary-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.mega-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mega-desc {
	font-size: 12.5px;
	color: #64748b;
	margin-top: 2px;
	line-height: 1.4;
}

.badge-tag {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 12px;
	text-transform: uppercase;
}

.badge-upcoming {
	background: #e0f2fe;
	color: #0369a1;
}

.badge-featured {
	background: #fef3c7;
	color: #b45309;
}

.mega-promo-card {
	background: #fff7ed;
	border: 1px solid #ffedd5;
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.promo-title {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 8px;
}

.promo-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	margin-bottom: 16px;
}

/* ==========================================================================
   WP MANAGE NINJA "MY ACCOUNT" PORTAL LAYOUT
   ========================================================================== */
.account-page-wrapper {
	max-width: 1140px;
	margin: 40px auto 80px;
	padding: 0 20px;
}

.page-main-title {
	font-size: 42px;
	font-weight: 800;
	text-align: center;
	color: #0f172a;
	margin-bottom: 36px;
	letter-spacing: -1px;
}

.account-card-container {
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	display: grid;
	grid-template-columns: 270px 1fr;
	min-height: 540px;
	overflow: hidden;
}

/* Left Sidebar Navigation */
.account-sidebar {
	border-right: 1px solid var(--border-color);
	background: #ffffff;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.user-profile-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.avatar-img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e2e8f0;
}

.user-name {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.user-email {
	font-size: 12px;
	color: #64748b;
}

.sidebar-nav-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sidebar-nav-item button, .sidebar-nav-item a {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	border-radius: 8px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
}

.sidebar-nav-item button:hover, .sidebar-nav-item.active button {
	background: #f1f5f9;
	color: #0f172a;
	font-weight: 600;
}

.sidebar-nav-item.active button {
	background: #f1f5f9;
	color: #0f172a;
}

.btn-logout-sidebar {
	background: #fff1f2 !important;
	color: #e11d48 !important;
	font-weight: 600 !important;
	justify-content: center;
	margin-top: 24px;
}

.btn-logout-sidebar:hover {
	background: #ffe4e6 !important;
}

/* Right Content Panel */
.account-content-panel {
	padding: 36px 40px;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

.section-block {
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--border-color);
}

.section-block:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.section-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.section-subtitle {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 16px;
}

.form-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.form-control {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 14px;
	color: #0f172a;
	outline: none;
	transition: border-color 0.2s;
}

.form-control:focus {
	border-color: var(--primary-blue);
	box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.1);
}

.btn-secondary-action {
	background: #ffffff;
	border: 1px solid var(--border-color);
	color: #0f172a;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-secondary-action:hover {
	background: #f8fafc;
}

.btn-save-profile {
	background: #0f172a;
	color: #ffffff;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	float: right;
	transition: background 0.2s;
}

.btn-save-profile:hover {
	background: #1e293b;
}

/* Data Tables for Licenses & Downloads */
.data-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}

.data-table th, .data-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
	font-size: 14px;
}

.data-table th {
	background: #f8fafc;
	font-weight: 600;
	color: #475569;
}

.key-badge {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	padding: 4px 10px;
	border-radius: 6px;
	font-family: monospace;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-copy-key {
	background: none;
	border: none;
	color: var(--primary-blue);
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
}

.domain-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	margin: 2px;
}

.btn-deactivate {
	background: none;
	border: none;
	color: #ef4444;
	cursor: pointer;
	font-size: 11px;
	font-weight: bold;
}
