body.theme-dark {
    background-color: #141922;
    background-image:
        linear-gradient(rgba(20, 26, 36, 0.78), rgba(20, 26, 36, 0.78)),
        url(../img/tiny_grid.png);
    background-repeat: repeat;
    background-position: 0 0, 0 0;
    background-size: auto, auto;
    background-blend-mode: multiply;
    color: #d8dde7;
}

body.theme-dark .base_content {
    background: transparent;
}

body.theme-dark .main {
    background: transparent;
}

body.theme-dark .navbar-inverse {
    background-color: #10141c;
    background-image: linear-gradient(to bottom, #1a2332 0%, #10141c 100%);
    border-color: #252d3b;
}

body.theme-dark .navbar-inverse .navbar-inner {
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, #1a2332 0%, #10141c 100%) !important;
    border-color: #252d3b !important;
}

body.theme-dark .navbar-inverse .navbar-brand,
body.theme-dark .navbar-inverse .navbar-nav > li > a {
    color: #d8dde7;
}

body.theme-dark .subnavbar .subnavbar-inner {
    background: #171d28;
    background-image: linear-gradient(to bottom, #253245 0%, #171d28 100%);
    border-color: #2a3140;
}

body.theme-dark .subnavbar .mainnav > li > a {
    color: #bcc5d3;
    background-image: linear-gradient(to bottom, #243046 0%, #1a2334 100%);
    border-color: #2a3140;
}

body.theme-dark .subnavbar .mainnav > li.active > a {
    background: #252d3b;
}

body.theme-dark .subnavbar .mainnav > li > a:hover,
body.theme-dark .subnavbar .mainnav > li.open > a {
    background: #2a3448;
    color: #d2d9e5;
}

body.theme-dark .subnavbar .mainnav > li > a:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

body.theme-dark .subnavbar .mainnav > li.active > a {
    background: #2f3b52;
    color: #d9dfe9;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

body.theme-dark .subnavbar .mainnav > li > a > i,
body.theme-dark .subnavbar .mainnav > li > a .caret {
    color: #aeb7c7;
}

body.theme-dark .widget,
body.theme-dark .widget .widget-content {
    background: #1c212b;
    color: #d8dde7;
    border-color: #2a3140;
}

body.theme-dark .widget .widget-header {
    background: #222836;
    color: #e7ecf5;
    border-color: #2a3140;
}

body.theme-dark .table {
    color: #d8dde7;
}

body.theme-dark .table-bordered > thead > tr > th,
body.theme-dark .table-bordered > tbody > tr > td {
    border-color: #2d3444;
}

body.theme-dark .table-striped > tbody > tr:nth-child(odd) > td {
    background-color: #1a1f28;
}

body.theme-dark .table-hover > tbody > tr:hover > td {
    background-color: #252c39;
}

body.theme-dark .form-control,
body.theme-dark .input-group-addon {
    background: #11151d;
    color: #d8dde7;
    border-color: #30384a;
}

body.theme-dark .navbar-form .search-query {
    color: #d2d8e3 !important;
    -webkit-text-fill-color: #d2d8e3 !important;
}

body.theme-dark .navbar-form .search-query::placeholder,
body.theme-dark .navbar-form .search-query::-webkit-input-placeholder,
body.theme-dark .navbar-form .search-query::-moz-placeholder,
body.theme-dark .navbar-form .search-query:-ms-input-placeholder,
body.theme-dark .navbar-form .search-query::-ms-input-placeholder {
    color: #96a1b5 !important;
    opacity: 1;
}

body.theme-dark .dropdown-menu {
    background: #1b2130;
    border-color: #2f3748;
}

body.theme-dark .navbar .navbar-nav > li > .dropdown-menu::before,
body.theme-dark .navbar .navbar-nav > li > .dropdown-menu::after,
body.theme-dark .subnavbar .dropdown > .dropdown-menu::before,
body.theme-dark .subnavbar .dropdown > .dropdown-menu::after {
    display: none !important;
    content: none !important;
}

body.theme-dark .navbar .navbar-nav > li.top-menu > .dropdown-menu.user-dropdown-menu {
    background: #1b2434 !important;
    border-color: #2f3a4d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

body.theme-dark .dropdown-menu > li > a {
    color: #d8dde7;
}

body.theme-dark .dropdown-menu > li > a:hover,
body.theme-dark .dropdown-menu > li > a:focus {
    background: #2a3243;
    color: #e8f0ff !important;
    text-shadow: none !important;
}

body.theme-dark .subnavbar .mainnav > li > a,
body.theme-dark .subnavbar .mainnav > li > a > span,
body.theme-dark .subnavbar .mainnav > li > a > i {
    text-shadow: none !important;
}

body.theme-dark a {
    color: #8dc2ff;
}

body.theme-dark a:hover,
body.theme-dark a:focus {
    color: #b5d7ff;
}

body.theme-dark .panel,
body.theme-dark .panel-body,
body.theme-dark .well,
body.theme-dark .breadcrumb {
    background: #1c212b;
    color: #d8dde7;
    border-color: #2a3140;
}

body.theme-dark .alert {
    border-color: #2a3140;
}

body.theme-dark .alert-info {
    background: #1f2f40;
    color: #c9e6ff;
}

body.theme-dark .alert-success {
    background: #213b2b;
    color: #c6f0d2;
}

body.theme-dark .alert-warning {
    background: #3c311f;
    color: #ffe6b8;
}

body.theme-dark .alert-danger {
    background: #43252a;
    color: #ffd3d8;
}

body.theme-dark .modal-content {
    background: #1c212b;
    color: #d8dde7;
    border-color: #2a3140;
}

body.theme-dark .modal-header,
body.theme-dark .modal-footer {
    border-color: #2a3140;
}

body.theme-dark .nav-tabs {
    border-bottom-color: #2a3140;
}

body.theme-dark .nav-tabs > li > a {
    color: #c8d3e6;
    border-color: transparent;
}

body.theme-dark .nav-tabs > li > a:hover {
    background: #232a37;
    border-color: #2a3140;
}

body.theme-dark .nav-tabs > li.active > a,
body.theme-dark .nav-tabs > li.active > a:hover,
body.theme-dark .nav-tabs > li.active > a:focus {
    background: #1c212b;
    color: #f0f4fb;
    border-color: #2a3140;
}

body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span {
    background: #1a202b;
    border-color: #2a3140;
    color: #c6d2e5;
}

body.theme-dark .pagination > li > a:hover,
body.theme-dark .pagination > li > span:hover,
body.theme-dark .pagination > li > a:focus,
body.theme-dark .pagination > li > span:focus {
    background: #2a3243;
    color: #f0f4fb;
    border-color: #39455b;
}

body.theme-dark .pagination > .active > a,
body.theme-dark .pagination > .active > span,
body.theme-dark .pagination > .active > a:hover,
body.theme-dark .pagination > .active > span:hover,
body.theme-dark .pagination > .active > a:focus,
body.theme-dark .pagination > .active > span:focus {
    background: #3a4a66;
    border-color: #3a4a66;
    color: #fff;
}

body.theme-dark .btn-default {
    background: #252d3a;
    color: #e0e7f3;
    border-color: #394456;
}

body.theme-dark .btn-default:hover,
body.theme-dark .btn-default:focus {
    background: #313b4c;
    color: #fff;
    border-color: #4a5870;
}

body.theme-dark .footer,
body.theme-dark footer {
    background: #10141c;
    color: #aab4c5;
    border-top: 1px solid #252d3b;
}

body.theme-dark .text-muted {
    color: #9eabbe;
}

body.theme-dark .account-container,
body.theme-dark .account-container .content {
    background: #1a202b;
    color: #d8dde7;
    border-color: #2f3748;
}

body.theme-dark .account-container h1,
body.theme-dark .account-container h2,
body.theme-dark .account-container h3,
body.theme-dark .account-container label {
    color: #d8dde7;
}

body.theme-dark .badge {
    background: #3b4458;
    color: #f0f4fb;
}

body.theme-dark .label-info {
    background: #2d5d8a;
}

body.theme-dark .label-warning {
    background: #8a692d;
    color: #fff4db;
}

body.theme-dark .label-success {
    background: #2e7b4f;
}

body.theme-dark .close {
    color: #d8dde7;
    opacity: 0.8;
    text-shadow: none;
}

body.theme-dark .close:hover,
body.theme-dark .close:focus {
    color: #ffffff;
    opacity: 1;
}

body.theme-dark .plan {
    background: #1c212b;
    border: 1px solid #2a3140;
}

body.theme-dark .plan-features {
    border-color: #2a3140;
    background: #1c212b;
}

body.theme-dark .plan-features li {
    border-bottom-color: #3a4254;
    color: #d8dde7;
}

body.theme-dark .plan-actions {
    background: #1a202b;
    border-color: #2a3140;
}

body.theme-dark .plan .plan-price {
    color: #f2f6ff;
}

body.theme-dark .plan .plan-price .note {
    color: #d6deed;
}

body.theme-dark .plan .plan-title {
    color: #f2f6ff;
}

body.theme-dark .table > thead > tr > th {
    background: #212838;
    color: #e8edf6;
}

body.theme-dark .table > tbody > tr > td {
    background: #1a202b;
}

body.theme-dark .table-striped > tbody > tr > td,
body.theme-dark .table-striped > tbody > tr > th,
body.theme-dark .table-striped > tbody > tr:nth-child(odd) > td,
body.theme-dark .table-striped > tbody > tr:nth-child(odd) > th {
    background: #1a202b !important;
    color: #d8dde7 !important;
}

body.theme-dark .table-bordered > thead > tr > th,
body.theme-dark .table-bordered > tbody > tr > td,
body.theme-dark .table-bordered > tbody > tr > th {
    border-color: #2d3444 !important;
}

body.theme-dark .panel-default {
    border-color: #2a3140;
}

body.theme-dark .panel-default > .panel-heading {
    background: #222836;
    color: #e8edf6;
    border-color: #2a3140;
}

body.theme-dark .panel-heading,
body.theme-dark .panel-default > .panel-heading {
    background: #222836 !important;
    color: #e8edf6 !important;
    border-color: #2a3140 !important;
}

body.theme-dark .panel-body {
    background: #1a202b !important;
    color: #d8dde7 !important;
}

body.theme-dark .panel-title > a {
    color: #dfe7f5;
}

body.theme-dark .input-group-addon .fa {
    color: #bfcce1;
}

body.theme-dark [style*="color: #333"],
body.theme-dark [style*="color:#333"] {
    color: #d8dde7 !important;
}

body.theme-dark [style*="color: green"],
body.theme-dark [style*="color:green"] {
    color: #79d88f !important;
}

body.theme-dark .jquery-msgbox {
    background: #1c212b !important;
    background-color: #1c212b !important;
    background-image: none !important;
    color: #d8dde7 !important;
    border: 1px solid #2a3140 !important;
    text-shadow: none !important;
}

body.theme-dark .jquery-msgbox-alert,
body.theme-dark .jquery-msgbox-info,
body.theme-dark .jquery-msgbox-error,
body.theme-dark .jquery-msgbox-prompt,
body.theme-dark .jquery-msgbox-confirm {
    background-color: #1c212b !important;
}

body.theme-dark .jquery-msgbox-wrapper,
body.theme-dark .jquery-msgbox-wrapper * {
    color: #d8dde7 !important;
    text-shadow: none !important;
}

body.theme-dark .jquery-msgbox-label {
    color: #d8dde7 !important;
}

body.theme-dark .jquery-msgbox-inputs input {
    background: #11151d !important;
    box-shadow: none !important;
    color: #d8dde7 !important;
    border: 1px solid #30384a !important;
}

body.theme-dark .jquery-msgbox-buttons button,
body.theme-dark .jquery-msgbox-buttons input[type="button"],
body.theme-dark .jquery-msgbox-buttons input[type="submit"] {
    background: #2a3344 !important;
    color: #eef3fb !important;
    border: 1px solid #3a465d !important;
}

body.theme-dark .jquery-msgbox-buttons button:hover,
body.theme-dark .jquery-msgbox-buttons input[type="button"]:hover,
body.theme-dark .jquery-msgbox-buttons input[type="submit"]:hover {
    background: #33415a !important;
    color: #ffffff !important;
    border-color: #4c5c78 !important;
}

body.theme-dark .jquery-msgbox-content {
    background: transparent !important;
    color: #d8dde7 !important;
}

body.theme-dark .msgGrowl {
    background: #202734;
    color: #d8dde7;
    border-color: #2f3748;
    text-shadow: none;
}

body.theme-dark .msgGrowl h4 {
    color: #e8edf6;
    text-shadow: none;
}

body.theme-dark .popover {
    background: #1c212b;
    border-color: #2a3140;
    color: #d8dde7;
}

body.theme-dark .popover-title {
    background: #222836;
    border-bottom-color: #2a3140;
    color: #e8edf6;
}

body.theme-dark .tooltip-inner {
    background: #2a3243;
    color: #f0f4fb;
}

body.theme-dark .tooltip.top .tooltip-arrow {
    border-top-color: #2a3243;
}

body.theme-dark .ui-datepicker,
body.theme-dark .ui-widget-content {
    background: #1c212b;
    color: #d8dde7;
    border-color: #2a3140;
}

body.theme-dark .ui-datepicker .ui-widget-header {
    background: #222836;
    color: #e8edf6;
    border-color: #2a3140;
}

body.theme-dark .ui-datepicker td .ui-state-default {
    background: #1a202b;
    color: #d8dde7;
    border-color: #2f3748;
}

body.theme-dark .ui-datepicker td .ui-state-active {
    background: #3a4a66;
    color: #fff;
    border-color: #3a4a66;
}

body.theme-dark .ui-datepicker td .ui-state-default:hover {
    background: #2a3243;
    color: #fff;
}

body.theme-dark .tab-content,
body.theme-dark .accordion,
body.theme-dark fieldset,
body.theme-dark legend {
    color: #d8dde7;
    border-color: #2a3140;
}

body.theme-dark hr {
    border-top-color: #2a3140;
}

body.theme-dark [style*="background-color: #fff"],
body.theme-dark [style*="background-color:#fff"],
body.theme-dark [style*="background: #fff"],
body.theme-dark [style*="background:#fff"] {
    background-color: #1a202b !important;
}

body.theme-dark [style*="background-color: white"],
body.theme-dark [style*="background: white"] {
    background-color: #1a202b !important;
}

body.theme-dark .widget-table .widget-content,
body.theme-dark .widget-table .table-responsive {
    background: #1a202b !important;
}

body.theme-dark .widget-table .table thead th,
body.theme-dark .widget-table .table tbody td {
    background: #1a202b !important;
    color: #d8dde7 !important;
}

body.theme-dark .widget-table .table-hover > tbody > tr:hover > td {
    background: #252c39 !important;
}

body.theme-dark .nav-pills > li > a {
    background: #1c2330;
    color: #cfd8ea;
    border: 1px solid #2a3140;
}

body.theme-dark .nav-pills > li > a:hover,
body.theme-dark .nav-pills > li > a:focus {
    background: #273042;
    color: #f0f4fb;
}

body.theme-dark .nav-pills > li.active > a,
body.theme-dark .nav-pills > li.active > a:hover,
body.theme-dark .nav-pills > li.active > a:focus {
    background: #3a4a66;
    border-color: #3a4a66;
    color: #ffffff;
}

body.theme-dark .pricing-plans .plan,
body.theme-dark .pricing-plans .plan-header,
body.theme-dark .pricing-plans .plan-features,
body.theme-dark .pricing-plans .plan-actions {
    background: #1a202b !important;
    color: #d8dde7 !important;
    border-color: #2d3444 !important;
}

body.theme-dark .pricing-plans .plan-title,
body.theme-dark .pricing-plans .plan-price,
body.theme-dark .pricing-plans .note {
    color: #e8edf6 !important;
}

body.theme-dark .pricing-plans .plan.red .plan-header,
body.theme-dark .pricing-plans .plan.orange .plan-header {
    filter: brightness(0.85);
}

body.theme-dark .pricing-plans .slider-tertiary,
body.theme-dark .ui-slider-horizontal {
    background: #232a37;
    border-color: #3a4254;
}

body.theme-dark .ui-slider .ui-slider-handle {
    background: #4c5e80;
    border-color: #6d83ad;
}

body.theme-dark .select2-container .select2-choice,
body.theme-dark .select2-drop {
    background: #11151d;
    color: #d8dde7;
    border-color: #30384a;
}

body.theme-dark .select2-results .select2-highlighted {
    background: #2a3243;
    color: #ffffff;
}

body.theme-dark .label,
body.theme-dark .status,
body.theme-dark .help-block {
    color: #d8dde7;
}

body.theme-dark font[color="red"] {
    color: #ff8b93 !important;
}

body.theme-dark font[color="blue"] {
    color: #8ec2ff !important;
}

body.theme-dark font[color="green"] {
    color: #79d88f !important;
}

body.theme-dark font[color="orange"] {
    color: #ffbf73 !important;
}

body.theme-dark [style*="#d7f3f7"] {
    background: #1f3542 !important;
    color: #d8dde7 !important;
}

body.theme-dark [style*="#f6931f"] {
    color: #ffbf73 !important;
}

body.theme-dark [style*="background: #f"],
body.theme-dark [style*="background-color: #f"] {
    background-color: #1a202b !important;
}

/* Visual pass #2: softer contrast + sharper text */
body.theme-dark,
body.theme-dark p,
body.theme-dark span,
body.theme-dark li,
body.theme-dark td,
body.theme-dark th,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark a,
body.theme-dark .widget-header h3,
body.theme-dark .panel-title,
body.theme-dark .plan-title {
    text-shadow: none !important;
    color: #d2d9e6;
}

body.theme-dark .table > thead > tr > th,
body.theme-dark .widget .widget-header,
body.theme-dark .panel-heading {
    color: #dde5f3 !important;
}

body.theme-dark .table > tbody > tr > td,
body.theme-dark .table-striped > tbody > tr > td,
body.theme-dark .table-striped > tbody > tr > th {
    color: #ced6e4 !important;
}

body.theme-dark .widget,
body.theme-dark .widget .widget-content,
body.theme-dark .panel,
body.theme-dark .panel-body,
body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > thead > tr > th {
    border-color: #303a4c !important;
    box-shadow: none !important;
}

body.theme-dark .widget .widget-header,
body.theme-dark .panel-heading,
body.theme-dark .table > thead > tr > th {
    background: #20293a !important;
}

body.theme-dark .widget .widget-header h3,
body.theme-dark .widget .widget-header i,
body.theme-dark .widget .widget-header [class^="fa-"],
body.theme-dark .widget .widget-header [class*=" fa-"] {
    color: #e7eefb !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}

body.theme-dark .widget .widget-header h3 {
    font-weight: 600;
    letter-spacing: 0.1px;
}

body.theme-dark .table > tbody > tr > td,
body.theme-dark .table-striped > tbody > tr > td,
body.theme-dark .table-striped > tbody > tr > th {
    background: #182131 !important;
}

body.theme-dark .alert-info {
    background: #223247 !important;
    color: #d6e6ff !important;
    border-color: #344960 !important;
}

body.theme-dark .btn-primary {
    background: #3f5e87;
    border-color: #5574a0;
}

body.theme-dark .btn-primary:hover,
body.theme-dark .btn-primary:focus {
    background: #4a6d9d;
    border-color: #6386b7;
}

body.theme-dark .btn-success {
    background: #2f7a58;
    border-color: #3d956c;
}

body.theme-dark .btn-success:hover,
body.theme-dark .btn-success:focus {
    background: #378664;
    border-color: #4aa47c;
}

body.theme-dark .btn-info {
    background: #2f6f87;
    border-color: #3f86a1;
}

body.theme-dark .btn-info:hover,
body.theme-dark .btn-info:focus {
    background: #387f99;
    border-color: #4a97b4;
}

body.theme-dark .account-container,
body.theme-dark .account-container .content,
body.theme-dark .account-container.stacked,
body.theme-dark .account-container.stacked .content {
    background: #1b2434 !important;
    border-color: #303a4c !important;
    box-shadow: none !important;
}

body.theme-dark .account-container .input-group-addon,
body.theme-dark .account-container .form-control {
    background: #141c2a !important;
    border-color: #2f3a4d !important;
    color: #d8dde7 !important;
}

body.theme-dark .complaint-row td {
    transition: background-color .15s ease-in-out;
}

body.theme-dark .complaint-row:hover td {
    background: #202b3d !important;
}

body.theme-dark .modal-header,
body.theme-dark .modal-body,
body.theme-dark .modal-footer {
    background: #1b2434 !important;
}

body.theme-dark .modal-title {
    color: #e4ebf8 !important;
}

/* Reset old gradients/shadows from pages/plans.css and pages/signin.css */
body.theme-dark .plan-header,
body.theme-dark .plan-title,
body.theme-dark .plan-price,
body.theme-dark .plan-price span.note,
body.theme-dark .plan-price span.term {
    text-shadow: none !important;
    background-image: none !important;
    filter: none !important;
}

body.theme-dark .plan .plan-header {
    background-color: #233148 !important;
}

body.theme-dark .plan .plan-price {
    background-color: #1f2b40 !important;
}

body.theme-dark .plan.red .plan-header,
body.theme-dark .plan.red .plan-price {
    background-color: #4f2c3c !important;
}

body.theme-dark .plan.orange .plan-header,
body.theme-dark .plan.orange .plan-price {
    background-color: #4b3a28 !important;
}

body.theme-dark .plan.blue .plan-header,
body.theme-dark .plan.blue .plan-price {
    background-color: #2c3c58 !important;
}

body.theme-dark .plan.green .plan-header,
body.theme-dark .plan.green .plan-price {
    background-color: #2a463a !important;
}

body.theme-dark .login-extra {
    text-shadow: none !important;
    color: #aeb9cc !important;
}

body.theme-dark .plan .btn,
body.theme-dark .plan-actions .btn {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Admin pages: seller desktop / admin search */
body.theme-dark .action-table .widget-content,
body.theme-dark .widget-box .widget-content {
    background: #182131 !important;
}

body.theme-dark .action-table .table,
body.theme-dark .action-table .table thead th,
body.theme-dark .action-table .table tbody td,
body.theme-dark .widget-box .table,
body.theme-dark .widget-box .table thead th,
body.theme-dark .widget-box .table tbody td {
    background: #182131 !important;
    color: #ced6e4 !important;
    border-color: #303a4c !important;
}

body.theme-dark .thead-centered th,
body.theme-dark .action-table thead th {
    background: #20293a !important;
    color: #e1e9f7 !important;
}

body.theme-dark .pager li > a,
body.theme-dark .pager li > span {
    background: #202a3c;
    border-color: #35435a;
    color: #d7e0f0;
}

body.theme-dark .pager li > a:hover,
body.theme-dark .pager li > a:focus {
    background: #2a3750;
    color: #ffffff;
}

body.theme-dark .dropdown-menu.pull-right {
    background: #1b2434;
    border-color: #313d52;
}

body.theme-dark .dropdown-menu.pull-right > li > a {
    color: #d8e0ef;
}

body.theme-dark .dropdown-menu.pull-right > li > a:hover,
body.theme-dark .dropdown-menu.pull-right > li > a:focus,
body.theme-dark .dropdown-menu.pull-right > .active > a {
    background: #2a3750;
    color: #ffffff;
}

body.theme-dark .selectpicker,
body.theme-dark .bootstrap-select .btn,
body.theme-dark .bootstrap-select .dropdown-toggle {
    background: #141c2a !important;
    color: #d8dde7 !important;
    border-color: #2f3a4d !important;
}

body.theme-dark .ui-tooltip,
body.theme-dark [data-toggle="tooltip"] {
    text-shadow: none !important;
}

body.theme-dark .input-group-btn .btn-info.dropdown-toggle {
    background: #2f6f87;
    border-color: #3f86a1;
}

body.theme-dark .input-group-btn .btn-info.dropdown-toggle:hover,
body.theme-dark .input-group-btn .btn-info.dropdown-toggle:focus {
    background: #397f98;
    border-color: #4a97b4;
}

body.theme-dark .seller-status-active {
    color: #ffd7d7 !important;
    background: #5a2d35 !important;
    border-color: #75424c !important;
}

body.theme-dark .seller-status-inactive {
    color: #d2ebff !important;
    background: #2a4f6a !important;
    border-color: #39627f !important;
}

body.theme-dark .seller-status-sold {
    color: #d6f7da !important;
    background: #254c36 !important;
    border-color: #356548 !important;
}

body.theme-dark .leader-login {
    color: #f3d58a !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    filter: none !important;
}

body.theme-dark .leader-row td {
    font-weight: 600 !important;
}

/* Final polish */
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 {
    font-weight: 600;
    letter-spacing: 0.1px;
}

body.theme-dark a {
    color: #9ecbff;
}

body.theme-dark a:hover,
body.theme-dark a:focus {
    color: #c2ddff;
    text-decoration: none;
}

body.theme-dark .form-control:focus,
body.theme-dark .select2-container-active .select2-choice,
body.theme-dark .bootstrap-select .dropdown-toggle:focus {
    border-color: #5f7da6 !important;
    box-shadow: 0 0 0 1px rgba(95, 125, 166, 0.35) !important;
}

body.theme-dark .modal-content {
    border-radius: 8px;
}

body.theme-dark .modal-header {
    border-bottom-color: #303a4c !important;
}

body.theme-dark .modal-footer {
    border-top-color: #303a4c !important;
}

body.theme-dark .label-default,
body.theme-dark .badge-default {
    background: #38465f;
    color: #e4ebf8;
}

body.theme-dark .label-info,
body.theme-dark .badge-info {
    background: #2f6f87;
    color: #e9f4ff;
}

body.theme-dark .label-success,
body.theme-dark .badge-success {
    background: #2f7a58;
    color: #e5f7ee;
}

body.theme-dark .label-warning,
body.theme-dark .badge-warning {
    background: #8a6d3b;
    color: #fff3df;
}

body.theme-dark .label-danger,
body.theme-dark .badge-danger {
    background: #8d3f4d;
    color: #ffe9ee;
}

body.theme-dark .alert {
    border-width: 1px;
    box-shadow: none;
}

body.theme-dark .alert-success {
    background: #214233 !important;
    color: #d8f5e7 !important;
    border-color: #2f6e55 !important;
}

body.theme-dark .alert-warning {
    background: #4a3a22 !important;
    color: #ffe9bf !important;
    border-color: #6a5230 !important;
}

body.theme-dark .alert-danger {
    background: #4f2a31 !important;
    color: #ffdbe2 !important;
    border-color: #703845 !important;
}

/* Support ticket: player messages (alert-message) must stay readable in dark mode */
body.theme-dark .alert.alert-message {
    background: #2a3343 !important;
    color: #e6edf8 !important;
    border-color: #3a4f6e !important;
}

body.theme-dark .alert.alert-message strong {
    color: #f3f7ff !important;
}

body.theme-dark .alert.alert-message a {
    color: #9dd0ff !important;
}

body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span,
body.theme-dark .pager li > a,
body.theme-dark .pager li > span {
    border-radius: 4px;
}

body.theme-dark .fa,
body.theme-dark [class^="fa-"],
body.theme-dark [class*=" fa-"] {
    text-shadow: none !important;
}

/* Complaint page leftovers: hard override for legacy light borders */
body.theme-dark .panel-group .panel,
body.theme-dark .panel-group .panel-default,
body.theme-dark .panel-group .panel-collapse,
body.theme-dark .panel-group .panel-body {
    background: #182131 !important;
    border-color: #303a4c !important;
    box-shadow: none !important;
}

body.theme-dark .panel-group .panel-default > .panel-heading,
body.theme-dark .accordion .panel.open.panel-default > .panel-heading {
    background: #20293a !important;
    background-image: none !important;
    border-color: #303a4c !important;
    color: #e4ebf8 !important;
    box-shadow: none !important;
    filter: none !important;
}

body.theme-dark .panel .accordion-toggle,
body.theme-dark .panel .accordion-toggle:hover {
    color: #e4ebf8 !important;
}

body.theme-dark .widget .well,
body.theme-dark .well {
    background: #1a2436 !important;
    border-color: #2f3a4d !important;
    box-shadow: none !important;
}

body.theme-dark .table-bordered > thead > tr > th {
    border-left: 1px solid #303a4c !important;
    border-right: 1px solid #303a4c !important;
    box-shadow: none !important;
}

body.theme-dark .table-bordered > tbody > tr > td,
body.theme-dark .table-bordered tbody td {
    border-left: 1px solid #303a4c !important;
    border-right: 1px solid #303a4c !important;
    border-top: 1px solid #303a4c !important;
    background: #182131 !important;
}

body.theme-dark .table-bordered tbody tr td:first-child,
body.theme-dark .table-bordered thead tr th:first-child {
    border-left-color: #303a4c !important;
}

body.theme-dark .table-bordered tbody tr td:last-child,
body.theme-dark .table-bordered thead tr th:last-child {
    border-right-color: #303a4c !important;
}

body.theme-dark #complTab,
body.theme-dark #complRespTab {
    border-bottom-color: #303a4c !important;
}

body.theme-dark #complTab > li > a,
body.theme-dark #complRespTab > li > a {
    background: #1b2434 !important;
    border-color: #303a4c !important;
    color: #d8e0ef !important;
}

body.theme-dark #complTab > li.active > a,
body.theme-dark #complTab > li.active > a:hover,
body.theme-dark #complTab > li.active > a:focus,
body.theme-dark #complRespTab > li.active > a,
body.theme-dark #complRespTab > li.active > a:hover,
body.theme-dark #complRespTab > li.active > a:focus {
    background: #202b3d !important;
    color: #eef4ff !important;
    border-color: #303a4c !important;
}

body.theme-dark .tab-content {
    border-top-color: #303a4c !important;
}

/* Global hard override for legacy light UI (all pages) */
body.theme-dark .widget,
body.theme-dark .widget-content,
body.theme-dark .widget-header,
body.theme-dark .panel,
body.theme-dark .panel-heading,
body.theme-dark .panel-body,
body.theme-dark .panel-footer,
body.theme-dark .well,
body.theme-dark .tab-content,
body.theme-dark .accordion .panel-default,
body.theme-dark .accordion .panel-default > .panel-heading {
    background-image: none !important;
    filter: none !important;
    -ms-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.theme-dark .widget,
body.theme-dark .widget-content,
body.theme-dark .panel,
body.theme-dark .panel-body,
body.theme-dark .well,
body.theme-dark .tab-content {
    background-color: #182131 !important;
    border-color: #303a4c !important;
    color: #ced6e4 !important;
}

body.theme-dark .widget-header,
body.theme-dark .panel-heading,
body.theme-dark .table > thead > tr > th,
body.theme-dark .table-bordered > thead > tr > th {
    background-color: #20293a !important;
    border-color: #303a4c !important;
    color: #e4ebf8 !important;
}

body.theme-dark .table,
body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tbody > tr > th,
body.theme-dark .table-bordered > tbody > tr > td,
body.theme-dark .table-bordered > tbody > tr > th,
body.theme-dark .table-striped > tbody > tr > td,
body.theme-dark .table-striped > tbody > tr > th {
    background-color: #182131 !important;
    border-color: #303a4c !important;
    color: #ced6e4 !important;
}

body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tbody > tr > th {
    border-top-color: #253043 !important;
    border-bottom-color: #253043 !important;
}

body.theme-dark .table > tbody > tr:last-child > td,
body.theme-dark .table > tbody > tr:last-child > th,
body.theme-dark .table-bordered > tbody > tr:last-child > td,
body.theme-dark .table-bordered > tbody > tr:last-child > th {
    border-bottom: 1px solid #253043 !important;
}

body.theme-dark .table-hover > tbody > tr:hover > td,
body.theme-dark .table-hover > tbody > tr:hover > th {
    background-color: #202b3d !important;
}

/* Global soft hover feedback (dark theme) */
body.theme-dark .news-items > li,
body.theme-dark .list-group-item,
body.theme-dark .dropdown-menu > li > a,
body.theme-dark .table-hover > tbody > tr > td,
body.theme-dark .table-hover > tbody > tr > th {
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

body.theme-dark .news-items > li:hover,
body.theme-dark .list-group-item:hover {
    background-color: #1f2a3d !important;
}

body.theme-dark .nav-tabs,
body.theme-dark .nav-tabs > li > a,
body.theme-dark .nav-pills > li > a,
body.theme-dark .dropdown-menu,
body.theme-dark .dropdown-menu > li > a,
body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span,
body.theme-dark .pager li > a,
body.theme-dark .pager li > span {
    border-color: #303a4c !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.theme-dark .nav-tabs > li > a,
body.theme-dark .nav-pills > li > a,
body.theme-dark .dropdown-menu,
body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span,
body.theme-dark .pager li > a,
body.theme-dark .pager li > span {
    background: #1b2434 !important;
    color: #d8e0ef !important;
}

body.theme-dark .nav-tabs > li.active > a,
body.theme-dark .nav-tabs > li.active > a:hover,
body.theme-dark .nav-tabs > li.active > a:focus,
body.theme-dark .nav-pills > li.active > a,
body.theme-dark .nav-pills > li.active > a:hover,
body.theme-dark .nav-pills > li.active > a:focus {
    background: #243149 !important;
    color: #eef4ff !important;
    border-top-color: #3e5578 !important;
    border-left-color: #303a4c !important;
    border-right-color: #303a4c !important;
    border-bottom-color: #303a4c !important;
}

body.theme-dark hr,
body.theme-dark .widget hr,
body.theme-dark .panel hr {
    border-top-color: #303a4c !important;
}

body.theme-dark [style*="#fff"],
body.theme-dark [style*="#FFF"],
body.theme-dark [style*="#f5f5f5"],
body.theme-dark [style*="#F5F5F5"],
body.theme-dark [style*="#eee"],
body.theme-dark [style*="#EEE"],
body.theme-dark [style*="#ddd"],
body.theme-dark [style*="#DDD"],
body.theme-dark [style*="#ccc"],
body.theme-dark [style*="#CCC"],
body.theme-dark [style*="white"] {
    border-color: #303a4c !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Strong table border normalization for all pages */
body.theme-dark .table-bordered {
    border: 1px solid #303a4c !important;
}

body.theme-dark .table-bordered th,
body.theme-dark .table-bordered td,
body.theme-dark .table-bordered > thead > tr > th,
body.theme-dark .table-bordered > tbody > tr > td,
body.theme-dark .table-bordered > tbody > tr > th {
    border: 1px solid #303a4c !important;
    box-shadow: none !important;
}

body.theme-dark .widget .widget-header + .widget-content {
    border-top: 1px solid #303a4c !important;
}

/* Faction big stats block: lighter and cleaner */
body.theme-dark .big-stats-container .widget-content {
    background: #1c2739 !important;
    background-image: none !important;
    border-color: #303a4c !important;
}

body.theme-dark #big_stats .stat {
    border-right: 1px solid #303a4c !important;
    border-left: 1px solid #303a4c !important;
}

body.theme-dark #big_stats .stat h4 {
    color: #b8c6dd !important;
    text-shadow: none !important;
}

body.theme-dark #big_stats .stat .value {
    color: #eef4ff !important;
    text-shadow: none !important;
}

/* Profile seam fix: soften bright border lines on stacked widgets */
body.theme-dark .widget.stacked,
body.theme-dark .widget.stacked .widget-content,
body.theme-dark .widget.stacked .widget-header,
body.theme-dark .widget.stacked.widget-table.action-table,
body.theme-dark .wardrobe_w,
body.theme-dark .panel-group.accordion .panel.panel-default,
body.theme-dark .panel-group.accordion .panel.panel-default > .panel-heading,
body.theme-dark .panel-group.accordion .panel.panel-default > .panel-collapse,
body.theme-dark .panel-group.accordion .panel.panel-default > .panel-collapse > .panel-body {
    border-color: #253043 !important;
}

body.theme-dark .widget .widget-header {
    border-bottom-color: #253043 !important;
}

body.theme-dark .widget.stacked .widget-content,
body.theme-dark .panel-group.accordion .panel.panel-default > .panel-collapse > .panel-body {
    border-top-color: #253043 !important;
    border-bottom-color: #253043 !important;
}

body.theme-dark .table-bordered,
body.theme-dark .table-bordered th,
body.theme-dark .table-bordered td {
    border-color: #253043 !important;
}

/* Warn history modal fine-tune */
body.theme-dark #WarnHistory .modal-content,
body.theme-dark #WarnHistory .modal-header,
body.theme-dark #WarnHistory .modal-body,
body.theme-dark #WarnHistory .modal-footer {
    background: #182131 !important;
    border-color: #253043 !important;
}

body.theme-dark #WarnHistory .modal-title {
    color: #e6edf9 !important;
}

body.theme-dark #WarnHistory .table,
body.theme-dark #WarnHistory .table thead th,
body.theme-dark #WarnHistory .table tbody td {
    background: #182131 !important;
    border-color: #253043 !important;
    color: #d7e0ef !important;
}

body.theme-dark #WarnHistory .table thead th {
    background: #20293a !important;
    color: #eaf1ff !important;
}

/* Seam suppression: remove bright horizontal stripes globally */
body.theme-dark .widget,
body.theme-dark .widget .widget-content,
body.theme-dark .widget .widget-header,
body.theme-dark .panel,
body.theme-dark .panel .panel-body,
body.theme-dark .panel .panel-heading,
body.theme-dark .panel .panel-footer {
    border-color: #1f2a3b !important;
}

body.theme-dark .widget .widget-content,
body.theme-dark .panel .panel-body,
body.theme-dark .tab-content {
    border-top-color: #1f2a3b !important;
    border-bottom-color: #1f2a3b !important;
}

body.theme-dark .widget.stacked,
body.theme-dark .widget.stacked .widget-content,
body.theme-dark .widget.stacked.widget-table .widget-content,
body.theme-dark .widget.stacked.widget-box .widget-content {
    box-shadow: none !important;
}

body.theme-dark .widget.stacked .widget-content > table:last-child,
body.theme-dark .widget.stacked .widget-content > .table-responsive:last-child > table:last-child {
    margin-bottom: 0 !important;
}

body.theme-dark .table,
body.theme-dark .table > thead > tr > th,
body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tbody > tr > th,
body.theme-dark .table-bordered,
body.theme-dark .table-bordered > thead > tr > th,
body.theme-dark .table-bordered > tbody > tr > td,
body.theme-dark .table-bordered > tbody > tr > th {
    border-color: #1f2a3b !important;
}

body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tbody > tr > th {
    border-top-color: #1f2a3b !important;
    border-bottom-color: #1f2a3b !important;
}

body.theme-dark .table > tbody > tr:last-child > td,
body.theme-dark .table > tbody > tr:last-child > th,
body.theme-dark .table-bordered > tbody > tr:last-child > td,
body.theme-dark .table-bordered > tbody > tr:last-child > th {
    border-bottom-color: #1f2a3b !important;
}

body.theme-dark hr,
body.theme-dark .widget hr,
body.theme-dark .panel hr {
    border-top-color: #1f2a3b !important;
}

body.theme-dark .stacked:before,
body.theme-dark .stacked:after {
    background-color: #162033 !important;
    border-color: #1f2a3b !important;
}

/* Inventory readability guard */
body.theme-dark #inventorylist .table > tbody > tr > td,
body.theme-dark #inventorylist .table > tbody > tr > th,
body.theme-dark #inventorylist .table > tbody > tr > td a,
body.theme-dark #inventorylist .table > tbody > tr > th a,
body.theme-dark #inventorylist .table * {
    color: #d7e0ef !important;
}

