/* =====================================================
   VerthInvest - Stylesheet Principal
   Identidade Visual: Agro + Mercado Financeiro
   Paleta: Verde Escuro + Dourado + Cinza Escuro
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --green-900: #0D3B1E;
    --green-800: #1B5E20;
    --green-700: #2E7D32;
    --green-600: #388E3C;
    --green-500: #43A047;
    --green-100: #E8F5E9;
    --green-50: #F1F8E9;

    --gold-600: #B8860B;
    --gold-500: #C9A84C;
    --gold-400: #D4AF37;
    --gold-300: #E6C86E;
    --gold-200: #F0DFA0;
    --gold-100: #FDF8E8;

    --dark-900: #0A0A1A;
    --dark-800: #12122A;
    --dark-700: #1A1A2E;
    --dark-600: #242444;
    --dark-500: #2E2E52;

    --gray-100: #F5F5F7;
    --gray-200: #E8E8ED;
    --gray-300: #D1D1D9;
    --gray-400: #9898A6;
    --gray-500: #6B6B7B;
    --gray-600: #4A4A5A;

    --white: #FFFFFF;
    --danger: #DC3545;
    --success: #28A745;
    --warning: #FFC107;
    --info: #17A2B8;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-700);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-500); }

img { max-width: 100%; height: auto; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-display); color: var(--dark-700); }
h4, h5, h6 { font-family: var(--font-primary); font-weight: 600; color: var(--dark-700); }

/* ===== Landing Page ===== */

/* Navbar */
.vi-navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.vi-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.vi-navbar .navbar-brand img {
    height: 45px;
    transition: var(--transition);
}

.vi-navbar .nav-link {
    font-weight: 500;
    color: var(--dark-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.vi-navbar .nav-link:hover {
    color: var(--green-700);
    background: var(--green-50);
}

/* Hero Section */
.vi-hero {
    background: linear-gradient(135deg, var(--dark-900) 0%, var(--green-900) 50%, var(--dark-800) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.vi-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.vi-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--gray-100), transparent);
}

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

.vi-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.vi-hero h1 .text-gold {
    color: var(--gold-400);
    display: inline-block;
}

.vi-hero .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 540px;
    line-height: 1.7;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--dark-900);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    color: var(--dark-900);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212,175,55,0.4);
}

.btn-green {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-green:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46,125,50,0.3);
}

.btn-outline-gold {
    border: 2px solid var(--gold-400);
    color: var(--gold-400);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold-400);
    color: var(--dark-900);
}

/* Stats Bar */
.vi-stats-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.vi-stat-item {
    text-align: center;
    padding: 1rem;
}

.vi-stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-700);
    line-height: 1.2;
}

.vi-stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* How It Works */
.vi-section {
    padding: 5rem 0;
}

.vi-section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.vi-section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.vi-step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.vi-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-300);
}

.vi-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-100), var(--gold-100));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--green-700);
}

.vi-step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--gold-400);
    color: var(--dark-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.vi-step-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-700);
}

.vi-step-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Advantages */
.vi-advantage-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border-left: 4px solid var(--gold-400);
    transition: var(--transition);
    height: 100%;
}

.vi-advantage-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.vi-advantage-card i {
    color: var(--gold-500);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.vi-cta {
    background: linear-gradient(135deg, var(--green-900), var(--dark-800));
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vi-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.1), transparent 70%);
    border-radius: 50%;
}

.vi-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.vi-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* Footer */
.vi-footer {
    background: var(--dark-900);
    color: rgba(255,255,255,0.6);
    padding: 3rem 0 1.5rem;
}

.vi-footer a {
    color: rgba(255,255,255,0.6);
}

.vi-footer a:hover {
    color: var(--gold-400);
}

.vi-footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* ===== Login / Cadastro ===== */
.vi-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-900) 0%, var(--green-900) 100%);
    padding: 2rem;
}

.vi-auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
}

.vi-auth-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.vi-auth-card .logo img {
    height: 60px;
}

.vi-auth-card h2 {
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.vi-auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* Form Styles */
.vi-form-group {
    margin-bottom: 1.25rem;
}

.vi-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-700);
    margin-bottom: 0.4rem;
}

