/* Cleaned up redundant :root from here as it's now in variables.css */

html,
body {
  font-family: var(--font-body) !important;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-size: var(--text-base);
  /* Moniex 15px base */
  font-weight: var(--font-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

p,
label,
input,
table,
select,
textarea,
.btn,
.dash-btn,
.nav-link {
  font-family: var(--font-body) !important;
  font-weight: var(--font-normal);
}

h1 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-4xl);
  /* 36px */
  font-weight: var(--font-bold);
}

h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-3xl);
  /* 30px */
  font-weight: var(--font-bold);
}

h3 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-2xl);
  /* 24px */
  font-weight: var(--font-semibold);
}

h4 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-xl);
  /* 20px */
  font-weight: var(--font-semibold);
}

h5 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-lg);
  /* 18px */
  font-weight: var(--font-semibold);
}

h6 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-base);
  /* 15px */
  font-weight: var(--font-semibold);
}

.card-title,
.section-title {
  font-family: var(--font-heading) !important;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
  font-family: inherit;
}

a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

[data-theme='light'] .d-block-light,
[data-theme='dark'] .d-block-dark {
  display: block !important;
  margin-top: 7px;
}

.modal-content {
  background-color: var(--card-color);
}

/* --- Utilities --- */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.m-auto {
  margin: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.p-2 {
  padding: var(--space-2) !important;
}

.p-3 {
  padding: var(--space-3) !important;
}

.p-4 {
  padding: var(--space-4) !important;
}

.p-5 {
  padding: var(--space-5) !important;
}

.p-8 {
  padding: var(--space-8) !important;
}

.mt-2 {
  margin-top: var(--space-2) !important;
}

.ml-2 {
  margin-left: var(--space-2) !important;
}

.mt-4 {
  margin-top: var(--space-4) !important;
}

.mt-5 {
  margin-top: var(--space-5) !important;
}

.mt-8 {
  margin-top: var(--space-8) !important;
}

.mb-2 {
  margin-bottom: var(--space-2) !important;
}

.mb-4 {
  margin-bottom: var(--space-4) !important;
}

.mb-5 {
  margin-bottom: var(--space-5) !important;
}

.text-xs {
  font-size: 0.75rem !important;
}

.text-sm {
  font-size: var(--text-sm) !important;
  /* 14px */
}

.text-base {
  font-size: var(--text-base) !important;
  /* 15px Moniex */
}

.text-lg {
  font-size: var(--text-lg) !important;
  /* 18px */
}

.text-xl {
  font-size: var(--text-xl) !important;
  /* 20px */
}

.text-2xl {
  font-size: var(--text-2xl) !important;
  /* 24px */
}

.text-3xl {
  font-size: var(--text-3xl) !important;
  /* 30px */
}

.text-4xl {
  font-size: var(--text-4xl) !important;
  /* 36px */
}

/* --- Moniex Metric Typography --- */
.metric-value {
  font-size: var(--text-4xl);
  /* 36px */
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

.metric-label {
  font-size: var(--text-sm);
  /* 14px */
  font-weight: var(--font-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.metric-change {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-left: 0.5rem;
}

.metric-change.positive {
  color: var(--color-success);
}

.metric-change.negative {
  color: var(--color-danger);
}

.rounded-full {
  border-radius: var(--radius-full) !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

.list-none {
  list-style: none !important;
  padding-left: 0 !important;
}

/* Fixed dimensions for common icons */
.icon-sniper {
  width: 100px !important;
  height: 100px !important;
}

.icon-bear {
  width: 200px !important;
  height: 200px !important;
}

.float-right {
  float: right !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

/* Width Utilities */
.w-20 {
  width: 80px !important;
}

.w-24 {
  width: 96px !important;
}

.w-32 {
  width: 128px !important;
}

.w-40 {
  width: 160px !important;
}

/* Horizontal Padding Utilities */
.px-4 {
  padding-left: var(--space-4) !important;
  padding-right: var(--space-4) !important;
}

.px-5 {
  padding-left: var(--space-5) !important;
  padding-right: var(--space-5) !important;
}

.px-6 {
  padding-left: var(--space-6) !important;
  padding-right: var(--space-6) !important;
}

.px-8 {
  padding-left: var(--space-8) !important;
  padding-right: var(--space-8) !important;
}

/* Consolidated html, body styles above */

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.navbar {
  background-color: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-app);
}

.nav-link {
  color: var(--nav-text) !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-4) !important;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary-400) !important;
}

.nav-item.active .nav-link,
.nav-link.active {
  color: var(--color-primary-500) !important;
  font-weight: 600;
}

.header {
  background-color: var(--nav-bg);
  color: var(--nav-text);
}

.card {
  background-color: var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-app);
  margin-bottom: var(--space-6);
}

/* h4 font-family inherited from h1-h6 rule at line 146 */
.table {
  background-color: var(--card-color);
  color: var(--text-color);
}

.table th {
  font-weight: 600;
  color: var(--text-muted);
}

.bar {
  height: 50px;
  background-color: var(--card-color);
  padding-top: 5px;
}

.dashboard {
  color: var(--text-color);
  text-transform: capitalize;

}

.new-user {
  padding: var(--space-8);
  margin: auto;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.drop-content {
  float: left;
  background: var(--drop-color);
  border-radius: 8px;
  color: var(--drop-text-color);
  text-decoration: none
}

.plan {
  color: var(--text-color);
}

.plan:hover {
  color: var(--text-color);
}

h3 {
  color: var(--text-color);
}

/*-----keyword-----*/
.tab {
  background-color: var(--card-color);
}

.card-head {
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.card-foot {
  border-top: 1px solid rgba(0, 0, 0, .125);
}

.input-color {

  height: 40px;
}

/* ==========================================================================
   Buttons - Moniex Design System
   ========================================================================== */
.btn,
.btn--primary,
.dash-btn,
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height);
  /* Moniex 44px */
  background-color: var(--btn-primary-bg);
  color: #ffffff;
  font-weight: var(--btn-font-weight);
  /* Moniex semibold 600 */
  font-size: var(--text-base);
  /* Moniex 15px */
  padding: var(--btn-padding);
  /* Moniex 0 1.5rem */
  border-radius: var(--btn-radius);
  /* Moniex 12px */
  border: 1px solid transparent;
  box-shadow: none;
  /* Moniex no shadow */
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn:hover,
.btn--primary:hover,
.dash-btn:hover,
.form-btn:hover {
  color: #ffffff;
  background-color: var(--btn-primary-hover);
  transform: none;
  /* Moniex no lift */
  filter: brightness(0.95);
  /* Moniex subtle darken */
  box-shadow: none;
  text-decoration: none;
}

.btn--secondary {
  background-color: var(--btn-secondary-bg);
  /* Moniex #f3f4f6 */
  color: var(--text-main);
  border: 1px solid var(--btn-secondary-border);
}

.btn--secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  color: var(--text-main);
  filter: brightness(0.97);
  /* Moniex subtle darken */
}

.btn--danger {
  background-color: var(--btn-danger-bg);
  color: #ffffff;
}

.btn--danger:hover {
  background-color: var(--btn-danger-hover);
  color: #ffffff;
}

.btn:disabled,
.btn.disabled,
.btn--primary:disabled,
.btn--secondary:disabled,
.btn--danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* --- Button Variant: Outlined --- */
.btn--outlined {
  background-color: transparent;
  border: var(--btn-outlined-border);
  color: var(--btn-outlined-text);
}

.btn--outlined:hover {
  background-color: var(--btn-outlined-hover-bg);
  color: var(--btn-outlined-text);
  filter: none;
}

/* --- Button Variant: Ghost --- */
.btn--ghost {
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--btn-ghost-text);
}

.btn--ghost:hover {
  background-color: var(--btn-ghost-hover-bg);
  color: var(--btn-ghost-text);
  filter: none;
}

/* --- Button Variant: Icon (Square, icon-only) --- */
.btn--icon {
  width: var(--btn-icon-size);
  height: var(--btn-icon-size);
  padding: 0;
  justify-content: center;
  background-color: transparent;
  border: 1px solid var(--border-app);
  color: var(--text-muted);
}

.btn--icon:hover {
  background-color: var(--color-slate-100);
  color: var(--text-main);
  filter: none;
}

/* --- Moniex Button Sizes --- */
.btn-sm,
.btn--sm {
  height: var(--btn-height-sm);
  /* 36px */
  padding: 0 1rem;
  font-size: var(--text-sm);
  /* 14px */
}

.btn-lg,
.btn--lg {
  height: var(--btn-height-lg);
  /* 48px */
  padding: 0 2rem;
  font-size: var(--text-lg);
  /* 18px */
}

.btn-outline-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--text-main);
  border: 1px solid var(--btn-secondary-border);
}

