/* USDT Transfer Tool Styles */

/* Hero Section */
.transfer-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 30px 15px 10px;
    position: relative;
    overflow: hidden;
}

.transfer-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: left;
    max-width: 100%;
    margin: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cool);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cool) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Main Content Section */
.content-section {
    padding: 20px 0;
    background: var(--bg-primary);
}

/* Card Styles */
.transfer-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Wallet Info */
.wallet-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.wallet-info h5 {
    color: var(--accent-cool);
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.wallet-details {
    font-size: 13px;
}

.wallet-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 13px;
    padding: 4px 0;
}

.wallet-detail-full {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wallet-detail span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.wallet-detail span:last-child {
    font-weight: 600;
}

/* Compact wallet details in columns */
.wallet-info .row {
    margin-top: 6px;
}

.wallet-info .col-6 .wallet-detail {
    padding: 1px 0;
    margin-bottom: 2px;
}

.wallet-info .col-6 .wallet-detail:last-child {
    margin-bottom: 0;
}

/* Custom grid for wallet details - NOT using Bootstrap */
.wallet-details-grid {
    display: flex !important;
    gap: 10px;
    margin-top: 6px;
}

.wallet-details-col {
    flex: 1;
    width: 50%;
}

/* Form Styles */
.form-group {
    margin-bottom: 12px;
}

.form-group:first-child {
    margin-top: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 12px 16px;
    font-size: 16px;
}

.form-control:focus {
    background: white;
    border-color: var(--accent-cool);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Input group styles */
.input-group {
    position: relative;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn-outline-secondary {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

.input-group .btn-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fee Info */
.fee-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 80, 254, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.fee-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.fee-info strong {
    color: var(--accent-cool);
}

/* Buttons */
.btn-transfer {
    background: linear-gradient(90deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-transfer:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-transfer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Activation Button */
.btn-activate {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #dc2626 100%);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-activate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-activate:hover {
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #ef4444 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.5);
    text-decoration: none;
}

.btn-activate:hover::before {
    left: 100%;
}

.btn-activate i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Rent Energy Button */
.btn-rent-energy {
    background: linear-gradient(90deg, var(--accent-cool) 0%, var(--accent-mid) 100%);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-rent-energy:hover {
    background: linear-gradient(90deg, var(--accent-mid) 0%, var(--accent-warm) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    text-decoration: none;
}

.btn-rent-energy i {
    font-size: 18px;
}

/* Success Modal Styles */
.modal-content {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
}

.modal-header {
    padding: 24px 24px 16px;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
}

.transaction-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
}

.transaction-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.transaction-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.transaction-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-label i {
    color: var(--accent-cool);
}

.transaction-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.transaction-id {
    font-size: 13px;
    font-family: monospace;
    word-break: break-all;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.transaction-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cool);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.transaction-link:hover {
    color: var(--accent-mid);
    text-decoration: underline;
}

.transaction-summary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 80, 254, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
}

.transaction-summary p {
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
}

.transaction-summary strong {
    color: var(--accent-cool);
}

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    display: none;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

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

.status-message.info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cool);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-cool);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Connect Wallet Prompt */
#connect-wallet-prompt {
    background: linear-gradient(135deg, rgba(66, 93, 207, 0.05) 0%, rgba(0, 80, 254, 0.05) 100%);
    border: 1px solid rgba(66, 93, 207, 0.2);
    padding: 15px !important;
    border-radius: 12px;
    text-align: center;
    margin: 0 !important;
}

#connect-wallet-prompt h5 {
    margin-bottom: 10px !important;
}

#connect-wallet-prompt p {
    margin-bottom: 15px !important;
}

#connect-wallet-prompt i[style*="font-size: 48px"] {
    font-size: 36px !important;
    margin-bottom: 15px !important;
}

/* Glass Card - similar to main page */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    overflow: hidden;
}

.glass-card .card-body {
    padding: 0.5rem !important;
}

