:root {
    --terracotta: #C15B3C;
    --terracotta-light: #D4785A;
    --terracotta-dark: #8B3A2A;
    --teal-blue: #20B2AA;
    --teal-light: #48D1CC;
    --teal-dark: #006666;
    --gold: #D4AF37;
    --dark-bg: #0B1120;
    --card-bg: rgba(30, 41, 59, 0.75); /* Dark glassmorphism */
    --text-primary: #F8FAFC; /* Light text for dark bg */
    --text-secondary: #94A3B8; /* Muted light text */
    --border-radius: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
    --gradient-terracotta: linear-gradient(135deg, #C15B3C 0%, #D4785A 50%, #E8967A 100%);
    --gradient-teal: linear-gradient(135deg, #008080 0%, #20B2AA 50%, #48D1CC 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    --border-light: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0B1120 0%, #151E32 50%, #0F172A 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

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

.bg-gradient-1 {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(193, 91, 60, 0.15) 0%, transparent 50%);
    animation: float1 20s ease-in-out infinite;
}

.bg-gradient-2 {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 70%, rgba(0, 128, 128, 0.15) 0%, transparent 50%);
    animation: float2 25s ease-in-out infinite;
}

.bg-gradient-3 {
    position: absolute;
    bottom: -50%;
    left: 30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(-120deg); }
    66% { transform: translate(30px, -20px) rotate(-240deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.1); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(193, 91, 60, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    animation: slideDown 0.6s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-icon {
    width: 56px;
    height: 56px;
    min-width: 56px; /* Mobile pe squash hone se rokta hai */
    min-height: 56px;
    background: var(--gradient-terracotta);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(193, 91, 60, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 0px; /* Image ke liye thoda space */
    box-sizing: border-box;
    flex-shrink: 0; /* Mobile pe chota nahi hoga */
}

.logo-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite;
}

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

.logo-text-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
}

/* Terra - Orange Color (Image jaisa) */
.terra-text {
    color: #D4785A; /* Terracotta orange */
    background: linear-gradient(135deg, #C15B3C 0%, #E8967A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flow - Teal Color (Image jaisa) */
.flow-text {
    color: #20B2AA; /* Teal blue */
    background: linear-gradient(135deg, #008080 0%, #48D1CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.settings-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.settings-btn:hover {
    background: var(--terracotta);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(193, 91, 60, 0.4);
}

.settings-icon-wrapper {
    transition: transform 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeIn 0.8s ease 0.2s both;
}

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

/* Connection Panel */
.connection-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 60px 50px;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.panel-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 150px;
    height: 150px;
    background: var(--gradient-terracotta);
    top: -75px;
    right: -75px;
    animation: pulse 4s ease-in-out infinite;
}

.circle-2 {
    width: 100px;
    height: 100px;
    background: var(--gradient-teal);
    top: -50px;
    right: -50px;
    animation: pulse 4s ease-in-out infinite 2s;
}

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

.panel-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-blue);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 128, 128, 0.2);
}

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

.panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--gradient-terracotta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}
.mode-btn {
    padding: 24px 20px;
    border: 2px solid var(--border-light);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-terracotta);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-btn.active {
    border-color: var(--terracotta);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(193, 91, 60, 0.2);
}

.mode-btn.active::before {
    opacity: 0.05;
}

.mode-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.mode-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-icon {
    font-size: 32px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mode-btn:hover .mode-icon {
    transform: scale(1.2);
}

.mode-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-terracotta);
    border-radius: 14px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.mode-btn.active .mode-icon-bg {
    opacity: 0.2;
}

.mode-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.mode-sublabel {
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.mode-content {
    display: none;
    position: relative;
    z-index: 2;
}

.mode-content.active {
    display: block;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.code-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(193, 91, 60, 0.05) 0%, rgba(0, 128, 128, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px dashed var(--terracotta);
    position: relative;
    overflow: hidden;
}

.code-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.code-number-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.code-number {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 900;
    color: var(--terracotta);
    letter-spacing: 12px;
    position: relative;
    z-index: 2;
}

.code-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-terracotta);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(193, 91, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(193, 91, 60, 0.4);
}

.copy-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.copy-btn:active::after {
    width: 300px;
    height: 300px;
}

.waiting-message {
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.spinner {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--teal-blue);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--gold);
    animation-duration: 0.9s;
}

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

.code-input-group {
    margin-bottom: 30px;
}

.code-input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.input-wrapper {
    position: relative;
}