.btn-outline-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  color: var(--text-main);
}

p {
  font-size: 14px;
}

.selectize-dropdown,
.selectize-input {
  line-height: 27px;
}

.validation {
  background-color: #fee2e2;
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid #fecaca;
}

.validate {
  color: var(--color-danger);
}

.thanksuser {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-5);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-top {
  margin-top: 5%;
}

.card {
  margin-bottom: var(--space-4);
  border-radius: var(--card-radius);
  /* Moniex 16px */
  padding: var(--card-padding);
  /* Moniex 24px */
  box-shadow: var(--card-shadow);
  /* Moniex subtle shadow */
  border: var(--card-border);
  /* Moniex border */
  background: var(--bg-card);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  /* Moniex elevated on hover */
}

.card-header {
  padding: var(--card-padding);
  border-bottom: 1px solid var(--border-app);
  margin: calc(var(--card-padding) * -1);
  /* Negative margin for full width */
  margin-bottom: var(--card-padding);
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}

.card-title {
  font-size: var(--text-xl);
  /* Moniex 20px */
  font-weight: var(--font-semibold);
  color: var(--text-main);
  margin-bottom: 0;
}

.card-body {
  padding: var(--card-padding);
}

.card-footer {
  padding: var(--card-padding);
  border-top: 1px solid var(--border-app);
  margin: calc(var(--card-padding) * -1);
  margin-top: var(--card-padding);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
}

/* --- Card Variant 1: Default (already defined above, this is the base) --- */

/* --- Card Variant 2: Pricing Card (for upgrade plans) --- */
.card--pricing {
  transition: all 0.2s ease;
  cursor: pointer;
}

