/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body,
* {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='4' cy='4' r='3' fill='rgba(100,100,100,0.5)' stroke='rgba(255,255,255,0.8)' stroke-width='1' /%3E%3C/svg%3E") 4 4, auto !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

html,
body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f1f2;
    color: #161823;
    font-size: 15px;
    line-height: 1.4;
}

/* ===== DESKTOP NAVBAR ===== */
.tt-navbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-app-region: drag;
}

.tt-navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
    gap: 16px;
}

.tt-logo {
    display: flex;
    align-items: center;
    flex: 1 1 0%;
    -webkit-app-region: drag;
}

.tt-search {
    flex: 0 1 420px;
    display: flex;
    align-items: center;
    background: #f1f1f2;
    border-radius: 92px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color .2s;
    -webkit-app-region: no-drag;
}

.tt-search:focus-within {
    border-color: #ccc;
}

.tt-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    color: #161823;
}

.tt-search-input::placeholder {
    color: #a0a0a0;
}

.tt-search-btn {
    background: none;
    border: none;
    border-left: 1px solid #e3e3e4;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tt-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0%;
    justify-content: flex-end;
}

.tt-upload-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e3e3e4;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #161823;
    transition: background .15s;
    -webkit-app-region: no-drag;
}

.tt-upload-btn:hover {
    background: #f5f5f5;
}

.tt-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #161823;
    display: flex;
    align-items: center;
    border-radius: 50%;
    -webkit-app-region: no-drag;
}

.tt-icon-btn:hover {
    background: #f1f1f2;
}

.tt-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #fe2c55;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.3;
}

.tt-avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    -webkit-app-region: no-drag;
}

.tt-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

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

/* Dropdown Menu */
.tt-profile-menu {
    position: absolute;
    top: 46px;
    right: -8px;
    width: 210px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.tt-menu-caret {
    position: absolute;
    top: -5px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top-left-radius: 2px;
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.04);
    z-index: -1;
    /* Place under the menu background to hide the bottom half */
}

.tt-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #161823;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    background: #fff;
}

.tt-menu-item:hover {
    background: #f8f8f8;
}

.tt-menu-item svg {
    flex-shrink: 0;
    color: #161823;
}

.tt-menu-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 4px 0;
}

.hidden {
    display: none !important;
}

/* ===== PAGE WRAPPER ===== */
body {
    background: #f8f8f8;
}

.page-wrapper {
    max-width: 900px;
    margin: 24px auto 40px;
    background: #fff;
    border-radius: 8px;
    padding: 0 24px 36px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 18px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
}

.view-history {
    font-size: 14px;
    color: #161823;
    text-decoration: none;
    font-weight: 500;
}

.view-history:hover {
    text-decoration: underline;
}

/* ===== USER CARDS FLEX ===== */
.user-cards-flex {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.user-card-left-box,
.user-card-right-box {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 16px 20px;
}

.user-card-left-box {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: fit-content;
}

/* .user-card-right-box {
    flex: 1;
} */

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 700;
    font-size: 15px;
}

.user-coins {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #8a8b91;
}

.tiktok-coin-sm {
    width: 16px;
    height: 16px;
}

.tiktok-coin-xs {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 2px;
}

.user-divider {
    width: 1px;
    height: 36px;
    background: #e0e0e0;
    margin: 0 20px;
}

.user-exchange {
    display: flex;
    flex-direction: column;
}

.user-exchange a {
    font-size: 14px;
    color: #161823;
    text-decoration: none;
    font-weight: 600;
}

.user-exchange a:hover {
    text-decoration: underline;
}

.exchange-sub {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #8a8b91;
    margin-top: 2px;
}

.user-card-right-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    min-width: 200px;
}

.invite-link {
    font-size: 14px;
    color: #161823;
    text-decoration: none;
    font-weight: 600;
}

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

.invite-code {
    font-size: 12px;
    color: #8a8b91;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== USERNAME INPUT ===== */
.username-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.username-input-wrapper.error {
    border-color: #fe2c55;
    box-shadow: 0 0 0 1px #fe2c55;
    background: transparent;
}

.username-input-wrapper:focus-within {
    border-color: #d0d0d0;
}

.username-tt-icon {
    flex-shrink: 0;
}

.username-input-clean {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #161823;
    outline: none;
    font-family: inherit;
    padding: 4px 0;
}

.username-input-clean::placeholder {
    color: #8a8b91;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    display: block;
}

/* ===== RECHARGE ROW ===== */
.recharge-row {
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.recharge-row strong {
    color: #161823;
    font-weight: 700;
}

.red-text {
    color: red;
    font-weight: 600;
}

.info-circle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 2px;
}

/* ===== COIN GRID ===== */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.coin-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: #f8f8f8;
    user-select: none;
}

.coin-card:hover {
    border-color: #d0d0d0;
    background: #f1f1f2;
}

.coin-card.selected {
    border-color: #fe2c55;
    background: #fff0f3;
}