.code-input-group input,
.message-input-area input {
    width: 100%;
    padding: 20px;
    font-size: 32px;
    text-align: center;
    letter-spacing: 14px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
}
.code-input-group input:focus,
.message-input-area input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(193, 91, 60, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.input-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(193, 91, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
}

.code-input-group input:focus ~ .input-glow {
    width: 120%;
    height: 120%;
}

.primary-btn {
    width: 100%;
    padding: 20px;
    background: var(--gradient-terracotta);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(193, 91, 60, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(193, 91, 60, 0.4);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.primary-btn:hover .btn-icon {
    transform: translateX(5px);
}

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

.primary-btn:hover .btn-shine {
    left: 100%;
}

/* Transfer Panel */
.transfer-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.8);
    animation: slideUp 0.6s ease;
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(193, 91, 60, 0.1);
    color: var(--terracotta);
    transform: translateX(-3px);
}

.btn-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover .btn-icon-circle {
    background: var(--terracotta);
    color: white;
}

.peer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
    border-radius: 50px;
    color: var(--teal-blue);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(0, 128, 128, 0.2);
}

.status-indicator {
    position: relative;
    width: 12px;
    height: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
    position: relative;
    z-index: 2;
}

.status-dot.connected {
    background: #27ae60;
}

.status-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #27ae60;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.transfer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
    min-height: 550px;
}

.transfer-section, .messaging-section {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border-light);
}

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

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

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(193, 91, 60, 0.3);
}

.chat-icon {
    background: var(--gradient-teal);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
}

.transfer-stats {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed var(--terracotta);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(193, 91, 60, 0.05);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-terracotta);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    background: rgba(193, 91, 60, 0.08);
    transform: scale(1.02);
    border-color: var(--terracotta-light);
    box-shadow: 0 10px 30px rgba(193, 91, 60, 0.15);
}

.drop-zone:hover::before, .drop-zone.dragover::before {
    opacity: 0.05;
}

.drop-content {
    position: relative;
    z-index: 2;
}

.upload-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.upload-icon {
    color: var(--terracotta);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.drop-zone:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--terracotta);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 2s infinite;
}

@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.drop-content h4 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

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

.supported-formats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.supported-formats span {
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* File Queue */
.file-queue {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
    padding-right: 5px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.4s ease;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.file-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

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

.file-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.file-meta {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-progress {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: var(--gradient-terracotta);
    transition: width 0.3s ease;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.file-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.file-status {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
}

/* Messaging */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    margin-bottom: 20px;
    min-height: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-light);
}

.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    gap: 8px;
}

.empty-chat-icon {
    font-size: 48px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-chat p {
    font-weight: 600;
    font-size: 16px;
}

.empty-chat span {
    font-size: 13px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: messageSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.message.own {
    align-self: flex-end;
    align-items: flex-end;
}

.message.other {
    align-self: flex-start;
    align-items: flex-start;
}

.message-bubble {
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
}

.message.own .message-bubble {
    background: var(--gradient-terracotta);
    color: white;
    border-bottom-right-radius: 6px;
}

.message.other .message-bubble {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
    border: 1px solid var(--border-light);
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    background: rgba(0, 128, 128, 0.1) !important;
    color: var(--teal-blue) !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.voice-message:hover {
    transform: scale(1.05);
}

.message.own .voice-message {
    background: rgba(193, 91, 60, 0.2) !important;
    color: var(--terracotta) !important;
}

.voice-wave {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 20px;
}

.voice-bar {
    width: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.voice-bar:nth-child(1) { animation-delay: 0s; }
.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 100%; }
    50% { height: 40%; }
}

.message-input-area {
    display: flex;
    gap: 12px;
}

.message-input-area .input-wrapper {
    flex: 1;
    position: relative;
}

.message-input-area input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.message-input-area input:focus {
    outline: none;
    border-color: var(--teal-blue);
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.send-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-teal);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 128, 128, 0.3);
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 28px rgba(0, 128, 128, 0.4);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.send-btn:hover .send-btn-glow {
    width: 100%;
    height: 100%;
}

.voice-btn {
    padding: 10px 18px;
    background: rgba(0, 128, 128, 0.1);
    border: none;
    border-radius: 50px;
    color: var(--teal-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    user-select: none;
    font-family: inherit;
}

.voice-btn:hover {
    background: rgba(0, 128, 128, 0.2);
    transform: scale(1.05);
}

.voice-btn:active, .voice-btn.recording {
    background: var(--terracotta);
    color: white;
    transform: scale(0.95);
}

.voice-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #151E32;
    width: 90%;
    max-width: 420px;
    border-radius: 28px;
    padding: 45px 35px 35px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-terracotta);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--terracotta);
    color: white;
    transform: rotate(90deg);
}

.settings-header {
    margin-bottom: 35px;
}

.settings-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: var(--gradient-terracotta); /* Gradient outline effect */
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(193, 91, 60, 0.4);
    position: relative;
    overflow: hidden;
    padding: 3px; /* Border thickness */
    box-sizing: border-box;
}

