body {
  background: var(--bg-main);
  color: var(--text-main);
  transition: background 0.3s, color 0.3s;
}

body {
    font-family: 'Inter' !important;
}

body h1 {
    font-family: 'Inter' !important;
}

/* Default = light mode */
.logo {
    content: url('/img/common/logo.png');
}

/* Dark mode */
body.dark-mode .logo {
    content: url('/img/common/logo-dark.png');
}

.exchange-header {
    background-color: var(--bg-main, #ffffff);
    padding: 14px 24px;

    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Logo */
.exchange-header .logo {
    height: 55px;
    position: relative;
}

/* Logo */
.exchange-header .theme-icon {
    height: 43px;
}

/* Menu icon */
.menu-icon {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main, #111);
}

/* Theme toggle */
.theme-toggle {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .exchange-header .logo {
        height: 35px;
    }

    .exchange-header .theme-icon {
        height: 35px;
    }
}

/* Dark mode */
body.dark-mode .exchange-header {
    background-color: var(--bg-main, #161b22);
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

body.dark-mode .menu-icon {
    color: #f1f1f1;
}

.primary-color {
    color: #326E5F;
}

.primary-background {
    background-color: #326E5F;
    color: #fff;
}

.primary-color:hover {
    color: #326E5F;
}

.secondary-color{
    color: #141414 !important;
}

body.dark-mode .secondary-color{
    color: #fff !important;
}

.primary-btn {
    padding: 9px;

    background-color: #326E5F;
    color: #ffffff;

    border: none;
    border-radius: 8px;

    font-size: 18px;
    font-weight: 400;

    cursor: pointer;
    letter-spacing: 0.18px;
    text-align: center;
    text-decoration: none !important;
}

.primary-btn:hover,
.primary-btn:focus,
.primary-btn:active,
.primary-btn:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;   /* add this */
    text-decoration: none !important;
    color: #fff;
}

.primary-btn a,
.primary-btn a:hover,
.primary-btn a:focus,
.primary-btn a:active,
.primary-btn a:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;   /* add this */
    text-decoration: none !important;
    color: #fff;
}

.primary-card {
    width: 740px;
    max-width: 100%;

    background: #ffffff;
    border-radius: 56px;

    padding: 32px 40px;
    box-shadow: 0 3px 24px rgba(0,0,0,0.3);
    margin-top: 80px;
    margin-bottom: 80px;
}

.primary-card.width-80 {
    width: 80%;
}

.primary-card.width-100 {
    width: 100%;
}

@media (max-width: 576px) {
    .primary-card.width-80 , .primary-card.width-100 {
        width: 100%;
    }

    .primary-card {
        border-radius: 40px;
        padding: 32px 10px;
    }

    .primary-btn {
        font-size: 16px;
    }
}

.primary-card h1 {
    color: #141414;
    font-size: 28px;
    text-align: left;
    font-weight: 700;
}

.primary-card h2 {
    color: #141414;
    font-size: 24px;
    text-align: left;
    font-weight: 700;
}

.primary-card p {
    color: #141414 !important;
    font-size: 18px !important;
    text-align: left;
    font-weight: 400 !important;
    letter-spacing: 0.18px;
}


.header-40 {
    font-weight: 300 !important;
    font-size: 40px !important;
    line-height: 100%;
    letter-spacing: 0.18px;
}

.content-24 {
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.18px;
}

.content-24 p, .content-24 ul {
    padding: 10px 0px;
}

.content-24 .strong {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.18px;
}

.content-18 {
    font-size: 18px;
    letter-spacing: 0.18px;
}

.header-32 {
    font-weight: 900 !important;
    font-size: 32px !important;
    line-height: 100%;
    letter-spacing: 0.18px;
    margin: 25px 0px;
}

@media (max-width: 576px) {
    .primary-card h1,.primary-card h2 {
        font-size: 18px;
    }

    .primary-card p {
        font-size: 16px !important;
    }

    .header-40 {
        font-size: 24px !important;
    }

    .content-24 {
        font-size: 16px  !important;
    }

    .content-24 .strong {
        font-size: 16px  !important;
    }

    .content-18 {
        font-size: 16px;
    }

    .header-32 {
        font-size: 18px  !important;

    }
}

body.dark-mode .primary-card {
    background: #141414;
    color: #fff;
}

body.dark-mode .primary-card h1, body.dark-mode .primary-card h2, body.dark-mode .primary-card p {
    color: #fff !important;
}

body.dark-mode .text-dark {
    color: #f2f2f2b0 !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    height: 60px;
    padding: 0 14px;
    font-size: 24px;
    border-radius: 8px;
    border: 1px solid #141414;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #141414;
    box-shadow: none;
    font-weight: 400;
    letter-spacing: 0.18px;
}

.form-input::placeholder {
    color: #141414;
}

.form-input:focus {
    border-color: #141414 !important;
    box-shadow: none;
    color: #141414 !important;
}

.form-input::placeholder {
    color: #141414;
    opacity: 0.7;
    font-size: 24px;
    letter-spacing: 0.18px;
}

/* For older browsers (safe to add) */
.form-input::-webkit-input-placeholder {
    color: #141414;
}

.form-input:-ms-input-placeholder {
    color: #141414;
}

.form-input::-ms-input-placeholder {
    color: #141414;
}

.form-input:disabled,
.form-input[disabled] {
    background-color: transparent !important;
    opacity: 1;
    cursor: not-allowed;
}

.control-label {
    font-family: Inter;
    /*font-weight: 700;*/
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0.18px;
    color: #141414;
    padding: 5px;
}

@media (max-width: 576px) {
    .form-input {
        height: 50px;
        border-radius: 8px;
        font-size: 18px;
    }
    .form-input::placeholder {
        font-size: 18px;
    }
    .form-input::-webkit-input-placeholder {
        color: #141414;
    }
    .control-label {
        font-size: 18px;
    }
}

body.dark-mode .form-input {
    background-color: #141414;
    border: 1px solid #fff;
    color: #fff;
}

body.dark-mode .form-input:focus {
    background-color: #141414;
    border: 1px solid #fff !important;
    color: #fff !important;
}

body.dark-mode .form-input::placeholder {
    color: #fff;
}

body.dark-mode .control-label {
    color: #fff;
}

.arrow-path {
    stroke: black; /* light mode */
}

body.dark-mode .arrow-path {
    stroke: white; /* dark mode */
}

.input-icon-wrapper {
    position: relative;
    height: 45px;
    background-color: white;
    padding-right: 15px;
}

.input-icon-wrapper .form-input {
    padding-right: 42px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    all: unset;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #141414;
    line-height: 1;
}

body.dark-mode .password-toggle {
    color: #fff;
}

/*.icon-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn img {
    width: 22px;
    height: 22px;
}

.icon-btn i {
    font-size: 20px;
    color: #000000;
    position: relative;
    top: 5px;
    cursor: pointer;
}*/

.btn-signin {
    border: 1px solid #000000;
    background: #ffffff;
    color: #000;
}

.btn-signup {
    background: #2f6f5e;            
    color: #fff;
    border: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* reduce space */
}

/*.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

.btn-signin,
.btn-signup {
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.18px;
    text-align: center;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    white-space: nowrap;
    border-radius: 50px;          
}

.btn-signup:hover,
.btn-signup:focus,
.btn-signup:active {
    color: #ffffff;
    border-color: inherit;
    box-shadow: none;
    text-decoration: none;
}

.btn-signin:hover,
.btn-signin:focus,
.btn-signin:active {
    color: #000000;
    border-color: inherit;
    box-shadow: none;
    text-decoration: none;
}

.right-menu .btn-signin {
    border: 1.5px solid #2f6f5e;
}

.right-menu .btn-signup {
    background: #000000;            
    color: #fff;
}

.right-menu {
    position: fixed;
    top: 0;
    right: -50%;
    transition: right 0.3s ease;

    width: 50%;
    /*height: 70%;               */
    max-width: 100%;             

    background-color: #326E5F;

    padding-top: 39px;          /* space from edges */
    z-index: 2000;
}

.right-menu.open {
    right: 0;
}

.right-menu-item .list-unstyled,.right-menu-item .unauth-side-menu-actions {
    margin-left: 13vw;
}

.right-menu ul {
    list-style: none;
    margin: 0;
}

.right-menu ul li {
    margin-bottom: 24px;   /* spacing between items */
}

.right-menu ul li a {
    display: block;

    font-family: 'Inter', sans-serif;
    font-weight: 900;       /* Black */
    font-size: 40px;
    line-height: 1;         /* 100% */
    letter-spacing: 0.18px;

    color: #ffffff;
    text-decoration: none;
}

 .right-menu ul {
    padding-top: 70px;
}

@media (max-width: 576px) {

    .right-menu {
        width: 100%;
        height: 100%;
        right: -100%;
        padding: 48px 24px;
    }

    .right-menu ul li {
        margin-bottom: 20px;
    }

    .side-menu-actions {
        /*display: flex;*/
        gap: 30px;
    }

    .right-menu .btn-signin,
    .right-menu .btn-signup {
        padding: 8px 18px;
    }

    .right-menu-item {
        padding-left: 20px;
    }

    .right-menu-item .list-unstyled {
        margin-left: 0;
    }
}

.menu-close {
    position: absolute;
    top: 24px;
    right: 24px;

    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 576px) {
    .menu-close {
        top: 20px;
        right: 20px;
    }
}


/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1040;
}

