:root {
    --color-bg: #0A0F19;
    --color-bg-light: #141b2d;
    --color-primary: #3B82F6;
    --color-secondary: #F97316;
    --color-text: #E5E7EB;
    --color-text-dim: #9CA3AF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-dim);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--color-text);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.auth-options {
    margin-bottom: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--color-text-dim);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-link:hover {
    opacity: 0.8;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    animation: slideInDown 0.3s ease-out;
}

.success-message {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn {
    position: relative;
    overflow: hidden;
}

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

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

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: var(--transition);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(10, 15, 25, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    filter: contrast(1.1) brightness(1.05);
    transition: var(--transition);
}

.logo img:hover {
    filter: contrast(1.15) brightness(1.1);
    transform: translateZ(0) scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent 80%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
}

.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-dim);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.wormhole-animation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.wormhole-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wormhole-svg {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}

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

.file-particle {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    animation: particle-orbit 8s ease-in-out infinite;
}

.file-particle:nth-child(1) {
    animation-delay: 0s;
    top: 20%;
    left: 50%;
}

.file-particle:nth-child(2) {
    animation-delay: 2.67s;
    top: 50%;
    left: 20%;
}

.file-particle:nth-child(3) {
    animation-delay: 5.33s;
    top: 80%;
    left: 50%;
}

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

@keyframes particle-orbit {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.5) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: translateX(-50px) scale(0.8) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: translateX(50px) scale(0.6) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: translateX(100px) scale(0.3) rotate(360deg);
    }
}

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

/* SVG Animation Styles */
.wormhole-svg .ring {
    animation: ring-pulse 3s ease-in-out infinite;
}

.wormhole-svg .ring:nth-child(1) { animation-delay: 0s; }
.wormhole-svg .ring:nth-child(2) { animation-delay: 0.5s; }
.wormhole-svg .ring:nth-child(3) { animation-delay: 1s; }
.wormhole-svg .ring:nth-child(4) { animation-delay: 1.5s; }
.wormhole-svg .ring:nth-child(5) { animation-delay: 2s; }

.wormhole-svg .particle {
    animation: particle-float 4s ease-in-out infinite;
}

.wormhole-svg .particle:nth-child(odd) { animation-delay: 0s; }
.wormhole-svg .particle:nth-child(even) { animation-delay: 2s; }

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

@keyframes ring-pulse {
    0%, 100% { 
        stroke-opacity: 0.3; 
        r: attr(r);
    }
    50% { 
        stroke-opacity: 0.9; 
        r: calc(attr(r) * 1.1);
    }
}

@keyframes particle-float {
    0%, 100% { 
        opacity: 0.2; 
        transform: translate(0, 0) scale(0.5);
    }
    50% { 
        opacity: 1; 
        transform: translate(10px, -10px) scale(1.2);
    }
}

@keyframes center-pulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* How It Works */
.how-it-works {
    background-color: var(--color-bg-light);
    position: relative;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-secondary);
}

.step-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    color: var(--color-primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

/* FAQ */
.faq {
    background-color: var(--color-bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25rem;
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    background-color: var(--color-text);
    transition: var(--transition);
}

.toggle-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.toggle-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-item.active .toggle-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-family: var(--font-sans);
    transition: var(--transition);
}

input,
textarea {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 1px 3px 0 rgba(59, 130, 246, 0.1),
        0 1px 2px 0 rgba(59, 130, 246, 0.06);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0.08));
    transform: translateY(-1px);
}

input:hover,
textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background-color: var(--color-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.copyright {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-options {
    margin-top: 2rem;
}

.btn-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #333;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.btn-auth img {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-mobile {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Modal Styles */
.success-modal-overlay,
.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.success-modal,
.error-modal {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease-out;
}

.success-icon,
.error-icon {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.error-icon {
    color: #EF4444;
}

.success-modal h2,
.error-modal h2 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.success-modal p,
.error-modal p {
    margin-bottom: 1.5rem;
    color: var(--color-text-dim);
}

.link-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.link-display input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 0.875rem;
}

.transfer-info {
    background-color: var(--color-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.transfer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.transfer-info p:last-child {
    margin-bottom: 0;
}

.success-actions,
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading States */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    color: var(--color-text-dim);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-bg-light);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    color: var(--color-text-dim);
}

.error-state svg {
    color: #EF4444;
}

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

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

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

/* Button disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Transfer status styles */
.transfer-status.active {
    color: var(--color-primary);
}

.transfer-status.completed {
    color: #10B981;
}

.transfer-status.expired {
    color: #EF4444;
}

.transfer-status.failed {
    color: #EF4444;
}

.transfer-status.unknown {
    color: var(--color-text-dim);
}

/* Advanced P2P Transfer Styles */
.advanced-transfer-creation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.creation-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.p2p-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.p2p-status.info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.p2p-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.p2p-status.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.p2p-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.file-drop-zone {
    border: 2px dashed var(--color-primary);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
    background: rgba(59, 130, 246, 0.05);
    cursor: pointer;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--color-secondary);
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-2px);
}

.drop-zone-content h3 {
    margin: 1rem 0 0.5rem;
    color: var(--color-text);
}

.drop-zone-content p {
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
}

.file-preview-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

.file-processing-progress {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar.mini {
    height: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    min-width: 3rem;
    text-align: right;
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.remove-file-btn:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.total-size-display {
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.total-info strong {
    color: var(--color-primary);
}

.total-info small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-dim);
}

.processing-progress {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.processing-details {
    margin-bottom: 1rem;
}

.processing-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg);
    border-radius: 6px;
}

.processing-status {
    color: var(--color-primary);
    font-size: 0.875rem;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transfer-options-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group input[type="text"],
.option-group input[type="password"],
.option-group select {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.option-group input:focus,
.option-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-group small {
    color: var(--color-text-dim);
    font-size: 0.8rem;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.option-group input[type="checkbox"]:checked + .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.option-group input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.performance-monitor {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg);
    border-radius: 6px;
}

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

.stat-value {
    font-weight: 600;
    color: var(--color-text);
}

.stat-value.quality-excellent {
    color: #10B981;
}

.stat-value.quality-good {
    color: #34D399;
}

.stat-value.quality-fair {
    color: #FBBF24;
}

.stat-value.quality-poor {
    color: #F87171;
}

.transfer-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.advanced-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.advanced-success-modal {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease-out;
}

.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-header .success-icon {
    color: #10B981;
    margin-bottom: 1rem;
}

.success-header h2 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10B981, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transfer-details {
    margin-bottom: 2rem;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.link-display {
    display: flex;
    gap: 0.5rem;
}

.link-display input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: monospace;
    font-size: 0.875rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
    color: var(--color-text);
}

.transfer-info {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

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

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

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

.info-value {
    color: var(--color-text);
    font-family: monospace;
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.spinning {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .advanced-transfer-creation-container {
        padding: 1rem;
    }
    
    .creation-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
    }
    
    .creation-actions {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Loading and Error States */
.loading-container,
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--color-bg);
}

.loading-content,
.error-content {
    text-align: center;
    max-width: 400px;
}

.loading-content h2,
.error-content h2 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.loading-content p,
.error-content p {
    margin-bottom: 2rem;
    color: var(--color-text-dim);
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-page .error-content {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
    max-width: 500px;
}

.error-page details {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-page summary {
    cursor: pointer;
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
}

.error-page pre {
    color: #F87171;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.error-page .btn,
.error-content .btn {
    margin: 0.5rem;
}