.vi-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.vi-form-control:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(46,125,50,0.1);
}

.vi-form-control::placeholder {
    color: var(--gray-400);
}

/* ===== Dashboard Layout ===== */
.vi-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.vi-sidebar {
    width: 270px;
    background: linear-gradient(180deg, var(--dark-900) 0%, var(--green-900) 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.vi-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vi-sidebar-brand img {
    height: 38px;
    filter: brightness(0) invert(1);
}

.vi-sidebar-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-400);
}

.vi-sidebar-nav {
    padding: 1rem 0;
}

.vi-sidebar-nav .nav-section {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    margin-top: 1rem;
}

.vi-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.vi-sidebar-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border-left-color: var(--gold-400);
}

.vi-sidebar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border-left-color: var(--gold-400);
}

.vi-sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Main Content */
.vi-main {
    flex: 1;
    margin-left: 270px;
    min-height: 100vh;
}

.vi-topbar {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.vi-topbar h4 {
    font-weight: 700;
    margin: 0;
    font-size: 1.15rem;
}

.vi-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vi-notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.vi-notification-bell:hover { color: var(--green-700); }

.vi-notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Dropdown */
.vi-notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    overflow: hidden;
}

.vi-notif-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.vi-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
}

.vi-notif-header h6 {
    margin: 0;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.vi-notif-mark-read {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    transition: var(--transition);
}

.vi-notif-mark-read:hover {
    background: rgba(255,255,255,0.3);
}

.vi-notif-list {
    max-height: 380px;
    overflow-y: auto;
}

.vi-notif-list::-webkit-scrollbar {
    width: 4px;
}

.vi-notif-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.vi-notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
}

.vi-notif-item:hover {
    background: var(--gray-50);
}

.vi-notif-item.unread {
    background: var(--green-50);
    border-left: 3px solid var(--green-600);
}

.vi-notif-item.unread:hover {
    background: var(--green-100);
}

.vi-notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.vi-notif-item.unread .vi-notif-icon {
    background: var(--green-600);
    color: var(--white);
}

.vi-notif-content {
    flex: 1;
    min-width: 0;
}

.vi-notif-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-800);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vi-notif-msg {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vi-notif-time {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.vi-notif-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--gray-400);
}

.vi-notif-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.vi-notif-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.vi-topbar-right {
    position: relative;
}

@media (max-width: 576px) {
    .vi-notif-dropdown {
        width: 320px;
        right: -60px;
    }
}

.vi-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.vi-user-menu:hover { background: var(--gray-100); }

.vi-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-700), var(--gold-500));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.vi-content {
    padding: 2rem;
}

/* Dashboard Cards */
.vi-dash-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.vi-dash-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.vi-dash-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.vi-dash-card .card-icon.green { background: var(--green-100); color: var(--green-700); }
.vi-dash-card .card-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.vi-dash-card .card-icon.blue { background: #E3F2FD; color: #1976D2; }
.vi-dash-card .card-icon.red { background: #FFEBEE; color: #D32F2F; }

.vi-dash-card .card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-700);
    line-height: 1.2;
}

.vi-dash-card .card-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Operation Cards */
.vi-op-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.vi-op-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.vi-op-card-header {
    background: linear-gradient(135deg, var(--green-800), var(--dark-800));
    padding: 1.25rem 1.5rem;
    color: var(--white);
}

.vi-op-card-header h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vi-op-card-header .op-code {
    font-size: 0.8rem;
    color: var(--gold-300);
    font-weight: 600;
}

.vi-op-card-body {
    padding: 1.5rem;
}

.vi-op-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.vi-op-detail:last-child { border-bottom: none; }
.vi-op-detail .label { color: var(--gray-500); }
.vi-op-detail .value { font-weight: 600; color: var(--dark-700); }

.vi-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.vi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-600), var(--gold-400));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Tables */
.vi-table {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.vi-table table {
    width: 100%;
    border-collapse: collapse;
}

.vi-table thead th {
    background: var(--gray-100);
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    text-align: left;
}

.vi-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    vertical-align: middle;
}