.menu-overlay.show {
    display: block;
}

/* Navbar buttons */
.navbar .btn {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    padding: 0 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    /*gap: 30px;
    padding-right: 16px;*/
}

.navbar {
    display: flex;
    align-items: center;
    padding-left: 200px;
    padding-right: 200px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .navbar {
        padding: 12px 40px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .header-actions a {
        display: none;
    }
}

/*footer styling*/

.site-footer {
    width: 100%;
    min-height: 109px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: #e5e5e5;
    padding: 5px 20px;
}

.site-footer .logo {
    height: 33px;          /* matches screenshot */
    margin-bottom: 8px;
}

.footer-text {
    max-width: 730px;
    text-align: center;

    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    color: #000000;
    margin: 0;
}

body.dark-mode .site-footer {
    background-color: #000000;
}

body.dark-mode .footer-text {
    color: #ffffff;
}

@media (max-width: 576px) {
    .site-footer {
        padding: 5px 16px;
    }

    .site-footer .logo {
        height: 35px;
    }
}

/* Exchange card */

.exchange-card {
    width: 740px;
    max-width: 100%;

    background: #ffffff;
    border-radius: 56px;

    padding: 32px 40px;
    box-shadow: 0 3px 24px rgba(0,0,0,0.3);
}

body.dark-mode .exchange-card {
    background: #141414;
}

.exchange-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.18px;
    text-transform: uppercase;

    color: #141414;
    margin-bottom: 12px;
}