.card--pricing:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card--pricing.featured {
  border: 2px solid var(--color-primary-500);
  position: relative;
}

.card--pricing.featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-500);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.5px;
}

/* --- Card Variant 3: Metric Card (for performance overview) --- */
.card--metric {
  padding: var(--card-padding);
}

.card--metric .metric-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.card--metric .metric-icon-container i,
.card--metric .metric-icon-container svg {
  color: var(--color-primary-600);
  font-size: var(--icon-lg);
}

.card--metric .metric-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.card--metric .metric-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.card--metric .metric-context {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.country i {
  background: url(https://dl.dropboxusercontent.com/s/izcyieh1iatr4n5/flags.png) no-repeat;
  display: inline-block;
  width: 20px;
  height: 11px;
  margin-left: 18px;
}

a:hover {
  text-decoration: none;
  background-color: none;
}

a:active {
  text-decoration: none;
  background-color: none;
}

/* Redundant blocks removed */

.input {
  height: var(--input-height-lg);
  border-radius: var(--input-radius);
  border: var(--input-border);
  padding: 0 var(--space-4);
  background-color: var(--input-bg);
  font-family: var(--font-body);
}

label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.bg-foot {
  background-color: var(--card-color);
  border-top: 1px solid var(--border-app);
  padding: var(--space-4) 0;
}



.upgrade {
  background-color: #ffffff;
}

.up {
  margin: 5px;
}

/* .btn font-family consolidated above */
.btn-design {
  margin: var(--space-5);
}

.footer-link {
  color: var(--text-color);
}







.country i {
  background: url(https://dl.dropboxusercontent.com/s/izcyieh1iatr4n5/flags.png) no-repeat;
  display: inline-block;
  width: 20px;
  height: 11px;

}

/* .btn styles consolidated above */
.bar-content {
  margin-top: var(--space-2);
  margin-left: var(--space-2);
  margin-right: var(--space-2);
}

td {
  font-size: 16.5px;
}

th {
  font-size: 17px;
  font-weight: 600;
}

progress {
  background-color: var(--color-slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: var(--space-2);
  border: none;
}

progress::-webkit-progress-bar {
  background-color: var(--color-slate-200);
}

progress::-webkit-progress-value {
  background: var(--color-primary-500);
  border-radius: var(--radius-lg);
}

progress::-moz-progress-bar {
  background: var(--color-primary-500);
  border-radius: var(--radius-lg);
}

progress::-webkit-progress-value {
  background: var(--color-primary-500);
}

progress::-moz-progress-bar {
  background: var(--color-primary-500);
}

progress::-webkit-progress-bar {
  background: var(--color-primary-500);
}

/* Redundant blocks removed */





.navbar-toggler {
  margin-left: 150px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* .btn consolidated in Button section above */



a:hover {
  text-decoration: none;
  color: var(--text-color);
}

a:active {
  text-decoration: none;
}

select {
  border-radius: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 17px;
}

.slider.round:before {
  border-radius: 0%;

}



.navbar-toggler {
  margin-left: 150px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* .btn consolidated in Button section above */



a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

select {
  border-radius: 8px;
}


/*----dashboard-----*/
.dash-page {
  margin-top: var(--space-12);
  margin-bottom: var(--space-8);
}

input[type="file"] {
  display: none;
}

.custom-file-upload {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 40px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary-500);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30;
  width: 30px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--color-primary-500);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--color-primary-500);
}

input:checked+.slider:before {
  -webkit-transform: translateX(160px);
  -ms-transform: translateX(160px);
  transform: translateX(160px);
}

/*------ ADDED CSS ---------*/
.on {
  display: none;
}

.on,
.off {
  color: white;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  font-size: 25px;
}

input:checked+.slider .on {
  display: block;
}

input:checked+.slider .off {
  display: none;
}

/*--------- END --------*/

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.modal-content {
  background-color: var(--card-color);
  margin-top: 250px;
}

.modal-footer {
  margin-left: auto;
  margin-right: auto;
  border-style: none;
}


.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 25px;
  width: 25px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;

}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(25px);
  -ms-transform: translateX(25px);
  transform: translateX(25px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}



.example.example1 {
  background-color: #ffffff;
}

.example.example1 * {
  font-size: 16px;
  font-weight: 500;
}

.example.example1 fieldset {
  margin: 0 10px 20px;
  padding: 0;
  border: 1px solid #ced4da;
  background-color: #ffffff;

  border-radius: 4px;
}

.example.example1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 15px;
}



.example.example1 label {

  min-width: 70px;
  padding: 0px 0;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example.example1 input,
.example.example1 button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border-style: none;
  width: 100%;
}

.example.example1 input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  transition: background-color 100000000s;
  -webkit-animation: 1ms void-animation-out;
}



.example.example1 .StripeElement {
  width: 100%;
  padding: 11px 15px 11px 0;
}

.example.example1 input {
  width: 100%;
  padding: 0 0 0px 10px;
  color: #000;
  background-color: transparent;
  -webkit-animation: 1ms void-animation-out;
  animation: 1ms void-animation-out;
  border: 1px solid #ced4da;
}

.example.example1 input::-webkit-input-placeholder {
  color: #87bbfd;
}

.example.example1 input::-moz-placeholder {
  color: #87bbfd;
}

