/* ============================================================
   Macteck Divi Suite — Core CSS
   ============================================================ */

:root {
	--mds-primary:   #FF6B00;
	--mds-dark:      #182129;
	--mds-darker:    #0d1318;
	--mds-light:     #e8edf2;
	--mds-muted:     #7a8fa0;
	--mds-font:      'Space Grotesk', 'Segoe UI', sans-serif;
	--mds-radius:    6px;
	--mds-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Admin Dashboard ──────────────────────────────────────── */
.mds-admin-wrap {
	font-family: var(--mds-font);
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px;
	color: #1d2327;
}

.mds-admin-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 28px;
	background: var(--mds-dark);
	border-radius: 12px;
	margin-bottom: 32px;
	border-left: 4px solid var(--mds-primary);
}

.mds-logo {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mds-logo-icon {
	font-size: 32px;
	color: var(--mds-primary);
	filter: drop-shadow(0 0 8px rgba(255,107,0,0.5));
}

.mds-logo h1 {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 2px;
	line-height: 1;
}

.mds-version {
	color: var(--mds-muted);
	font-size: 12px;
	font-weight: 500;
}

.mds-header-actions {
	display: flex;
	gap: 10px;
}

/* Buttons */
.mds-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: var(--mds-radius);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: var(--mds-transition);
	border: none;
}

.mds-btn-primary {
	background: var(--mds-primary);
	color: #fff;
}

.mds-btn-primary:hover {
	background: #e05d00;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}

.mds-btn-ghost {
	background: transparent;
	color: rgba(255,255,255,0.75);
	border: 1px solid rgba(255,255,255,0.2);
}

.mds-btn-ghost:hover {
	background: rgba(255,255,255,0.08);
	color: #fff;
}

/* Module grid */
.mds-module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.mds-module-card {
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: var(--mds-transition);
	position: relative;
	overflow: hidden;
}

.mds-module-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--mds-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: var(--mds-transition);
}

.mds-module-card:not(.mds-coming-soon):hover::before {
	transform: scaleX(1);
}

.mds-module-card:not(.mds-coming-soon):hover {
	border-color: rgba(255,107,0,0.3);
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.mds-module-card.mds-coming-soon {
	opacity: 0.65;
}

.mds-module-icon {
	font-size: 28px;
	line-height: 1;
}

.mds-module-info h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px;
	color: #1d2327;
}

.mds-module-info p {
	font-size: 13px;
	color: #6c7a89;
	margin: 0;
	line-height: 1.5;
}

.mds-module-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0f2f4;
}

/* Toggle switch */
.mds-toggle {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
}

.mds-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.mds-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccd0d4;
	border-radius: 22px;
	transition: var(--mds-transition);
}

.mds-toggle-slider::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	left: 3px;
	top: 3px;
	transition: var(--mds-transition);
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mds-toggle input:checked + .mds-toggle-slider {
	background: var(--mds-primary);
}

.mds-toggle input:checked + .mds-toggle-slider::before {
	transform: translateX(18px);
}

.mds-status-text {
	font-size: 12px;
	color: #6c7a89;
}

/* Badges */
.mds-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.mds-badge-coming {
	background: #f0f0f0;
	color: #999;
}

/* License page */
.mds-license-box {
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 12px;
	padding: 48px;
	max-width: 560px;
	text-align: center;
}

.mds-license-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.mds-license-box h2 {
	font-size: 20px;
	margin: 0 0 8px;
}

.mds-license-box p {
	color: #6c7a89;
	margin-bottom: 24px;
}

.mds-license-input-row {
	display: flex;
	gap: 10px;
}

.mds-license-input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: var(--mds-radius);
	font-size: 14px;
	font-family: monospace;
}

.mds-license-status {
	margin-top: 16px;
	padding: 10px 16px;
	border-radius: var(--mds-radius);
	font-size: 13px;
	font-weight: 600;
}

.mds-status-active   { background: #edfbf0; color: #1a7a38; }
.mds-status-inactive { background: #fff8ec; color: #9a6200; }

/* Settings page */
.mds-settings-section {
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 20px;
}

.mds-settings-section h2 {
	font-size: 16px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f2f4;
}

.mds-form-table th {
	width: 220px;
	font-weight: 600;
}

/* ── License Page v2 ──────────────────────────────────────── */
.mds-license-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 900px) {
	.mds-license-layout { grid-template-columns: 1fr; }
}

.mds-card {
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 10px;
	padding: 24px;
}

.mds-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f2f4;
}

.mds-card-icon { font-size: 22px; }

.mds-card-header h2 {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.mds-license-active-display {
	background: #edfbf0;
	border: 1px solid #a8e6b8;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.mds-license-key-masked {
	font-family: monospace;
	font-size: 16px;
	font-weight: 700;
	color: #1a7a38;
	letter-spacing: 0.1em;
	margin-bottom: 8px;
}

.mds-license-expires,
.mds-license-plan {
	font-size: 13px;
	color: #4a7a5a;
	margin-top: 4px;
}

.mds-license-input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.mds-license-input {
	flex: 1;
	padding: 10px 14px;
	border: 2px solid #ddd;
	border-radius: var(--mds-radius);
	font-size: 14px;
	font-family: monospace;
	letter-spacing: 0.05em;
	transition: border-color 0.2s;
}

.mds-license-input:focus {
	border-color: var(--mds-primary);
	outline: none;
}

.mds-license-error {
	color: #c0392b;
	font-size: 13px;
	margin: 8px 0 0;
}

.mds-license-buy {
	font-size: 13px;
	color: #6c7a89;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #f0f2f4;
}

.mds-license-buy a {
	color: var(--mds-primary);
	font-weight: 600;
	text-decoration: none;
}

/* Status grid */
.mds-status-grid { display: flex; flex-direction: column; gap: 12px; }

.mds-status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	background: #f9fafb;
	border-radius: 6px;
}

.mds-status-label { font-size: 13px; font-weight: 500; color: #444; }
.mds-status-val   { font-size: 13px; font-weight: 600; }

.mds-status-ok      { color: #1a7a38; }
.mds-status-warning { color: #9a6200; }
.mds-status-error   { color: #c0392b; }

.mds-status-footer {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #f0f2f4;
}

/* Notices */
.mds-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
}

.mds-notice-success { background: #edfbf0; color: #1a7a38; border: 1px solid #a8e6b8; }
.mds-notice-error   { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.mds-notice-warning { background: #fff8ec; color: #9a6200; border: 1px solid #f5d98a; }

/* Extra buttons */
.mds-btn-danger {
	background: #c0392b;
	color: #fff;
	border: none;
}
.mds-btn-danger:hover { background: #a93226; color: #fff; }

.mds-btn-sm { padding: 6px 12px; font-size: 12px; }
