:root {
  --body-bg: #ededed;
  --wrapper-max-width: 1000px;
  --header-gradient: linear-gradient(135deg, #faf916 0%, #117a95 100%);
  --status-error-bg: #851b1b;
  --h1-h2-h3-color: #3d3c41;
  --h4-h5-color: #555459;
  --text-color: #4d4d4d;
  --text-color-light: #f9f9f9;
  --text-color-light-h: #ffffff;
  --font-size-base: 15px;
  --font-size-large: 18px;
  --font-size-medium: 15px;
  --font-size-small: 12px;
  --link-active: #c142db;
  --font-family-sans-serif: "Open Sans", sans-serif;
  --font-family-serif: "Open Sans", sans-serif;
  --font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
  --brand-color: #00b0ff;
  --brand-primary: #006fae;
  --brand-secondary: #202020;
  --brand-primary-hover: #ee3640;
  --brand-secondary-hover: #FF6600;
  --headings-color: #808080;
  --table-border-color: #d8dadd;
  --brand-dash: #FF383F;
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --primary-active: #004085;
  --input-border: #ccc;
  --input-focus: #007bff;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-shadow: rgba(0,0,0,0.08);
  --border-radius: 6px;
  --spacing: 10px;
  --hr-border: #eeeeee;
  --flash-yellow: #f1f120;
  --white: #ffffff;
  --btn-primary-bg: #1d72b8;
  --btn-primary-color: #fff;
  --ed-nav-container-bg: transparent;
  --ed-nav-container-border: none;
  --input-bg: #ffffff;
  --input-text: #4d4d4d;
  --input-placeholder: #999999;
  --check-bg: #ffffff;
  --check-border: #ccc;
  --check-icon: #ffffff;
  --header-height: 5px;
  --dash-height: 60px;
  --dash-border-top: #ffffff;
  --dash-bg: #f9f9f9;
  --dash-row-active-bg: #ffffff;
  --dash-row-stopped-bg: #f1f1f1;
  --dash-status-private: #ffffff;
  --dash-status-public: #ffffff;
  --dash-status-private-fill: #ffcc2f;
  --dash-status-public-fill: #34ff4c;
  --dash-accent-green: #00c685;
  --dash-status-success: #28a745;
  --dash-status-danger: #dc3545;
  --dash-status-warning: #ffc107;
  --dash-status-info: #07ffd0;
  --dash-btn-primary: #00ff4c;
  --dash-btn-secondary: #ffa22b;
  --dash-btn-view: #22d86c;
  --dash-btn-edit: #07e5b6;
  --dash-btn-delete: #ff666e;
  --dash-btn-view-h: #2cff00;
  --dash-btn-edit-h: #75ffe7;
  --dash-btn-delete-h: rgba(255, 17, 0, 1);
  --dash-alert-bg: #F1FCFF;
  --dash-alert-border: #cbd4d7;
  --dash-card-bg: #fff;
  --dash-card-stopped-bg: #eee;
  --dash-status-bg: #d7edee;
  --dash-status-in1-bg: #07ff39;
  --dash-mode-demo: #ff6900;
  --dash-mode-live: #2ecc71;
  --dash-mode-dev: #f1c40f;
  --dash-confirm-danger: #a94442;
  --dash-confirm-danger-hover: #781516;
  --dash-ed-exchange-title: #4d4d4d;
  --admin-nav-bg: rgba(255,255,255,0.6);
  --admin-nav-text: #555;
  --admin-nav-accent: #dfaf3d;
  --admin-nav-active-text: #3a2a08;
  --navbar-height: 33px;
  --navbar-padding-vertical: 0;
  --navbar-padding-horizontal: 0;
  --navbar-default-bg: transparent;
  --navbar-margin-bottom: 0;
  --nav-border-color: #ededed;
  --dash-fixed-bg: #f0f0f0;
  --dash-fixed-border: #d8d8d8;
  --dash-fixed-shadow: #d5d5d5;
  --user-id-success: #2fc42b;
  --nav-border: #ededed;
  --nav-item-border: #d2d2d2;
  --nav-sub-bg: rgba(255, 255, 255, 0.6);
  --nav-active-bg: #4a76d7;
  --underline-hover: #ffff00;
  --table-head-border-size: 1px;
  --table-bg: #f6f6f6;
  --table-header-bg: #F1FCFF;
  --table-row-even: #f7f7f7;
  --table-row-odd: #e4f5e8;
  --table-row-hover: #e1eae9;
  --table-border-dark: #f4f4f9;
  --table-border-mid: #f4f4f9;
  --account-card-bg: #f4f4f9;
  --table-responsive-div-border: transparent;
  --list-bg: #f6f6f6;
  --list-counter: #28a745;
  --panel-bg: #ffffff;
  --panel-header-bg: #f9f9f9;
  --panel-border: #ededed;
  --panel-footer-bg: #ffffff;
  --panel-shadow: rgba(0, 0, 0, 0.05);
  --setting-row-border: #fafafa;
  --setting-cat-text: #006fae;
  --setting-cat-border: #f0f0f0;
  --toggle-on-color: #28a745;
  --toggle-off-color: #dc3545;
  --toggle-text-weight: bold;
  --loader-bg: rgba(108, 108, 108, 0.8);
  --loader-text: #000000;
  --loader-ring: #abfbfb;
  --nav-btn-custom1: #00c896;
  --nav-btn-custom2: #00a8ff;
  --nav-btn-custom3: #ff4fa3;
  --nav-btn-custom4: #ffc400;
  --nav-btn-custom5: #c539ff;
  --nav-btn-custom6: #31f0ff;
  --nav-btn-custom7: #ff4c31;
  --nav-btn-custom1h: #00905f;
  --nav-btn-custom2h: #0081d5;
  --nav-btn-custom3h: #d44c7b;
  --nav-btn-custom4h: #d59a00;
  --nav-btn-custom5h: #9d39d7;
  --nav-btn-custom6h: #30bfce;
  --nav-btn-custom7h: #d34c31;
}

/* Dark theme override */
body[data-theme=dark] {
  --body-bg: #121212;
  --header-gradient: linear-gradient(135deg, #004080 0%, #333333 100%);
  --status-error-bg: #5a1212;
  --h1-h2-h3-color: #00b0ff;
  --h4-h5-color: #f0f0f0;
  --text-color: #e0e0e0;
  --text-dark: #f0f0f0;
  --text-muted: #999999;
  --headings-color: #ffffff;
  --table-border-color: #333333;
  --input-border: #444444;
  --input-focus: #00b0ff;
  --card-bg: rgba(30, 30, 30, 0.8);
  --card-shadow: rgba(0, 0, 0, 0.4);
  --white: #1e1e1e;
  --black: #ffffff;
  --bot-card-bg: #252525;
  --flash-yellow: #3d3d00;
  --hr-border: #525252;
  --link-active: #c142db;
  --brand-color: #00b0ff;
  --brand-primary: #0087cb;
  --brand-secondary: #0a0a0a;
  --log-bg: #0d0d0d;
  --log-text: #e6e6e6;
  --log-border: #333333;
  --log-accent: #bdeaea;
  --log-input-bg: #222222;
  --ed-nav-container-bg: transparent;
  --input-bg: #252525;
  --input-text: #e0e0e0;
  --input-placeholder: #666666;
  --check-bg: #252525;
  --check-border: #555;
  --check-icon: #ffffff;
  --dash-bg: #121212;
  --dash-border-top: #121212;
  --dash-row-active-bg: #1e1e1e;
  --dash-row-stopped-bg: #252525;
  --dash-accent-green: #00e69a;
  --dash-status-success: #2ecc71;
  --dash-status-danger: #ff4d4d;
  --dash-status-warning: #f1c40f;
  --dash-status-info: #00e5ba;
  --dash-status-private: #1e1e1e;
  --dash-status-public: #1e1e1e;
  --dash-status-private-fill: #ff9100;
  --dash-status-public-fill: #008b37;
  --dash-btn-primary: #00ff4c;
  --dash-btn-secondary: #ff9100;
  --dash-btn-view: #008b37;
  --dash-btn-edit: #07a782;
  --dash-btn-delete: #934a4a;
  --dash-btn-view-h: #21c965;
  --dash-btn-edit-h: #07d1a5;
  --dash-btn-delete-h: #c76064;
  --dash-alert-bg: #162429;
  --dash-alert-border: #2a3f47;
  --dash-card-bg: #1e1e1e;
  --dash-card-stopped-bg: #282828;
  --dash-status-bg: #203536;
  --dash-status-in1-bg: #00cc2d;
  --dash-mode-demo: #ff8533;
  --dash-mode-live: #2ecc71;
  --dash-mode-dev: #f1c40f;
  --dash-confirm-danger: #ff6666;
  --dash-confirm-danger-hover: #ff9999;
  --dash-ed-exchange-title: #f0f0f0;
  --admin-nav-bg: rgba(20, 20, 20, 0.8);
  --admin-nav-text: #cccccc;
  --admin-nav-accent: #dfaf3d;
  --admin-nav-active-text: #ffffff;
  --nav-border-color: #2c2c2c;
  --dash-fixed-bg: #1a1a1a;
  --dash-fixed-border: #333333;
  --dash-fixed-shadow: rgba(0,0,0,0.5);
  --user-id-success: #39ff14;
  --nav-border: #333333;
  --nav-item-border: #444444;
  --nav-sub-bg: rgba(40, 40, 40, 0.6);
  --nav-active-bg: #00b0ff;
  --underline-hover: #00b0ff;
  --list-bg: #1e1e1e;
  --list-counter: #2ecc71;
  --loader-bg: rgba(0, 0, 0, 0.85);
  --loader-text: #ffffff;
  --loader-ring: #00b0ff;
  --table-bg: #1e1e1e;
  --table-header-bg: #252525;
  --table-row-even: #1e1e1e;
  --table-row-odd: #252525;
  --table-row-hover: #232323;
  --table-border-dark: #444444;
  --table-border-mid: #333333;
  --account-card-bg: #121212;
  --ticket-bg: #1e1e1e;
  --ticket-title-color: #f0f0f0;
  --ticket-meta-color: #aaa;
  --ticket-meta-small-color: #777;
  --ticket-reply-border: #333333;
  --ticket-closed-color: #888;
  --message-user-bg: #2a2a2a;
  --message-user-border: #3c3c3c;
  --message-admin-bg: #003366;
  --message-admin-border: #004080;
  --message-admin-badge-bg: #3399ff;
  --message-admin-badge-color: #ffffff;
  --status-open-bg: #002b55;
  --status-open-color: #99ccff;
  --status-closed-bg: #441010;
  --status-closed-color: #ff9999;
  --ticket-unread-bg: #1a331a;
  --ticket-hover-bg: #262626;
  --btn-primary-bg: #00b0ff;
  --btn-primary-color: #ffffff;
  --ticket-card-bg: #252525;
  --ticket-card-unread-border: #2ecc71;
  --ticket-card-id-color: #00b0ff;
  --ticket-card-subject-color: #eeeeee;
  --ticket-card-subject-hover-color: #00b0ff;
  --ticket-card-meta-color: #bbbbbb;
}

/* ============================================================
   COSMIC THEME - variables-cosmic.less
   ============================================================ */
body[data-theme=cosmic] {
  --body-bg: #0b0e1a;
  --dash-bg: transparent;
  --text-color: #cbd5e1;
  --text-dark: #c5e2fc;
  --text-muted: #64748b;
  --headings-color: #e2e8f0;
  --h1-h2-h3-color: #22d3ee;
  --h4-h5-color: #c5e2fc;
  --wrapper-max-width: 1000px;
  --hr-border: #1e293b;
  --primary-color: #8b5cf6;
  --primary-hover: #a78bfa;
  --brand-color: #22d3ee;
  --brand-primary: #6366f1;
  --ed-nav-container-bg: transparent;
  --link-active: #c142db;
  --dash-border-top: #121212;
  --card-bg: rgba(30, 41, 59, 0.7);
  --dash-card-bg: #1e293b;
  --dash-card-stopped-bg: #111827;
  --bot-card-bg: #1e293b;
  --dash-row-active-bg: rgba(99, 102, 241, 0.1);
  --dash-row-stopped-bg: #0f172a;
  --input-bg: #0f172a;
  --input-border: #334155;
  --card-shadow: rgba(0, 0, 0, 0.6);
  --dash-ed-exchange-title: #c5e2fc;
  --dash-status-success: #10b981;
  --dash-status-danger: #f43f5e;
  --dash-status-warning: #f59e0b;
  --dash-status-info: #0ea5e9;
  --dash-accent-green: #34d399;
  --dash-status-bg: #ee1bd0;
  --dash-status-private: rgba(241, 37, 217, 0.1);
  --dash-status-public: rgba(161, 99, 241, 0.1);
  --dash-status-private-fill: rgba(241, 37, 217, 0.7);
  --dash-status-public-fill: rgba(161, 99, 241, 0.69);
  --dash-btn-view: #34d399;
  --dash-btn-edit: #db6bff;
  --dash-btn-delete: #ff70b2;
  --header-gradient: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #1e1b4b 100%);
  --dash-fixed-bg: rgba(15, 23, 42, 0.9);
  --dash-fixed-border: #334155;
  --dash-fixed-shadow: rgba(0, 0, 0, 0.8);
  --user-id-success: #34d399;
  --log-bg: #020617;
  --log-text: #38bdf8;
  --log-border: #1e293b;
  --log-accent: #c084fc;
  --log-input-bg: #0f172a;
  --admin-nav-bg: rgba(15, 23, 42, 0.8);
  --admin-nav-text: #94a3b8;
  --admin-nav-accent: #8b5cf6;
  --admin-nav-active-text: #ffffff;
  --nav-border: #1e293b;
  --nav-border-color: #1e293b;
  --nav-item-border: #334155;
  --nav-sub-bg: rgba(30, 41, 59, 0.6);
  --nav-active-bg: #6366f1;
  --underline-hover: #22d3ee;
  --table-bg: #0f172a;
  --table-header-bg: #1e1b4b;
  --table-row-even: #0f172a;
  --table-row-odd: #161e31;
  --table-row-hover: #4d2761;
  --table-border-dark: #1e293b;
  --table-border-mid: #334155;
  --account-card-bg: #0f172a;
  --table-border-color: #1e1b4b;
  --ticket-card-bg: #1e293b;
  --ticket-card-id-color: #8b5cf6;
  --ticket-card-subject-color: #f1f5f9;
  --ticket-card-subject-hover-color: #22d3ee;
  --ticket-card-meta-color: #94a3b8;
  --ticket-card-unread-border: #8b5cf6;
  --ticket-bg: #0f172a;
  --ticket-title-color: #f8fafc;
  --ticket-meta-color: #94a3b8;
  --message-user-bg: #1e293b;
  --message-user-border: #334155;
  --message-admin-bg: #1e1b4b;
  --message-admin-border: #4c1d95;
  --message-admin-badge-bg: #8b5cf6;
  --message-admin-badge-color: #ffffff;
  --status-open-bg: #064e3b;
  --status-open-color: #34d399;
  --status-closed-bg: #7f1d1d;
  --status-closed-color: #f87171;
  --black: #000000;
  --loader-bg: rgba(11, 14, 26, 0.9);
  --loader-ring: #8b5cf6;
  --list-bg: #1e293b;
  --list-counter: #8b5cf6;
  --flash-yellow: #6366f1; /* Set to bright yellow for better visibility */
  --white: #111827;
}

/* ============================================================
   COMPONENT OVERRIDES - Only active during Cosmic Theme
   ============================================================ */
body[data-theme=cosmic] {
  /* 1. Tiling-Free Cosmic Background (optimized for desktop) */
  background-color: var(--body-bg);
  background-image: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.12), transparent 30%), radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.08), transparent 25%), radial-gradient(circle at 55% 55%, rgba(238, 48, 164, 0.08), transparent 30%), radial-gradient(ellipse at 42% 51%, rgba(238, 82, 24, 0.08), transparent 20%), radial-gradient(ellipse at 70% 78%, rgba(238, 48, 164, 0.03), rgba(255, 182, 193, 0.02), transparent 20%), radial-gradient(ellipse at -70% -78%, rgba(238, 48, 164, 0.03), rgba(255, 182, 193, 0.02), transparent 20%), radial-gradient(1px 1px at 5% 10%, #fff, transparent 30%), radial-gradient(1px 1px at 20% 40%, #fff, transparent 35%), radial-gradient(1px 1px at 35% 70%, #fff, transparent 45%), radial-gradient(1px 1px at 50% 20%, #fff, transparent 58%), radial-gradient(1px 1px at 65% 50%, #fff, transparent 68%), radial-gradient(1px 1px at 80% 80%, #fff, transparent 100%), radial-gradient(1.5px 1.5px at 10% 30%, rgba(255, 255, 255, 0.7), transparent 90%), radial-gradient(1.5px 1.5px at 40% 60%, rgba(255, 255, 255, 0.65), transparent 90%), radial-gradient(1.5px 1.5px at 70% 25%, rgba(255, 255, 255, 0.75), transparent 90%), radial-gradient(1.5px 1.5px at 85% 50%, rgba(255, 255, 255, 0.68), transparent 90%), radial-gradient(2px 2px at 15% 20%, #fff, transparent 95%), radial-gradient(2px 2px at 50% 40%, rgba(139, 92, 246, 0.8), transparent 95%), radial-gradient(2px 2px at 80% 10%, #fff, transparent 100%);
  background-size: 100% 100%, 100% 100%, 900px 600px, 900px 600px, 900px 600px, 900px 600px, 900px 600px, 900px 600px, 400px 350px, 400px 350px, 400px 350px, 400px 350px, 500px 330px, 350px 350px, 350px 350px; /* large accent stars */
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat; /* large accent stars */
  background-attachment: fixed;
  animation: cosmic-drift 120s linear infinite;
}
@keyframes cosmic-drift {
  from {
    background-position: 0% 0%, 0% 0%, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
  }
  to {
    background-position: 0% 0%, 0% 0%, 350px 250px, 450px 300px, 300px 400px, 500px 350px, 600px 200px, 150px 150px, 150px 150px, 300px 200px, 450px 350px, 600px 150px, 900px 600px, 900px 600px, 900px 600px;
  }
}
body[data-theme=cosmic] {
  /* Performance hint */
  will-change: background-position;
}
@media (max-width: 700px) {
  body[data-theme=cosmic] {
    /* Ultra-optimized cosmic background with randomized stars */
    background-color: var(--body-bg);
    background-image: radial-gradient(circle at 30% 25%, rgba(4, 42, 232, 0.15), transparent 30%), radial-gradient(circle at 20% 25%, rgba(231, 0, 232, 0.09), transparent 20%), radial-gradient(circle at 65% 50%, rgba(238, 48, 164, 0.13), transparent 40%), radial-gradient(2px 2px at 10% 20%, #fff, transparent 30%), radial-gradient(2px 2px at 90% 60%, #fff, transparent 45%), radial-gradient(2px 2px at 15% 50%, #fff, transparent 40%), radial-gradient(2px 2px at 50% 80%, #fff, transparent 60%);
    /* Background sizes */
    background-size: 100% 100%, 300px 200px, 300px 200px, 300px 200px, 300px 200px, 300px 200px;
    /* Repeats only for star layers */
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat;
    /* Scroll attachment for mobile performance */
    background-attachment: scroll;
    /* Slow, smooth animation */
    animation: cosmic-drift 180s linear infinite;
  }
  @keyframes cosmic-drift {
    from {
      background-position: 0% 0%, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
    }
    to {
      background-position: 0% 0%, 300px 200px, 300px 200px, 300px 200px, 300px 200px, 300px 200px;
    }
  }
  body[data-theme=cosmic] {
    /* Performance hint */
    will-change: background-position;
  }
}
body[data-theme=cosmic] #header, body[data-theme=cosmic] #pk-dash {
  backdrop-filter: blur(12px);
  background: var(--dash-fixed-bg);
}
body[data-theme=cosmic] .ed-exchange-section .ed-exchange-card {
  background: var(--dash-card-bg) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--text-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
body[data-theme=cosmic] .ed-exchange-section .ed-exchange-card .card-header {
  border-bottom: 1px solid var(--input-border);
  color: var(--text-dark);
}
body[data-theme=cosmic] .ed-bot-card {
  background: var(--bot-card-bg);
  border: 1px solid var(--input-border) !important;
  transition: all 0.3s ease;
}
body[data-theme=cosmic] .ed-bot-card.ed-bot-active {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  border-color: var(--primary-color) !important;
}
body[data-theme=cosmic] .ed-bot-card.ed-bot-idle, body[data-theme=cosmic] .ed-bot-card.stopped {
  background: var(--dash-card-stopped-bg);
  opacity: 0.75;
  border-style: dashed;
}
body[data-theme=cosmic] .ed-bot-card.ed-bot-idle .bot-name, body[data-theme=cosmic] .ed-bot-card.stopped .bot-name {
  color: var(--text-muted);
}
body[data-theme=cosmic] .ed-bot-card:hover {
  border-color: var(--brand-primary) !important;
  transform: translateY(-2px);
}
body[data-theme=cosmic] .account-card, body[data-theme=cosmic] .account-item, body[data-theme=cosmic] .table-container {
  background: var(--dash-card-bg) !important;
  border: 1px solid var(--input-border) !important;
}
body[data-theme=cosmic] .log-container {
  border-color: var(--log-border) !important;
  background: var(--log-bg) !important;
}
body[data-theme=cosmic] .log-container .log-header {
  border-bottom-color: var(--log-border);
}
body[data-theme=cosmic] .log-container .log-header h4 {
  color: var(--log-accent);
}
body[data-theme=cosmic] .log-container .log-controls {
  background: var(--log-bg);
}
body[data-theme=cosmic] .log-container .log-controls select, body[data-theme=cosmic] .log-container .log-controls input {
  background: var(--log-input-bg);
  border-color: var(--log-border);
}
body[data-theme=cosmic] .log-container .log-content {
  color: var(--log-text);
}
body[data-theme=cosmic] input, body[data-theme=cosmic] select, body[data-theme=cosmic] textarea {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-color) !important;
}
body[data-theme=cosmic] input:focus, body[data-theme=cosmic] select:focus, body[data-theme=cosmic] textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}
body[data-theme=cosmic] .ticket-item {
  background: var(--ticket-card-bg) !important;
  border: 1px solid var(--input-border) !important;
}
body[data-theme=cosmic] .ticket-item.unread {
  border-left: 3px solid var(--ticket-card-unread-border) !important;
}