.example.example1 input:-ms-input-placeholder {
  color: #87bbfd;
}

.example.example1 button {
  display: block;
  margin: 20px 0 15px;
  background-color: var(--color-primary-500);
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.example.example1 button:active {
  background-color: var(--color-primary-500);
  color: #ffffff;

}

.example.example1 .error svg .base {
  fill: #fff;
}

.example.example1 .error svg .glyph {
  fill: #6772e5;
}

.example.example1 .error .message {
  color: #fff;
}

.example.example1 .success .icon .border {
  stroke: #87bbfd;
}

.example.example1 .success .icon .checkmark {
  stroke: #fff;
}

.example.example1 .success .title {
  color: #fff;
}

.example.example1 .success .message {
  color: #9cdbff;
}

.example.example1 .success .reset path {
  fill: #fff;
}

#grad1 {

  background-color: var(--color-primary-500);
  /* For browsers that do not support gradients */
  background-image: linear-gradient(to left, #fe8532, #ff84);

}

/* ==========================================================================
   Modern Dashboard Styles (Phase 2)
   ========================================================================== */

.page-container {
  padding-top: 32px;
  padding-bottom: 32px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.domain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--color-primary-200);
}

.domain-card .card-body {
  padding: 20px 24px;
}

.domain-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  text-decoration: none;
}

.domain-title:hover {
  color: var(--color-primary-600);
}

.domain-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--color-slate-100);
  padding: 4px 12px;
  border-radius: var(--radius);
  min-width: 60px;
  text-align: center;
}

.trend-indicator {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Modern Forms & Componets (Phase 3)
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  /* Moniex 14px */
  font-weight: var(--font-medium);
  /* Moniex 500 */
  color: var(--text-main);
}

.form-control {
  display: block;
  width: 100%;
  height: var(--input-height);
  /* Moniex 44px */
  padding: 0 1rem;
  /* Moniex horizontal padding */
  font-size: var(--text-base);
  /* Moniex 15px */
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--input-bg);
  /* Moniex #f9fafb */
  background-image: none;
  border: var(--input-border);
  border-radius: var(--input-radius);
  /* Moniex 12px */
  transition: all 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-control:focus {
  background-color: var(--input-bg-focus);
  /* Moniex white on focus */
  border-color: var(--focus-border);
  outline: 0;
  box-shadow: var(--focus-ring);
}

.form-control::placeholder {
  color: var(--color-slate-400);
}

/* Selectize Overrides */
.selectize-input {
  border: 1px solid var(--border-app) !important;
  border-radius: var(--radius) !important;
  padding: 12px 16px !important;
  height: auto !important;
  min-height: 48px;
  box-shadow: none !important;
  background: var(--bg-card) !important;
  display: flex !important;
  align-items: center;
}

.selectize-input.focus {
  border-color: var(--color-primary-400) !important;
  box-shadow: 0 0 0 3px var(--color-primary-100) !important;
}

.selectize-dropdown {
  border: 1px solid var(--border-app) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius) !important;
  margin-top: 4px !important;
}

/* Modern Generic Card */
.modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.modern-card .card-header {
  background: transparent;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-app);
  display: flex;
  align-items: center;
}

.modern-card .card-body {
  padding: 24px;
}

.modern-card .card-footer {
  background: var(--color-slate-50);
  padding: 16px 24px;
  border-top: 1px solid var(--border-app);
  display: flex;
  /* Flex utility for footer buttons */
  justify-content: flex-end;
}

.add-domain-heading {
  border-bottom: 0px !important;
  /* Override legacy defaults */
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* ==========================================================================
   UI De-native-ification: Custom Form Controls (Moniex Style)
   ========================================================================== */

/* --- 1. Custom Dropdowns (Selectize Overrides) --- */
.selectize-control.single .selectize-input,
.selectize-control.multi .selectize-input {
    background-color: var(--bg-card) !important;
    background-image: none !important;
    border: 1px solid var(--border-app) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    padding: 10px 16px !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selectize-control.single .selectize-input:after {
    border-color: var(--text-muted) transparent transparent transparent !important;
    border-width: 6px 6px 0 6px !important;
    margin-top: -3px !important;
    right: 16px !important;
}

.selectize-control.single .selectize-input.dropdown-active:after {
    border-color: transparent transparent var(--text-muted) transparent !important;
    border-width: 0 6px 6px 6px !important;
}

.selectize-dropdown {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-app) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    margin-top: 4px !important;
    padding: 0 !important;
    z-index: 1000 !important;
    overflow: hidden !important;
    animation: select-slide-down 0.2s ease-out;
}

.selectize-dropdown .option {
    padding: 10px 16px !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.selectize-dropdown .option.active,
.selectize-dropdown .option:hover {
    background-color: var(--color-slate-100) !important;
    color: var(--color-primary-600) !important;
}

.selectize-dropdown .option.selected {
    background-color: var(--color-primary-50) !important;
    color: var(--color-primary-600) !important;
    font-weight: 600 !important;
}

@keyframes select-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. Custom Checkboxes --- */
.custom-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    min-height: 24px;
    padding-left: 30px; /* Space for the checkmark */
}

/* Hide the native checkbox completely */
.custom-checkbox input[type="checkbox"],
.custom-checkbox input.js-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

/* Create the custom checkmark box */
.custom-checkbox .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border: 2px solid var(--border-app);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

/* On hover, darken the border */
.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--color-slate-400);
}

