/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e5e5e5;
    background: #0f0f19;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light {
    color: #1e1e2e;
    background: #f0f0f5;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    animation: gradientShift 20s ease-in-out infinite;
}

body.light .gradient-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm0 0l-15 15v-30l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    animation: patternFloat 30s linear infinite;
}

.blockchain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ff9100' stroke-width='1' opacity='0.1'%3E%3Cpath d='M50 10l30 20v40l-30 20-30-20V30z'/%3E%3Cpath d='M20 30l30-20 30 20M20 70l30 20 30-20M50 10v80M20 30v40M80 30v40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: blockchainFloat 25s linear infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff9100;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 15s linear infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

body.light .blockchain-bg {
    opacity: 0.02;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes patternFloat {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-60px) translateY(-60px); }
}

@keyframes blockchainFloat {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-200px) translateY(-200px); }
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideDown {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 145, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 145, 0, 0.6); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 145, 0, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 145, 0, 0.8); }
}

@keyframes counterUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.3; stroke-dashoffset: 0; }
    50% { opacity: 1; stroke-dashoffset: 10; }
}

/* Animation Classes */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.rotate-animation {
    animation: rotate 20s linear infinite;
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.slide-down {
    animation: slideDown 0.6s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.counter-animation {
    animation: counterUp 0.8s ease-out forwards;
}

.glow-text {
    animation: textGlow 3s ease-in-out infinite;
}

.glow-border {
    animation: glow 3s ease-in-out infinite;
}

.pulse-glow {
    animation: glow 2s ease-in-out infinite;
}

.input-glow:focus {
    animation: glow 0.3s ease-out;
}

.pulse-hover:hover {
    animation: pulse 0.3s ease-out;
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .glass-panel:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 145, 0, 0.4);
}

/* Container */
.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.header {
    padding: 16px;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff9100, #e67e00);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
    flex-shrink: 0;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 2px;
}

.logo-text {
    min-width: 0;
    flex: 1;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 8px;
}

.progress-step {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.progress-step:hover {
    transform: translateY(-2px);
}

.progress-step.active {
    background: linear-gradient(135deg, #ff9100, #e67e00);
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.step-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 500;
    opacity: 0.5;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.progress-step.active .step-label {
    opacity: 1;
    color: #ff9100;
}

.progress-line {
    width: 8px;
    height: 2px;
    background: #4a5568;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-line.active {
    background: linear-gradient(90deg, #ff9100, #e67e00);
    box-shadow: 0 0 8px rgba(255, 145, 0, 0.5);
}

/* Recovery Interface - Enhanced Styles */
.recovery-interface {
    padding: 24px;
    flex: 1;
    order: 3; /* Position in middle */
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

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

.step-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 16px;
}

.info-badge.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.badge-icon {
    font-size: 16px;
}

.step-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.step-details {
    margin-bottom: 32px;
}

/* Security Features Mini */
.security-features-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 145, 0, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.feature-text p {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

/* Recovery Summary */
.recovery-summary {
    margin-bottom: 32px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff9100;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

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

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 500;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e5;
}

.summary-value.amount {
    color: #ff9100;
    font-size: 16px;
}

/* Fee Breakdown */
.fee-breakdown {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.fee-breakdown h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff9100;
}

.breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    border-top: 2px solid rgba(255, 145, 0, 0.3);
    padding-top: 16px;
    margin-top: 8px;
    font-weight: 700;
}

.breakdown-label {
    font-size: 14px;
    opacity: 0.8;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 600;
    color: #ff9100;
}

.breakdown-item.total .breakdown-value {
    font-size: 18px;
}

/* Processing Timeline */
.processing-timeline {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.processing-timeline h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ff9100;
}

.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-item.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.timeline-item.active {
    border-color: rgba(255, 145, 0, 0.3);
    background: rgba(255, 145, 0, 0.05);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.timeline-item.completed .timeline-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.timeline-item.active .timeline-icon {
    background: rgba(255, 145, 0, 0.2);
    color: #ff9100;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    font-weight: 600;
    color: #ff9100;
}

.timeline-item.completed .timeline-time {
    color: #10b981;
}

/* Forms - Enhanced */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.label-icon {
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 12px;
    font-size: 16px;
    color: inherit;
    transition: all 0.3s ease;
    word-break: break-all;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9100;
    box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

body.light .form-group input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .form-group input:focus {
    background: rgba(255, 255, 255, 0.95);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.help-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 6px;
    word-break: break-word;
}

.help-icon {
    font-size: 14px;
}

/* Buttons - Enhanced */
.btn-primary,
.btn-secondary {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9100, #e67e00);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67e00, #cc6e00);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 145, 0, 0.4);
}

.btn-primary:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 145, 0, 0.3);
    transform: translateY(-2px);
}

body.light .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-icon {
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
}

/* Security Notice */
.security-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.notice-icon {
    font-size: 20px;
    color: #f59e0b;
}

.notice-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #f59e0b;
    margin: 0;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 4px 0;
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    padding-left: 20px;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Payment Instructions */
.payment-instructions {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.payment-instructions h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ff9100;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.instruction-list li {
    counter-increment: step-counter;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    padding-left: 32px;
}

.instruction-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff9100, #e67e00);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.payment-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.warning-icon {
    font-size: 16px;
    color: #ef4444;
    flex-shrink: 0;
}

/* Verification Status */
.verification-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    font-size: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.status-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #10b981;
}

.status-text p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Success Banner */
.success-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 24px;
    border-radius: 12px;
    text-align: left;
}

.success-icon {
    font-size: 32px;
    color: #10b981;
    flex-shrink: 0;
}

.success-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #10b981;
}

.success-text p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Blockchain Info */
.blockchain-info {
    padding: 16px;
    order: 6; /* Position at bottom */
}

.ethereum-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.price-info {
    min-width: 0;
    flex: 1;
}

.price-info h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ethereum-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #627eea, #4f6bd5);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(98, 126, 234, 0.3);
    flex-shrink: 0;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    word-break: break-word;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    margin-top: 4px;
}

.price-change.negative {
    color: #ef4444;
}

.price-chart {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.blockchain-stats,
.mempool-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
    overflow: hidden;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
    transform: translateY(-2px);
}

body.light .stat-item {
    background: rgba(0, 0, 0, 0.05);
}

body.light .stat-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.stat-item h3 {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-item p {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    word-break: break-word;
    line-height: 1.2;
}

.hash-text {
    font-family: 'Courier New', monospace;
    font-size: 12px !important;
    word-break: break-all;
    line-height: 1.3;
}

.highlight-text {
    color: #ff9100;
    font-weight: 700;
}

/* Network Status */
.network-status {
    margin-top: 32px;
}

.network-status h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.status-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
    overflow: hidden;
}

.status-panel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .status-panel {
    background: rgba(0, 0, 0, 0.05);
}

body.light .status-panel:hover {
    background: rgba(0, 0, 0, 0.08);
}

.status-panel h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
    gap: 8px;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
    transform: translateX(4px);
}