#ed-nav-main-front {
  background: var(--dash-fixed-bg);
  border-bottom: 1px solid var(--dash-fixed-border);
  border-top: 1px solid var(--dash-border-top);
  box-shadow: 0 6px 6px -6px var(--dash-fixed-shadow);
  position: fixed;
  left: 0;
  right: 0;
  top: 5px;
  z-index: 1010;
  height: var(--dash-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
}
#ed-nav-main-front .user-id {
  position: relative !important;
}
#ed-nav-main-front #copy-success-tip {
  position: absolute !important;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  z-index: 999999;
  display: none;
  opacity: 0;
  pointer-events: none;
}
#ed-nav-main-front .user-id.show-tip #copy-success-tip {
  display: block !important;
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-5px);
  transition: all 0.2s ease;
}

@media (max-width: 991px) {
  #ed-nav-main-front {
    justify-content: flex-start;
    padding: 0 10px;
    overflow: visible !important;
  }
  .ed-nav-container-front {
    overflow: visible !important;
  }
  .ed-nav-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: block;
  }
  .ed-nav-scroll::-webkit-scrollbar {
    display: none;
  }
  .container-fluid.nav-split {
    display: inline-flex !important;
    flex-wrap: nowrap;
    width: auto !important;
    min-width: 100%;
  }
  .nav-wrapper {
    flex: 0 0 auto;
    overflow: visible !important;
  }
  .ed-nav {
    display: flex;
    flex-wrap: nowrap;
  }
  .nav-item {
    flex: 0 0 auto;
  }
  .ed-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 9999;
  }
  .ed-dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
  }
  .ed-dropdown li a:hover {
    background: var(--primary-color);
    color: #fff !important;
  }
  .nav-item.open .ed-dropdown {
    margin-top: 2px;
  }
}
.ed-nav-container-front .ed-nav-scroll .admin-nav, .ed-nav-container-front .ed-nav-scroll .user-nav {
  display: flex;
  min-width: 100%;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--admin-nav-bg);
  backdrop-filter: blur(6px);
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid var(--nav-border-color);
  border-radius: 8px;
}
.ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  color: var(--admin-nav-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: solid 1px var(--nav-item-border);
}
.ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link i {
  font-size: 13px;
  opacity: 0.85;
}
.ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link:hover {
  background-color: rgba(223, 175, 61, 0.1); /* replaced fade() */
  color: #b58f2b; /* darkened version of admin accent */
  border-bottom: solid 1px var(--admin-nav-bg);
}
.ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link.admin-link-active, .ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link.user-link-active, .ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link.active {
  background-color: rgba(223, 175, 61, 0.2);
  color: var(--admin-nav-active-text);
  font-weight: 600;
}
.ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link.admin-link-active i, .ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link.user-link-active i, .ed-nav-container-front .ed-nav-scroll .admin-nav .nav-item .nav-link.active i {
  color: var(--admin-nav-accent);
  opacity: 1;
}

