@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00ca72;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --background: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --danger: #ff4d4d;
    --success: #00ca72;
    --warning: #f59e0b;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--background); color: var(--text-main); display: flex; min-height: 100vh; }

/* Sidebar */
aside { width: 280px; background: var(--white); height: 100vh; position: fixed; border-right: 1px solid rgba(0,0,0,0.05); padding: 40px 20px; z-index: 1000; }
.logo { font-size: 24px; font-weight: 800; color: var(--secondary); margin-bottom: 50px; padding-left: 15px; display: flex; align-items: center; gap: 10px; }
.logo-box { width: 35px; height: 35px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }

nav ul { list-style: none; }
nav li a { display: flex; align-items: center; padding: 14px 18px; text-decoration: none; color: var(--text-light); font-weight: 500; border-radius: 14px; transition: all 0.3s; font-size: 15px; gap: 12px; }
nav li a:hover, nav li a.active { background: #f1f5f9; color: var(--secondary); font-weight: 700; }

/* Main Content */
.main-content { flex: 1; margin-left: 280px; padding: 50px 60px; }

/* 3D Bank Cards */
.card-carousel {
    display: flex;
    gap: 35px;
    padding: 20px 5px 60px 5px;
    overflow-x: auto;
    perspective: 1500px;
    background: transparent;
}

.bank-card {
    min-width: 340px;
    height: 200px;
    border-radius: 24px;
    padding: 25px;
    color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    background-size: cover;
    overflow: hidden;
}

.bank-card:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(-5deg);
    box-shadow: 0 45px 90px rgba(0,0,0,0.25);
}

.bank-card .bank-logo {
    position: absolute;
    top: 25px;
    right: 25px;
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.bank-card .chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    border-radius: 8px;
    margin-top: 5px;
}

.bank-card .number {
    font-size: 18px;
    letter-spacing: 3px;
    margin-top: 35px;
    opacity: 0.9;
    font-weight: 500;
}

.bank-card .card-footer {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.bank-card .holder-label { font-size: 8px; text-transform: uppercase; opacity: 0.7; font-weight: 800; letter-spacing: 1px; }
.bank-card .holder-name { font-size: 13px; font-weight: 700; margin-top: 2px; }

.bank-card .balance-container { text-align: right; }
.bank-card .balance-label { font-size: 8px; text-transform: uppercase; opacity: 0.7; font-weight: 800; }
.bank-card .balance-value { font-size: 18px; font-weight: 800; }

.bank-card .network-logo {
    height: 18px;
    margin-top: 8px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 35px;
    padding: 45px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Bank Colors */
.card-nubank { background: linear-gradient(135deg, #8a05be, #5d0381); }
.card-itau { background: linear-gradient(135deg, #ff6600, #cc5200); }
.card-santander { background: linear-gradient(135deg, #ec0000, #b30000); }
.card-bradesco { background: linear-gradient(135deg, #ff0000, #cc0000); }
.card-bb { background: #fdfd00; color: #0038a8 !important; }
.card-bb .bank-logo, .card-bb .network-logo { filter: none !important; }
.card-efbank { background: #1a1a1a; border-right: 4px solid #ff7a00; }
.card-efbank::after {
    content: ''; position: absolute; bottom: -30px; right: -30px;
    width: 160px; height: 160px; border: 2px solid #ff7a00;
    border-radius: 50%; opacity: 0.2;
}

.bank-card .bank-logo, .bank-card .network-logo {
    display: block !important;
    position: absolute;
    opacity: 0.9;
}

/* Form & Buttons */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; text-transform: uppercase; }
.form-control { width: 100%; padding: 15px; border-radius: 14px; border: 2px solid #f1f5f9; background: #f8fafc; font-size: 14px; font-weight: 600; }
.btn { padding: 14px 28px; border-radius: 16px; font-weight: 800; cursor: pointer; border: none; transition: all 0.3s; font-size: 14px; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(0, 202, 114, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 202, 114, 0.3); }

/* Custom Card Container (Removing Grey) */
.card { background: white; border-radius: 24px; box-shadow: var(--card-shadow); padding: 30px; border: 1px solid rgba(0,0,0,0.02); }
