/* OPX 6.0 Home Page Styles */

/* Design Tokens from Figma */
:root {
    /* Colors */
    --color-neutral-800: #262626;
    --color-neutral-700: #404040;
    --color-neutral-500: #737373;
    --color-neutral-400: #a3a3a3;
    --color-neutral-300: #d4d4d4;
    --color-neutral-50: #fafafa;
    --color-brand-white: #ffffff;

    /* Spacing */
    --spacing-12: 12px;
    --spacing-16: 16px;
    --spacing-20: 20px;
    --spacing-24: 24px;

    /* Border Radius */
    --radius-l: 8px;
    --radius-2xl: 16px;

    /* Stroke */
    --stroke-2: 2px;

    /* Typography */
    --font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Heading/H2 */
    --heading-h2-size: 24px;
    --heading-h2-weight: 600;
    --heading-h2-line-height: 32px;

    /* Display/Medium */
    --display-medium-size: 40px;
    --display-medium-weight: 600;
    --display-medium-line-height: 44px;

    /* Display/Small */
    --display-small-size: 32px;
    --display-small-weight: 600;
    --display-small-line-height: 40px;

    /* Label/Medium */
    --label-medium-size: 12px;
    --label-medium-weight: 600;
    --label-medium-line-height: 16px;

    /* Body/Small */
    --body-small-size: 14px;
    --body-small-weight: 400;
    --body-small-line-height: 20px;

    /* Shadow */
    --shadow-s: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.opx6-home-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 64px);
}

/* Page Container with Sidebar */
.page-container {
    display: flex;
    min-height: calc(100vh - 64px);
}

.page-container.has-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
}

/* Sidebar Styles */
.opx6-sidebar {
    background: linear-gradient(180deg, #FFF9E6 0%, #FFFEF8 100%);
    width: 280px;
    min-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 24px 16px;
    border-right: 1px solid #F0E6D2;
    position: relative;
    transition: width 0.3s ease, padding 0.3s ease;
}

/* Collapsed Sidebar Bar (in main content area) */
.sidebar-collapsed-bar {
    display: none;
    background-color: #ffeec9;
    border-radius: 12px;
    padding: 16px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top:32px;
}

/* Show collapsed bar in main content when sidebar is collapsed */
.page-container.sidebar-collapsed .sidebar-collapsed-bar {
    display: flex;
}

/* Hide sidebar completely when collapsed */
.opx6-sidebar.collapsed {
    display: none;
}

/* Adjust grid when sidebar is hidden */
.page-container.sidebar-collapsed.has-sidebar {
    grid-template-columns: 1fr;
}

.collapsed-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.collapsed-profile-details {
    flex: 1;
    min-width: 0;
}

.sidebar-expand-btn {
    background: none;
    border: none;
    color: #404040;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-expand-btn:hover {
    color: #262626;
}

/* Expanded Sidebar Content */
.sidebar-expanded-content {
    display: block;
}

/* Sidebar Profile Header */
.sidebar-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.profile-info-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #262626;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #525252;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: #404040;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    color: #262626;
}

/* Company Selector */
.company-selector {
    margin-bottom: 12px;
}