.ed-nav-container-front {
  width: 100%;
  overflow: visible !important;
}
.ed-nav-container-front .container-fluid {
  display: flex !important;
  align-items: center;
  width: 100%;
  padding: 0;
  overflow: visible !important;
}
.ed-nav-container-front .container-fluid::before, .ed-nav-container-front .container-fluid::after {
  display: none !important;
}
.ed-nav-container-front .nav-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible !important;
}
.ed-nav-container-front .nav-wrapper:last-child {
  margin-left: auto;
}
.ed-nav-container-front .ed-nav {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: nowrap;
  overflow: visible;
}
.ed-nav-container-front .nav-item {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  overflow: visible !important;
}
.ed-nav-container-front .nav-item .nav-link {
  padding: 0 6px;
  white-space: nowrap;
  color: var(--brand-primary);
  text-decoration: none;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: color 0.15s ease;
}
.ed-nav-container-front .nav-item .nav-link.active {
  border-bottom: 3px solid var(--primary-active);
}
.ed-nav-container-front .nav-item .nav-link:hover {
  color: var(--brand-secondary);
}
.ed-nav-container-front .nav-item .ed-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 99999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ed-nav-container-front .nav-item .ed-dropdown li {
  width: 100%;
}
.ed-nav-container-front .nav-item .ed-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #495057;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ed-nav-container-front .nav-item .ed-dropdown li a:hover {
  background: var(--primary-color);
  color: #fff !important;
}
.ed-nav-container-front .nav-item:hover .ed-dropdown, .ed-nav-container-front .nav-item.open .ed-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.ed-nav-container-front .nav-item.nav-admin-tools i {
  color: gold;
}
.ed-nav-container-front .nav-item.nav-support i {
  color: #3498db;
}

