/* Rayli Advanced Orders Dashboard */

.rod-wrap {
	--rod-bg: #f0f2f5;
	--rod-card: #ffffff;
	--rod-text: #1a1d26;
	--rod-muted: #6b7280;
	--rod-border: #e5e7eb;
	--rod-primary: #6366f1;
	--rod-primary-hover: #4f46e5;
	--rod-primary-light: rgba(99, 102, 241, 0.12);
	--rod-success: #10b981;
	--rod-danger: #ef4444;
	--rod-warning: #f59e0b;
	--rod-radius: 12px;
	--rod-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
	--rod-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;

	max-width: 1400px;
	margin: 20px auto 40px;
	padding: 0 20px;
	font-family: var(--rod-font);
	color: var(--rod-text);
}

.rod-wrap * {
	box-sizing: border-box;
}

/* Header */
.rod-header {
	margin-bottom: 24px;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.rod-header__actions {
	flex-shrink: 0;
}

.rod-header__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.rod-header__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--rod-primary), #8b5cf6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.rod-header__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.rod-header__subtitle {
	margin: 4px 0 0;
	color: var(--rod-muted);
	font-size: 0.95rem;
}

/* Card */
.rod-card {
	background: var(--rod-card);
	border-radius: var(--rod-radius);
	box-shadow: var(--rod-shadow);
	border: 1px solid var(--rod-border);
	padding: 20px 24px;
	margin-bottom: 20px;
}

.rod-card__title {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--rod-text);
}

.rod-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.rod-card__header .rod-card__title {
	margin: 0;
}

/* Filters */
.rod-filters__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 16px 20px;
}

.rod-filters__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 160px;
}

.rod-filters__group label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rod-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rod-input,
.rod-select {
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rod-border);
	border-radius: 8px;
	font-size: 0.9rem;
	background: #fff;
	color: var(--rod-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rod-input:focus,
.rod-select:focus {
	outline: none;
	border-color: var(--rod-primary);
	box-shadow: 0 0 0 3px var(--rod-primary-light);
}

.rod-filters__actions {
	margin-left: 0;
}

/* Buttons */
.rod-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 20px;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.rod-btn:active {
	transform: scale(0.98);
}

.rod-btn--primary {
	background: var(--rod-primary);
	color: #fff;
}

.rod-btn--primary:hover {
	background: var(--rod-primary-hover);
}

.rod-btn--ghost {
	background: transparent;
	color: var(--rod-text);
	border: 1px solid var(--rod-border);
}

.rod-btn--ghost:hover:not(:disabled) {
	background: var(--rod-bg);
}

.rod-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.rod-btn--sm {
	height: 32px;
	padding: 0 12px;
	font-size: 0.8rem;
}

/* Stats grid */
.rod-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.rod-stat {
	background: var(--rod-card);
	border-radius: var(--rod-radius);
	box-shadow: var(--rod-shadow);
	border: 1px solid var(--rod-border);
	padding: 20px;
	position: relative;
	overflow: hidden;
}

.rod-stat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--rod-primary), #8b5cf6);
}

.rod-stat__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rod-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.rod-stat__value {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.rod-stat__sub {
	font-size: 0.8rem;
	color: var(--rod-muted);
	margin-top: 6px;
}

.rod-stat__change {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 20px;
}

.rod-stat__change--up {
	background: rgba(16, 185, 129, 0.12);
	color: var(--rod-success);
}

.rod-stat__change--down {
	background: rgba(239, 68, 68, 0.12);
	color: var(--rod-danger);
}

.rod-stat__change--neutral {
	background: var(--rod-bg);
	color: var(--rod-muted);
}

/* Chart */
.rod-chart-section {
	padding-bottom: 8px;
}

.rod-chart-wrap {
	position: relative;
	height: 280px;
	padding-inline-start: 4px;
	padding-inline-end: 8px;
}

/* Two column layout */
.rod-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

@media (max-width: 900px) {
	.rod-two-col {
		grid-template-columns: 1fr;
	}
}

/* List (products / customers) */
.rod-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rod-list__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--rod-border);
}

.rod-list__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rod-list__rank {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--rod-primary-light);
	color: var(--rod-primary);
	font-size: 0.8rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rod-list__thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--rod-bg);
	flex-shrink: 0;
}

.rod-list__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rod-muted);
	font-size: 1.2rem;
}

.rod-list__info {
	flex: 1;
	min-width: 0;
}