/* Dark mode scrollbars (global) */
body.theme-dark,
body.theme-dark * {
    scrollbar-width: thin;
    scrollbar-color: #3a4963 #131a26;
}

body.theme-dark ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.theme-dark ::-webkit-scrollbar-track {
    background: #131a26;
}

body.theme-dark ::-webkit-scrollbar-thumb {
    background: #3a4963;
    border-radius: 8px;
    border: 2px solid #131a26;
}

body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #4b5f80;
}

body.theme-dark ::-webkit-scrollbar-corner {
    background: #131a26;
}

@media (max-width: 767px) {
    body.theme-dark .navbar .navbar-nav > li.top-menu > .dropdown-menu.user-dropdown-menu {
        background: #1b2434 !important;
        border-color: #2f3a4d !important;
    }

    body.theme-dark .navbar .navbar-nav > li.top-menu > .dropdown-menu.user-dropdown-menu > li > a {
        color: #d8dde7 !important;
    }

    body.theme-dark .navbar .navbar-nav > li.top-menu > .dropdown-menu.user-dropdown-menu > li > a:hover,
    body.theme-dark .navbar .navbar-nav > li.top-menu > .dropdown-menu.user-dropdown-menu > li > a:focus {
        background: #2a3243 !important;
        color: #eef4ff !important;
    }
}