.ed-nav-container-front .nav-item .ed-dropdown .ed-dropdown {
  display: none !important;
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -8px;
  margin-left: 1px;
  opacity: 0;
  transform: translateX(10px);
  z-index: 10001;
}
.ed-nav-container-front .nav-item .ed-dropdown li {
  position: relative;
}
.ed-nav-container-front .nav-item .ed-dropdown li:hover > .ed-dropdown {
  display: block !important;
  opacity: 1;
  transform: translateX(0);
}

.fa-caret-right {
  float: right;
  font-size: 11px;
  line-height: 20px;
  opacity: 0.6;
  margin-left: 10px;
}

.fa-caret-right {
  float: right;
  font-size: 11px;
  line-height: 20px;
  opacity: 0.6;
  margin-left: 10px;
}

@media (max-width: 991px) {
  .ed-nav-container-front .nav-item .ed-dropdown li .ed-dropdown {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    min-width: unset;
    width: 100%;
  }
  .ed-nav-container-front .nav-item .ed-dropdown li .fa-caret-right {
    display: none;
  }
}
@media (max-width: 991px) {
  .ed-nav-container-front .nav-item .ed-dropdown .ed-dropdown {
    display: none !important;
    position: static;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid #eee;
    margin-left: 15px;
    width: auto;
    min-width: unset;
    padding: 0;
  }
  .ed-nav-container-front .nav-item .ed-dropdown li.has-dropdown-submenu.open > .ed-dropdown {
    display: block !important;
  }
  .ed-nav-container-front .nav-item .ed-dropdown .fa-caret-right {
    float: right;
    transition: transform 0.2s ease;
    margin-top: 12px;
    margin-right: 15px;
  }
  .ed-nav-container-front .nav-item .ed-dropdown li.has-dropdown-submenu.open > a .fa-caret-right {
    transform: rotate(90deg);
  }
  .nav-item .ed-dropdown {
    display: none !important;
  }
  .nav-item.open > .ed-dropdown {
    display: block !important;
  }
}
@media (max-width: 991px) {
  .nav-item.nav-user-id-display {
    display: none;
  }
}
.sub-nav {
  display: inline-flex;
  gap: 20px;
  margin-top: 10px;
}

