:root {
    --primary-color: #6a5acd;
    --primary-hover: #5a4acd;
    --primary-light: #f0eefc;
    
    --text-color: #1a1a1a;
    --text-soft: #555;
    --text-inverted: #ffffff;
    
    --background-color: #f4f7fc;
    --sidebar-bg: #ffffff;
    --card-background: #ffffff;
    --top-bar-bg: #ffffff;
    
    --border-color: #e6e9f0;
    --input-border: #d0d5dd;
    
    --success-color: #28a745;
    --success-bg: #e9f7ec;
    --error-color: #dc3545;
    --error-bg: #fdeeee;
    --warning-color: #ffc107;
    --warning-bg: #fff8e7;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.2s;
}
    
/* Metrics Cards Styling */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.metric-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    text-align: center;
}
.metric-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft);
}
.metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}
/* Fade-in Up Animation */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Status badges for withdrawals */
.status-pendente {
    background: var(--warning-bg);
    color: var(--warning-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pago {
    background: var(--success-bg);
    color: var(--success-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}
[data-theme='dark'] {
    --primary-color: #7b68ee;
    --primary-hover: #8a78f0;
    --primary-light: #3a3163;

    --text-color: #e5e7eb;
    --text-soft: #9ca3af;
    --text-inverted: #1a1a1a;

    --background-color: #111827;
    --sidebar-bg: #1f2937;
    --card-background: #1f2937;
    --top-bar-bg: #1f2937;

    --border-color: #374151;
    --input-border: #4b5563;
    
    --success-bg: #163320;
    --error-bg: #3b1a1f;
    --warning-bg: #423411;
}

/* GENERAL & LOGIN */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    z-index: 1;
    position: relative;
}

.login-box {
    background-color: var(--card-background);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    margin-bottom: 2rem;
}

.logo-image {
    max-width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.login-header h2 {
    margin: 0 0 0.75rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.login-header p {
    color: var(--text-soft);
    margin: 0;
    font-size: 1.1rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin: 0.5rem 0;
    color: var(--text-soft);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.login-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 3rem !important;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color var(--transition-speed);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary-color);
}

/* Password Strength Meter */
.password-strength {
    margin-top: 0.75rem;
}

.password-meter {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-bar.weak {
    background-color: #dc3545;
}

.password-bar.fair {
    background-color: #fd7e14;
}

.password-bar.good {
    background-color: #ffc107;
}

.password-bar.strong {
    background-color: #28a745;
}

.password-hint {
    color: var(--text-soft);
    font-size: 0.8rem;
    display: block;
}

/* Alert Styles for Register */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Dark theme adjustments for alerts */
[data-theme="dark"] .alert-error {
    background-color: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] .alert-success {
    background-color: rgba(22, 163, 74, 0.1);
    color: #86efac;
    border-color: rgba(22, 163, 74, 0.2);
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.full-width {
    grid-column: 1 / -1;
}

/* BUTTONS */
.btn, .btn-primary, .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.btn:hover, .btn-primary:hover, .btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--card-background);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-light);
}

/* ALERTS */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-color);
    border-color: var(--success-color);
}
.alert-danger, .alert-error {
    background-color: var(--error-bg);
    color: var(--error-color);
    border-color: var(--error-color);
}
.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