.rod-list__name {
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rod-list__meta {
	font-size: 0.8rem;
	color: var(--rod-muted);
	margin-top: 2px;
}

.rod-list__value {
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
}

.rod-list__empty {
	color: var(--rod-muted);
	font-size: 0.9rem;
	padding: 12px 0;
}

/* Table */
.rod-table-wrap {
	overflow-x: auto;
	margin: 0 -4px;
}

.rod-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.rod-table th {
	text-align: left;
	padding: 10px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--rod-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 2px solid var(--rod-border);
}

.rod-table__row-num {
	width: 52px;
	min-width: 52px;
	text-align: center !important;
	color: var(--rod-muted);
	font-weight: 600;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.rod-table td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--rod-border);
	vertical-align: middle;
}

.rod-table tbody tr:hover {
	background: rgba(99, 102, 241, 0.04);
}

.rod-table tbody tr:last-child td {
	border-bottom: none;
}

.rod-order-id {
	font-weight: 700;
	color: var(--rod-primary);
}

.rod-customer-email {
	display: block;
	font-size: 0.75rem;
	color: var(--rod-muted);
	margin-top: 2px;
}

/* Status badges */
.rod-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: capitalize;
}

.rod-status--completed,
.rod-status--processing {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.rod-status--pending,
.rod-status--on-hold {
	background: rgba(245, 158, 11, 0.15);
	color: #d97706;
}

.rod-status--cancelled,
.rod-status--failed,
.rod-status--refunded {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

.rod-status--default {
	background: var(--rod-bg);
	color: var(--rod-muted);
}

.rod-badge {
	background: var(--rod-primary-light);
	color: var(--rod-primary);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
}

/* Pagination */
.rod-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--rod-border);
}

#rod-page-info {
	font-size: 0.875rem;
	color: var(--rod-muted);
}

/* Loading & alerts */
.rod-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 60px 20px;
	color: var(--rod-muted);
}

.rod-loading[hidden]:not(.rod-loading--active),
#rod-content[hidden],
#rod-error[hidden],
#rod-pagination[hidden] {
	display: none !important;
}

.rod-loading.rod-loading--active {
	display: flex !important;
}

.rod-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--rod-border);
	border-top-color: var(--rod-primary);
	border-radius: 50%;
	animation: rod-spin 0.7s linear infinite;
}

@keyframes rod-spin {
	to { transform: rotate(360deg); }
}

.rod-alert {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.9rem;
}

.rod-alert--error {
	background: rgba(239, 68, 68, 0.1);
	color: #b91c1c;
	border: 1px solid rgba(239, 68, 68, 0.25);
}

.rod-alert--success {
	background: rgba(16, 185, 129, 0.1);
	color: #047857;
	border: 1px solid rgba(16, 185, 129, 0.25);
	margin-bottom: 20px;
}

/* Settings page */
.rod-settings-wrap {
	max-width: 900px;
}