.sub-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  background: var(--nav-sub-bg);
  color: var(--admin-nav-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.sub-nav__item:hover {
  background: var(--white);
  color: #b58f2b; /* darkened admin accent instead of LESS darken() */
}

.sub-nav__item.active {
  background: var(--nav-active-bg);
  color: var(--white);
  font-weight: 700;
}

.sub-nav__item.active i {
  opacity: 1;
  color: var(--white);
}

.sub-nav__item:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--underline-hover);
  transition: all 0.2s ease;
}

.sub-nav__item i {
  font-size: 16px;
  opacity: 0.8;
  transition: font-size 0.2s ease, opacity 0.2s ease;
}

.sub-nav__item:hover i {
  opacity: 1;
  font-size: 18px;
}

.ed-frontend-pub,
.ed-frontend-auth,
.ed-admin-project {
  font-family: var(--bs-font-sans-serif);
  color: var(--text-dark);
  padding: 0 0.9375rem;
  background-color: var(--dash-bg);
}
.ed-frontend-pub .ed-frontend-pub-inner,
.ed-frontend-pub .ed-frontend-auth-inner,
.ed-frontend-pub .ed-admin-project-inner,
.ed-frontend-auth .ed-frontend-pub-inner,
.ed-frontend-auth .ed-frontend-auth-inner,
.ed-frontend-auth .ed-admin-project-inner,
.ed-admin-project .ed-frontend-pub-inner,
.ed-admin-project .ed-frontend-auth-inner,
.ed-admin-project .ed-admin-project-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .ed-frontend-auth {
    padding: 0 0.3125rem;
  }
}
/* Custom Card: Adds a subtle hover lift and clean border */
.custom-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.125);
  background-color: #fff;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Custom Button: A more modern "pill" feel with deeper active states */
