:root {
    --red: #E11A44;
    --red-dark: #a80016;
    --bg: #f2f2f4;
    --card: #fff;
    --text: #1A1A1A;
    --border: #e5e7eb;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.11);
    --radius: 32px;
}

.card {
    border-radius: 24px;
    box-shadow: 0 2px 6px -2px rgba(27, 27, 27, 0.10), 0 4px 10px -2px rgba(27, 27, 27, 0.10);
    background: var(--card);
    width: 100%;
    overflow: visible;
    padding: 40px 32px;
}

/* TABS */
.tabs {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-size: .875rem;
    border: none;
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s;
}

.tab.active {
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
}

.tab:not(.active):hover {
    background: #e0e0e0;
    color: var(--text);
}

/* CARD BODY */
.card-body {
    padding: 28px 26px 22px;
}

/* FIELD */
.field {
    margin-bottom: 20px;
}

.field-label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 7px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s;
    padding: 8px 6px;
}

.field-input {
    flex: 1;
    border: none;
    font-size: .9rem;
    outline: none;
    background: transparent;
    min-width: 0;
}

.field-input::placeholder {
    color: #ddd;
}

/* BRL BADGE (fixo, não abre) */
.brl-badge {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 7px;
    background: transparent;
    border-radius: 50px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: .875rem;
    color: var(--text);
    white-space: nowrap;
}

.brl-badge img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* CUSTOM SELECT */
.csel-wrap {
    position: relative;
    flex-shrink: 0;
    user-select: none;
}

.csel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    flex-direction: row-reverse;
    border-radius: 50px;
    padding: 7px 30px 7px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    color: var(--text);
    min-width: 95px;
    transition: background 0.15s;
    position: relative;
    white-space: nowrap;
}

.csel-btn:hover {
    background: #e8e8e8;
}

.csel-btn img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.csel-arrow {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text);
    pointer-events: none;
}

/* DROPDOWN */
.csel-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
    z-index: 9999;
    min-width: 260px;
    max-height: 280px;
    overflow: hidden;
    flex-direction: column;
}

.csel-list.open {
    display: flex;
}

.csel-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.csel-search-row input {
    border: none;
    outline: none;
    width: 100%;
    color: var(--text);
}

.csel-search-row input::placeholder {
    color: #bbb;
}

.csel-options {
    overflow-y: auto;
    flex: 1;
}

.csel-options::-webkit-scrollbar {
    width: 4px;
}

.csel-options::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.csel-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: background 0.1s;
}

.csel-opt:hover {
    background: #f5f5f5;
}

.csel-opt.selected {
    background: rgba(208, 2, 27, 0.06);
    color: var(--red);
    font-weight: 700;
}

.csel-opt img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.csel-opt .opt-name {
    color: #aaa;
    margin-left: auto;
    font-weight: 400;
    font-size: .8125rem;
}

/* SWAP */
.swap-row {
    text-align: center;
    margin: 2px 0 18px;
}

.swap-btn {
    background: none;
    padding: 7px 18px;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    border: none;
    gap: 6px;
    transition: all 0.2s;
}

.swap-btn i {
    font-size: .8rem;
}

.swap-btn:hover {
    color: var(--red);
}

/* RATE INFO */
.rate-info {
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #6C6C6C;
    line-height: 1.75;
    text-align: center;
    min-height: 52px;
    transition: opacity 0.3s;
}

.rate-info small {
    font-size: 12px;
    color: #6C6C6C;
}

/* CTA */
.cta-btn {
    width: 100%;
    background: var(--red);
    color: #fff;
    display: block;
    border: none;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cta-btn:hover {
    background: var(--red-dark);
    color: #fff;
}

.cta-btn:active {
    transform: scale(0.98);
}

.link-form__saibamais {
    text-align: center;
    margin-top: 25px;
    margin-bottom: -20px;
    display: block;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-size: .875rem;
    transition: .4s;
}

.link-form__saibamais:hover {
    color: var(--red);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 2px solid #ddd;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

.cot-modal-open {
    display: flex !important;
}

.cot-section-title {
    font-weight: 600;
    color: #9ca3af;
    padding: 14px 22px 6px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cot-row {
    display: grid;
    grid-template-columns: 40px 3fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.1s;
}

.cot-row:hover {
    background: #fafafa;
}

.cot-row img {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.cot-name {
    font-weight: 500;
    color: #1a1a2e;
}

.cot-name small {
    display: block;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 1px;
}

.cot-price {
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
}

.cot-price small {
    display: block;
    color: #9ca3af;
    font-weight: 400;
}

.cot-col-header {
    display: grid;
    grid-template-columns: 26px 1fr auto auto;
    gap: 10px;
    padding: 6px 22px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.cot-col-header span {
    font-weight: 600;
    color: #9ca3af;
    text-align: right;
}

.cot-col-header span:nth-child(2) {
    text-align: left;
}