.vi-table tbody tr:hover {
    background: var(--green-50);
}

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

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Modal */
.vi-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.vi-modal-overlay.active { display: flex; }

.vi-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.vi-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vi-modal-header h4 { margin: 0; font-weight: 700; }

.vi-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

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

.vi-modal-body { padding: 2rem; }

.vi-modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Alerts */
.vi-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vi-alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.vi-alert-danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.vi-alert-warning { background: #FFF8E1; color: #F57F17; border: 1px solid #FFECB3; }
.vi-alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* Sidebar Toggle (Mobile) */
.vi-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-700);
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .vi-hero h1 { font-size: 2.5rem; }
    .vi-section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .vi-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .vi-sidebar.open {
        transform: translateX(0);
    }

    .vi-main {
        margin-left: 0;
    }

    .vi-sidebar-toggle {
        display: block;
    }

    .vi-content {
        padding: 1rem;
    }

    .vi-hero h1 { font-size: 2rem; }
    .vi-hero .lead { font-size: 1rem; }

    .vi-stat-number { font-size: 1.5rem; }

    .vi-auth-card {
        padding: 2rem;
        border-radius: var(--radius-lg);
    }

    .vi-topbar {
        padding: 0.75rem 1rem;
    }

    .vi-dash-card .card-value {
        font-size: 1.4rem;
    }

    .vi-table {
        overflow-x: auto;
    }

    .vi-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 576px) {
    .vi-hero h1 { font-size: 1.75rem; }
    .vi-section-title { font-size: 1.5rem; }
    .vi-stats-bar { margin-top: -30px; padding: 1rem; }
    .vi-stat-item { padding: 0.5rem; }
    .vi-stat-number { font-size: 1.25rem; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Utility Classes ===== */
.text-gold { color: var(--gold-500) !important; }
.text-green { color: var(--green-700) !important; }
.bg-gold-light { background: var(--gold-100) !important; }
.bg-green-light { background: var(--green-100) !important; }
.fw-800 { font-weight: 800 !important; }
.font-display { font-family: var(--font-display) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Loading spinner */
.vi-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--green-700);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

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

/* ===== INVESTIMENTO CARDS ===== */
.vi-invest-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(27,94,32,0.1);
    transition: box-shadow 0.3s;
}
.vi-invest-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.vi-invest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
}
.vi-invest-header h5 {
    color: #fff;
    font-size: 1.1rem;
}
.vi-invest-header .op-code {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.vi-invest-body {
    padding: 20px 24px;
}
.vi-invest-info {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}
.vi-invest-info .label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.vi-invest-info .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B5E20;
}

/* ===== STATUS PIPELINE ===== */
.vi-status-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 15px 0;
}
.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
    transition: opacity 0.3s;
}
.pipeline-step.active {
    opacity: 1;
}
.pipeline-step .step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #999;
    transition: all 0.3s;
}
.pipeline-step.active .step-icon {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: #fff;
    box-shadow: 0 3px 10px rgba(27,94,32,0.3);
}
.pipeline-step span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pipeline-step.active span {
    color: #1B5E20;
}
.pipeline-connector {
    width: 40px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 4px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.3s;
}
.pipeline-connector.active {
    background: linear-gradient(90deg, #1B5E20, #2E7D32);
}

/* ===== INVEST ACTIONS ===== */
.vi-invest-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.btn-outline-green {
    border: 1px solid #1B5E20;
    color: #1B5E20;
    background: transparent;
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 6px 14px;
    transition: all 0.3s;
}
.btn-outline-green:hover {
    background: #1B5E20;
    color: #fff;
}

/* ===== RESPONSIVE PIPELINE ===== */
@media (max-width: 576px) {
    .vi-status-pipeline {
        gap: 0;
    }
    .pipeline-step .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .pipeline-step span {
        font-size: 0.6rem;
    }
    .pipeline-connector {
        width: 20px;
    }
    .vi-invest-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .vi-invest-actions {
        flex-direction: column;
    }
    .vi-invest-actions .btn {
        width: 100%;
    }
}
