@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import './responsive.css';

:root {
  /* Default Light Theme */
  --bg-body: #fbfbfb;
  --bg-box: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f5f5f5;
  --border-color: #e2e8f0;
  --border-input: #ebebeb;
  --text-main: #333333;
  --text-muted: #666666;
  --text-heading: #000000;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --table-border: #ebebeb;
  --table-header-border: #f2f4ff;
  --icon-bg: #dadada;
  --button-hover: #f1f1f1;
}

[data-theme='dark'] {
  /* Deep Teal Dark Theme based on user screenshot */
  --bg-body: #06181d;
  --bg-box: #0a2128;
  /* The specific dark teal requested */
  --bg-input: #0e2d36;
  --bg-hover: #133c48;
  --border-color: #1b5363;
  --border-input: #1b5363;
  --text-main: #d3e2e8;
  /* The specific text color from the screenshot */
  --text-muted: #88a7b5;
  --text-heading: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --table-border: #1b5363;
  --table-header-border: #0e2d36;
  --icon-bg: #1b5363;
  --button-hover: #0e2d36;
}

* {
  outline: none;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video,
input,
button {
  border: 0;
  margin: 0;
  padding: 0;
  outline: 0;
  font-size: 100%;
  box-sizing: border-box;
  background: transparent;
  vertical-align: baseline;
  backface-visibility: hidden;
}

body {
  line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ul,
ol {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  background: transparent;
  vertical-align: baseline;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

input,
select,
textarea,
button,
.readonly-input {
  border: none;
  border-radius: 0;
  appearance: none;
  vertical-align: middle;
  -webkit-appearance: none;
  transition: all 0.5s ease;
  background-color: var(--bg-input);
  color: var(--text-main);
}

textarea {
  resize: none;
  overflow: auto;
}

input[type='text']::-ms-clear,
input[type='email']::-ms-clear,
input[type='number']::-ms-clear,
input[type='password']::-ms-clear {
  display: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

::selection {
  color: #ffffff;
  background: #000000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

html,
body,
input,
select,
textarea,
button {
  font-family: Poppins, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  transition: all 0.5s ease;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
}

/* Common */

.no-select {
  user-select: none;
  -webkit-user-select: none;
}

.full-height {
  height: 100vh;
  height: 100dvh;
  /* Modern: adapts to mobile browser chrome */
}

/* Auth pages: prevent scroll, lock to viewport */
.auth-viewport {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.pointer {
  cursor: pointer;
}

.clearfix:before,
.clearfix:after {
  height: 0;
  display: block;
  content: '\0020';
  visibility: hidden;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

.cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Flexbox */

.flex {
  display: flex;
}

.gap-10 {
  gap: 10px;
}

.flex-1 {
  flex: 1;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-v-center {
  align-items: center;
}

.flex-h-center {
  justify-content: center;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-start {
  align-items: flex-start;
  justify-content: flex-start;
}

.flex-space-between {
  justify-content: space-between;
}

.flex-space-around {
  justify-content: space-around;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-grow-2 {
  flex-grow: 2;
}

.flex-grow-3 {
  flex-grow: 3;
}

.flex-grow-4 {
  flex-grow: 4;
}

.flex-grow-5 {
  flex-grow: 5;
}

.flex-grow-6 {
  flex-grow: 6;
}

.flex-grow-7 {
  flex-grow: 7;
}

.flex-grow-8 {
  flex-grow: 8;
}

.flex-grow-9 {
  flex-grow: 9;
}

.flex-grow-10 {
  flex-grow: 10;
}

/* Site */

.site {
  background-color: var(--bg-body);
}

i,
button i,
a i {
  line-height: 0;
}

/* Box */

.box {
  width: 100%;
  position: relative;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-box);
  box-shadow:
    0 4px 6px -1px var(--shadow-color),
    0 2px 4px -1px var(--shadow-color);
  transition: all 0.3s ease;
}

.box:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.box .box-content-height {
  height: 400px;
  overflow: auto;
}

.box .box-content-height-nobutton {
  height: 494px;
  overflow: auto;
}

.box .box-content-height::-webkit-scrollbar,
.box .box-content-height-nobutton::-webkit-scrollbar {
  width: 0;
  display: none;
  background: transparent;
}

.box .box-title {
  font-size: 1.1em;
  font-weight: 600;
  overflow: hidden;
}

.box .box-title a,
.box .box-title .button {
  margin-right: 15px;
  display: inline-block;
}

.box .box-title ul li {
  display: inline-block;
}

.box .box-title ul li button {
  margin: 0 2px;
  cursor: pointer;
  color: #999999;
  font-weight: 600;
  font-size: 0.8em;
  padding: 5px 20px;
  border-radius: 25px;
  display: inline-block;
  text-decoration: none;
}

.box .box-title ul li button:hover {
  background-color: var(--bg-hover);
}

.box .box-title ul li button:active {
  color: #413fbc;
  background-color: var(--button-hover);
}

.box .box-title ul li button.active {
  color: #413fbc;
  pointer-events: none;
  background-color: var(--button-hover);
}

.box .box-icon {
  width: 20px;
}

.box-vertical-padding {
  padding-top: 15px;
  padding-bottom: 15px;
}

.box-horizontal-padding {
  padding-left: 15px;
  padding-right: 15px;
}

.box-left-padding {
  padding-left: 15px;
}

.box-right-padding {
  padding-right: 15px;
}

.box-text p {
  line-height: 160%;
  margin-bottom: 15px;
}

.box-dropdown {
  top: 50px;
  right: 20px;
  z-index: 9999999;
  min-width: 150px;
  position: absolute;
  background-color: var(--bg-box);
  border: 1px solid var(--border-color);
  box-shadow: 2px 2px 10px var(--shadow-color);
}

.box-dropdown li {
  display: block !important;
}

.box-dropdown button {
  cursor: pointer;
  margin: 0 !important;
  padding: 7px !important;
  min-width: 150px !important;
  text-align: left !important;
  color: var(--text-main) !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
}

.box-dropdown button i {
  font-size: 1.5em;
  color: #999999;
  margin-right: 10px;
  vertical-align: middle;
}

.box-dropdown button:hover,
.box-dropdown button:active {
  background-color: var(--bg-hover) !important;
}

/* Bank info */

.bank-info p {
  color: #666666;
  font-size: 0.9em;
  margin-top: 10px;
}

/* Tabs */

.tabs {
  margin-bottom: 20px;
}

.tabs button {
  width: 50%;
  margin: 0;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
}

.tabs button.active {
  color: #ffffff;
  pointer-events: none;
  background-color: #00b638;
}

.tabs button.passive {
  color: var(--text-muted);
  background-color: var(--button-hover);
}

.tabs button:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.tabs button:last-child {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.secondary-tabs {
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #dadada;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.secondary-tabs button {
  margin: 0;
  padding: 5px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.9em;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-input);
}

.secondary-tabs button.active {
  padding: 5px;
  border-radius: 5px;
  pointer-events: none;
  border: 1px solid var(--border-color);
  background-color: var(--bg-box);
}

/* Text */

.gray {
  color: #666666;
}

.green {
  color: #2e7d32;
}

.red {
  color: #d32f2f;
}

/* Top buttons */

.top-buttons {
  margin-bottom: 30px;
}

.top-buttons button {
  margin: 0 10px;
  padding: 15px 30px;
}

.top-buttons button:last-child {
  margin-right: 0;
}

/* Top search */

.top-search {
  border-radius: 25px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-box);
  color: var(--text-main);
}

.top-search i,
.top-search input {
  vertical-align: middle;
}

.top-search input {
  padding: 15px 0 15px 20px;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}

.top-search button {
  margin: 0;
  padding: 15px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
}

/* Data table */

.data-table {
  width: 100%;
  border-radius: 25px;
  border-style: hidden;
  background-color: var(--bg-box);
  box-shadow: 0 0 0 1px var(--table-border);
}

.data-table th {
  font-size: 0.9em;
  font-weight: 500;
  padding: 20px 10px;
  user-select: none;
  color: var(--text-main);
  -webkit-user-select: none;
  border-bottom: 3px solid var(--table-header-border);
}

.data-table td {
  font-size: 0.9em;
  padding: 10px 10px;
  position: relative;
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr {
  border-bottom: 1px solid var(--table-border);
}

.data-table tr:last-child {
  border-bottom: none;
}

.data-table .rank {
  width: 35px;
  height: 35px;
  color: var(--text-main);
  padding-top: 11px;
  font-weight: 500;
  text-align: center;
  border-radius: 50em;
  background-color: var(--bg-box);
}

.data-table .rank.accent {
  color: #362fba;
  background-color: var(--bg-hover);
}

.data-table .icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50em;
  display: inline-block;
  vertical-align: middle;
  background-color: #dadada;
}

.data-table .line-chart svg {
  width: 150px;
  height: 50px;
}

.data-table .operation {
  width: 30px;
  height: 30px;
  color: var(--text-heading);
  padding-top: 6px;
  font-weight: 500;
  user-select: none;
  text-align: center;
  border-radius: 50em;
  -webkit-user-select: none;
  background-color: var(--icon-bg);
}

.data-table .operation i {
  font-size: 1.3em;
}

.data-table .operation.green {
  color: #00972d;
  background-color: #e6f8eb;
}

.data-table .operation.red {
  color: #c50000;
  background-color: #ffeeee;
}

.data-table .status {
  color: #ffffff;
  user-select: none;
  padding: 8px 10px;
  text-align: center;
  border-radius: 25px;
  display: inline-block;
  -webkit-user-select: none;
}

.data-table .status.green {
  background-color: #00972d;
}

.data-table .status.red {
  background-color: #c50000;
}

.data-table .status.gray {
  background-color: #666666;
}

/* Buttons */

.button {
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  text-align: center;
  border-radius: 25px;
  display: inline-block;
  text-decoration: none;
  -webkit-user-select: none;
}

.button i {
  vertical-align: middle;
}

.button-purple {
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.button-purple:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

.button-white {
  color: var(--text-main);
  background-color: var(--bg-box);
}

.button-white:hover {
  background-color: var(--bg-hover);
}
 
.button-outline {
  color: #667eea;
  background: transparent;
  border: 1.5px solid #667eea;
  transition: all 0.2s ease;
}

.button-outline:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-1px);
}

.button-green {
  color: #ffffff;
  background: linear-gradient(135deg, #00b638 0%, #00972d 100%);
  box-shadow: 0 4px 12px rgba(0, 182, 56, 0.3);
}

.button-green:hover {
  background: linear-gradient(135deg, #00972d 0%, #007d24 100%);
  box-shadow: 0 6px 16px rgba(0, 182, 56, 0.4);
  transform: translateY(-1px);
}

.button-red {
  color: #ffffff;
  background-color: #da0000;
}

.button-red:hover {
  background-color: #c50000;
}

.button-small {
  font-size: 0.9em;
  padding: 10px 20px;
}

.button-medium {
  padding: 15px 20px;
}

.button-large {
  padding: 15px 50px;
}

.button-block {
  width: 100%;
  display: block;
}

.button-icon-right {
  margin-left: 10px;
  margin-right: -10px;
}

.button-icon-left {
  margin-right: 10px;
  margin-left: -10px;
}

/* Header */

header {
  margin-bottom: 40px;
}

header .header-left button {
  background: transparent;
}

header .header-left i {
  font-size: 2.2em;
  color: #666666;
  margin-right: 10px;
  vertical-align: middle;
}

header .header-left h1 {
  font-size: 1.5em;
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
}

header .header-right ul,
header .header-right ul li {
  position: relative;
  display: inline-block;
}

header .header-right .header-menu {
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid #f1f1f1;
}

header .header-right .header-menu a {
  margin: 0 2px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 25px;
  display: inline-block;
  text-decoration: none;
}

header .header-right .header-menu a:hover {
  background-color: var(--bg-hover);
}

header .header-right .header-menu a:active {
  color: var(--navbar-accent-light);
  background-color: var(--navbar-hover-bg);
}

header .header-right .header-menu a.active {
  color: var(--navbar-accent-light);
  pointer-events: none;
  background-color: var(--navbar-hover-bg);
}

header .header-right .header-icons {
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid var(--border-color);
}

header .header-right .header-icons a {
  margin: 0 8px;
  color: var(--text-muted);
}

header .header-right .header-icons a:hover {
  color: var(--text-heading);
}

header .header-right .header-icons i {
  font-size: 1.8em;
}

header .header-right .header-icons .notification-badge {
  top: -12px;
  right: -1px;
  width: 23px;
  height: 23px;
  color: #ffffff;
  font-size: 0.7em;
  padding-top: 6px;
  position: absolute;
  text-align: center;
  border-radius: 50em;
  display: inline-block;
  background-color: #da0000;
}

header .header-right .header-user li {
  vertical-align: middle;
}

header .header-right .header-user .profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-heading);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background-color 0.2s;
}

header .header-right .header-user .profile-link:hover {
  background-color: var(--bg-hover);
}

header .header-right .header-user .user-info-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

header .header-right .header-user .user-name {
  font-weight: 600;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 6px;
}

header .header-right .header-user .pro-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

header .header-right .header-user .user-email {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 2px;
}

header .header-right .header-user .profile-link i {
  font-size: 40px;
  color: #94a3b8;
}

header .header-right .header-user .signout {
  width: 35px;
  height: 35px;
  display: block;
  color: #e28580;
  padding-top: 5px;
  text-align: center;
  border-radius: 50em;
  background-color: #fceced;
}

header .header-right .header-user .signout i {
  font-size: 1.5em;
}

/* Navbar */

.navbar {
  width: 280px;
  min-width: 280px;
  overflow-x: hidden;
  padding: 0;
  /* Remove double padding, let navbar-inner handle it */
  background-color: transparent;
  border-right: none;
  /* Remove duplicate border, handled by navbar-inner */
  transition: width 0.3s ease, min-width 0.3s ease;
}

.navbar.collapsed {
  width: 80px;
  min-width: 80px;
}

.navbar .logo {
  margin-bottom: 30px;
}

/* Logo styles moved to Navbar.css */

.navbar h3 {
  color: #666666;
  font-weight: 600;
}



/* Content */

.content {
  padding: 20px;
  overflow: auto;
}

.content-30 {
  width: 30%;
}

.content-70 {
  width: 70%;
}

/* Market widget */

.market-row {
  font-size: 0.9em;
  padding: 10px 20px;
  border-bottom: 1px solid #ebebeb;
}

.market-row:first-child {
  padding-top: 0;
}

.market-row:last-child {
  border: none;
  padding-bottom: 0;
}

.market-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 50em;
  display: inline-block;
  background-color: #cccccc;
}

.market-row strong {
  display: block;
  margin-bottom: 10px;
}

.market-row span {
  font-size: 0.8em;
}

.market-row svg {
  width: 50px;
  height: 50px;
}

/* Trading history widget */

.trade-history-row {
  padding: 0 20px 0 20px;
}

.trade-history-row table {
  width: 100%;
}

.trade-history-row table th {
  font-size: 0.8em;
  color: #333333;
  font-weight: 400;
  padding-bottom: 20px;
}

.trade-history-row table td {
  font-size: 0.8em;
  padding-bottom: 20px;
}

/* Coin horizontal widget */

.widget-coin-horizontal .divider {
  width: 1px;
  height: 50px;
  background-color: #ebebeb;
}

.widget-coin-horizontal .icon {
  width: 50px;
  height: 50px;
  border-radius: 50em;
  display: inline-block;
  background-color: #cccccc;
}

.widget-coin-horizontal label {
  display: block;
  font-size: 0.8em;
  margin-bottom: 15px;
  user-select: none;
  -webkit-user-select: none;
}

.widget-coin-horizontal em {
  font-size: 0.8em;
  font-weight: 500;
  margin-left: 10px;
  display: inline-block;
}

.widget-coin-horizontal input {
  font-size: 1em;
}

/* Coin vertical widget */

.widget-coin-vertical .icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  border-radius: 50em;
  display: inline-block;
  background-color: #cccccc;
}

.widget-coin-vertical h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
}

.widget-coin-vertical strong {
  display: block;
  margin-bottom: 20px;
}

.widget-coin-vertical .coin-price {
  padding: 15px;
  color: #666666;
  font-weight: 500;
  border-radius: 20px;
  display: inline-block;
  background-color: #f9f9f9;
}

.widget-coin-vertical p {
  line-height: 160%;
}

.widget-coin-vertical button {
  padding: 0;
  margin-top: 10px;
  color: #3a38a7;
  font-weight: 600;
}

/* Profile widget */

.widget-profile .icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  border-radius: 50em;
  display: inline-block;
  background-color: #cccccc;
}

.widget-profile .edit {
  width: 50px;
  height: 50px;
  color: #ffffff;
  padding-top: 8px;
  position: absolute;
  text-align: center;
  border-radius: 50em;
  display: inline-block;
  margin: 110px 0 0 -50px;
  background-color: #3a38a7;
  border: 5px solid #ffffff;
}

.widget-profile h3 {
  margin: 10px 0;
  font-size: 1.5em;
  font-weight: 600;
}

.widget-profile strong {
  color: #666666;
  display: block;
  font-weight: 500;
  margin-bottom: 20px;
}

.widget-profile p {
  color: #666666;
  font-size: 0.9em;
  line-height: 160%;
  margin-bottom: 20px;
}

.widget-profile a {
  color: #3a38a7;
  font-weight: 500;
  font-size: 0.9em;
  margin-bottom: 20px;
  text-decoration: none;
  display: inline-block;
}

/* My assets widget */

.assets-row {
  font-size: 0.9em;
  padding: 10px 20px;
  border-bottom: 1px solid #ebebeb;
}

.assets-row:last-child {
  border: none;
}

.assets-row .icon {
  width: 50px;
  height: 50px;
  border-radius: 50em;
  display: inline-block;
  background-color: #cccccc;
}

.assets-row strong {
  display: block;
  font-size: 1em;
  margin-bottom: 10px;
}

.assets-row span {
  font-size: 0.8em;
}

.assets-row span em {
  margin-right: 5px;
  font-style: normal;
  display: inline-block;
}

.assets-row a {
  margin: 0 5px;
  color: #666666;
  display: inline-block;
}

.assets-row .bar-chart svg {
  width: 40px;
  height: 40px;
}

.assets-row .line-chart svg {
  width: 150px;
  height: 50px;
}

.assets-row .standard-width {
  width: 150px;
  overflow: hidden;
  text-align: center;
}

/* Recent activity widget */

.activity-row {
  margin: 0 10px;
  font-size: 0.9em;
  padding: 10px 10px;
  border-radius: 35px;
  border: 1px solid #ffffff;
}

.activity-row div {
  width: 25%;
}

.activity-row:hover {
  border: 1px solid #ebebeb;
}

.activity-row .icon {
  width: 30px;
  height: 30px;
  padding-top: 5px;
  margin-right: 10px;
  text-align: center;
  border-radius: 50em;
  display: inline-block;
  vertical-align: middle;
}

.activity-row i {
  font-size: 1.5em;
  color: #ffffff;
}

.activity-row .icon.red {
  background-color: #ff514e;
}

.activity-row .icon.green {
  background-color: #00b638;
}

/* Limits widget */

.limits-row,
.limits-header-row {
  margin: 0 10px;
  font-size: 0.9em;
  padding: 10px 10px;
  border-radius: 35px;
  border: 1px solid #ffffff;
}

.limits-row div,
.limits-header-row div {
  width: 25%;
}

.limits-header-row {
  font-size: 0.8em;
}

.limits-row:hover {
  border: 1px solid #ebebeb;
}

.limits-row .icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50em;
  display: inline-block;
  vertical-align: middle;
  background-color: #cccccc;
}

/* Orders widget */

.orders-row {
  padding: 0 20px 0 20px;
}

.orders-row table {
  width: 100%;
}

.orders-row table th {
  font-size: 0.8em;
  color: #333333;
  font-weight: 400;
  padding-bottom: 10px;
}

.orders-row table td {
  padding: 10px;
  font-size: 0.8em;
}

.orders-row .white {
  background-color: #ffffff;
}

.orders-row .green {
  color: #ffffff;
  background-color: #00972d;
}

.orders-row .red {
  color: #ffffff;
  background-color: #da0000;
}

/* Buy sell widget */

.buy-sell-line {
  padding: 10px;
  font-size: 0.9em;
  border-left: 1px solid #dadada;
  border-right: 1px solid #dadada;
  border-bottom: 1px solid #dadada;
}

.buy-sell-line i {
  cursor: help;
  font-size: 0.8em;
  color: #999999;
  margin-left: 5px;
  vertical-align: middle;
}

.buy-sell-line input {
  width: 60px;
  text-align: right;
  margin-right: 5px;
}

.buy-sell-line input:hover {
  background-color: #f1f1f1;
}

.buy-sell-percentage {
  padding: 10px;
  font-size: 0.8em;
  background-color: #f5f5f5;
  border-left: 1px solid #dadada;
  border-right: 1px solid #dadada;
  border-bottom: 1px solid #dadada;
}

/* 404 */

.logo-404 {
  width: 150px;
  height: auto;
  color: var(--text-heading);
}

.title-404 {
  font-size: 2em;
  font-weight: 600;
  margin: 40px 0 10px 0;
}

.paragraph-404 {
  font-size: 1em;
  margin-bottom: 40px;
}

/* Forms */

.form-logo img {
  width: 150px;
  margin-bottom: 30px;
}

.form-title {
  font-weight: 500;
  font-size: 1.5em;
}

.form-desc {
  line-height: 160%;
  margin: 20px 0 30px 0;
}

.form .form-elements .form-line {
  position: relative;
  margin-bottom: 25px;
}

.form .form-elements .form-line:last-child {
  margin-bottom: 0;
}

.form .form-elements .form-line a {
  color: #667eea;
}

.form .form-elements .form-line .full-width {
  width: 100%;
  padding: 0 5px;
  margin-bottom: 25px;
  position: relative;
}

.form .form-elements .form-line .half-width {
  width: 50%;
  float: left;
  padding: 0 5px;
  position: relative;
}

.form .form-elements .form-line .three-width {
  width: 33.33%;
  float: left;
  padding: 0 5px;
  position: relative;
}

.form .form-elements .form-line label {
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.form .form-elements .form-line input[type='text'],
.form .form-elements .form-line input[type='password'],
.form .form-elements .form-line input[type='email'],
.form .form-elements .form-line input[type='number'],
.form .form-elements .form-line .readonly-input,
.form .form-elements .form-line textarea,
.form .form-elements .form-line select {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border-radius: 5px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-main);
}

.form .form-elements .form-line input[type='text']:focus,
.form .form-elements .form-line input[type='password']:focus,
.form .form-elements .form-line input[type='email']:focus,
.form .form-elements .form-line input[type='number']:focus,
.form .form-elements .form-line .readonly-input:focus,
.form .form-elements .form-line textarea:focus,
.form .form-elements .form-line select:focus {
  border: 1px solid var(--border-color);
}

.form .form-elements .form-line .readonly-input {
  cursor: default;
  user-select: none;
}


.form .form-elements .form-line button {
  font-size: 1.1em;
}

.form .form-elements .form-line input.error {
  border-bottom: 1px solid red;
}

.form .form-elements .form-line input.error:focus {
  border-bottom: 1px solid red;
}

.form .form-elements .form-line .error-message {
  color: red;
  display: block;
  margin-top: 10px;
  font-size: 0.8em;
  text-align: left;
  line-height: 150%;
}

.form .form-elements .form-line .buttons {
  margin: 0;
}

.form .form-elements .form-line .buttons button {
  width: 100%;
  font-size: 1.2em;
}

.form .form-elements .form-line .links {
  color: #dadada;
  text-align: center;
  padding-top: 20px;
}

.form .form-elements .form-line .links a {
  margin: 0 10px;
  display: inline-block;
  text-decoration: underline;
}

/* Upload file */

.upload input[type='file'] {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  display: inline-block;
}

.upload .label {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

/* Checkbox and radios */

.radio-container,
.checkbox-container {
  position: relative;
  padding-left: 35px;
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: normal !important;
  line-height: 160%;
}

.radio-container input,
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-container .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eeeeee;
  border-radius: 50%;
}

.checkbox-container .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ffffff;
  border-radius: 5px;
  border: 1px solid #dadada;
}

.radio-container:hover input~.checkmark,
.checkbox-container:hover input~.checkmark {
  background-color: #f5f5f5;
}

.radio-container input:checked~.checkmark,
.checkbox-container input:checked~.checkmark {
  background-color: #3a38a7;
  border: 1px solid #3a38a7;
}

.radio-container .checkmark:after,
.checkbox-container .checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.radio-container input:checked~.checkmark:after,
.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.radio-container .checkmark:after,
.checkbox-container .checkmark:after {
  top: -2px;
  left: 4px;
  position: absolute;
  font-family: 'Material Icons';
  content: '\2713';
  color: #ffffff;
}

/* Login - Register */

.login {
  width: 600px;
  margin: 10px;
}

.login .box {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  header .header-right .header-menu {
    display: none;
  }

  .navbar ul li a {
    font-size: 0.95em;
  }

  .navbar ul li a i {
    margin-right: 10px;
  }
}

@media (max-width: 1020px) {

  html,
  body {
    font-size: 0.9em;
  }

  header {
    margin: 10px 0 20px 0;
  }

  header .header-right .header-user .signout i {
    font-size: 1.8em;
  }

  .responsive-hide {
    display: none !important;
  }

  .assets-row .icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 10px;
  }

  .content .content-30,
  .content .content-70 {
    width: 100%;
  }

  .box .box-content-height,
  .box .box-content-height-nobutton {
    height: unset;
  }

  .box-right-padding {
    padding-right: 0;
  }

  .flex-destroy {
    display: block;
  }

  .data-table {
    border-radius: 10px;
  }

  .data-table th {
    padding: 10px 5px;
  }

  .data-table td {
    padding: 5px;
  }

  .top-buttons {
    text-align: center;
  }

  .top-buttons .button {
    margin-top: 25px;
    padding: 10px 25px;
  }

  .top-search input {
    width: 80%;
  }

  .top-search button {
    width: 20%;
    text-align: right;
  }

  /* Header: force no overflow and side-by-side icons */
  header {
    padding: 8px 12px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .header-left {
    flex: 1;
    min-width: 0;
    /* Allow shrinking */
    overflow: hidden;
    margin-right: 8px;
    display: flex;
    align-items: center;
  }

  .header-left h1 {
    font-size: 18px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
  }

  header .header-right {
    flex-shrink: 0;
    max-width: unset;
    display: flex;
    align-items: center;
  }

  header .header-right .flex {
    gap: 2px;
    /* Close the gap */
    flex-wrap: nowrap !important;
  }

  header .header-right .header-icons {
    margin-right: 0px !important;
    padding-right: 4px !important;
    border-right: 1px solid var(--border-color);
  }

  header .header-right .header-icons a {
    margin: 0 !important;
    min-width: 38px !important;
    /* Slightly narrower to save space */
  }

  /* Header: hide user text on mobile, keep icon */
  header .header-right .header-user .user-info-text {
    display: none !important;
  }

  header .header-right .header-user .profile-link {
    padding: 0;
    min-width: 38px !important;
    min-height: 44px;
    justify-content: center;
  }

  header .header-right .header-user .profile-link i {
    font-size: 28px !important;
  }

  /* Header: hide XP badge on mobile */
  header .header-right .header-icons li[style*="marginRight"] {
    display: none;
  }

  /* Header: enforce touch targets on icons */
  header .header-right .header-icons a {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  header .header-right .header-user li a {
    min-width: 36px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Header: reduce icon size */
  header .header-right .header-icons i {
    font-size: 22px;
  }

  /* Notification badge: reposition */
  header .header-right .header-icons .notification-badge {
    top: -4px;
    right: -4px;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
  }
}

@media (max-width: 550px) {
  .header .header-left h1 {
    display: none;
  }

  .box-horizontal-padding {
    padding-left: 10px;
    padding-right: 10px;
  }

  .responsive-hide2 {
    display: none !important;
  }

  .top-search input,
  .top-search button {
    padding: 10px 15px;
  }

  .box-dropdown {
    top: 40px;
    right: 10px;
  }
}

/* Mobile Menu Styles */
.mobile-only-block {
  display: none;
}

.responsive-hide-inline {
  display: inline-block;
}

@media screen and (max-width: 768px) {
  .mobile-only-block {
    display: block;
  }

  .responsive-hide-inline {
    display: none;
  }

  /* Navbar Mobile Overlay */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 999;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .navbar.mobile-visible {
    transform: translateX(0);
    display: block !important;
    /* Override responsive-hide if needed */
  }

  .navbar.responsive-hide {
    display: block;
    /* We control visibility via transform, but need display block to render */
  }

  /* Ensure navbar content is scrollable if tall */
  .navbar-inner {
    height: 100%;
    overflow-y: auto;
  }

  /* Login/Signup Responsiveness */
  .login {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
  }

  .form-line .three-width {
    width: 100%;
    margin-bottom: 10px;
  }

  .form-line .three-width:last-child {
    margin-bottom: 0;
  }

  /* Adjust form inputs on mobile */
  .form-elements {
    padding: 0 10px;
  }
}