:root {
    --bg-dark: #0f172a;
    --card-glass: rgba(0, 0, 0, 0.85); /* Darker and more opaque for clarity */
    --accent-blue: #0ea5e9;
    --accent-green: #22c55e;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --bank-bg: #1e293b;
    --radius-lg: 20px;
    --radius-md: 12px;
    --glow-blue: 0 0 20px rgba(14, 165, 233, 0.5);
    --glow-green: 0 0 20px rgba(34, 197, 94, 0.5);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    background: #020617; /* Strong Dark Fallback */
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('https://images.unsplash.com/photo-1528164344705-47542687000d?q=80&w=2092&auto=format&fit=crop') no-repeat center center/cover;
    background-position: var(--move-x, center) var(--move-y, center);
    z-index: -2;
    filter: brightness(0.6) contrast(1.1);
}


/* 3D-Like Parallax Effect handled by JS, but providing a fallback animation if no mouse move */
@keyframes backgroundAmbient {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(-1%, -1%); }
    100% { transform: scale(1) translate(0, 0); }
}

.bg-animate {
    animation: backgroundAmbient 30s infinite ease-in-out;
}


@keyframes backgroundLive {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

.sakura-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(255, 182, 193, 0.15), transparent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.main-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.main-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.accent {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



.main-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* GLASS EFFECT */
.glass {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}



/* INPUT SECTION */
.input-panel {
    padding: 1.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

textarea {
    width: 100%;
    height: 150px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    resize: none;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    padding: 0.8rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #0284c7);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}



.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* RESULTS GRID */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.result-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.btn-copy:hover {
    background: white;
    color: #800000;
}

.deposit-title {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.withdraw-title {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}



/* TABLE STYLES */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.horizontal-table {
    width: max-content;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    border: 3px solid #ff0000;
    background: white; /* Force white background for data clarity */
}



.bank-header-row th {
    background-color: #800000;
    color: #ffff00;
    font-weight: 800;
    padding: 10px 20px;
    border: 1px solid #ff0000;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}



.sub-header-row th {
    background-color: #800000;
    color: #ffffff;
    font-weight: 700;
    padding: 6px 12px;
    border: 1px solid #ff0000;
    font-size: 0.7rem;
    white-space: nowrap;
}



.data-value-row td {
    background-color: #fff8dc;
    color: #000000;
    font-weight: 700;
    padding: 8px 12px;
    border: 1px solid #ff0000;
    text-align: center;
    font-size: 0.9rem;
}



.data-value-row td.active-cell {
    background-color: #ffffff;
    color: #800000;
}



.horizontal-table tr:hover td {
    background-color: #ffebcd;
}

/* Scrollbar styling */
.table-container::-webkit-scrollbar {
    height: 10px;
}
.table-container::-webkit-scrollbar-track {
    background: #1e293b;
}
.table-container::-webkit-scrollbar-thumb {
    background: #800000;
    border-radius: 5px;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background: #a52a2a;
}

/* FOOTER TOTALS */
.card-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.total-value {
    font-size: 1.5rem;
    background: linear-gradient(to right, white, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SAKURA PETALS ANIMATION - ENHANCED FOR LUXURY */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Bring petals in front for 3D feel */
}

.petal {
    position: absolute;
    background: linear-gradient(135deg, #ffb7c5, #ff91a4);
    border-radius: 150% 0 150% 0;
    filter: drop-shadow(0 0 5px rgba(255, 183, 197, 0.5));
    width: 15px;
    height: 15px;
    opacity: 0.8;
    animation: fall 12s infinite linear;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translate(0, 0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    50% { transform: translate(50px, 50vh) rotate(180deg) scale(1); }
    90% { opacity: 0.8; }
    100% {
        top: 110%;
        transform: translate(100px, 100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}


/* Randomize 30 petals for Luxury effect */
.petal:nth-child(1) { left: 5%; animation-duration: 7s; animation-delay: 0s; width: 12px; height: 12px; }
.petal:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 2s; width: 8px; height: 8px; }
.petal:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 4s; width: 10px; height: 10px; }
.petal:nth-child(4) { left: 35%; animation-duration: 12s; animation-delay: 1s; width: 14px; height: 14px; }
.petal:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; width: 9px; height: 9px; }
.petal:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 5s; width: 11px; height: 11px; }
.petal:nth-child(7) { left: 65%; animation-duration: 7s; animation-delay: 2s; width: 13px; height: 13px; }
.petal:nth-child(8) { left: 75%; animation-duration: 13s; animation-delay: 6s; width: 8px; height: 8px; }
.petal:nth-child(9) { left: 85%; animation-duration: 9s; animation-delay: 0s; width: 12px; height: 12px; }
.petal:nth-child(10) { left: 95%; animation-duration: 10s; animation-delay: 4s; width: 10px; height: 10px; }
/* More variations for density */
.petal:nth-child(11) { left: 12%; animation-duration: 15s; animation-delay: 2s; opacity: 0.4; }
.petal:nth-child(12) { left: 22%; animation-duration: 6s; animation-delay: 5s; }
.petal:nth-child(13) { left: 32%; animation-duration: 11s; animation-delay: 3s; width: 15px; }
.petal:nth-child(14) { left: 42%; animation-duration: 8s; animation-delay: 7s; }
.petal:nth-child(15) { left: 52%; animation-duration: 14s; animation-delay: 1s; opacity: 0.5; }
.petal:nth-child(16) { left: 62%; animation-duration: 7s; animation-delay: 4s; }
.petal:nth-child(17) { left: 72%; animation-duration: 12s; animation-delay: 6s; }
.petal:nth-child(18) { left: 82%; animation-duration: 9s; animation-delay: 2s; }
.petal:nth-child(19) { left: 92%; animation-duration: 10s; animation-delay: 8s; }
.petal:nth-child(20) { left: 18%; animation-duration: 13s; animation-delay: 0s; }
.petal:nth-child(21) { left: 28%; animation-duration: 8s; animation-delay: 5s; }
.petal:nth-child(22) { left: 38%; animation-duration: 11s; animation-delay: 3s; }
.petal:nth-child(23) { left: 48%; animation-duration: 15s; animation-delay: 9s; opacity: 0.3; }
.petal:nth-child(24) { left: 58%; animation-duration: 7s; animation-delay: 1s; }
.petal:nth-child(25) { left: 68%; animation-duration: 10s; animation-delay: 4s; }
.petal:nth-child(26) { left: 78%; animation-duration: 12s; animation-delay: 6s; }
.petal:nth-child(27) { left: 88%; animation-duration: 9s; animation-delay: 2s; }
.petal:nth-child(28) { left: 3%; animation-duration: 14s; animation-delay: 5s; }
.petal:nth-child(29) { left: 13%; animation-duration: 8s; animation-delay: 0s; }
.petal:nth-child(30) { left: 23%; animation-duration: 11s; animation-delay: 7s; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .main-header h1 { font-size: 2rem; }
}