.custom-btn {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 18px 62px;
  background: #1e83ae;
}
.custom-btn:hover {
  background: #25272a;
}

/* Custom Alert: De-saturated backgrounds for a professional look */
.custom-alert {
  border-left: 5px solid;
  border-radius: 4px;
  background-color: #f8f9fa;
}

/* Theme Colors: Examples for your theme-primary/secondary */
.theme-primary {
  color: #0d6efd;
  background-color: #e7f1ff;
}

.theme-secondary {
  color: #6c757d;
  background-color: #f8f9fa;
}

.theme-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  max-height: 230px;
  max-width: 380px;
}

.theme-carousel-container {
  width: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.theme-carousel-inner {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.theme-carousel-inner .theme-option {
  margin: 0;
}

.theme-option {
  flex: 0 0 300px;
  text-align: center;
  margin: 0;
}
.theme-option img {
  width: 300px;
  height: 169px;
  display: block;
  cursor: pointer;
}
.theme-option label {
  display: block;
  padding: 10px 0;
  cursor: pointer;
  font-weight: bold;
}
.theme-option input[type=radio] {
  display: none;
}
.theme-option input[type=radio]:checked + label img {
  outline: 3px solid var(--brand-color);
}

.nav-btn {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  line-height: 1;
}
.nav-btn:hover {
  background: #555;
}

#user-update-account-settings .form-group .theme-option {
  margin: 0;
}

html {
  height: 100%;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

/*
//Standard cleanup to prevent the double bar
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; //Only hide horizontal to prevent jitter
    -webkit-overflow-scrolling: touch;
}
*/
body {
  background: var(--body-bg);
  color: var(--text-color);
}

#header {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: var(--header-gradient);
}
#header .container {
  padding: 0;
}