/* When checked */
.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--color-primary-500);
    border-color: var(--color-primary-500);
}

/* Create the checkmark indicator (hidden when not checked) */
.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark icon */
.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- 3. Custom Radios --- */
.custom-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    min-height: 24px;
    padding-left: 30px;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-radio .radiomark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border: 2px solid var(--border-app);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-radio:hover input ~ .radiomark {
    border-color: var(--color-slate-400);
}

.custom-radio input:checked ~ .radiomark {
    border-color: var(--color-primary-500);
}

.custom-radio .radiomark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio input:checked ~ .radiomark:after {
    display: block;
}

/* Radio dot */
.custom-radio .radiomark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary-500);
}


/* --- 4. Custom File Upload --- */
.custom-file {
    position: relative;
    display: inline-block;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: var(--input-height-lg);
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: var(--input-height-lg);
    padding: 0 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: var(--input-border);
    border-radius: var(--input-radius);
    display: flex;
    align-items: center;
    font-family: var(--font-body);
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0 16px;
    line-height: 1.5;
    color: var(--text-main);
    content: "Browse";
    background-color: var(--color-slate-100);
    border-left: var(--input-border);
    border-radius: 0 var(--input-radius) var(--input-radius) 0;
    font-weight: 500;
}

/* --- 5. Badges (design system) --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--badge-radius);
    font-family: var(--font-body);
}

.badge--primary {
    background-color: var(--color-primary-100);
    color: var(--color-primary-700);
}

.badge--secondary {
    background-color: var(--color-slate-200);
    color: var(--color-slate-700);
}

.badge--success {
    background-color: var(--alert-success-bg);
    color: var(--color-success);
}

.badge--danger {
    background-color: var(--alert-danger-bg);
    color: var(--color-danger);
}

/* Badge Variant 1: Status Badges (DAILY, WEEKLY, MONTHLY) - Small, filled, uppercase */
.badge--status {
    padding: var(--badge-padding-sm);
    font-size: var(--badge-font-size-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--badge-radius);
}

.badge--status-primary {
    background-color: var(--badge-status-primary-bg);
    color: var(--badge-status-primary-text);
}

.badge--status-secondary {
    background-color: var(--badge-status-secondary-bg);
    color: var(--badge-status-secondary-text);
}

/* Badge Variant 2: Filter Badges (All, Both, Desktop, Mobile) - Medium, outlined, sentence case */
.badge--filter {
    padding: var(--badge-padding-md);
    font-size: var(--badge-font-size-md);
    font-weight: var(--font-medium);
    border-radius: var(--badge-radius);
    border: 1px solid var(--badge-filter-default-border);
    background-color: var(--badge-filter-default-bg);
    color: var(--badge-filter-default-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.badge--filter:hover {
    border-color: var(--badge-filter-hover-border);
}

.badge--filter.active {
    border-color: var(--badge-filter-active-border);
    color: var(--badge-filter-active-text);
    background-color: var(--badge-filter-active-bg);
}

/* Badge Variant 3: Context Badges (excellent, good, moderate, poor, needs work) - Small, filled, lowercase/uppercase */
.badge--context {
    padding: var(--badge-padding-sm);
    font-size: var(--badge-font-size-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--badge-radius);
}

.badge--context-excellent {
    background-color: var(--badge-context-excellent-bg);
    color: var(--badge-context-excellent-text);
}

.badge--context-good {
    background-color: var(--badge-context-good-bg);
    color: var(--badge-context-good-text);
}

.badge--context-moderate {
    background-color: var(--badge-context-moderate-bg);
    color: var(--badge-context-moderate-text);
}

.badge--context-poor {
    background-color: var(--badge-context-poor-bg);
    color: var(--badge-context-poor-text);
}

/* --- 5.5 Icon Sizing Scale --- */
.icon-xs {
    width: var(--icon-xs);
    height: var(--icon-xs);
    font-size: var(--icon-xs);
}

.icon-sm {
    width: var(--icon-sm);
    height: var(--icon-sm);
    font-size: var(--icon-sm);
}

.icon-md {
    width: var(--icon-md);
    height: var(--icon-md);
    font-size: var(--icon-md);
}

.icon-lg {
    width: var(--icon-lg);
    height: var(--icon-lg);
    font-size: var(--icon-lg);
}

/* --- 6. Alerts (design system overrides) --- */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius);
    border: 1px solid;
    font-family: var(--font-body);
}

.alert-success {
    background-color: var(--alert-success-bg);
    border-color: var(--alert-success-border);
    color: var(--color-slate-800);
}

.alert-danger {
    background-color: var(--alert-danger-bg);
    border-color: var(--alert-danger-border);
    color: var(--color-slate-800);
}

.alert-warning {
    background-color: var(--alert-warning-bg);
    border-color: var(--alert-warning-border);
    color: var(--color-slate-800);
}

/* --- 6.5 Accessibility - Focus States --- */
*:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

button:focus-visible,
.btn:focus-visible,
.btn--primary:focus-visible,
.btn--secondary:focus-visible,
.btn--danger:focus-visible,
.btn--outlined:focus-visible,
.btn--ghost:focus-visible,
.btn--icon:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: var(--focus-border);
    box-shadow: var(--focus-ring);
    outline: none;
}