.rod-settings-toolbar {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.rod-settings-grid {
	display: grid;
	gap: 20px;
}

.rod-settings-card__desc {
	color: var(--rod-muted);
	font-size: 0.9rem;
	margin: -8px 0 16px;
}

.rod-settings-options {
	display: grid;
	gap: 12px;
}

.rod-settings-options--inline {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rod-settings-option {
	display: block;
	cursor: pointer;
}

.rod-settings-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rod-settings-option__box {
	display: block;
	padding: 16px 18px;
	border: 2px solid var(--rod-border);
	border-radius: 10px;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.rod-settings-option input:checked + .rod-settings-option__box {
	border-color: var(--rod-primary);
	background: var(--rod-primary-light);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.rod-settings-option__title {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 4px;
}

.rod-settings-option__sub {
	display: block;
	font-size: 0.85rem;
	color: var(--rod-muted);
}

.rod-settings-fonts-heading {
	margin: 20px 0 10px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rod-muted);
}

.rod-settings-fonts-heading:first-of-type {
	margin-top: 0;
}

.rod-settings-options--fonts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.rod-settings-option--font .rod-settings-option__preview {
	display: block;
	font-size: 0.9rem;
	color: var(--rod-text);
	margin-top: 6px;
	line-height: 1.45;
}

.rod-settings-footer {
	margin-top: 24px;
	text-align: center;
}

.rod-settings-fields {
	display: grid;
	gap: 16px;
}

.rod-settings-field label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rod-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.rod-settings-field .rod-input,
.rod-settings-field .rod-select {
	width: 100%;
	max-width: 100%;
}

.rod-settings-field textarea.rod-input {
	height: auto;
	min-height: 88px;
	padding: 12px;
	resize: vertical;
}

.rod-settings-field__hint {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: var(--rod-muted);
}

.rod-settings-field__hint code {
	background: var(--rod-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.8rem;
}

.rod-settings-toggle {
	margin-bottom: 16px;
}

.rod-sms-nav {
	width: 100%;
}

.rod-sms-nav__item {
	text-decoration: none;
	color: inherit;
}

.rod-sms-nav__item.is-active .rod-settings-option__box {
	border-color: var(--rod-primary);
	background: var(--rod-primary-light);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.rod-sms-nav .rod-settings-option__box {
	text-align: center;
}

.rod-sms-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 20px;
}

.rod-sms-search .rod-filters__group {
	flex: 1;
	min-width: 200px;
	margin: 0;
}

.rod-settings-card .rod-settings-fields {
	margin-top: 16px;
}

.rod-settings-card .rod-settings-options + .rod-settings-fonts-heading {
	margin-top: 16px;
}

.rod-sms-error-list {
	margin: 0;
	padding-inline-start: 18px;
}

.rod-sms-bulk-counter {
	margin: 8px 0 0;
	padding: 10px 14px;
	border-radius: var(--rod-radius, 10px);
	background: var(--rod-bg);
	border: 1px solid var(--rod-border);
	font-size: 0.875rem;
	color: var(--rod-text);
	font-weight: 500;
}

.rod-sms-bulk-counter.is-multipart {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.08);
}

.rod-sms-bulk-failed {
	color: #dc2626;
	font-weight: 600;
}

.rod-list-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: var(--rod-radius, 10px);
	background: var(--rod-bg);
	border: 1px solid var(--rod-border);
}

.rod-list-meta {
	font-size: 0.875rem;
	color: var(--rod-muted);
}

.rod-pagination .rod-btn.is-disabled,
.rod-pagination .rod-btn.is-disabled:hover {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.rod-sms-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--rod-muted);
}

.rod-sms-bulk-list {
	display: grid;
	gap: 12px;
}

.rod-sms-bulk-item {
	border: 1px solid var(--rod-border);
	border-radius: var(--rod-radius, 10px);
	background: var(--rod-card, #fff);
	overflow: hidden;
}

.rod-sms-bulk-item__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: inherit;
	color: inherit;
	font: inherit;
}

.rod-sms-bulk-item__toggle:hover {
	background: var(--rod-bg);
}

.rod-sms-bulk-item__main {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 4px;
}

.rod-sms-bulk-item__date {
	font-size: 0.8rem;
	color: var(--rod-muted);
	font-weight: 600;
}

.rod-sms-bulk-item__message {
	font-size: 0.95rem;
	color: var(--rod-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rod-sms-bulk-item__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.rod-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.rod-badge--success {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.rod-badge--error {
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
}

.rod-badge--muted {
	background: var(--rod-bg);
	color: var(--rod-muted);
	border: 1px solid var(--rod-border);
}

.rod-sms-bulk-item__chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--rod-muted);
	border-bottom: 2px solid var(--rod-muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.rod-sms-bulk-item.is-open .rod-sms-bulk-item__chevron {
	transform: rotate(-135deg);
}

.rod-sms-bulk-item__body {
	padding: 0 16px 16px;
	border-top: 1px solid var(--rod-border);
}

.rod-sms-bulk-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding-top: 14px;
	margin-bottom: 12px;
	font-size: 0.85rem;
	color: var(--rod-muted);
}

.rod-sms-bulk-item__full-message {
	padding: 12px 14px;
	border-radius: var(--rod-radius, 10px);
	background: var(--rod-bg);
	border: 1px solid var(--rod-border);
	font-size: 0.9rem;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
	margin-bottom: 16px;
}

.rod-sms-recipient-block + .rod-sms-recipient-block {
	margin-top: 16px;
}

.rod-sms-recipient-block__title {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
}

.rod-sms-recipient-block__title--success {
	color: #059669;
}

.rod-sms-recipient-block__title--error {
	color: #dc2626;
}

.rod-sms-recipient-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rod-sms-recipient-list li {
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--rod-bg);
	border: 1px solid var(--rod-border);
	font-size: 0.85rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rod-sms-recipient-list--numbered li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: inherit;
}

.rod-row-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 6px;
	border-radius: 6px;
	background: var(--rod-card, #fff);
	border: 1px solid var(--rod-border);
	color: var(--rod-muted);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.rod-row-value {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rod-sms-recipient-list--failed li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 180px;
	border-color: rgba(220, 38, 38, 0.25);
	background: rgba(220, 38, 38, 0.04);
}

.rod-sms-recipient-list__error {
	font-family: var(--rod-font, inherit);
	font-size: 0.78rem;
	color: #dc2626;
}

.rod-sms-import-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.rod-sms-import-panel {
	padding: 16px;
	border: 1px solid var(--rod-border);
	border-radius: var(--rod-radius, 10px);
	background: var(--rod-bg);
}

.rod-sms-import-panel__title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 700;
}

.rod-sms-import-panel .rod-settings-footer {
	padding-top: 0;
	border-top: 0;
	margin-top: 0;
}

.rod-sms-import-file-form {
	margin-bottom: 0;
}

.rod-sms-import-panel input[type="file"].rod-input {
	padding: 8px;
	height: auto;
}

.rod-settings-footer--inline {
	margin-top: 12px;
	text-align: inherit;
	padding-top: 0;
	border-top: 0;
}

.rod-sms-import-progress {
	margin-bottom: 16px;
	padding: 14px 16px;
	border-radius: var(--rod-radius, 10px);
	background: var(--rod-bg);
	border: 1px solid var(--rod-border);
}

.rod-sms-import-progress__bar {
	height: 10px;
	border-radius: 999px;
	background: var(--rod-card, #fff);
	border: 1px solid var(--rod-border);
	overflow: hidden;
}

.rod-sms-import-progress__bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--rod-primary), #818cf8);
	transition: width 0.25s ease;
}

.rod-sms-import-progress__label {
	margin: 10px 0 0;
	font-size: 0.875rem;
	color: var(--rod-muted);
}

.rod-sms-import-panel.is-busy {
	opacity: 0.75;
}

#rod-sms-subscribers-list.is-loading {
	opacity: 0.55;
	pointer-events: none;
	position: relative;
}

