:root {
    --bg-main: #050508;
    --bg-card: rgba(16, 17, 26, 0.65);
    --border-card: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-sec: #94a3b8;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --danger: #ef4444;
    --glow-primary: rgba(139, 92, 246, 0.4);
    --glow-secondary: rgba(14, 165, 233, 0.4);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
}

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

.hidden {
    display: none !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    background-position: center center;
}

.app-container {
    width: 100%;
    max-width: 1400px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.header {
    text-align: left;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.header h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.sodl-brand {
    font-size: 4rem;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-weight: 900;
}

.header-description {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-description p {
    color: var(--text-sec);
    font-size: 1.1rem;
    line-height: 1.4;
}

.header-description a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-description a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-note {
    font-size: 0.95rem !important;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow-sm), var(--shadow-glow);
    animation: fadeInUp 0.5s ease-out forwards;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.card:hover::before {
    left: 200%;
}

.card.hidden {
    display: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.step-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--glow-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 600;
}

.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--secondary);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2);
}

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

.dropzone-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dropzone-sub {
    color: var(--text-sec);
    font-size: 0.9rem;
}

.hidden-input {
    display: none;
}

.file-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.file-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

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

.btn {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover:not(:disabled)::after {
    opacity: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-secondary);
}

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

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

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

.instruction-text {
    color: var(--text-sec);
    margin-bottom: 2rem;
}

.deposits-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deposit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1rem;
}

.deposit-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deposit-asset {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.deposit-date {
    font-size: 0.85rem;
    color: var(--text-sec);
}

.deposit-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-input-group label {
    font-size: 0.9rem;
    color: var(--text-sec);
}

.deposit-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    width: 120px;
}

.deposit-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
}

.result-overview {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.result-lots {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lots-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-sec);
    font-family: var(--font-head);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lots-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.lots-table tr:last-child td {
    border-bottom: none;
}

.lots-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.result-asset {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.result-data:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-sec);
    font-size: 0.9rem;
}

.result-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer {
    text-align: center;
    color: var(--text-sec);
    font-size: 0.85rem;
    margin-top: 2rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations for new elements */
.fade-enter {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
        flex-wrap: wrap;
    }

    .sodl-brand {
        font-size: 2.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.4rem;
    }

    .dropzone {
        padding: 2rem 1rem;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .deposit-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .deposit-input-group {
        width: 100%;
        justify-content: space-between;
    }

    .result-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .result-overview {
        flex: 1 1 auto;
        width: 100%;
    }

    .lots-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}