/* PANEL LAYOUT */
.panel-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: var(--background-color);
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Current Plan Info */
.current-plan-info {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    margin: 0;
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.plan-badge i {
    color: #ffd700;
    font-size: 1rem;
}

.plan-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.plan-details {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.plan-price {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.plan-commission {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.plan-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    font-size: 0.85rem;
}

.change-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.change-plan-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
}

.change-plan-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

/* Plan carousel specific styles */
.plan-card-modern.current-plan {
    border: 2px solid var(--success-color);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
}

.plan-badge.current {
    background: var(--success-color);
    color: white;
}

.plan-radio-check {
    text-align: center;
}

.plan-radio-check .form-check-input {
    margin: 0 auto;
}

.plan-radio-check .form-check-label {
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
}

.plan-radio-check .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    margin: 0.25rem 0.75rem;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    border-radius: 8px;
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: var(--primary-light);
}

.nav-link i {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--top-bar-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color var(--transition-speed);
}

.user-info {
    font-weight: 500;
}

.logout-btn {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logout-btn:hover {
    color: var(--error-color);
}

.content-area {
    padding: 2rem;
    flex-grow: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.page-header h1 {
    margin: 0;
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    white-space: nowrap;
}

/* CARDS & SURFACES */
.card-surface {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: background-color var(--transition-speed);
}
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.card-body {
    padding: 1.5rem;
}

/* DASHBOARD SPECIFIC */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.metric-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.metric-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-soft);
    font-size: 1rem;
}
.metric-card .value {
    font-size: 2rem;
    font-weight: 700;
}
.dashboard-grid-double {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
.chart-container {
    position: relative;
    height: 300px;
}
#top-products-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#top-products-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
#top-products-list li:last-child {
    border-bottom: none;
}
.product-name {
    font-weight: 500;
}
.product-sales {
    color: var(--text-soft);
}

/* STATUS ICONS */
.icon-lg {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--error-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

/* PLAN & STORE CARDS */
.plan-selection-container, .store-rental-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.plan-card, .store-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.plan-card h4, .store-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}
.plan-pricing {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: bold;
}
.plan-pricing .fee {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-soft);
}
.plan-card form, .store-card form {
    margin-top: auto;
}

/* MODERN PLANS CAROUSEL */
.plans-swiper {
    width: 100%;
    padding: 2rem 0 4rem 0;
    overflow: visible;
}

.plans-swiper .swiper-wrapper {
    align-items: center;
}

.plan-card-modern {
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.plan-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.plan-card-modern.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), var(--card-background));
    box-shadow: var(--shadow-md);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.plan-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
}

.plan-pricing .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.plan-pricing .period {
    font-size: 1rem;
    color: var(--text-soft);
    font-weight: 500;
}