pre {
  display: block;
  max-height: 300px;
  max-width: 800px;
  margin: 0 auto;
  overflow-y: scroll;
  background: var(--dash-row-stopped-bg);
  color: var(--text-color);
  border: 1px solid var(--input-border);
}

.text-small {
  font-size: 14px;
}

.text-medium {
  font-size: 20px;
}

.text-large {
  font-size: 30px;
}

.no-margin-top {
  margin-top: 0;
}

.no-margin-bottom {
  margin-bottom: 0;
}

.no-padding-top {
  padding-top: 0;
}

.no-padding-bottom {
  padding-bottom: 0;
}

.clearfix {
  clear: both;
}

.center {
  text-align: center;
}

.strong {
  font-weight: bold;
}

.btn {
  border: none;
  box-shadow: none;
  text-decoration: none;
}

.btn-custom1 {
  background: var(--nav-btn-custom1);
}
.btn-custom1:hover {
  background: var(--nav-btn-custom1h);
}

.btn-custom2 {
  background: var(--nav-btn-custom2);
}
.btn-custom2:hover {
  background: var(--nav-btn-custom2h);
}

.btn-custom3 {
  background: var(--nav-btn-custom3);
}
.btn-custom3:hover {
  background: var(--nav-btn-custom3h);
}

.btn-custom4 {
  background: var(--nav-btn-custom4);
}
.btn-custom4:hover {
  background: var(--nav-btn-custom4h);
}

.btn-custom5 {
  background: var(--nav-btn-custom5);
}
.btn-custom5:hover {
  background: var(--nav-btn-custom5h);
}

.btn-custom6 {
  background: var(--nav-btn-custom6);
}
.btn-custom6:hover {
  background: var(--nav-btn-custom6h);
}

.btn-custom7 {
  background: var(--nav-btn-custom7);
}
.btn-custom7:hover {
  background: var(--nav-btn-custom7h);
}

.btn-custom1, .btn-custom2, .btn-custom3, .btn-custom4, .btn-custom5, .btn-custom6, .btn-custom7 {
  color: var(--text-color-light);
}
.btn-custom1:hover, .btn-custom2:hover, .btn-custom3:hover, .btn-custom4:hover, .btn-custom5:hover, .btn-custom6:hover, .btn-custom7:hover {
  color: var(--text-color-light-h);
}