body.dark-mode .exchange-label {
    color: #fff;
}

.exchange-input {
    width: 100%;
    max-width: 630px;
    height: 50px;

    border: 1.5px solid #141414;
    border-radius: 6px;

    padding: 0 16px;
    font-size: 16px;
}

.exchange-swap {
    width: 31px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 5px auto;
    font-size: 25px;
    cursor: pointer !important;
}

.exchange-btn {
    width: 180px;
    height: 55px;

    background-color: #326E5F;
    color: #ffffff;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.exchange-card {
  position: relative;
}

.exchange-swap {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .exchange-card {
        padding: 24px;
        border-radius: 40px;
    }

    .exchange-label {
        font-size: 18px;
    }

    .exchange-input {
        height: 52px;
    }

    .exchange-btn {
        width: 100%;
    }

    .exchange-swap {
        font-size: 20px;
    }
}

.hero-text-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* left aligned like Figma */
}

.hero-text {
    width: 559px;
    font-family: Inter, sans-serif;
    font-size: 70px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.18px;
    text-transform: uppercase;
    color: #000;
}

body.dark-mode .hero-text {
    color: #fff;
}

/* Input group container */
.exchange-group .input-group {
    border: 1.5px solid #141414;
    border-radius: 8px;
    overflow: visible;
    background: #fff;
}

