/* ============================================
   PowerFlow - TRX Energy Rental Platform
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3d;
    --bg-card: rgba(20, 27, 61, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    
    /* Spacing */
    --section-gap: 50px;
    --container-max: 1200px;
    --header-height: 60px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    flex-shrink: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    color: #00d4ff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.lang-icon {
    font-size: 1rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: 40px 0 30px;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease forwards;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

.card-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-body {
    padding: 24px;
}

.transfer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.info-value.success {
    color: var(--accent-green);
}

.status-active {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.transfer-visual {
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.energy-flow {
    display: flex;
    gap: 8px;
}

.flow-line {
    width: 40px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: flowAnimation 1.5s infinite;
}

.flow-line:nth-child(2) { animation-delay: 0.2s; }
.flow-line:nth-child(3) { animation-delay: 0.4s; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.scroll-line {
    width: 100%;
    height: 20px;
    background: var(--gradient-primary);
    animation: scrollDown 2s infinite;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    position: relative;
    padding: var(--section-gap) 0;
    z-index: 1;
}

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

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    position: relative;
    padding: var(--section-gap) 0;
    z-index: 1;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    max-width: 260px;
    transition: var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.step-label-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    text-align: center;
}

.step-content {
    margin-bottom: 16px;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.step-visual {
    color: var(--accent-cyan);
}

.step-connector {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    position: relative;
    padding: var(--section-gap) 0;
    z-index: 1;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-normal);
}

.faq-question:hover {
    color: var(--accent-cyan);
}

.faq-icon {
    transition: var(--transition-normal);
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 16px;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    padding: 40px 0 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 280px;
}

.footer-desc {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.link-group h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes flowAnimation {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(300%);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-gap: 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 24px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 30px;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }
    
    .nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .lang-toggle {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .visual-card {
        max-width: 100%;
    }
}

/* ============================================
   Rental Section
   ============================================ */
.rental-section {
    padding: 40px 0 30px;
    display: none;
}

.rental-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.rental-card {
    background: rgba(15, 20, 50, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 212, 255, 0.03);
}

/* ---- Loading State ---- */
.rental-loading {
    padding: 40px 24px 32px;
    text-align: center;
}

.loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
    transition: width 0.1s linear;
}

.loading-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.04em;
    font-family: 'Courier New', 'SF Mono', monospace;
}

/* ---- Transfer Card Header ---- */
.transfer-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.traffic-lights {
    display: flex;
    gap: 7px;
}

.light {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
}

.light-red {
    background: #ff5f57;
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.5);
}

.light-yellow {
    background: #febc2e;
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.5);
}

.light-green {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}

.transfer-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

/* ---- Transfer Info Rows ---- */
.transfer-info {
    padding: 20px 24px 16px;
}

.transfer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.transfer-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

.transfer-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.transfer-value.fee-saved {
    color: #10b981;
    font-weight: 700;
    font-size: 17px;
}

.transfer-value.status-active {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
}

.transfer-value.status-active .status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ---- Address Section ---- */
.address-section {
    padding: 0 24px 24px;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.address-text {
    flex: 1;
    font-family: 'Courier New', 'SF Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.address-copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.address-copy-btn:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.address-copy-btn.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--success);
}

/* ---- Countdown ---- */
.countdown-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
    padding-left: 4px;
}

.countdown-value {
    font-family: 'Courier New', 'SF Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.04em;
}

/* ---- Refetch Button ---- */
.refetch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.refetch-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
}

.refetch-btn.refetched {
    animation: refetchFlash 0.5s ease;
}

@keyframes refetchFlash {
    0% { background: rgba(0, 212, 255, 0.2); }
    100% { background: rgba(255, 255, 255, 0.04); }
}

/* ---- Savings Banner ---- */
.savings-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(0, 212, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.savings-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    color: var(--accent-primary);
}

.savings-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.savings-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.rental-header {
    text-align: center;
    margin-bottom: 32px;
}

.rental-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rental-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.rental-body {
    /* Container for rental content */
}

/* Steps Progress */
.rental-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 12px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.step.completed .step-circle {
    background: var(--success);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--text-primary);
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Payment Card */
.payment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-address {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

/* Amount Display */
.amount-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.amount-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Savings Info */
.savings-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.savings-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.savings-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

.savings-value.highlight {
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Message */
.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse 2s infinite;
}

/* Confirm Content */
.confirm-content {
    text-align: center;
    padding: 40px 20px;
}

.confirm-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.confirm-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    animation: progressFill 10s ease forwards;
}

/* Complete Content */
.complete-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 24px;
    animation: successPulse 0.6s ease;
}

.complete-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.complete-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Button Full Width */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .rental-steps {
        gap: 8px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-line {
        width: 24px;
    }
    
    .payment-address {
        font-size: 11px;
    }
}

/* ---- Rental Section Responsive ---- */
@media (max-width: 768px) {
    .rental-section {
        padding: 30px 0 20px;
    }
    
    .rental-card {
        margin: 0 16px;
        border-radius: 14px;
    }
    
    .transfer-card-header {
        padding: 14px 18px;
    }
    
    .transfer-info {
        padding: 16px 18px 12px;
    }
    
    .transfer-label {
        font-size: 13px;
    }
    
    .transfer-value {
        font-size: 14px;
    }
    
    .transfer-value.fee-saved {
        font-size: 16px;
    }
    
    .address-section {
        padding: 0 20px 24px;
    }
    
    .address-text {
        font-size: 12px;
    }
    
    .savings-banner {
        padding: 16px 20px;
    }
    
    .rental-loading {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .rental-card {
        margin: 0 12px;
        border-radius: 12px;
    }
    
    .transfer-card-header {
        padding: 12px 14px;
        gap: 8px;
    }
    
    .transfer-title {
        font-size: 13px;
    }
    
    .light {
        width: 10px;
        height: 10px;
    }
    
    .transfer-info {
        padding: 14px 14px 10px;
    }
    
    .transfer-row {
        padding: 10px 0;
    }
    
    .transfer-label {
        font-size: 13px;
    }
    
    .transfer-value {
        font-size: 14px;
    }
    
    .transfer-value.fee-saved {
        font-size: 15px;
    }
    
    .address-section {
        padding: 0 16px 20px;
    }
    
    .address-box {
        padding: 12px;
    }
    
    .address-text {
        font-size: 11px;
    }
    
    .address-copy-btn {
        width: 34px;
        height: 34px;
    }
    
    .countdown-display {
        font-size: 12px;
    }
    
    .countdown-value {
        font-size: 13px;
    }
    
    .refetch-btn {
        padding: 11px;
        font-size: 12px;
    }
    
    .savings-banner {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .savings-icon {
        width: 36px;
        height: 36px;
    }
    
    .savings-text {
        font-size: 12px;
    }
}