button.btn-submit {
  background: none;
  color: var(--brand-color);
  cursor: pointer;
  border: none;
  display: inline-block;
  font-size: 18px;
  height: auto;
  margin: 0 15px 0 7px;
  padding: 0;
  vertical-align: unset;
}
button.btn-submit:hover {
  color: var(--brand-primary-hover);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

hr {
  border-top: solid 1px var(--hr-border);
}

a {
  border: none;
  box-shadow: none;
  text-decoration: none;
  outline: none;
  color: var(--primary-color);
}
a:active, a:focus, a:hover {
  border: none;
  box-shadow: none;
  text-decoration: none;
  outline: none;
}

#upload_dir_status {
  background: var(--status-error-bg);
  color: var(--white);
}

div#wrapper {
  display: block;
  max-width: var(--wrapper-max-width);
  margin: 0 auto;
}

.success {
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 25px;
  background: var(--dash-status-success);
  color: var(--white);
}

.error {
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 25px;
  background: var(--dash-status-danger);
  color: var(--white);
}

#ed-nav-front {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 1010;
}

#main {
  position: relative;
  margin: 60px auto 100px;
  padding: 0;
  z-index: 1;
}

article {
  padding: 0 15px;
}

.block-raw-html {
  clear: both;
}

.block-section {
  padding: 0 15px;
}

.block-paragraph.lead {
  font-size: 1.25rem;
}

.block-paragraph.small {
  font-size: 0.875rem;
}

pre {
  tab-size: 4;
  overflow-x: auto;
}

.entity-details span {
  font-size: 0.9rem;
}

.ed-shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.ed-border {
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.ed-rounded {
  border-radius: 12px !important;
}

.ed-hover-lift {
  transition: transform 0.25s cubic-bezier(0.17, 0.67, 0.83, 0.67), box-shadow 0.25s ease !important;
}
.ed-hover-lift:hover {
  transform: translateY(-8px);
  z-index: 10;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.col-1, .col-2, .col-3, .col-4, .col-6, .col-12 {
  background-clip: padding-box;
  color: inherit;
  transition: all 0.3s ease;
}
.col-1 h1, .col-1 h2, .col-1 h3, .col-1 h4, .col-1 p, .col-2 h1, .col-2 h2, .col-2 h3, .col-2 h4, .col-2 p, .col-3 h1, .col-3 h2, .col-3 h3, .col-3 h4, .col-3 p, .col-4 h1, .col-4 h2, .col-4 h3, .col-4 h4, .col-4 p, .col-6 h1, .col-6 h2, .col-6 h3, .col-6 h4, .col-6 p, .col-12 h1, .col-12 h2, .col-12 h3, .col-12 h4, .col-12 p {
  color: inherit;
}

@media (max-width: 700px) {
  body,
  #ed-nav-front,
  #main,
  .col-1, .col-2, .col-3, .col-4, .col-5,
  .col-6, .col-7, .col-8, .col-9, .col-10,
  .col-11, .col-12 {
    padding: 0;
    margin: 0;
  }
}
.parallax-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* This height determines how much of the photo we see */
  min-height: 400px;
  z-index: 1;
}

.is-parallax.parallax-inner {
  /* Use 'fixed' positioning logic but relative to the parent */
  position: absolute;
  top: -20%; /* Give it extra 'slack' to move up/down */
  left: 0;
  right: 0;
  bottom: -20%; /* Stretch it so it's taller than the container */
  width: 100%;
  height: auto; /* Let the top/bottom percentages define height */
  z-index: -1;
  pointer-events: none;
}

/* All sections below the hero will now behave normally */
.block-section {
  position: relative;
  z-index: 2;
}

/* --- DESKTOP BEHAVIOR --- */
@media (min-width: 1025px) {
  .parallax-container {
    position: relative;
    overflow: hidden !important;
  }
  .is-parallax.parallax-inner {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    will-change: transform;
  }
}
/* --- MOBILE BEHAVIOR (Matches your Section Block) --- */
/* --- ONLY TRiggers on Mobile/Tablet --- */
@media (max-width: 1024px) {
  /* 1. Force the container to act as a stack */
  .parallax-container {
    display: grid !important;
    grid-template-columns: 100%;
    overflow: visible !important;
    min-height: 400px; /* Adjust to match your section feel */
  }
  /* 2. Stack the Image and the Content on the same grid cell */
  .parallax-container > .is-parallax.parallax-inner,
  .parallax-container > .block-section {
    grid-column: 1;
    grid-row: 1;
  }
  /* 3. The Image Layer: Flattened and Static */
  .is-parallax.parallax-inner {
    position: relative !important; /* Standard flow */
    transform: none !important; /* Block the JS */
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important; /* Fill the grid cell */
    min-height: 400px;
    width: 100% !important;
    /* Matching your Section logic */
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
    z-index: 1 !important;
  }
  /* 4. The Content Layer: Floating on top */
  .parallax-container > .block-section {
    position: relative;
    z-index: 2;
    background: transparent !important; /* Ensure section bg doesn't hide image */
  }
}