body.dark-mode .exchange-group .input-group,body.dark-mode .exchange-group .input-group:focus {
    border: 1.5px solid #fff;
}

/* Amount input */
.exchange-group .form-control {
    border: none !important;
    box-shadow: none !important;
    font-size: 24px;
    height: 60px;
    padding-left: 14px;
    font-weight: 400;
    letter-spacing: 0.18px;
    color: #141414;
}

/* Currency button */
.exchange-group .input-group-append .btn {
    background: transparent !important;
    color: #141414 !important;
    border: none !important;
    font-size: 24px !important;
    font-weight: 400;
    padding: 20px 16px;
    line-height: 100%;
    letter-spacing: 0.18px;
}

/* Remove default dropdown arrow spacing issue */
.exchange-group .dropdown-toggle::after {
    margin-left: 8px;
}

/* Focus state */
.exchange-group .input-group:focus-within {
    border-color: #000;
}

/* Remove blue bg from old class */
.bg-royal-blue {
    background: transparent !important;
}

.exchange-group .dropdown-menu {
    z-index: 1050;
}

/* Remove blue focus ring & shadow on dropdown button */
.exchange-group .dropdown-toggle:focus,
.exchange-group .dropdown-toggle:active,
.exchange-group .dropdown-toggle:focus:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Optional: remove border color change */
.exchange-group .dropdown-toggle {
    border: none;
}

/* Input: round only left side */
.exchange-group .form-control {
    border-radius: 8px 0 0 8px;
    border-right: 0;
}

/* Dropdown button: round only right side */
.exchange-group .input-group-append .btn {
    border-radius: 0 8px 8px 0;
    border-left: 0;
}

/* Keep disabled logic, change appearance */
.exchange-group .form-control:disabled,
.exchange-group .form-control[disabled] {
    background-color: #ffffff !important;
    color: #000000;
    opacity: 1;
    cursor: not-allowed;
}

body.dark-mode .exchange-group .form-control {
    background-color: #141414 !important;
    color: #fff;
}

body.dark-mode .exchange-group .input-group-append .btn {
    background-color: #141414 !important;
    color: #fff !important;
}

body.dark-mode .exchange-group .input-group-append {
    background-color: #141414 !important;
    border-radius: 0px 8px 8px 0px;
}

@media (max-width: 576px) {
    .exchange-group .form-control {
        height: 50px;
        font-size: 18px;
    }
    .exchange-label {
        font-size: 18px;
    }

    .hero-text {
        font-size: 40px;
        margin: auto;
    }

    .exchange-group .input-group-append .btn{
        font-size: 18px !important;
    }
}

/* ========== AUTH CARD ========== */

/* Subtitle */
.auth-card p {
    color: #141414;
    font-size: 12px;
    font-weight: 400;
}

.verify_level .level_badge {
    padding: 25px 0px 0px 0px !important;
}

body.dark-mode .verify_level h5 {
    color: #fff;
}

body.dark-mode .verify_level .level_features ul li span {
    color: #fff;
}

.table thead th {
    font-family: 'Inter', sans-serif;
    font-weight: 900;          /* Black */
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.18px;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #000000;
}

.table .strong-18 {
    font-weight: 900;          /* Black */
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.18px;
    /*text-align: center;*/
    vertical-align: middle;
    text-transform: uppercase;
    color: #000000;
}

.table tbody td {
    font-family: 'Inter', sans-serif;
    font-weight: 300;          /* Black */
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.18px;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #000000;
}

.new-table tbody td {
    font-weight: 300;          /* Black */
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.18px;
    text-transform: uppercase;
    color: #000000;
    padding: 5px 0px;
}

.table {
    border: 1.5px solid #BBBBBB !important;
}

.table-mobile tbody {
    background-color: #fff;
}