.settings-logo .logo-text {
    position: relative;
    z-index: 2;
}

.settings-logo .logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite;
}

.settings-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    display: inline-flex;
}

.settings-header h2 .terra-text {
    color: #D4785A;
    background: linear-gradient(135deg, #C15B3C 0%, #E8967A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-header h2 .flow-text {
    color: #20B2AA;
    background: linear-gradient(135deg, #008080 0%, #48D1CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.info-row, .info-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.developer-info {
    background: rgba(193, 91, 60, 0.1);
    border: 1px solid rgba(193, 91, 60, 0.3);
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); /* Dark theme ke mutabiq light background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden; /* Image box se bahar nahi niklegi */
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0;
}

.website-icon { color: var(--teal-blue); }
.youtube-icon { color: #ff0000; }
/* Instagram Icon Default State (White BG + Pink Icon) */
.instagram-icon { 
    color: #E1306C; /* Instagram brand color */
    background: transparent; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.info-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6); /* Dark background */
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* General Hover Effect (Lift up) */
.info-link:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Icon Pop Effect on Hover */
.info-link:hover .info-icon {
    transform: scale(1.1);
    background: white;
    color: var(--text-primary);
}

/* --- Specific Glow Effects on Hover --- */

/* Website Link Golden Glow (Fixed) */
.website-link:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.3) !important;
    background: rgba(212, 175, 55, 0.05) !important;
}

.website-link:hover .website-icon {
    background: var(--gold) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

/* YouTube Link Glow (Red) */
.youtube-link:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), 0 0 40px rgba(255, 0, 0, 0.1);
}
.youtube-link:hover .youtube-icon {
    background: #ff0000;
    color: white;
}

/* Instagram Link Glow (Pink/Purple) */
.instagram-link:hover {
    border-color: #E1306C;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.4), 0 0 40px rgba(225, 48, 108, 0.1);
}
.instagram-link:hover .instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.6);
    transform: scale(1.1);
}

/* Arrow Animation */
.info-link:hover .link-arrow {
    transform: translateX(5px);
    color: var(--terracotta);
}

.link-arrow {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-link:hover .link-arrow {
    transform: translateX(5px);
    color: var(--terracotta);
}

.settings-footer {
    padding-top: 20px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin-bottom: 20px;
}

.settings-footer p {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.settings-footer .terra-text {
    background: linear-gradient(135deg, #C15B3C 0%, #E8967A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.settings-footer .flow-text {
    background: linear-gradient(135deg, #008080 0%, #48D1CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.settings-footer .footer-credit {
    color: var(--gold);
    font-weight: 500;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: var(--dark-bg);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta);
}

/* Responsive */
@media (max-width: 968px) {
    .transfer-grid {
        grid-template-columns: 1fr;
    }
    
    .transfer-panel {
        min-height: auto;
    }
    
    .connection-panel {
        padding: 40px 30px;
    }
    
    .panel-header h2 {
        font-size: 28px;
    }
    
    .code-number {
        font-size: 42px;
        letter-spacing: 8px;
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 15px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    /* Mobile pe logo thoda chota but proper */
    .logo-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 12px;
        padding: 0px;
    }
    
    .logo-img {
        border-radius: 10px;
        padding: 2px;
    }
    
    .logo-text-container h1 {
        font-size: 22px;
    }
    
    .logo-tagline {
        font-size: 10px;
    }
}
/* Custom Image Styling for Logos and Icons */
/* Main Logo Image Fix */
/* Main Logo Image Fix - No Cropping */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Image ko crop nahi karega, pura dikhayega */
    border-radius: 14px;
    position: relative;
    z-index: 2;
    display: block;
    padding: 4px; /* Thoda padding taake image border ko touch na kare */
    box-sizing: border-box;
}

/* Settings Logo Image Fix */
.settings-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    display: block;
}

/* Developer Icon Image Fix */
.dev-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image puri dikhegi aur box fill karegi */
    border-radius: 12px;
    padding: 0; /* Padding hata di taake image cut na ho */
    background: transparent;
    display: block;
}
/* Main Page Footer */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
}

.main-footer p {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.main-footer .terra-text {
    background: linear-gradient(135deg, #C15B3C 0%, #E8967A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.main-footer .flow-text {
    background: linear-gradient(135deg, #008080 0%, #48D1CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.main-footer .footer-credit {
    color: var(--gold);
    font-weight: 500;
}
/* Transfer Speed Indicator */
.speed-indicator {
    font-weight: 700;
    color: var(--teal-light);
    background: rgba(0, 128, 128, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(32, 178, 170, 0.2);
    transition: all 0.3s ease;
}