#rod-sms-subscribers-list.is-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.35);
}

.rod-date-field__hint {
	display: block;
	font-size: 0.75rem;
	color: var(--rod-muted);
	margin-top: 4px;
}

.rod-date-field--jalali .rod-input {
	font-family: var(--rod-font);
	letter-spacing: 0.02em;
}

/* Hide WP admin noise on this page */
.rod-wrap .notice {
	display: none;
}

/* WordPress admin dashboard widget */
.rod-wp-dash {
	--rod-bg: #f8f9fb;
	--rod-card: #ffffff;
	--rod-text: #1a1d26;
	--rod-muted: #6b7280;
	--rod-border: #e5e7eb;
	--rod-primary: #6366f1;
	--rod-primary-light: rgba(99, 102, 241, 0.12);
	--rod-success: #10b981;
	--rod-warning: #f59e0b;
	--rod-radius: 12px;
	--rod-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
	--rod-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;

	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	font-family: var(--rod-font);
	color: var(--rod-text);
	padding: 16px 20px 20px;
	background: var(--rod-bg);
}

.rod-wp-dash * {
	box-sizing: border-box;
}

.rod-wp-dash__toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.rod-wp-dash__stats {
	margin-bottom: 20px;
}

.rod-wp-dash__stats.rod-stats-grid {
	margin-bottom: 20px;
}

.rod-wp-dash .rod-stat {
	margin-bottom: 0;
}

.rod-stat--primary::before {
	background: linear-gradient(90deg, var(--rod-primary), #8b5cf6);
}

.rod-stat--warning::before {
	background: linear-gradient(90deg, var(--rod-warning), #fbbf24);
}

.rod-stat--success::before {
	background: linear-gradient(90deg, var(--rod-success), #34d399);
}

.rod-stat--verify::before {
	background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.rod-stat--verify .rod-stat__amount {
	color: #2563eb;
}

.rod-stat--linked {
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s, box-shadow 0.15s;
}

.rod-stat--linked:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.rod-stat__amount {
	margin-top: 10px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rod-primary);
}

.rod-stat--warning .rod-stat__amount {
	color: #d97706;
}

.rod-stat--success .rod-stat__amount {
	color: #059669;
}

.rod-wp-dash__chart-card {
	margin-bottom: 0;
	border: none;
	box-shadow: var(--rod-shadow);
}

.rod-wp-dash__chart-wrap {
	height: 260px;
	padding-inline-start: 4px;
	padding-inline-end: 8px;
}

/* RTL support */
body.rtl .rod-wp-dash__toolbar,
body.rtl .rod-filters__form {
	direction: rtl;
}

body.rtl .rod-table th,
body.rtl .rod-table td {
	text-align: right;
}

body.rtl .rod-table .rod-table__row-num {
	text-align: center !important;
}