/* Form-specific glass card */
.glass-card-form {
    max-width: 100%;
    margin: 0 auto;
}

/* Adjusted column for form */
.form-column-adjusted {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 991px) {
    /* Reset on mobile/tablet */
    .glass-card-form {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .form-column-adjusted {
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
    }
}

@media (max-width: 768px) {
    /* Additional padding for mobile */
    .glass-card .card-body {
        padding: 0.5rem !important;
    }
    
    /* Force two-column layout on mobile for wallet details - OVERRIDE BOOTSTRAP */
    .wallet-info .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .wallet-info .col-6,
    .wallet-info [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    /* Smaller font for mobile */
    .wallet-detail {
        font-size: 12px;
    }
    
    .wallet-info h5 {
        font-size: 14px;
    }
}

/* Hero Features */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1rem;
    text-align: left;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    /* animation: fadeInUp 0.6s ease forwards; */
    line-height: 1 !important;
}

.hero-feature-item:last-child {
    margin-bottom: 0 !important;
}

.hero-feature-item i {
    font-size: 1.1rem;
    color: var(--accent-cool);
    flex-shrink: 0;
}

.hero-feature-item span {
    font-size: 1rem;
    line-height: 1.2;
}

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

/* Hero Info Banner */
.hero-info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-info-banner i {
    color: #3b82f6;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-info-banner span {
    flex: 1;
}

/* Force two columns on all screen sizes */
.wallet-info .row {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.wallet-info .col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

/* Responsive */
@media (max-width: 991px) {
    .transfer-hero {
        padding: 60px 0 40px;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Ensure form is on top on mobile */
    .hero-mobile-form {
        margin-bottom: 3rem;
    }
    
    /* Add padding for text content on mobile */
    .hero-mobile-text {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
}

/* Extra small devices - force two columns */
@media (max-width: 576px) {
    .wallet-info .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .wallet-info .col-6,
    .wallet-info [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    /* Container padding override */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .transfer-hero {
        padding: 30px 0 10px;
    }
}

/* Explainer Content Sections */
.explainer-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.explainer-section.alt-bg {
    background: var(--bg-secondary);
}

/* Problem section with distinct background */
.explainer-section#problem {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(0, 150, 200, 0.02) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
}

.explainer-section#problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 1rem auto 0;
}

/* Flow Diagram Styles */
.flow-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.flow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-line {
    height: 0;
    transition: height 0.5s ease;
}

.flow-line.visible {
    height: 3rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Problem Section - Old Way */
.old-way-flow .icon-box {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.old-way-flow .flow-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

/* Solution Section - New Way */
.new-way-flow .icon-box {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cool);
}

.new-way-flow .flow-step:last-child .icon-box {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.new-way-flow .flow-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

/* Solution section background */
.explainer-section#solution {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    position: relative;
}

.explainer-section#solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Comparison section */
.explainer-section#compare {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* B2B section */
.explainer-section#b2b {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ section */
.explainer-section#faq {
    background: var(--bg-primary);
}

/* Comparison Tabs */
.tab-button {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    background: none;
    border: none;
    padding: 1rem 0.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.tab-button.active {
    border-color: var(--accent-cool);
    color: var(--accent-cool);
}

.tab-button:hover {
    color: var(--accent-cool);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-content {
    margin-top: 2rem;
}

/* B2B Section */
.b2b-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.b2b-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.b2b-card .icon-box {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cool);
    margin: 0 auto 1rem;
}

.b2b-card h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.b2b-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* FAQ Section */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 0 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Flow step content */
.flow-content {
    flex: 1;
}

.flow-content h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.flow-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Competitive advantage cards */
.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

.advantage-card h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.advantage-item .icon-box {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.advantage-item.positive .icon-box {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.advantage-item.negative .icon-box {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Responsive adjustments for content sections */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .explainer-section {
        padding: 60px 0;
    }
    
    .b2b-card {
        margin-bottom: 1rem;
    }
}