a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-radius: 2px;
}

/* --- 7. Custom Select (hidden native + fake dropdown) --- */
.custom-select-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select-wrap .custom-select-native {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--input-height-lg);
    padding: 0 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--input-bg);
    border: var(--input-border);
    border-radius: var(--input-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-select-wrap.is-open .custom-select-trigger {
    border-color: var(--focus-border);
    box-shadow: var(--focus-ring);
}

.custom-select-trigger::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
}

.custom-select-wrap.is-open .custom-select-trigger::after {
    border-top: none;
    border-bottom: 6px solid var(--text-muted);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bg-card);
    border: var(--input-border);
    border-radius: var(--input-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

.custom-select-wrap.is-open .custom-select-dropdown {
    display: block;
}

.custom-select-option {
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.1s ease;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
    background: var(--color-slate-100);
    color: var(--color-primary-600);
}

.custom-select-option.is-selected {
    font-weight: 600;
}

/* --- 8. Custom Nav User Dropdown --- */
.nav-user-dropdown {
    position: relative;
}

.nav-user-dropdown__trigger {
    display: flex;
    align-items: center;
    padding: var(--space-2) 0;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: inherit;
}

.navbar .nav-user-dropdown__trigger {
    padding: var(--space-2);
}

.nav-user-dropdown__trigger img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.nav-user-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    min-width: 200px;
    background: var(--bg-card);
    border: var(--input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    display: none;
    overflow: hidden;
}

.nav-user-dropdown.is-open .nav-user-dropdown__menu {
    display: block;
}

.nav-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-user-dropdown__item:hover {
    background: var(--color-slate-100);
}

.nav-user-dropdown__item i {
    color: var(--text-muted);
    width: 18px;
    text-align: center;
}

.nav-user-dropdown__divider {
    height: 1px;
    background: var(--border-app);
    margin: 0;
}

/* --- 9. Global Modal Overrides (Moniex Design) --- */
.modal-content {
    border: none;
    /* Moniex no border */
    border-radius: var(--radius-lg);
    /* Moniex 16px */
    box-shadow: var(--shadow-xl);
    /* Moniex elevated shadow */
    background-color: var(--bg-card);
}

.modal-header {
    padding: 1.5rem;
    /* Moniex 24px */
    border-bottom: 1px solid var(--border-app);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    /* Moniex 20px */
    font-weight: var(--font-semibold);
    /* Moniex 600 */
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
    /* Moniex 24px */
}

.modal-footer {
    padding: 1.5rem;
    /* Moniex 24px */
    border-top: 1px solid var(--border-app);
}

.modal .close {
    opacity: 0.7;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.modal .close:hover {
    opacity: 1;
}

.bootbox .modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-dialog--sm {
    max-width: 35%;
}

@media (max-width: 768px) {
    .modal-dialog--sm {
        max-width: 95%;
    }
}

.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.4);
}

.modal-backdrop.show {
    opacity: 1;
}

/* --- 10. Bootbox overrides --- */
.btn-orange {
    background-color: var(--btn-primary-bg) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 0.5rem 1rem !important;
}

.btn-orange:hover {
    background-color: var(--btn-primary-hover) !important;
}

.bootbox .modal-footer .btn {
    font-family: var(--font-body);
}

/* --- 11. DataTables overrides (no native select/search) --- */
.dataTables_length select,
.dataTables_filter input {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    padding: 8px 12px !important;
    border: var(--input-border) !important;
    border-radius: var(--input-radius) !important;
    background-color: var(--input-bg) !important;
    color: var(--text-main) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    border-color: var(--focus-border) !important;
    box-shadow: var(--focus-ring) !important;
    outline: 0 !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: var(--space-4);
}

/* --- 12. Bootstrap multiselect overrides --- */
.bootstrap-select .btn,
.multiselect-native-select .btn {
    font-family: var(--font-body) !important;
    padding: 10px 16px !important;
    border: var(--input-border) !important;
    border-radius: var(--input-radius) !important;
    background-color: var(--input-bg) !important;
    color: var(--text-main) !important;
}

.bootstrap-select .dropdown-menu,
.multiselect-container {
    border: var(--input-border) !important;
    border-radius: var(--input-radius) !important;
    box-shadow: var(--shadow-lg) !important;
}

.multiselect-container li a label {
    font-family: var(--font-body);
}

/* ==========================================================================
   Moniex Sidebar Layout
   ========================================================================== */

/* --- App Layout Container --- */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-app);
}

/* --- Sidebar --- */
/* ========================================
   SIDEBAR - MONIEX ENHANCED
   ======================================== */

.app-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-app);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-app);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-link {
    display: block;
    transition: opacity 0.15s ease;
}

.sidebar-logo-link:hover {
    opacity: 0.8;
}

.sidebar-logo {
    height: 40px;
    width: auto;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar Sections with Labels */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-section-label {
    font-size: 0.6875rem;
    font-weight: var(--font-bold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    color: var(--text-main);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-link:hover {
    background: var(--color-slate-50);
    color: var(--text-main);
    text-decoration: none;
}

/* Enhanced Active State with Left Accent */
.sidebar-link.active {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    font-weight: var(--font-semibold);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-primary-600);
    border-radius: 0 2px 2px 0;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-link span {
    flex: 1;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-app);
}

/* --- Main Content Area --- */
.app-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Top Header --- */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-app);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
}

