/**
 * FixedFloat Exchanger Pro v4.0.0
 * Modern Professional Design - Gold/Black/White Theme
 * Desktop-optimized with full mobile support
 */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   User-customizable colors via admin settings
   ============================================ */
:root {
    --ffe-primary: #FFD700;
    --ffe-secondary: #F7931A;
    --ffe-bg: #0a0a0a;
    --ffe-text: #ffffff;
    --ffe-btn-bg: #FFD700;
    --ffe-btn-text: #000000;
}

/* ============================================
   GLOBAL & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ffe-widget,
.ffe-track-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    padding: 20px;
}

/* ============================================
   EXCHANGE WIDGET - WIDE DESKTOP OPTIMIZED
   ============================================ */
.ffe-container {
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.1), 
                0 0 0 1px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Gold accent line at top */
.ffe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 50%, var(--ffe-primary,#FFD700) 100%);
}

/* ============================================
   HEADER
   ============================================ */
.ffe-header {
    text-align: center;
    margin-bottom: 28px;
}

.ffe-logo {
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.ffe-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ffe-header h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.ffe-header p {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* ============================================
   ORDER TYPE SELECTION
   ============================================ */
.ffe-order-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.ffe-type-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.ffe-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ffe-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px;
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.ffe-type-option:hover .ffe-type-content {
    border-color: var(--ffe-primary,#FFD700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.ffe-type-option.active .ffe-type-content {
    border-color: var(--ffe-primary,#FFD700);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(247, 147, 26, 0.05) 100%);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.ffe-type-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.ffe-type-fee {
    font-size: 13px;
    font-weight: 600;
    color: var(--ffe-primary,#FFD700);
    margin-bottom: 4px;
}

.ffe-type-desc {
    font-size: 12px;
    color: #999;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.ffe-field {
    margin-bottom: 20px;
}

.ffe-field label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.ffe-required {
    color: var(--ffe-primary,#FFD700);
}

.ffe-optional {
    color: #666;
    font-weight: 400;
    font-size: 12px;
}

.ffe-field-help {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.5;
}

/* ============================================
   INPUT GROUPS - WIDE DESKTOP LAYOUT
   ============================================ */
.ffe-input-group {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.ffe-input-group:focus-within {
    border-color: var(--ffe-primary,#FFD700);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.ffe-currency-select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-width: 0;
}

.ffe-currency-select:hover {
    border-color: var(--ffe-primary,#FFD700);
}

.ffe-currency-select:focus {
    border-color: var(--ffe-primary,#FFD700);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.ffe-amount-input {
    background: transparent;
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 24px;
    font-weight: 700;
    outline: none;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    min-width: 0;
    width: 100%;
}

.ffe-amount-input::placeholder {
    color: #444;
}

.ffe-amount-input[readonly] {
    color: var(--ffe-primary,#FFD700);
    cursor: default;
}

/* ============================================
   SWAP BUTTON - IMPROVED DESIGN
   ============================================ */
.ffe-swap-container {
    display: flex;
    justify-content: center;
    margin: -12px 0;
    position: relative;
    z-index: 10;
}

.ffe-swap-btn {
    width: 52px;
    height: 52px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.ffe-swap-btn svg {
    width: 48px;
    height: 48px;
}

.ffe-swap-btn:hover {
    transform: scale(1.15) rotate(180deg);
}

.ffe-swap-btn:active {
    transform: scale(0.95);
}

/* ============================================
   EXCHANGE RATE INFO
   ============================================ */
.ffe-rate-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(247, 147, 26, 0.02) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.ffe-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.ffe-rate-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.ffe-rate-label {
    color: #999;
    font-size: 14px;
}

.ffe-rate-value {
    color: var(--ffe-primary,#FFD700);
    font-size: 16px;
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
}

.ffe-fee-value {
    color: #4CAF50;
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   TEXT INPUTS
   ============================================ */
.ffe-input {
    width: 100%;
    max-width: 100%;
    background: #0a0a0a;
    color: #fff;
    border: 2px solid #2a2a2a;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'SF Mono', Monaco, monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.ffe-input:focus {
    border-color: var(--ffe-primary,#FFD700);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.ffe-input::placeholder {
    color: #555;
}

/* ============================================
   TERMS
   ============================================ */
.ffe-terms {
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--ffe-primary,#FFD700);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
}

.ffe-terms p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.ffe-terms strong {
    color: var(--ffe-primary,#FFD700);
    font-weight: 700;
}

.ffe-terms a {
    color: var(--ffe-primary,#FFD700);
    text-decoration: none;
    font-weight: 600;
}

.ffe-terms a:hover {
    text-decoration: underline;
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */
.ffe-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 100%);
    color: #000;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ffe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.5);
}

.ffe-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.ffe-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   ORDER SUCCESS SCREEN
   ============================================ */
.ffe-success-screen {
    text-align: center;
    padding: 40px 20px;
}

.ffe-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 100%);
    color: #000;
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ffe-success-screen h2 {
    color: var(--ffe-primary,#FFD700);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.ffe-order-summary {
    background: #0a0a0a;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.ffe-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.ffe-summary-row:last-child {
    border-bottom: none;
}

.ffe-summary-row span {
    color: #999;
}

.ffe-summary-row strong {
    color: var(--ffe-primary,#FFD700);
    font-weight: 700;
}

.ffe-deposit-info {
    margin: 32px 0;
}

.ffe-deposit-info h3 {
    color: var(--ffe-primary,#FFD700);
    font-size: 20px;
    margin-bottom: 16px;
}

.ffe-address-box {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.ffe-address-box input {
    flex: 1;
    background: #0a0a0a;
    color: var(--ffe-primary,#FFD700);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 16px;
    border-radius: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
}

.ffe-btn-copy {
    background: var(--ffe-primary,#FFD700);
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ffe-btn-copy:hover {
    background: var(--ffe-secondary,#F7931A);
    transform: translateY(-2px);
}

.ffe-qr-code {
    margin: 24px 0;
}

.ffe-qr-code img {
    border: 4px solid var(--ffe-primary,#FFD700);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.ffe-important-note {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--ffe-primary,#FFD700);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    text-align: left;
}

.ffe-important-note strong {
    color: var(--ffe-primary,#FFD700);
}

/* ============================================
   TRACKING WIDGET - DESKTOP OPTIMIZED
   ============================================ */
.ffe-track-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.1),
                0 0 0 1px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ffe-track-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 50%, var(--ffe-primary,#FFD700) 100%);
}

.ffe-track-header {
    text-align: center;
    margin-bottom: 40px;
}

.ffe-track-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.ffe-track-header h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.ffe-track-header p {
    color: #999;
    font-size: 16px;
}

/* ============================================
   TRACKING FORM
   ============================================ */
.ffe-track-form {
    max-width: 700px;
    margin: 0 auto 48px;
}

.ffe-track-input-group {
    display: flex;
    gap: 16px;
}

.ffe-track-input {
    flex: 1;
    background: #0a0a0a;
    color: #fff;
    border: 2px solid #2a2a2a;
    padding: 20px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'SF Mono', Monaco, monospace;
    text-transform: uppercase;
}

.ffe-track-input:focus {
    border-color: var(--ffe-primary,#FFD700);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.ffe-track-input::placeholder {
    color: #555;
    text-transform: none;
}

.ffe-track-button {
    background: linear-gradient(135deg, var(--ffe-primary,#FFD700) 0%, var(--ffe-secondary,#F7931A) 100%);
    color: #000;
    border: none;
    padding: 20px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.ffe-track-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.5);
}

.ffe-track-button:active {
    transform: translateY(0);
}

/* ============================================
   TRACKING RESULT
   ============================================ */
.ffe-order-result {
    max-width: 800px;
    margin: 32px auto;
    background: #0a0a0a;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 32px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ffe-status-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #2a2a2a;
}

.ffe-status-icon-large {
    font-size: 72px;
    margin-bottom: 16px;
}

.ffe-status-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ffe-primary,#FFD700);
    margin-bottom: 8px;
}

.ffe-status-description {
    color: #999;
    font-size: 16px;
}

.ffe-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #2a2a2a;
}

.ffe-detail-row:last-child {
    border-bottom: none;
}

.ffe-detail-row span {
    color: #999;
    font-size: 14px;
}

.ffe-detail-row strong {
    color: var(--ffe-primary,#FFD700);
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
}

/* ============================================
   STATUS GUIDE
   ============================================ */
.ffe-status-guide {
    max-width: 1000px;
    margin: 48px auto 0;
    padding: 32px;
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
}

.ffe-status-guide h3 {
    text-align: center;
    color: var(--ffe-primary,#FFD700);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}

.ffe-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ffe-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ffe-status-item:hover {
    border-color: var(--ffe-primary,#FFD700);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.ffe-status-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.ffe-status-name {
    color: var(--ffe-primary,#FFD700);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ffe-status-desc {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

/* ============================================
   ERROR & LOADING STATES
   ============================================ */
.ffe-error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.ffe-loading {
    text-align: center;
    padding: 40px;
    color: var(--ffe-primary,#FFD700);
}

.ffe-loading::after {
    content: '...';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   MODE TOGGLE (Exchange / Buy-Sell)
   ============================================ */
.ffe-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.ffe-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ffe-mode-tab svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ffe-mode-tab:hover {
    background: rgba(255, 215, 0, 0.05);
    color: rgba(255, 215, 0, 0.8);
}

.ffe-mode-tab:hover svg {
    opacity: 0.8;
}

.ffe-mode-tab.active {
    background: linear-gradient(135deg, #FFD700 0%, #F7931A 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.ffe-mode-tab.active svg {
    opacity: 1;
    stroke: #000;
}

.ffe-mode-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ============================================
   CHANGENOW WIDGET CONTAINER
   ============================================ */
.ffe-changenow-container {
    width: 100%;
}

.ffe-changenow-notice {
    animation: slideDown 0.3s ease-out;
}

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

.ffe-changenow-info {
    animation: slideDown 0.4s ease-out;
}

#changenow-widget-iframe {
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE - MOBILE (KOMPLETNE PREPÍSANÉ)
   ============================================ */
@media only screen and (max-width: 768px) {
    /* Base container */
    .ffe-widget,
    .ffe-track-widget {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Main containers */
    .ffe-container,
    .ffe-track-container {
        padding: 20px 16px !important;
        border-radius: 20px !important;
        max-width: 100% !important;
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1) !important;
    }

    /* Gold accent line */
    .ffe-container::before,
    .ffe-track-container::before {
        height: 3px !important;
    }

    /* ============================================
       HEADER SECTION
       ============================================ */
    .ffe-header,
    .ffe-track-header {
        text-align: center !important;
        margin-bottom: 24px !important;
    }

    .ffe-logo,
    .ffe-track-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 28px !important;
        margin: 0 auto 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .ffe-header h2,
    .ffe-track-header h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 8px !important;
    }

    .ffe-header p,
    .ffe-track-header p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: #999 !important;
    }

    /* ============================================
       MODE TOGGLE - MOBILE FIX (Exchange / Buy-Sell Tabs)
       ============================================ */
    .ffe-mode-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
        padding: 8px !important;
    }

    .ffe-mode-tab {
        width: 100% !important;
        flex: none !important;
        padding: 16px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        gap: 10px !important;
        border-radius: 12px !important;
        /* Ensure clickability on mobile */
        min-height: 52px !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    .ffe-mode-tab span {
        display: inline !important;
        font-size: 15px !important;
    }

    .ffe-mode-tab svg {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }

    .ffe-mode-tab.active {
        background: linear-gradient(135deg, #FFD700 0%, #F7931A 100%) !important;
        color: #000 !important;
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4) !important;
    }

    .ffe-mode-tab:not(.active) {
        background: rgba(255, 255, 255, 0.05) !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .ffe-mode-tab:not(.active):active {
        background: rgba(255, 215, 0, 0.1) !important;
    }

    /* ============================================
       ORDER TYPE SECTION
       ============================================ */
    .ffe-order-type {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .ffe-type-option {
        width: 100% !important;
    }

    .ffe-type-content {
        padding: 18px 16px !important;
        border-radius: 14px !important;
    }

    .ffe-type-name {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    .ffe-type-fee {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    .ffe-type-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* ============================================
       FORM FIELDS
       ============================================ */
    .ffe-field {
        margin-bottom: 20px !important;
    }

    .ffe-field label,
    .ffe-input-label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    .ffe-field-help {
        font-size: 12px !important;
        margin-top: 6px !important;
        line-height: 1.5 !important;
    }

    /* ============================================
       INPUT GROUPS - STACK LAYOUT
       ============================================ */
    .ffe-input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 14px 12px !important;
        border-radius: 14px !important;
        grid-template-columns: none !important;
    }

    .ffe-currency-select {
        width: 100% !important;
        padding: 13px 14px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        background: #1a1a1a !important;
        color: #fff !important;
        border: 1px solid #333 !important;
    }

    .ffe-amount-input {
        width: 100% !important;
        padding: 13px 14px !important;
        font-size: 20px !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
    }

    .ffe-amount-input[readonly] {
        color: var(--ffe-primary,#FFD700) !important;
    }

    /* ============================================
       SWAP BUTTON
       ============================================ */
    .ffe-swap-container {
        margin: -10px 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .ffe-swap-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .ffe-swap-btn svg {
        width: 40px !important;
        height: 40px !important;
    }

    .ffe-swap-btn:active {
        transform: scale(0.9) !important;
    }

    /* ============================================
       RATE INFO
       ============================================ */
    .ffe-rate-info {
        padding: 16px 14px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }

    .ffe-rate-info h4 {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .ffe-rate-row {
        padding: 8px 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .ffe-rate-label {
        font-size: 12px !important;
    }

    .ffe-rate-value {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .ffe-rate-meta {
        font-size: 11px !important;
        margin-top: 8px !important;
    }

    /* ============================================
       RECIPIENT ADDRESS
       ============================================ */
    .ffe-recipient-address,
    .ffe-customer-email {
        padding: 14px 12px !important;
        margin-bottom: 20px !important;
        border-radius: 14px !important;
    }

    .ffe-recipient-address label,
    .ffe-customer-email label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .ffe-recipient-input,
    .ffe-customer-email input,
    .ffe-input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 13px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        background: #1a1a1a !important;
        border: 1px solid #333 !important;
        color: #fff !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .ffe-recipient-help,
    .ffe-field-help {
        font-size: 11px !important;
        margin-top: 6px !important;
    }

    /* ============================================
       BUTTONS
       ============================================ */
    .ffe-btn-primary {
        width: 100% !important;
        padding: 16px 24px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        border: none !important;
        cursor: pointer !important;
        text-align: center !important;
    }

    .ffe-btn-primary:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

    /* ============================================
       TRACKING WIDGET
       ============================================ */
    .ffe-track-input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .ffe-track-input {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        background: #1a1a1a !important;
        border: 2px solid #2a2a2a !important;
        color: #fff !important;
    }

    .ffe-track-button {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    /* ============================================
       STATUS GUIDE
       ============================================ */
    .ffe-status-guide {
        padding: 20px 14px !important;
        margin-top: 24px !important;
        border-radius: 14px !important;
    }

    .ffe-status-guide h3 {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        text-align: center !important;
    }

    .ffe-status-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .ffe-status-item {
        padding: 12px 8px !important;
        border-radius: 10px !important;
        text-align: center !important;
    }

    .ffe-status-icon {
        font-size: 22px !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    .ffe-status-name {
        font-size: 11px !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    .ffe-status-desc {
        font-size: 10px !important;
        line-height: 1.3 !important;
        display: block !important;
    }

    /* ============================================
       ORDER RESULT
       ============================================ */
    .ffe-order-result {
        padding: 20px 14px !important;
        border-radius: 14px !important;
        margin-top: 20px !important;
    }

    .ffe-order-result h3 {
        font-size: 17px !important;
        margin-bottom: 16px !important;
    }

    .ffe-order-info-row {
        padding: 12px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .ffe-order-label {
        font-size: 12px !important;
        color: #999 !important;
    }

    .ffe-order-value {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: var(--ffe-primary,#FFD700) !important;
        word-break: break-all !important;
    }

    .ffe-address-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 10px !important;
        background: #0a0a0a !important;
        border: 1px solid #2a2a2a !important;
    }

    .ffe-address-box input {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        background: #1a1a1a !important;
        border: 1px solid #333 !important;
        color: var(--ffe-primary,#FFD700) !important;
        font-family: monospace !important;
    }

    .ffe-copy-btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        background: var(--ffe-primary,#FFD700) !important;
        color: #000 !important;
        border: none !important;
        font-weight: 700 !important;
        cursor: pointer !important;
    }

    .ffe-copy-btn:active {
        transform: scale(0.95) !important;
    }

    /* ============================================
       QR CODE
       ============================================ */
    .ffe-qr-container {
        text-align: center !important;
        margin: 16px 0 !important;
    }

    .ffe-qr-container img {
        max-width: 180px !important;
        height: auto !important;
        border-radius: 10px !important;
    }

    /* ============================================
       HELPER TEXT & ALERTS
       ============================================ */
    .ffe-help-text {
        font-size: 11px !important;
        line-height: 1.5 !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .ffe-error,
    .ffe-success {
        padding: 14px 16px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        margin: 16px 0 !important;
        text-align: center !important;
    }

    .ffe-loading {
        padding: 30px !important;
        font-size: 15px !important;
    }

    /* ============================================
       FORCE READABLE TEXT
       ============================================ */
    .ffe-widget *,
    .ffe-track-widget * {
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    /* Ensure all text is readable */
    .ffe-container *,
    .ffe-track-container * {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Prevent layout breaking */
    .ffe-container,
    .ffe-track-container {
        overflow-x: hidden !important;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .ffe-container {
        max-width: 700px;
        padding: 40px 32px;
    }

    .ffe-track-container {
        max-width: 900px;
    }

    .ffe-input-group {
        grid-template-columns: 180px 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .ffe-widget,
    .ffe-track-widget {
        padding: 0;
    }

    .ffe-container,
    .ffe-track-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .ffe-btn-primary,
    .ffe-swap-btn,
    .ffe-track-button {
        display: none;
    }
}

/* ============================================
   CASH PAYMENT SYSTEM STYLES
   ============================================ */

/* CASH Info Section */
.ffe-cash-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 30px;
}

.ffe-cash-info-icon {
    font-size: 48px;
    line-height: 1;
}

.ffe-cash-info-content h3 {
    color: var(--ffe-primary);
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.ffe-cash-info-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

/* CASH Location */
.ffe-cash-location {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--ffe-primary);
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* CASH Arrow */
.ffe-cash-arrow {
    text-align: center;
    margin: 15px 0;
    color: var(--ffe-primary);
}

/* CASH Divider */
.ffe-cash-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* CASH Section Title */
.ffe-cash-section-title {
    color: var(--ffe-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* Time Slots Grid */
.ffe-cash-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.ffe-cash-time-slot {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ffe-cash-time-slot:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--ffe-primary);
    transform: translateY(-2px);
}

.ffe-cash-time-slot.selected {
    background: var(--ffe-primary);
    color: #000;
    border-color: var(--ffe-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.ffe-cash-time-slot:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* CASH Instructions */
.ffe-cash-instructions {
    padding: 20px;
    background: rgba(255, 165, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    margin: 20px 0;
}

.ffe-cash-instructions strong {
    color: var(--ffe-primary);
    display: block;
    margin-bottom: 10px;
}

.ffe-cash-instructions p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* CASH Disabled State */
.ffe-cash-disabled {
    padding: 60px 20px;
    text-align: center;
}

.ffe-cash-disabled p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1.8;
}

/* Success/Error Messages */
.ffe-success-message,
.ffe-error-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.ffe-success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.ffe-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ffe-cash-info {
        flex-direction: column;
        text-align: center;
    }

    .ffe-cash-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .ffe-cash-time-slot {
        padding: 10px;
        font-size: 13px;
    }

    /* Adjust tab layout for 3 tabs on mobile */
    .ffe-mode-toggle {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ffe-mode-tab {
        width: 100%;
    }
}

/* 3-Tab Layout Adjustment */
.ffe-mode-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.ffe-mode-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ffe-mode-tab:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.ffe-mode-tab.active {
    background: var(--ffe-primary);
    border-color: var(--ffe-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.ffe-mode-tab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tablet Responsive - Stack tabs on medium screens */
@media (max-width: 992px) {
    .ffe-mode-toggle {
        grid-template-columns: 1fr;
    }

    .ffe-mode-tab span {
        font-size: 15px;
    }
}
