@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #00e8ff;
    --secondary-color: #0099aa;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252d3d;
    --bg-hover: #2d3a4d;

    --text-primary: #ffffff;
    --text-secondary: #b4bcc4;
    --text-muted: #8a919a;

    --border-color: #3a4556;
    --border-light: #2a3240;

    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-dark: linear-gradient(135deg, #1a1f2e 0%, #252d3d 100%);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Scrollbar styling - Hidden */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

p, label, small {
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Navbar */
.navbar-modern {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

/* Custom navbar toggler icon for dark theme */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2859, 130, 246, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%286, 182, 212, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-wallet {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 100%;
}

.btn-wallet:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

/* Forms */
.form-control, .form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

.form-control-modern {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
}

.form-select-modern {
    background: var(--bg-tertiary) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300d4ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    border-color: var(--border-color);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-range {
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
}

.form-check-input {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.card-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* Layout */
.main-container {
    display: flex;
    min-height: 100vh;

    gap: 0;
}

.sidebar-left {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 1.5rem;
    max-height: calc(100vh - 60px);
}

.sidebar-left.collapsed {
    width: 60px;
    padding: 1rem 0.5rem;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.sidebar-menu, .sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-right {
    width: 300px;
    background: unset!important;
    border-left: none;
    overflow-y: auto;
    padding: 1.5rem 0 1.5rem 0;
    padding-right: 0px!important;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* Ensure order-book container fills available space */
.order-book {
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

/* Token Header */
.token-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* Sticky positioning for desktop */
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Add shadow and darker background when scrolled */
.token-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #000000;
    border-color: var(--primary-color);
}

/* Ensure mobile version isn't sticky */
@media (max-width: 1199px) {
    .token-header {
        position: static;
    }
}

.token-pair {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Token Range Indicator */
.token-range-indicator {
    padding: 1rem;
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.range-labels {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.range-min, .range-max {
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.range-bar-container {
    position: relative;
    padding: 12px 0;
}

.range-bar {
    height: 24px;
    background: linear-gradient(90deg,
    #ef4444 0%,
    #ef4444 25%,     /* Red */
    #f59e0b 50%,     /* Yellow/Orange */
    #10b981 75%,
        #10b981 100% );     /* Green */
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-arrow {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.price-arrow:hover {
    color: var(--primary-light);
    filter: drop-shadow(0 0 4px var(--primary-color));
}

.price-triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.range-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-light);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Responsive adjustments - Mobile until 1200px */
@media (max-width: 1199px) {
    .token-range-indicator {
        padding: 0.75rem;
    }

    .range-bar {
        height: 20px;
    }

    .range-stats {
        gap: 0.5rem;
    }

    .stat-item {
        font-size: 0.75rem;
    }
}

/* Order Book */
.order-book {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.order-section h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Sell orders - Light red background */
#sellorder {
    background-color: rgba(239, 68, 68, 0.08) !important;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

/* Buy orders - Light green background */
#buyorder {
    background-color: rgba(16, 185, 129, 0.08) !important;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.buyleft {
  padding-left: 25px;
  padding-top: 3px;
  text-align: left;
  color: #9e9ea1 !important;
}
.buyright {
  padding-right: 25px;
  padding-top: 3px;
  text-align: right;
  color: #9e9ea1 !important;
}

/* Wallet Info */
.wallet-balance, .token-info {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

.wallet-balance:first-child, .token-info:first-child {
    border-top: none;
    margin-top: 0;
}

/* Accordion */
.accordion-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-hover);
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
    border-color: var(--primary-color);
}

.accordion-collapse {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.modal-modern .modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.modal-modern .modal-body {
    background: var(--bg-secondary);
}

.modal-modern .btn-close {
    filter: invert(1) brightness(200%);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Tables */
.table {
    color: var(--text-secondary);
}

.table thead {
    border-bottom: 2px solid var(--border-color);
}

.table th {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    border-bottom: 1px solid var(--border-light);
}

.table-modern tbody tr:hover {
    background: var(--bg-hover);
}

/* Badges */
.badge {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
    color: var(--bg-primary);
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 0.75rem 1rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #86efac;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold {
    font-weight: 700;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Input Groups */
.input-group-text {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.input-group-prepend .input-group-text,
.input-group-append .input-group-text {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

/* Mobile Responsiveness - Apply until 1200px width */
@media (max-width: 1199px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar-left, .sidebar-right {
        display: none;
    }

    .main-content {
        padding: 1rem;
        max-height: none;
        overflow-y: auto;
    }

    .navbar-modern {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .card-body {
        padding: 1rem;
    }

    .form-control, .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.5rem;
    }

    .btn-group {
        width: 100%;
    }

    .btn-group .btn {
        flex: 1;
    }

    .row {
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }

    .row > [class*='col-'] {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .btn:not(.navbar-toggler) {
    animation: fadeIn 0.3s ease;
}

/* Grid and Utility Classes */
.d-flex {
    display: flex;
}

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

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

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

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

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

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.ms-1 {
    margin-left: 0.25rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.ms-3 {
    margin-left: 1rem;
}

.ms-auto {
    margin-left: auto;
}

.me-auto {
    margin-right: auto;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-lg-block {
    display: none;
}

.d-lg-flex {
    display: none;
}

.d-lg-none {
    display: block;
}

/* XL classes for 1200px breakpoint */
.d-xl-block {
    display: none;
}

.d-xl-flex {
    display: none;
}

.d-xl-none {
    display: block;
}

/* LG breakpoint: 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .d-lg-block {
        display: block;
    }

    .d-lg-flex {
        display: flex;
    }

    .d-lg-none {
        display: none;
    }

    .d-xl-block {
        display: none;
    }

    .d-xl-flex {
        display: none;
    }

    .d-xl-none {
        display: block;
    }
}

/* XL breakpoint: 1200px and above */
@media (min-width: 1200px) {
    .d-lg-block {
        display: block;
    }

    .d-lg-flex {
        display: flex;
    }

    .d-lg-none {
        display: none;
    }

    /* XL classes active at 1200px and above */
    .d-xl-block {
        display: block;
    }

    .d-xl-flex {
        display: flex;
    }

    .d-xl-none {
        display: none;
    }
}

.small {
    font-size: 0.875rem;
}

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

.text-end {
    text-align: right;
}

.text-start {
    text-align: left;
}

.mt-auto {
    margin-top: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mx-3 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > [class*='col-'] {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (min-width: 1200px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.g-2 {
    gap: 0.5rem;
}

.g-3 {
    gap: 1rem;
}

/* Legend Mobile */
.legend-mobile {
    padding: 1rem 0;
    font-size: 0.875rem;
}

/* Hidden Elements */
.d-hide {
    display: none !important;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Admin Form */
.admin-form {
    padding: 0;
}

.admin-form .form-label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
/* Modern Section Titles - Unified Style for COMPTE, AUTOMATED TRADING, POSITIONS */
.modern-section-title {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modern-section-title:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Header Container */
.section-header {
    position: relative;
    padding: 8px 0;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

/* Toggle Arrow Style */
.toggle-arrow {
    color: #3b82f6;
    transition: all 0.3s ease;
}

.toggle-arrow:hover {
    color: #06b6d4;
    transform: scale(1.1);
}

/* Modern Wallet Menu */
.wallet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.btn-wallet {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.75rem 1rem !important;
    border: 2px solid transparent !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    height: 140px !important;
}

.btn-wallet::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-wallet:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-4px) !important;
}

.btn-wallet:hover::before {
    left: 0;
}

.btn-wallet i {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.btn-wallet:hover i {
    transform: scale(1.1);
}

/* Modal Modern Styling */
.modal-modern {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 1.5rem;
}

.modal-modern .modal-title {
    color: #ffffff;
    font-weight: 700;
}

.modal-subtitle {
    color: #8a919a !important;
    font-size: 0.85rem !important;
}

.modal-modern .modal-body {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.modal-modern .btn-close {
    filter: invert(1);
}

/* Responsive Wallet Grid */
@media (max-width: 576px) {
    .wallet-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-wallet {
        padding: 1.5rem 1rem !important;
        height: 110px !important;
    }

    .btn-wallet i {
        font-size: 1.5rem !important;
    }
}

/* Modern Form Styling */
.form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input-modern {
    padding: 0.75rem 1rem !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.form-input-modern::placeholder {
    color: #8a919a !important;
}

.form-input-modern:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.1) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%) !important;
}

.btn-modern {
    padding: 0.875rem 1.5rem !important;
    border: 2px solid #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Inter', sans-serif !important;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-modern:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 15px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px) !important;
}

.btn-modern:hover::before {
    left: 0;
}

.btn-modern i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: translateX(4px);
}

/**
 * ORIENTATION-BASED RESPONSIVE DESIGN
 * Ensures proper layout and visibility on devices when rotating
 */

/* Tablets in PORTRAIT - Hide desktop sidebars */
@media (orientation: portrait) and (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar-left, .sidebar-right {
        display: none !important;
    }

    .main-content {
        flex: 1;
        width: 100%;
        max-height: calc(100vh - 60px);
    }
}

/* Tablets in LANDSCAPE - Show sidebars if space permits */
@media (orientation: landscape) and (min-width: 1024px) {
    .main-container {
        flex-direction: row;
        height: 100vh;
    }

    .sidebar-left, .sidebar-right {
        display: block !important;
    }
}

/* Force recalculation on orientation change */
@media (orientation: portrait) {
    body {
        transform: rotateZ(0deg); /* Trigger reflow */
    }
}

@media (orientation: landscape) {
    body {
        transform: rotateZ(0deg); /* Trigger reflow */
    }
}

@media (max-width: 1199px) {
    #indicator, #infosplus, #infosbase{
        height : auto !important;
    }
}

@media (min-width: 1200px) {
    #indicator, #infosplus, #infosbase{
        height :  -webkit-fill-available !important;
    }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-width: 300px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease-out, toastSlideOut 0.3s ease-out 3s forwards;
    pointer-events: auto;
    border-left: 4px solid var(--info-color);
    transition: var(--transition);
}

.toast.toast-show {
    animation: toastSlideIn 0.3s ease-out forwards;
}

.toast.toast-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-secondary) 100%);
}

.toast.toast-error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-secondary) 100%);
}

.toast.toast-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-secondary) 100%);
}

.toast.toast-info {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-secondary) 100%);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 14px;
}

.toast-success .toast-icon {
    background: var(--success-color);
    color: white;
}

.toast-error .toast-icon {
    background: var(--danger-color);
    color: white;
}

.toast-warning .toast-icon {
    background: var(--warning-color);
    color: white;
}

.toast-info .toast-icon {
    background: var(--info-color);
    color: white;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Toast animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Toast responsiveness for mobile */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        width: calc(100% - 20px);
    }
}

/* Confirm Dialog Styles */
.modal-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-light);
    border-radius: 12px 12px 0 0;
}

.modal-modern .modal-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.modal-modern .modal-body {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 24px;
    line-height: 1.6;
}

.modal-modern .modal-footer {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 12px 12px;
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-modern .btn-close {
    filter: brightness(0.8);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.modal-modern .btn-close:hover {
    opacity: 1;
}

.modal-modern .btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
}

.modal-modern .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.modal-modern .btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.modal-modern .btn-danger {
    background: var(--danger-color);
    color: white;
}

.modal-modern .btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal.fade .modal-dialog {
    transform: translateY(-50px);
}