.plan-body {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.plan-description {
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.plan-feature i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.plan-footer {
    margin-top: auto;
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.3);
}

/* SWIPER CUSTOMIZATION */
.swiper-slide {
    width: auto !important;
    min-width: 280px;
    max-width: 350px;
    height: auto;
    display: flex;
    align-items: stretch;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7;
    transform: scale(0.95);
}

.swiper-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide .plan-card-modern {
    width: 100%;
    min-height: 420px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: 900;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: var(--border-color) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
    transform: scale(1.3);
}

/* Responsive Swiper Slides */
@media (max-width: 480px) {
    .swiper-slide {
        min-width: 260px !important;
        max-width: 300px !important;
    }
    
    .plans-swiper {
        padding: 1rem 0 3rem 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .swiper-slide {
        min-width: 280px !important;
        max-width: 320px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .swiper-slide {
        min-width: 300px !important;
        max-width: 340px !important;
    }
}

@media (min-width: 1025px) {
    .swiper-slide {
        min-width: 320px !important;
        max-width: 380px !important;
    }
}

/* Plan Info Styles */
.plan-info {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: left;
}

/* Form Section Styles */
.form-section {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-color);
}

.form-section h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4 i {
    color: var(--primary-color);
}

.form-section p.text-soft {
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.form-section.full-width {
    grid-column: 1 / -1;
}

/* Theme Settings Specific Styles */
.theme-form .card-surface {
    margin-bottom: 2rem;
}

.color-input {
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.code-textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    resize: vertical;
}

.current-image {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    text-align: center;
}

.current-image p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-soft);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.plan-info p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.plan-info strong {
    color: var(--text-color);
    font-weight: 600;
    min-width: 140px;
}

.plan-info .plan-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.plan-status.pendente {
    background: var(--warning-bg);
    color: var(--warning-color);
    border: 1px solid var(--warning-border);
}

.plan-status.aprovado {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

.plan-status.reprovado {
    background: var(--danger-bg);
    color: var(--danger-color);
    border: 1px solid var(--danger-border);
}

/* Status Card Improvements */
.card-surface .icon-lg {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card-surface h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-surface .text-soft {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Store Creation Form Styles */
.store-creation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.store-creation-form .form-row:last-child {
    grid-template-columns: 1fr;
}

.store-creation-form .form-group {
    margin-bottom: 1.5rem;
}

.store-creation-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.store-creation-form .required {
    color: var(--danger-color);
}

.store-creation-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--input-background);
    color: var(--text-color);
}

.store-creation-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.store-creation-form .input-group {
    display: flex;
    align-items: stretch;
}

.store-creation-form .input-addon {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--background-soft);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.store-creation-form .input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.store-creation-form .form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.store-creation-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Styles */
.file-upload-area {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-soft);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.file-upload-label span {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.file-upload-label small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive adjustments for store form */
@media (max-width: 768px) {
    .store-creation-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* THEME SWITCHER - REMOVIDO */
/*
.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.theme-switcher span {
    font-weight: 500;
    color: var(--text-soft);
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(24px);
}
*/

/* FILE UPLOADS */
.current-image img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .panel-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        order: 2;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        margin: 0;
        min-width: max-content;
        border-radius: 8px;
        font-size: 0.875rem;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-wrapper {
        order: 1;
        width: 100%;
    }
    
    .top-bar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .dashboard-grid-double {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-card .value {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-surface {
        margin-bottom: 1rem;
    }
    
    .card-header, .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .plans-swiper {
        padding: 1rem 0 3rem 0;
    }
    
    .plan-card-modern {
        padding: 1.5rem;
    }
    
    .plan-pricing .price {
        font-size: 2rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
        margin-top: -18px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .product-table th,
    .product-table td,
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .product-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .btn-action {
        padding: 0.4rem;
        margin-right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 0.75rem;
    }
    
    .card-header, .card-body {
        padding: 0.75rem;
    }
    
    .top-bar {
        padding: 0.75rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .metric-card {
        padding: 0.75rem;
    }
    
    .metric-card h4 {
        font-size: 0.875rem;
    }
    
    .metric-card .value {
        font-size: 1.25rem;
    }
    
    .plan-card-modern {
        padding: 1rem;
    }
    
    .plan-pricing .price {
        font-size: 1.75rem;
    }
    
    .btn-plan {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .product-table th,
    .product-table td,
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .sidebar {
        width: 220px; 
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .dashboard-grid-double {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Estilos específicos para o dashboard de vendas VIP */
.top-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-item:last-child {
    border-bottom: none;
}

.product-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
}

.product-info {
    flex: 1;
}

.product-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.product-stats {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.product-sales {
    color: var(--text-soft);
}

.product-revenue {
    color: var(--success-color);
    font-weight: 500;
}

/* Ajustes nas métricas do dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-card h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-soft);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Cores específicas para diferentes métricas */
.metric-card:nth-child(1) .value { color: #007bff; } /* Vendas Totais */
.metric-card:nth-child(2) .value { color: #28a745; } /* Aprovados */
.metric-card:nth-child(3) .value { color: #ffc107; } /* Pendentes */
.metric-card:nth-child(4) .value { color: #dc3545; } /* Cancelados */
.metric-card:nth-child(5) .value { color: #6f42c1; } /* Faturamento */
.metric-card:nth-child(6) .value { color: #fd7e14; } /* Taxas */

/* Container para gráficos */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Grid duplo para gráficos */
.dashboard-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid-double {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-card .value {
        font-size: 1.5rem;
    }
    
    .product-rank {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .product-stats {
        flex-direction: column;
        gap: 4px;
    }
}

/* Top Goal Progress Styles */
.top-goal-progress {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(106, 90, 205, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}

.goal-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.goal-icon {
    font-size: 20px;
    line-height: 1;
}

.goal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.goal-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.2;
}

.goal-desc {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.2;
}

.goal-percent {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    text-align: right;
    min-width: 50px;
}

.goal-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(106, 90, 205, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.goal-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.goal-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

[data-theme='dark'] .top-goal-progress {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.15) 0%, rgba(123, 104, 238, 0.08) 100%);
    border-color: var(--border-color);
}

[data-theme='dark'] .goal-progress-bar {
    background: rgba(123, 104, 238, 0.2);
}

/* Responsive adjustments for top goal progress */
@media (max-width: 768px) {
    .top-goal-progress {
        padding: 10px 12px;
        margin-top: 10px;
    }
    
    .goal-info {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .goal-icon {
        font-size: 18px;
    }
    
    .goal-title {
        font-size: 13px;
    }
    
    .goal-desc {
        font-size: 11px;
    }
    
    .goal-percent {
        font-size: 14px;
        min-width: 45px;
    }
    
    .goal-progress-bar {
        height: 5px;
    }
}

/* Goals Section Styles */
.goals-section {
    margin: 2rem 0;
}

.goals-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0;
    transition: all 0.3s ease;
    user-select: none;
}

.goals-header:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.goals-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.goals-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

#goals-toggle-icon {
    font-size: 1.2rem;
    color: var(--text-soft);
    transition: transform 0.3s ease;
}

/* Dark theme for goals section */
[data-theme='dark'] .goals-header:hover {
    background: rgba(123, 104, 238, 0.15);
    border-color: var(--primary-color);
}

/* Goal cards responsive */
@media (max-width: 768px) {
    .goals-header {
        padding: 0.8rem;
    }
    
    .goals-header h3 {
        font-size: 1rem;
    }
    
    #goals-toggle-icon {
        font-size: 1rem;
    }
}

/* ===== SAQUES PAGE STYLES ===== */

/* Withdrawal Info Section */
.withdrawal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-weight: 600;
}

.info-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Withdrawal Actions */
.withdrawal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.current-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.balance-label {
    font-size: 0.875rem;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pendente {
    background: var(--warning-bg);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.status-pago {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* Enhanced Table Styles for Withdrawals */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background: var(--primary-light);
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: middle;
}

.table tr:hover {
    background: var(--primary-light);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Enhanced Metric Cards for Withdrawals */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.metric-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-header i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-desc {
    font-size: 0.875rem;
    color: var(--text-soft);
}

/* Tablet responsive adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design for Withdrawals Page */
@media (max-width: 768px) {
    .withdrawal-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .current-balance {
        align-items: center;
        text-align: center;
        margin-top: 1rem;
    }
    
    .withdrawal-info {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-item i {
        align-self: center;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    /* Metrics grid with 3 cards responsive */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Dark Theme Support for Withdrawals */
[data-theme='dark'] .withdrawal-info {
    background: rgba(106, 90, 205, 0.1);
    border-color: rgba(106, 90, 205, 0.2);
}

[data-theme='dark'] .withdrawal-actions {
    background: var(--card-background);
    border-color: rgba(106, 90, 205, 0.2);
}

[data-theme='dark'] .table th {
    background: rgba(106, 90, 205, 0.1);
}

[data-theme='dark'] .table tr:hover {
    background: rgba(106, 90, 205, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.modal-header i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-soft);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: var(--hover-background);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.saque-details {
    background: var(--background-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.detail-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
}

/* Modal Animation */
.modal-overlay {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-container {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark theme support for modal */
[data-theme='dark'] .modal-container {
    background: var(--card-background);
    border-color: rgba(106, 90, 205, 0.2);
}

[data-theme='dark'] .saque-details {
    background: rgba(106, 90, 205, 0.1);
    border-color: rgba(106, 90, 205, 0.2);
}

/* Responsive modal */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ==========================================
   MÉTRICAS HERO SECTION - ESTILOS PRINCIPAIS
   ========================================== */

.metrics-hero-section {
    margin: 0 0 2rem 0;
    padding: 0;
}

.metrics-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.metric-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.metric-hero-card.primary {
    background: linear-gradient(135deg, #6a5acd 0%, #7b68ee 100%);
    color: white;
}

.metric-hero-card.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.metric-hero-card.info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c9ff 100%);
    color: white;
}

.metric-hero-card.warning {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    color: white;
}

.metric-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
}

.metric-content {
    flex: 1;
    min-width: 0;
}

.metric-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-hero {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.metric-change.positive {
    opacity: 1;
}

/* Dashboard Analytics Section */
.dashboard-analytics-section {
    margin: 2rem 0;
}

.dashboard-analytics-section .dashboard-grid-double {
    gap: 1.5rem;
}

.dashboard-analytics-section .card-surface {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-analytics-section .card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-analytics-section .card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-analytics-section .card-header i {
    color: var(--primary-color);
}

/* Responsive para métricas hero */
@media (max-width: 768px) {
    .metrics-hero-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .metric-hero-card {
        padding: 1rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .metric-icon {
        font-size: 1.5rem;
    }
    
    .metric-value-hero {
        font-size: 1.2rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
    
    .metric-change {
        font-size: 0.65rem;
    }
}

/* Para telas muito pequenas - ainda mantém horizontal */
@media (max-width: 480px) {
    .metrics-hero-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
    
    .metric-hero-card {
        padding: 0.75rem 0.5rem;
        min-height: 80px;
    }
    
    .metric-icon {
        font-size: 1.25rem;
    }
    
    .metric-value-hero {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .metric-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .metric-change {
        font-size: 0.6rem;
        display: none; /* Oculta em telas muito pequenas */
    }
}

@media (max-width: 480px) {
    .metric-hero-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .metric-content {
        text-align: center;
    }
    
    .metric-value-hero {
        font-size: 1.75rem;
    }
}

/* ===== CUSTOMIZAÇÃO DAS BARRAS DE ROLAGEM ===== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4a3aad 100%);
    transform: scale(1.1);
}

::-webkit-scrollbar-corner {
    background: var(--background-color);
}

/* Scrollbar para áreas específicas */
.content-area::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 205, 0.6);
    border-radius: 6px;
}

.content-area::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 90, 205, 0.8);
}

/* Scrollbar para modais e popups */
.modal::-webkit-scrollbar,
.popup::-webkit-scrollbar {
    width: 4px;
}

.modal::-webkit-scrollbar-thumb,
.popup::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 205, 0.4);
    border-radius: 4px;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

.content-area,
.main-content,
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 90, 205, 0.6) transparent;
}

/* Scrollbar com tema escuro */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b7beb 0%, #6a5acd 100%);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9b8bfb 0%, #7a6add 100%);
}

[data-theme="dark"] * {
    scrollbar-color: #8b7beb #1a1a2e;
}

/* Animação suave para scrollbars */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Scrollbar invisível para algumas áreas específicas */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scrollbar especial para tabelas */
.data-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.data-table-container::-webkit-scrollbar {
    width: 6px;
}

.data-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 6px;
}

/* Scrollbar para areas de código */
.code-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-area::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.code-area::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Hover effect nos elementos com scroll */
.scrollable-content {
    transition: all 0.3s ease;
}

.scrollable-content:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4a3aad 100%);
    box-shadow: 0 2px 8px rgba(106, 90, 205, 0.3);
}

/* ==== CONTROLES DE TEMA ==== */
.theme-controls {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.theme-controls .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-controls .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.theme-controls .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 90, 205, 0.25);
    outline: none;
}

.theme-controls .form-select option {
    background: var(--sidebar-bg);
    color: var(--text-color);
}


