/* ===== CardTransf Custom Dropdown Calculator ===== */
.cardtransf-calculator {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #fff;
}

.cardtransf-calculator .calc-inner {
    background: linear-gradient(160deg, #0a2e2e 0%, #124d4d 40%, #0d4040 100%);
    border-radius: 28px;
    padding: 36px 40px 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    overflow: visible;
}

/* Header */
.calc-header {
    text-align: center;
    margin-bottom: 24px;
}

.calc-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin: 0 0 14px 0;
    letter-spacing: 0.3px;
}

.category-tags {
    display: flex;
    justify-content: flex-start;
}

.tag {
    display: inline-block;
    padding: 9px 20px;
    background: #fff;
    color: #0a2e2e;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Layout */
.calc-row {
    margin-bottom: 16px;
}

.calc-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}

.field-group label .icon {
    font-size: 14px;
    opacity: 0.85;
}

/* ===== Custom Select ===== */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.4);
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.select-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.select-trigger.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    border-radius: 14px 14px 0 0;
}

.select-value {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-value.placeholder {
    color: rgba(255,255,255,0.55);
}

.select-arrow {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    margin-left: 8px;
}

.select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.select-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #134a4a 0%, #0f3d3d 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-radius: 0 0 14px 14px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.custom-select.open .select-dropdown {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}

.select-dropdown::-webkit-scrollbar {
    width: 6px;
}
.select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.select-dropdown li {
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.select-dropdown li:last-child {
    border-bottom: none;
}

.select-dropdown li:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.select-dropdown li.selected {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
}

/* Amount Input */
.input-wrap input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-appearance: none;
    appearance: none;
}

.input-wrap input[type="number"]::placeholder {
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.input-wrap input[type="number"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.input-wrap input[type="number"]::-webkit-outer-spin-button,
.input-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Summary Row */
.summary-row {
    margin-top: 20px;
    margin-bottom: 20px;
}

.summary-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(10px);
}

.payment-box {
    border: 2px solid #c9a84c;
    background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(255,255,255,0.04) 100%);
    box-shadow: 0 0 24px rgba(201,168,76,0.12);
}

.box-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.box-label .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a84c;
    display: inline-block;
}

.box-label .dot.green {
    background: #25d366;
}

.box-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: -0.5px;
}

.box-sublabel {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.currency-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.currency-display .currency-symbol {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.currency-display .currency-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* Trade Button */
.trade-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1a9c5a 0%, #128c7e 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 28px rgba(18, 140, 126, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.trade-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.trade-button:hover:not(:disabled)::before {
    left: 100%;
}

.trade-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(18, 140, 126, 0.45);
    background: linear-gradient(135deg, #1cb565 0%, #14a090 100%);
}

.trade-button:active:not(:disabled) {
    transform: translateY(0);
}

.trade-button:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
    box-shadow: none;
}

.trade-button:disabled .wa-icon {
    opacity: 0.3;
}

.trade-button .wa-icon {
    width: 20px;
    height: 20px;
    opacity: 0.95;
    flex-shrink: 0;
}

.trade-button .arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.trade-button:hover:not(:disabled) .arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 600px) {
    .cardtransf-calculator .calc-inner {
        padding: 24px 20px;
        border-radius: 20px;
    }
    .calc-row.two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .summary-row {
        grid-template-columns: 1fr !important;
    }
    .box-value {
        font-size: 26px;
    }
    .select-dropdown {
        max-height: 260px;
    }
}

.cardtransf-calculator {
    isolation: isolate;
}