.page-title-header {
    font-size: var(--text-2xl);
    /* Moniex 24px */
    font-weight: var(--font-bold);
    margin: 0;
    color: var(--text-main);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.keyword-usage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.keyword-usage-count {
    font-size: var(--text-base);
    /* Moniex 15px */
    font-weight: var(--font-semibold);
    color: var(--text-main);
    line-height: 1.2;
}

.keyword-usage-label {
    font-size: var(--text-xs);
    /* 12px */
    font-weight: var(--font-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-plan {
    font-size: var(--text-sm);
    /* Moniex 14px */
    font-weight: var(--font-semibold);
    text-transform: capitalize;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    background: var(--color-slate-100);
    border-radius: var(--radius-md);
}

.btn-icon {
    width: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Page Content --- */
.app-content {
    flex: 1;
    padding: var(--space-8);
    /* 32px padding on desktop */
    background: var(--bg-app);
    min-height: calc(100vh - 80px);
}

/* ====================================
   GLOBAL PAGE SYSTEM
   ==================================== */

/* Page Container System */
.page-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.page-header-content {
    flex: 1;
}

.page-title-main {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Section Containers */
.section-container {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-app);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-main);
    margin: 0;
}

.section-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

/* Action Button Groups */
.action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-group .btn {
    white-space: nowrap;
}

/* Icon Buttons with subtle backgrounds */
.btn-icon-soft {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-app);
    background: var(--bg-app);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-icon-soft:hover {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--color-slate-300);
}

/* Badge Pills */
.badge-pill {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-pill--primary {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
}

.badge-pill--neutral {
    background: var(--color-slate-100);
    color: var(--color-slate-700);
}

.badge-pill--success {
    background: #d1fae5;
    color: #166534;
}

/* Empty States */
.empty-state-large {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-large img {
    width: 120px;
    height: auto;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.empty-state-large h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
}

.empty-state-large p {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* --- Responsive Behavior --- */
@media (max-width: 768px) {
    .app-sidebar {
        width: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .app-sidebar.mobile-open {
        width: 280px;
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .app-header {
        padding: 1rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .keyword-usage,
    .user-plan {
        display: none;
    }

    .app-content {
        padding: 1rem;
    }
}

/* ====================================
   MONIEX DASHBOARD STYLES
   ==================================== */

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 2rem;
}

.domain-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.domain-card-modern:hover {
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--color-slate-300);
}

.domain-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border-app);
    background: linear-gradient(to bottom, var(--bg-card), var(--bg-app));
}

.domain-info {
    flex: 1;
    min-width: 0;
}

.domain-name {
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.domain-name:hover {
    color: var(--color-primary-600);
}

.domain-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.domain-meta .flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 2px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-app);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: #fef2f2;
    color: var(--color-danger);
    border-color: #fecaca;
}

.domain-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 1.75rem;
}

.metric-box {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0 1rem;
    border-right: 1px solid var(--border-app);
}

.metric-box:first-child {
    padding-left: 0;
}

.metric-box:last-child {
    border-right: none;
    padding-right: 0;
}

.metric-label {
    font-size: 0.6875rem;
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: var(--font-bold);
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
}

.trend-values {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.trend-up {
    color: var(--color-success);
    font-size: 1.125rem;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up i {
    font-size: 0.875rem;
}

.trend-down {
    color: var(--color-danger);
    font-size: 1.125rem;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-down i {
    font-size: 0.875rem;
}

.domain-card__chart {
    height: 100px;
    padding: 0 1.75rem 1.5rem;
    margin-top: auto;
    position: relative;
}

.domain-card__chart canvas {
    width: 100% !important;
    height: 120px !important;
}

/* Dashboard Empty State */
.new-user {
    padding: 3rem 2rem;
}

.new-user p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.icon-bear {
    width: 120px;
    height: auto;
    opacity: 0.8;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .domain-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .domain-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .domain-card__metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-box {
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-app);
    }

    .metric-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ====================================
   MONIEX KEYWORDS PAGE STYLES
   ==================================== */

/* Performance Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-50);
    color: var(--color-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-trends {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.metric-change {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-left: 0.5rem;
}

.metric-change.positive {
    color: var(--color-success);
}

.metric-change.negative {
    color: var(--color-danger);
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Insights Grid (Top Keywords & URLs) */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 1.5rem;
}

.insight-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-main);
    margin-bottom: 1rem;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-app);
    border: 1px solid var(--border-app);
}

.insight-label {
    font-size: var(--text-base);
    color: var(--text-main);
    font-weight: var(--font-medium);
    flex: 1;
}

.insight-value {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-primary-600);
    margin-left: 1rem;
}

.insight-link {
    color: var(--color-primary-600);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.15s ease;
}