.coin-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.tiktok-coin {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.coin-amount {
    font-size: 22px;
    font-weight: 700;
    color: #161823;
    line-height: 1;
}

.coin-price {
    font-size: 13px;
    color: #8a8b91;
}

.custom-card .coin-amount {
    font-size: 18px;
}

.custom-card .coin-price {
    font-size: 11px;
}

/* Custom input view */
.custom-input-view {
    width: 100%;
}

.custom-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
}

.custom-coin-input {
    border: none;
    border-bottom: 1.5px solid #161823;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #161823;
    width: 115px;
    text-align: center;
    outline: none;
    font-family: inherit;
    padding: 2px 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.custom-coin-input::-webkit-outer-spin-button,
.custom-coin-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-min-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #8a8b91;
    /* Default hint color (gray) */
    font-weight: 500;
    height: 16px;
    margin-top: 4px;
}

.custom-min-hint.error {
    color: #fe2c55;
    font-weight: 600;
}

#hintIcon {
    display: flex;
    align-items: center;
}

/* ===== SPECIAL OFFER ===== */
.offer-section {
    border: 1px solid #e8e8e8;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.offer-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.offer-title strong {
    font-weight: 700;
}

.offer-avail {
    font-size: 13px;
    color: #8a8b91;
}

.offer-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
}

.offer-pct {
    display: flex;
    align-items: flex-start;
    color: #fe2c55;
    flex-shrink: 0;
}

.pct-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.pct-sign {
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
}

.offer-body {
    flex: 1;
}

.offer-main {
    font-size: 14px;
    font-weight: 600;
    color: #161823;
    margin-bottom: 4px;
    line-height: 1.35;
}

.offer-sub {
    font-size: 12px;
    color: black;
    /* color: #8a8b91; */
}

.offer-sub a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.btn-claim {
    background: #f1f1f2;
    border: 1px solid #e3e3e4;
    border-radius: 4px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background .15s;
}

.btn-claim:hover {
    background: #e3e3e4;
}

/* ===== PAYMENT ===== */
.pay-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pay-label {
    font-size: 14px;
    color: #161823;
    white-space: nowrap;
}

.pay-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pay-icon {
    height: 22px;
    width: auto;
    display: inline-block;
    object-fit: contain;
}



/* ===== TOTAL ===== */
.total-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.total-label {
    font-size: 15px;
    color: #161823;
}

.total-value {
    font-size: 20px;
    font-weight: 700;
    color: #161823;
}

/* ===== ACTION ROW ===== */
.action-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.btn-recharge {
    /* background: linear-gradient(90deg, #fe2c55, #ff6480); */
    background: red;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 0;
    min-width: 250px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .3px;
    transition: opacity .15s;
}

.btn-recharge:hover {
    opacity: .92;
}