body.dark-mode .table-mobile tbody {
    background-color: #000;
}

.table th,
.table td {
    border: 1.5px solid #BBBBBB !important;
}

.mt-80{
    margin-top: 80px;
}

body.dark-mode .table {
    border: 1.5px solid #fff;
}

body.dark-mode .table th,
body.dark-mode .table td {
    border: 1.5px solid #fff !important;
    color: #fff;
}

body.dark-mode .card {
    background-color: #141414 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .mobile-center{
        text-align: center;
    }

    .table thead th {
        text-align: left;
    }
}

/* Mobile table layout */
@media (max-width: 768px) {
    .table-mobile {
        display: flex;
    }

    .table-mobile tbody {
        display: flex;
    }

    .table-mobile tr {
        display: inline-grid;
    }

    .table-mobile thead tr {
        width: 80vw;
    }

    .table-mobile {
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-mobile th,
    .table-mobile td {
        white-space: nowrap;
    }

    .table {
         border: none !important; 
    }

    .table-bordered {
         border: none !important; 
    }

    .table thead th {
        font-size: 16px;
    }

    .table tbody td {
        font-size: 16px;
    }
}

.reveal:focus {
     outline: none !important; 
    /* outline: 5px auto -webkit-focus-ring-color; */
}

.icon {
    filter: brightness(0); /* turns white to black */
}

body.dark-mode .icon { 
    filter: brightness(0) invert(1);   /* white in dark mode */
}


.text-uppercase {
    text-transform: uppercase;
}

.close,
.close:hover,
.close:focus,
.close:active,
.close:focus-visible {
    opacity: 1;
}

.pbr li.active {
    color: #326E5F;
}

.pbr li.active:before, .pbr li.complete:after {
    background-color: #326E5F !important;
    border: 1px solid #326E5F !important;
}

.card {
    border: none;
}

.card-body{
    padding : 0px;
}

@media (max-width: 767px) {
    .mobile-w-100-btn {
        width: 100%;
    }
}

.pbr li {
    font-size: 16px;
}

@media (max-width: 767px) {
    .pbr li {
        font-size: 12px;
    }
}

.btn-secondary {
    padding: 9px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 0.18px;
    text-align: center;
    text-decoration: none !important;
    color: white !important;
    border: none !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;   /* add this */
    text-decoration: none !important;
    color: #fff;
    background-color: #6c757d !important;
}

.btn-secondary a,
.btn-secondary a:hover,
.btn-secondary a:focus,
.btn-secondary a:active,
.btn-secondary a:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;   /* add this */
    text-decoration: none !important;
    color: #fff;
    background-color: #6c757d !important;
}

@media (max-width: 576px) {
    .btn-secondary {
        font-size: 16px !important;
    }
}

body.dark-mode .bg-danger-alt {
    background-color: #f90505 !important;
    color: #fff;
}

body.dark-mode .bg-light-blue {
    background-color: #6edee7 !important;
    color: #fff;
}

.page-item.active .page-link {
    background-color: #326E5F;
    border-color: #326E5F;
}

.page-link {
    color: #326E5F;
}

.page-link:hover {
    background-color: #326E5F;
    color: #fff;
}

.pagination a:focus {
    outline: none;
    box-shadow: 0 0 0 1px #326E5F55;
}

.text-secondary {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-content {
  background: #1e1e1e;
  color: #e6e6e6;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Header + Footer */
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  border-color: #2c2c2c;
}

/* Title */
body.dark-mode .modal-title {
  color: #ffffff;
}

/* Close button */
body.dark-mode .modal-header .close {
  color: #aaaaaa;
  text-shadow: none;
  opacity: 1;
}
body.dark-mode .modal-header .close:hover {
  color: #ffffff;
}

/* Body text */
body.dark-mode .modal-body {
  color: #cfcfcf;
}

body.dark-mode .info-color {
    color: #A0A0A0;
}

@media (min-width: 1280px)
{
    .exchange-panel .container {
        max-width: 1520px;
    }
}