.company-selector-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.company-name {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-badge {
    background-color: #737373;
    color: #ffffff;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}

.company-dropdown-btn {
    background: none;
    border: none;
    color: #404040;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-dropdown-btn:hover {
    color: #262626;
}

/* Sidebar Tabs Toggle */
.sidebar-tabs-toggle {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 9999px;
    padding: 6px;
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.sidebar-tab-btn {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    color: #262626;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: normal;
    word-wrap: break-word;
    border-radius: 9999px;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-tab-btn:hover {
    background-color: #f5f5f5;
}

.sidebar-tab-btn.active {
    background-color: #ffac00;
    color: #262626;
}

/* View All Section */
.view-all-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
}

.view-all-section .view-all-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #404040;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.view-all-section .view-all-link i {
    font-size: 16px;
    transform: rotate(-90deg);
}

.view-all-section .view-all-link:hover {
    color: #262626;
}

/* Tab Content */
.sidebar-tab-content {
    display: none;
}

.sidebar-tab-content.active {
    display: block;
}

/* Balances Tab Header */
.balances-header {
    margin-bottom: 16px;
}

.balances-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.balances-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-neutral-800, #262626);
    margin: 0;
}

.balances-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: var(--color-neutral-500, #737373);
    font-size: 14px;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-header h4 {
    font-size: 11px;
    font-weight: 700;
    color: #999999;
    margin: 0;
    letter-spacing: 0.5px;
}

.view-all-link {
    font-size: 10px;
    color: #666666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: #FFC107;
}

.view-all-link i {
    font-size: 12px;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.transaction-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Status-specific gradient backgrounds */
.transaction-card[data-status="Submitted"] {
    background-image: radial-gradient(ellipse 82px 74px at 232px 105px, rgba(82,82,82,0.2) 0%, rgba(122,122,122,0.15) 25%, rgba(162,162,162,0.1) 50%, rgba(243,243,243,0) 100%), linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
}

.transaction-card[data-status="Processing"] {
    background-image: radial-gradient(ellipse 82px 74px at 232px 105px, rgba(10,63,209,0.2) 0%, rgba(25,74,211,0.1875) 6.25%, rgba(39,85,213,0.175) 12.5%, rgba(68,108,217,0.15) 25%, rgba(126,153,226,0.1) 50%, rgba(243,243,243,0) 100%), linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
}

.transaction-card[data-status="Completed"] {
    background-image: radial-gradient(ellipse 86px 95px at 229px 130px, rgba(5,150,105,0.2) 0%, rgba(20,156,114,0.1875) 6.25%, rgba(35,162,122,0.175) 12.5%, rgba(64,173,139,0.15) 25%, rgba(124,196,174,0.1) 50%, rgba(243,243,243,0) 100%), linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
}

.transaction-card[data-status="Cancelled"] {
    background-image: radial-gradient(ellipse 82px 96px at 232px 137px, rgba(255,45,45,0.2) 0%, rgba(253,69,69,0.175) 12.5%, rgba(252,94,94,0.15) 25%, rgba(249,144,144,0.1) 50%, rgba(243,243,243,0) 100%), linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
}

/* Header row with date and badge */
.transaction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.transaction-date {
    flex: 1;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    color: #737373;
}

.transaction-status {
    /* Badge is rendered in same row as date */
}

/* Content section */
.transaction-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* For completed/cancelled: right-aligned layout */
.transaction-card[data-status="Completed"] .transaction-content,
.transaction-card[data-status="Cancelled"] .transaction-content {
    align-items: flex-end;
    gap: 8px;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* For completed/cancelled: beneficiary below amount */
.transaction-card[data-status="Completed"] .transaction-info,
.transaction-card[data-status="Cancelled"] .transaction-info {
    flex-direction: column-reverse;
}

.transaction-subtitle {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    color: #a3a3a3;
}

.transaction-beneficiary {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #404040;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* For completed/cancelled: beneficiary text aligned right */
.transaction-card[data-status="Completed"] .transaction-beneficiary,
.transaction-card[data-status="Cancelled"] .transaction-beneficiary {
    text-align: right;
}

.transaction-amount {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #262626;
}

/* For completed/cancelled: amount aligned right */
.transaction-card[data-status="Completed"] .transaction-amount,
.transaction-card[data-status="Cancelled"] .transaction-amount {
    text-align: right;
    width: 100%;
}

/* Transaction Status Badges */
.badge-draft-processing,
.badge-submitted {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    background-color: #e5e5e5;
    color: #262626;
}

.badge-processing {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    background-color: #dbeafe;
    color: #0008e3;
}

.badge-completed {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    background-color: #d1fcda;
    color: #007934;
}

.badge-cancelled {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    background-color: #ffdcdc;
    color: #bf0e0e;
}

.btn-transfer-again {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 8px 16px;
    background-color: #ffac00;
    color: #262626;
    border: none;
    border-radius: 6px;
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-transfer-again:hover {
    background-color: #ff9800;
}

/* Balances Placeholder */
.balances-placeholder {
    padding: 24px;
    text-align: center;
    color: #737373;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-width: 0;
   /* padding: 24px 48px 0; */
}

.opx6-main {
    padding: 40px 48px;
}

.content-wrapper {
    /*max-width: 1200px;*/
    max-width: 95%;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 32px;
}

.action-controls {
    display: flex;
    gap: 48px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 590;
    line-height: 18px;
    color: #404040;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-action {
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #ffffff;
    color: #666666;
    border: 2px solid #e0e0e0;
}

.btn-action.active {
    background-color: #FFC107;
    color: #333333;
    border-color: #FFC107;
}

.btn-action:hover {
    border-color: #FFC107;
}

.currency-selector {
    min-width: 280px;
}

.base-currency-select {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.base-currency-select:focus {
    border-color: #FFC107;
}

/* Currency Dropdown - Figma Design */
.currency-dropdown .custom-dropdown-trigger {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.currency-dropdown .custom-dropdown-trigger:hover {
    border-color: #FFC107;
}

.currency-dropdown .custom-dropdown-trigger.active {
    border-color: #FFC107;
}

.custom-dropdown-currency-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.currency-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.custom-dropdown-currency-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.custom-dropdown-currency-text .currency-code {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 590;
    line-height: 24px;
    color: #171717;
}

.custom-dropdown-currency-text .currency-name {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #404040;
}

/* Currency dropdown options */
.currency-dropdown .custom-dropdown-option {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.currency-dropdown .custom-dropdown-option:hover {
    background-color: #f5f5f5;
}

.currency-dropdown .custom-dropdown-option.selected {
    background-color: #fff8e1;
}

.custom-dropdown-option-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.last-updated {
    font-size: 12px;
    color: #999999;
    text-align: right;
}

/* Currencies Section */
.currencies-section {
    margin-bottom: 48px;
    position: relative;
}

.section-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.section-title {
    font-family: var(--font-family);
    font-size: var(--heading-h2-size);
    font-weight: var(--heading-h2-weight);
    color: var(--color-neutral-800);
    line-height: var(--heading-h2-line-height);
    margin-bottom: var(--spacing-16);
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
}

.flag-icons {
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.flag-stack-item {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    flex-shrink: 0;
}

.flag-stack-item:last-child {
    margin-right: 0;
}

.flag-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--stroke-2) solid var(--color-neutral-50);
    display: block;
    background-color: var(--color-brand-white);
}

/* Currency Grid */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/*
@media (min-width: 1200px) {
    .currency-grid {
        grid-template-columns: repeat(6, 1fr);
    }
} */

@media (min-width: 768px) and (max-width: 1199px) {
    .currency-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Currency Card */
.currency-card {
    background-color: var(--color-brand-white);
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-l);
    padding: var(--spacing-16);
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: var(--shadow-s);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-12);
    text-align: left;
    width: 100%;
}

.currency-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.currency-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
}

.currencies-section .currency-code {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 40px;
    font-weight: 600;
    color: #404040;
    margin: 0;
    line-height: 44px;
}

.currencies-section .currency-name {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 600;
    color: #737373;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 16px;
    width: 100%;
    white-space: pre-wrap;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-neutral-400);
    transition: color 0.2s;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--color-neutral-700);
}

.btn-icon i {
    font-size: 20px;
}

.btn-icon-inline {
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-icon-inline:hover {
    opacity: 0.8;
}

/* Alert icon - orange */
.btn-icon-inline.zmdi-notifications,
.btn-icon-inline.zmdi-notifications-active {
    color: #FF8827;
}

/* Star icon - gold */
.btn-favorite.active i,
.btn-favorite i.zmdi-star,
.btn-icon-inline.zmdi-star {
    color: #FFAC00;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 100%;
}

.rate-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 0;
    line-height: 1;
}

.rate-display {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.rate-label {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 400;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 16px;
}

.rate-value {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 32px;
    font-weight: 600;
    color: #404040;
    line-height: 40px;
}

.rate-value sub {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    vertical-align: baseline;
    position: relative;
    top: 0;
}

.rate-description {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: #404040;
    margin: 0;
    line-height: 20px;
    width: 100%;
    white-space: pre-wrap;
}

.rate-description i {
    cursor: pointer;
    margin-left: 4px;
}

/* Push Rate Card */
.currency-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 2px 2px 2px;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-s);
    width: 284px;
    height: 186px;
}

.currency-card-wrapper.push-rate {
    background: linear-gradient(-89.39478708789306deg, #F86F00 0.34354%, #FFAC00 99.668%);
    border: 2px solid #FF8E3C;
}

.push-rate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
}

.banner-left {
    display: flex;
    align-items: center;
}

.special-rate-label {
    font-family: var(--font-family);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-align: left;
}

.banner-right {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.expired-label {
    font-family: var(--font-family);
    font-size: 8px;
    font-weight: 500;
    line-height: 10px;
}

.expired-date {
    font-family: var(--font-family);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-align: right;
}

.currency-card-wrapper .currency-card {
    margin: 0;
    height: 164px;
    flex-shrink: 0;
    width: 100%;
}

/* Footer */
.opx6-footer {
    background: linear-gradient(to bottom, #F8F9FA 0%, #FFF9E6 100%);
    position: relative;
    padding: 240px 48px 40px;
    margin-top: auto;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background-image: url(../images/icon/wave.svg);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-text {
    font-size: 11px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-text a {
    color: #333333;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 10px;
    color: #999999;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-container.has-sidebar {
        grid-template-columns: 240px 1fr;
    }

    .opx6-sidebar {
        width: 240px;
        padding: 20px 12px;
    }

    .opx6-main {
        padding: 32px 24px;
    }

    .action-controls {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .page-container.has-sidebar {
        display: flex;
        flex-direction: column;
    }

    .opx6-sidebar {
        width: 100%;
        min-height: auto;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid #F0E6D2;
    }

    .sidebar-collapsed-bar {
        padding: 12px 16px;
        margin-bottom: 16px;
    }

    .collapsed-profile-info {
        gap: 8px;
    }

    .main-content {
        padding: 16px;
    }

    .transaction-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .transaction-card {
        padding: 10px;
    }

    .opx6-main {
        padding: 24px 16px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .action-buttons {
        width: 100%;
    }

    .btn-action {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }

    .currency-selector {
        width: 100%;
    }

    .opx6-footer {
        padding: 40px 16px 24px;
    }
}

/* Rate Modal */
.rate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.rate-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.rate-modal-content-new {
    position: absolute;
    background-color: white;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    width: 480px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 10000;
}

.rate-modal.active .rate-modal-content-new {
    transform: scale(1);
    opacity: 1;
}

/* Modal Header */
.rate-modal-header-new {
    padding: 16px;
}

.rate-modal-currency-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rate-modal-base {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #262626;
    margin: 0 0 4px 0;
}

.rate-modal-target-currency {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #262626;
    margin: 0 0 4px 0;
}

.rate-modal-currency-name {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #525252;
    margin: 0;
}

/* Input Field */
.rate-modal-input-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 0 16px 16px 16px;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
}

.input-field-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-field-label {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #262626;
}

.input-field-icon {
    flex-shrink: 0;
}

.input-field-divider {
    width: 1px;
    height: 28px;
    background-color: #e5e5e5;
}

.input-field-right {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.input-field-dropdown {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #262626;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-field-dropdown:focus {
    outline: none;
}

.input-field-amount {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #262626;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    width: auto;
    min-width: 60px;
    text-align: right;
}

.input-field-amount::placeholder {
    color: #a3a3a3;
}

.input-field-amount:focus {
    outline: none;
}

.input-field-currency {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #262626;
}

/* Rate Options Container */
.rate-options-container {
    display: flex;
    flex-direction: column;
}

.rate-option {
    border-top: 1px solid #e5e5e5;
    position: relative;
}

.rate-option-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    transition: background-color 0.2s;
}

.rate-option-wrapper:hover {
    background-color: #f9f9f9;
}

.rate-option-best .rate-option-wrapper {
    background-color: #f4f9f5;
}

.rate-option-best .rate-option-wrapper:hover {
    background-color: #ecf5ed;
}

.rate-option-disabled .rate-option-wrapper {
    opacity: 0.6;
    cursor: not-allowed;
}

.rate-option-disabled .rate-option-wrapper:hover {
    background-color: transparent;
}

.rate-option[data-is-transactable="true"] .rate-option-wrapper {
    cursor: pointer;
}

.rate-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    padding-right: 32px;
    flex: 1;
    min-height: 121px;
}

.rate-option-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.rate-option-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    color: white;
}

.badge-blue {
    background-color: #0008e3;
}

.badge-green {
    background-color: #3f9600;
}

.badge-red {
    background-color: #bf0e0e;
}

.rate-option-location,
.rate-option-delivery {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #262626;
    margin: 0;
}

.rate-option-minimum {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #262626;
    margin: 0;
}

.text-gray {
    color: #a3a3a3;
    font-weight: 600;
}

.rate-option-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 1;
    text-align: right;
}

.rate-option-label {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #262626;
    margin: 0;
}

.rate-option-value {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rate-option-value-default {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
}

.rate-large {
    font-size: 40px;
    font-weight: 600;
    line-height: 44px;
    color: #262626;
}

.rate-small {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
}

.rate-currency-label {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
}

.rate-amount {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #262626;
}

.rate-option-description {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #262626;
    margin: 0;
}

.rate-option-arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    background-color: #2e7d32;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.rate-option-arrow:hover {
    background-color: #1b5e20;
}

.rate-option-arrow svg {
    display: block;
}

/* Modal open body state */
body.modal-open {
    overflow: hidden;
}

/* Make currency cards more interactive */
.currency-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.currency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Active/Selected Card State - Gray outline icons */
.currency-card.active .btn-icon-inline.zmdi-notifications,
.currency-card.active .btn-icon-inline.zmdi-star,
.currency-card.active .btn-icon-inline.zmdi-notifications-none,
.currency-card.active .btn-icon-inline.zmdi-star-outline {
    color: #a3a3a3;
}

/* Active card styling */
.currency-card.active {
    border-color: #d4d4d4;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Two-Factor Authentication Modal
   =================================== */

/* OTP Modal Overlay */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    display: none;
}

.otp-modal-container {
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.otp-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header */
.otp-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.otp-modal-title {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #262626;
    margin: 0;
}

.otp-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262626;
    font-size: 24px;
    transition: opacity 0.2s;
}

.otp-modal-close:hover {
    opacity: 0.7;
}

/* Body */
.otp-modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

/* Shield Icon */
.otp-icon-container {
    display: flex;
    justify-content: center;
}

.otp-shield-icon {
    position: relative;
    width: 160px;
    height: 175px;
}

.otp-shield-bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.otp-logo-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Message Section */
.otp-message-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    text-align: center;
}

.otp-main-message {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
}

.otp-main-message p {
    margin: 0;
}

.otp-security-message {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #737373;
}

.otp-security-message p {
    margin: 0;
}

/* OTP Input Section */
.otp-input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 320px;
    max-width: 100%;
}

.otp-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    background-color: #e5e5e5;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 40px;
    font-weight: 600;
    line-height: 44px;
    color: #171717;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
    outline: none;
    background-color: #d4d4d4;
    box-shadow: 0 0 0 2px #FFC107;
}

.otp-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resend Section */
.otp-resend-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.otp-resend-text {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
    margin: 0;
    text-align: center;
}

.otp-link {
    color: #076aef;
    text-decoration: none;
    cursor: pointer;
}

.otp-link:hover {
    text-decoration: underline;
}

.otp-email-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    height: 36px;
    background-color: transparent;
    border: 1px solid #737373;
    border-radius: 99999px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.otp-email-button:hover {
    background-color: #f5f5f5;
    border-color: #525252;
}

/* Footer */
.otp-modal-footer {
    display: flex;
    justify-content: center;
}

.otp-confirm-button {
    width: 100%;
    max-width: 320px;
    padding: 8px 24px;
    height: 36px;
    background-color: #FFAC00;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #383838;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.otp-confirm-button:hover {
    background-color: #FFC107;
}

.otp-confirm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .otp-modal-content {
        padding: 20px;
        gap: 24px;
    }

    .otp-modal-title {
        font-size: 20px;
        line-height: 28px;
    }

    .otp-main-message {
        font-size: 16px;
    }

    .otp-security-message {
        font-size: 14px;
    }

    .otp-input {
        width: 44px;
        height: 48px;
        font-size: 36px;
    }

    .otp-input-group {
        gap: 6px;
    }
}