.btn-recharge:disabled {
    background: rgba(254, 44, 85, 0.34);
    color: rgba(255, 255, 255, 0.4);
    cursor: default;
    opacity: 1;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.secure-text {
    font-size: 9px;
    font-weight: 700;
    color: #22c55e;
    line-height: 1.15;
}

.secure-text span {
    font-size: 10px;
}

/* ===== FLOATING MENU ===== */
.float-button-container-iO0w_p {
    position: fixed;
    bottom: 50px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

@media (min-width: 1060px) {
    .float-button-container-iO0w_p {
        right: calc(50% - 450px - 64px);
    }
}

.faq-button-container-rMjp4K {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: #161823;
    transition: background 0.2s, box-shadow 0.2s;
}

.faq-button-container-rMjp4K:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.faq-button-container-rMjp4K img {
    border-radius: 50%;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 900px) {
    .page-wrapper {
        margin: 0 auto;
        border-radius: 0;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .tt-search {
        display: none;
    }

    .user-cards-flex {
        flex-direction: column;
        gap: 12px;
    }

    .user-card-left-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-divider {
        width: 100%;
        height: 1px;
        margin: 16px 0;
    }

    .coin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .tt-upload-btn {
        display: none;
    }

    .tt-navbar-inner {
        padding: 0 16px;
    }

    .tt-nav-right {
        gap: 8px;
    }

    .coin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-row {
        flex-direction: column;
        align-items: flex-end;
        gap: 16px;
    }

    .btn-recharge {
        width: 50%;
        min-width: unset;
    }

    .offer-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .recharge-row {
        align-items: flex-start;
    }
}

/* ===== MODAL OVERLAY ===== */
/* ===== TUX DESIGN SYSTEM VARIABLES ===== */
:root {
    --ui-text-success: #00a699;
    --ui-text-1: #161823;
    --ui-text-3: #8a8b91;
    --ui-shape-neutral-3: #e8e8e8;
    --ui-shape-neutral-4: #d1d1d1;
    --ui-image-overlay-white: #ffffff;
}

.TUXText {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.3;
}

.TUXText--tiktok-sans {
    font-family: 'Inter', sans-serif;
    /* Fallback for TikTok Sans */
}

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

.TUXText--weight-medium {
    font-weight: 600;
}

.TUXText--weight-normal {
    font-weight: 400;
}

.tux-separator {
    height: 1px;
    width: 100%;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-container {
    background: #ffffff;
    width: 764px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.modal-header {
    padding: 16px 24px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-info-row {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ui-text-1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

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

/* Body */
.modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 24px;
}

.section-margin {
    margin: 12px 0;
}

/* Account & Total */
.info-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Payment Methods */
.payment-methods-wrapper {
    margin-bottom: 24px;
}

.method-item {
    padding: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-item:hover {
    background-color: #f8f8f8;
}

.method-item.active {
    border-color: #fe2c55;
    background-color: #fff;
}

.method-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-custom {
    width: 16px;
    height: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-outer {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--ui-shape-neutral-4);
    position: absolute;
}

.radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fe2c55;
    display: none;
}

.method-item.active .radio-outer {
    border-color: #fe2c55;
}

.method-item.active .radio-inner {
    display: block;
}

.method-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.method-name-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-icon-img {
    height: 20px;
    object-fit: contain;
}

.method-icons-list {
    display: flex;
    gap: 4px;
}

.method-icons-list img {
    height: 16px;
}

.method-sub-desc {
    margin: 8px 0 0 28px;
    color: var(--ui-text-3);
    font-size: 14px;
}

/* Footer */
.modal-footer {
    padding: 12px 24px;
    flex-shrink: 0;
    border-top: 1px solid #ebebeb;
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
}

.TUXButton {
    background: #fe2c55;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 24px;
    height: 36px;
    min-width: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    width: fit-content;
}

.TUXButton:active {
    opacity: 0.8;
}

.TUXButton:hover {
    background: #ef2950;
}

.TUXButton:hover {
    background: #ef2950;
}

/* Policy */
.policy-area {
    margin-bottom: 16px;
}

.TUXLink {
    color: var(--ui-text-1);
    text-decoration: none;
    font-weight: 600;
}

.TUXLink:hover {
    text-decoration: underline;
}

/* ===== SECURE LOGO & TOOLTIP ===== */
.secure-badge,
.secure-payment-area {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.secure-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 3000;
    cursor: default;
}

.secure-badge:hover .secure-tooltip,
.secure-payment-area:hover .secure-tooltip {
    opacity: 1;
    visibility: visible;
}

.secure-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 24px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.st-header {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #161823;
    margin-bottom: 24px;
}

.st-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.st-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.st-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.st-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.st-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #161823;
    line-height: 1.2;
}

.st-item-desc {
    font-size: 13px;
    color: #161823;
    opacity: 0.8;
    line-height: 1.4;
}

.st-footer {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #f1f1f2;
}

.st-pci-logo {
    height: 48px;
    object-fit: contain;
}

@media (max-width: 500px) {
    .secure-tooltip {
        width: 340px;
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
        z-index: 9999;
    }

    .secure-tooltip::after {
        display: none;
    }
}

/* Toast system */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.toast {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Processing & Success Modals */
.modal-overlay.processing {
    background: rgba(0, 0, 0, 0.4);
    z-index: 5000;
}

.processing-container {
    background: rgba(22, 24, 35, 0.85);
    backdrop-filter: blur(8px);
    width: 260px;
    padding: 32px 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-align: center;
}

.processing-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

/* TikTok Dots Loader */
.tiktok-loader {
    position: relative;
    width: 40px;
    height: 16px;
    display: flex;
    justify-content: center;
}

.dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.dot-blue {
    background-color: #00f2ea;
    left: 4px;
    animation: dotSwapBlue 0.6s infinite alternate cubic-bezier(1, 0, 0, 1);
}

.dot-red {
    background-color: #ff0050;
    right: 4px;
    animation: dotSwapRed 0.6s infinite alternate cubic-bezier(1, 0, 0, 1);
}

@keyframes dotSwapBlue {
    0% {
        transform: translateX(0);
        z-index: 1;
    }

    50% {
        transform: translateX(8px) scale(1.1);
    }

    100% {
        transform: translateX(16px);
        z-index: 0;
    }
}

@keyframes dotSwapRed {
    0% {
        transform: translateX(0);
        z-index: 0;
    }

    50% {
        transform: translateX(-8px) scale(1.1);
    }

    100% {
        transform: translateX(-16px);
        z-index: 1;
    }
}

/* Success Modal Specifics */
.success-container {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 40px 24px 32px;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.success-check-circle {
    width: 72px;
    height: 72px;
    background: #00b67a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: #161823;
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 16px;
    color: #161823;
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.5;
}

.bookmark-area {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
}

.bookmark-title {
    font-size: 18px;
    font-weight: 700;
    color: #161823;
    margin-bottom: 20px;
}

.bookmark-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 400px;
}

.bookmark-url {
    font-size: 15px;
    color: #8a8b91;
}

.bookmark-tip {
    font-size: 14px;
    color: #161823;
    font-weight: 600;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161823;
}

.modal-close-btn:hover {
    background: #f1f1f2;
}

.tt-logo {
    -webkit-app-region: drag;
    -webkit-user-select: none;
    user-select: none;
}