body.light .transaction-item {
    background: rgba(0, 0, 0, 0.05);
}

body.light .transaction-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.tx-hash {
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-item:hover .tx-hash {
    color: #ff9100;
}

.tx-value {
    font-weight: 600;
    color: #ff9100;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Fee Info */
.fee-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.fee-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .fee-info {
    background: rgba(0, 0, 0, 0.05);
}

body.light .fee-info:hover {
    background: rgba(0, 0, 0, 0.08);
}

.fee-amount {
    margin-bottom: 12px;
    text-align: center;
}

.fee-usd {
    font-size: 32px;
    font-weight: 700;
    color: #ff9100;
}

.fee-eth {
    font-size: 16px;
    opacity: 0.7;
}

.payment-address {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 8px 0;
    user-select: all;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.4;
    text-align: center;
}

.payment-address:hover {
    border-color: rgba(255, 145, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
}

body.light .payment-address {
    background: rgba(255, 255, 255, 0.5);
}

body.light .payment-address:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Confirmation */
.confirmation-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.confirmation-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .confirmation-info {
    background: rgba(0, 0, 0, 0.05);
}

body.light .confirmation-info:hover {
    background: rgba(0, 0, 0, 0.08);
}

.countdown-display {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.countdown-display:hover {
    border-color: rgba(255, 145, 0, 0.5);
}

body.light .countdown-display {
    background: rgba(255, 255, 255, 0.5);
}

.countdown-display h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ff9100;
}

.countdown {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #ff9100;
    word-break: break-all;
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

/* Merkle Tree */
.merkle-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.merkle-tree h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ff9100;
}

.tree-level {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.tree-level:nth-child(3) {
    gap: 16px;
}

.tree-node {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.tree-node:hover {
    transform: scale(1.1);
}

.tree-node.active {
    background: linear-gradient(135deg, #ff9100, #e67e00);
    box-shadow: 0 2px 8px rgba(255, 145, 0, 0.3);
    border-color: rgba(255, 145, 0, 0.5);
}

.tree-node.root {
    width: 40px;
    height: 40px;
    position: relative;
}

.tree-node.root::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 2px;
}

.tree-node.leaf {
    width: 28px;
    height: 28px;
}

/* Email Preview */
.email-preview {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.email-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .email-preview {
    background: rgba(0, 0, 0, 0.05);
}

body.light .email-preview:hover {
    background: rgba(0, 0, 0, 0.08);
}

.email-preview h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ff9100;
}

.email-content {
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.email-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .email-content {
    background: rgba(0, 0, 0, 0.05);
}

body.light .email-content:hover {
    background: rgba(0, 0, 0, 0.08);
}

.email-header {
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.email-header p {
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
}

.email-header span:first-child {
    opacity: 0.7;
    font-weight: 600;
}

.email-body {
    font-size: 14px;
    line-height: 1.6;
}

.email-body p {
    margin-bottom: 12px;
    word-break: break-word;
}

.email-details {
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    word-break: break-word;
    line-height: 1.6;
}

.email-details:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.3);
}

body.light .email-details {
    background: rgba(0, 0, 0, 0.05);
}

body.light .email-details:hover {
    background: rgba(0, 0, 0, 0.08);
}

.final-message {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 12px;
        gap: 16px;
    }
    
    .recovery-interface {
        padding: 16px;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
    
    .security-features-mini {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-grid {
        gap: 16px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        min-width: auto;
    }
    
    .success-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .countdown {
        font-size: 24px;
    }
    
    .fee-usd {
        font-size: 24px;
    }
    
    .bitcoin-price {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .price-chart {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
    
    .blockchain-stats,
    .mempool-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .tree-level {
        gap: 16px;
    }
    
    .tree-level:nth-child(3) {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 20px;
    }
    
    .countdown {
        font-size: 18px;
    }
    
    .fee-usd {
        font-size: 20px;
    }
    
    .blockchain-stats,
    .mempool-stats {
        grid-template-columns: 1fr;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .tree-node {
        width: 24px;
        height: 24px;
    }
    
    .tree-node.root {
        width: 32px;
        height: 32px;
    }
    
    .tree-node.root::after {
        width: 16px;
        height: 16px;
    }
    
    .tree-node.leaf {
        width: 20px;
        height: 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-group input {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 145, 0, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 145, 0, 0.7);
}

/* Text overflow utilities */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.break-words {
    word-break: break-word;
    overflow-wrap: break-word;
}

.break-all {
    word-break: break-all;
}