/* Special Rate Styles */
.currency-card.special-rate {
    border: 2px solid #FF8E3C;
    overflow: hidden;
    position: relative;
}

.special-rate-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FF8E3C;
    padding: 8px 16px;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
}

.special-rate-label {
    white-space: nowrap;
}

.special-rate-expiry {
    white-space: nowrap;
}
/* ========================================
   AI Upload Promotional Banner
   ======================================== */
.ai-upload-banner {
    background: linear-gradient(90deg, #FF8827 0%, #FFB566 73.56%, #FFE4AB 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

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

.banner-content {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}

.banner-text-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 590;
    line-height: 28px;
    color: white;
    margin: 0;
}

.banner-description {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: white;
    margin: 0;
}

.banner-cta-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 99999px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 590;
    line-height: 18px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.banner-cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.banner-cta-button:active {
    transform: translateY(0);
}

.banner-cta-button i {
    font-size: 18px;
}

.banner-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 110px;
    height: 102px;
    flex-shrink: 0;
}

.file-icon {
    position: absolute;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.ai-upload-banner:hover .file-icon {
    transform: translateY(-2px);
}

.file-pdf {
    left: -10px;
    top: 20px;
    transform: rotate(-15deg);
}

.file-jpg {
    left: 30px;
    top: 0;
    transform: rotate(-10deg);
}

.file-png {
    right: 20px;
    top: 8px;
    transform: rotate(10deg);
}

.file-excel {
    right: -5px;
    bottom: 5px;
    transform: rotate(15deg);
}

.banner-close-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.banner-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.banner-close-btn i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-upload-banner {
        padding: 16px;
        margin: 16px;
    }

    .banner-content {
        flex-direction: column;
        gap: 16px;
    }

    .banner-title {
        font-size: 18px;
        line-height: 24px;
    }

    .banner-description {
        font-size: 14px;
        line-height: 20px;
    }

    .banner-illustration {
        min-width: 80px;
        height: 80px;
    }

    .file-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .banner-illustration {
        display: none;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* AI Upload Banner - Container */
.ai-upload-banner-container {
    margin: 20px 0;
}

/* AI Upload Banner - Collapsed State */
.ai-upload-banner-collapsed {
    background: linear-gradient(90deg, #FF8827 0%, #FFB566 80.77%, #FFE4AB 100%);
    border: none;
    border-radius: 99999px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 590;
    line-height: 18px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    animation: slideIn 0.3s ease-in-out;
}

.ai-upload-banner-collapsed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.ai-upload-banner-collapsed i {
    font-size: 18px;
}

/* Expanded state animation */
.ai-upload-banner.expanded {
    animation: expandBanner 0.3s ease-in-out;
    opacity: 1;
    transform: scaleY(1);
}

/* Collapsed state animation */
.ai-upload-banner.collapsed {
    animation: collapseBanner 0.3s ease-in-out;
    opacity: 0;
    transform: scaleY(0.8);
    transform-origin: top;
}

@keyframes expandBanner {
    from {
        opacity: 0;
        transform: scaleY(0.8);
        transform-origin: top;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes collapseBanner {
    from {
        opacity: 1;
        transform: scaleY(1);
    }
    to {
        opacity: 0;
        transform: scaleY(0.8);
        transform-origin: top;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Collapsed Button */
@media (max-width: 768px) {
    .ai-upload-banner-collapsed {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Page Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e5e5;
    border-top-color: #FFB800;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-family: var(--font-family, "SF Pro", -apple-system, sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #262626;
    margin: 0;
}

.opx6-home-content .currency-selector{
    padding: unset;
}


.thb-bank-message{
    font-size: 14px;
    color: red;
    margin: 0 0 16px;
    text-align: center;
}

#rateModal .custom-dropdown-trigger{
    background: transparent;
    border: none;
}

#rateModal .custom-dropdown-trigger.active{
    box-shadow: none;
}

#rateModal .custom-dropdown-search
{display: none;}

/* Rate Tile Loading Spinner (whole row) */
.rate-option.rate-tile-loading {
    pointer-events: none;
}

.rate-tile-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    z-index: 5;
}

.rate-tile-loading-spinner .circular {
    width: 32px;
    height: 32px;
    animation: rate-rotate 2s linear infinite;
}

.rate-tile-loading-spinner .path {
    stroke: #FFAC00;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: rate-dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

@keyframes rate-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes rate-dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
    100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}