.insight-link:hover {
    color: var(--color-primary-700);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state img {
    opacity: 0.6;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar .form-control {
    width: 220px;
    height: var(--btn-height);
}

/* Table Container */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.table-custom thead th {
    padding: 1rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-app);
    background: var(--color-slate-50);
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 1rem 1.5rem;
    font-size: var(--text-base);
    color: var(--text-main);
    border-bottom: 1px solid var(--border-app);
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: var(--color-slate-50);
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody td a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.table-custom tbody td a:hover {
    color: var(--color-primary-700);
}

.table-custom tbody td .fa {
    font-size: 1rem;
}

/* Refresh button in table */
.refreshlink {
    background: transparent;
    border: none;
    color: var(--color-primary-600);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.refreshlink:hover {
    color: var(--color-primary-700);
}

/* Responsive Keywords Page */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .toolbar .form-control {
        width: 100%;
    }

    .table-custom {
        font-size: var(--text-sm);
    }

    .table-custom thead th,
    .table-custom tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* ====================================
   MONIEX REPORTS PAGE STYLES
   ==================================== */

.reports-container {
    max-width: 1000px;
    margin: 0 auto;
}

.reports-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.report-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.report-card__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-info {
    flex: 1;
}

.report-domain {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.report-domain:hover {
    color: var(--color-primary-600);
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.report-badge {
    font-size: var(--badge-font-size-sm);
    font-weight: var(--font-semibold);
    padding: var(--badge-padding-sm);
    border-radius: var(--badge-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-badge--daily {
    background: var(--badge-status-primary-bg);
    color: var(--badge-status-primary-text);
}

.report-badge--weekly {
    background: var(--badge-context-good-bg);
    color: var(--badge-context-good-text);
}

.report-badge--monthly {
    background: var(--badge-context-excellent-bg);
    color: var(--badge-context-excellent-text);
}

.report-detail {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: capitalize;
}

/* Modal Tabs - Moniex Style */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-app);
    background: var(--bg-app);
    margin: -1.5rem -1.5rem 0;
    padding: 0 1.5rem;
}

.modal-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.modal-tab:hover {
    color: var(--color-primary-600);
    background: var(--color-primary-50);
}

.modal-tab.active {
    color: var(--color-primary-600);
    border-bottom-color: var(--color-primary-600);
    font-weight: var(--font-semibold);
}

.tabcontent {
    display: none;
    padding: 1.5rem 0;
}

.multiselect-native-select .btn-group {
    width: 100%;
}

/* Responsive Reports */
@media (max-width: 768px) {
    .reports-header {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .report-card__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-icon {
        align-self: flex-end;
    }

    .modal-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-tab {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }
}

/* ====================================
   MONIEX DOMAIN MANAGER PAGE STYLES
   ==================================== */

.domain-manager-container {
    max-width: 1400px;
    margin: 0 auto;
}

.domain-manager-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.domain-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.domain-manager-card {
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.domain-manager-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.domain-manager-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-app);
}

.domain-manager-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-main);
    margin: 0;
    text-transform: capitalize;
}

.domain-manager-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.domain-manager-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domain-manager-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.domain-manager-value {
    font-size: var(--text-base);
    color: var(--text-main);
    font-weight: var(--font-medium);
}

.domain-manager-expiry {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-align: center;
}

.domain-manager-expiry--active {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
}

.domain-manager-expiry--warning {
    background: #fef3c7;
    color: #92400e;
}

.domain-manager-expiry--expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive Domain Manager */
@media (max-width: 768px) {
    .domain-manager-grid {
        grid-template-columns: 1fr;
    }

    .domain-manager-header {
        justify-content: center;
    }
}

/* ========================================
   KEYWORD PAGE HEADER - MONIEX STYLE
   ======================================== */

.keyword-page-header {
    background: linear-gradient(to bottom, var(--bg-card) 0%, var(--bg-app) 100%);
    border-bottom: 1px solid var(--border-app);
    padding: 2rem 2.5rem;
    margin: -2.5rem -2rem 2.5rem;
}

.keyword-page-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.keyword-page-breadcrumb {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: var(--color-primary-600);
}

.breadcrumb-link i {
    font-size: 0.875rem;
}

.keyword-page-actions-primary {
    display: flex;
    gap: 0.75rem;
}

.keyword-page-header__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.keyword-page-title-section {
    flex: 1;
}

.keyword-page-title {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--text-main);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.keyword-page-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.keyword-usage-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding: 0.375rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border-app);
    border-radius: var(--radius-md);
}

.keyword-usage-count {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-main);
}

.keyword-usage-separator {
    font-weight: var(--font-medium);
    color: var(--text-muted);
}

.keyword-usage-total {
    font-weight: var(--font-medium);
    color: var(--text-muted);
}

.keyword-usage-label {
    font-weight: var(--font-medium);
    margin-left: 0.125rem;
}

.keyword-page-actions-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-divider {
    width: 1px;
    height: 24px;
    background: var(--border-app);
    margin: 0 0.25rem;
}

.keyword-page-content {
    padding: 0 2rem;
}

/* Responsive Keyword Page Header */
@media (max-width: 1024px) {
    .keyword-page-header__main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .keyword-page-actions-secondary {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .keyword-page-header {
        padding: 1.5rem 1rem;
        margin: -2.5rem -1rem 2rem;
    }

    .keyword-page-header__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .keyword-page-title {
        font-size: 1.875rem;
    }

    .keyword-page-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .keyword-page-content {
        padding: 0 1rem;
    }
}

