/* Derivo Account Management - Professional Dashboard Styling */

:root {
    /* Colors */
    --header-bg: #1d2435;
    --primary-dark: #0F172A;
    --primary-green: #05af2d;
    --secondary-green: #04961f;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --blue-color: #3B82F6;
    --purple-color: #8B5CF6;
    --gold-color: #F59E0B;
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #05af2d 0%, #04961f 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

/* Balance Animation */
.balance-updating {
    animation: balancePulse 0.3s ease;
}

@keyframes balancePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

#derivoAmBalanceAmount {
    transition: color 0.3s ease;
}

#derivoAmBalanceAmount.growing {
    color: var(--success-color);
}

/* WordPress Container Overrides */
.bloghash-container:has(.derivo-am-wrapper),
.bloghash-container-fluid:has(.derivo-am-wrapper),
.elementor-widget-container:has(.derivo-am-wrapper),
.elementor-element:has(.derivo-am-wrapper),
.elementor-section:has(.derivo-am-wrapper),
.elementor-container:has(.derivo-am-wrapper),
.e-con:has(.derivo-am-wrapper) {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Main Wrapper - Full Viewport */
.derivo-am-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-bg);
    min-height: 100vh;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow-x: hidden;
}

/* ===========================
   STICKY HEADER
   =========================== */
.derivo-am-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.derivo-am-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    padding: 0 20px;
}

.derivo-am-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.derivo-am-header-logo svg {
    color: var(--primary-green);
}

.derivo-am-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.derivo-am-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Avatar with Initials */
.derivo-am-user-avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(5, 175, 45, 0.3);
}

.derivo-am-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.derivo-am-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.derivo-am-logout-btn:hover {
    background: var(--error-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===========================
   DASHBOARD CONTAINER
   =========================== */
.derivo-am-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 85px 20px 40px 20px;
}

/* Dashboard Header */
.derivo-am-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.derivo-am-header-left h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.derivo-am-header-left h1 svg {
    color: var(--primary-green);
}

.derivo-am-header-left p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Balance Card in Header */
.derivo-am-balance-card {
    background: var(--gradient-green);
    padding: 16px 28px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(5, 175, 45, 0.25);
    min-width: 200px;
}

.derivo-am-balance-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.derivo-am-balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

/* ===========================
   STATUS BAR
   =========================== */
.derivo-am-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    background: var(--white);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.derivo-am-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.derivo-am-status-item svg {
    color: var(--primary-green);
    flex-shrink: 0;
}

.derivo-am-status-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.derivo-am-status-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

/* ===========================
   TAB NAVIGATION
   =========================== */
.derivo-am-tab-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: var(--white);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.derivo-am-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.derivo-am-tab-btn svg {
    flex-shrink: 0;
}

.derivo-am-tab-btn:hover {
    background: rgba(5, 175, 45, 0.08);
    color: var(--primary-green);
}

.derivo-am-tab-btn.active {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(5, 175, 45, 0.25);
}

/* ===========================
   TAB CONTENT
   =========================== */
.derivo-am-tab-content {
    display: none;
}

.derivo-am-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   GRID LAYOUTS
   =========================== */
.derivo-am-grid {
    display: grid;
    gap: 24px;
}

/* ===========================
   SECTIONS
   =========================== */
.derivo-am-section {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.derivo-am-section-header {
    margin-bottom: 24px;
}

.derivo-am-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.derivo-am-section-header h2 svg {
    color: var(--primary-green);
}

.derivo-am-section-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===========================
   ACTION BUTTONS
   =========================== */
.derivo-am-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.derivo-am-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    text-align: left;
}

.derivo-am-action-btn.primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(5, 175, 45, 0.2);
}

.derivo-am-action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(5, 175, 45, 0.3);
}

.derivo-am-action-btn.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.derivo-am-action-btn.success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.derivo-am-action-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.derivo-am-action-content {
    flex: 1;
}

.derivo-am-action-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.derivo-am-action-desc {
    font-size: 13px;
    opacity: 0.9;
}

/* ===========================
   PROGRESS CARD
   =========================== */
.derivo-am-progress-card {
    background: rgba(5, 175, 45, 0.05);
    border: 1px solid rgba(5, 175, 45, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.derivo-am-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.derivo-am-progress-bar {
    height: 12px;
    background: rgba(5, 175, 45, 0.15);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.derivo-am-progress-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.derivo-am-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===========================
   STATS GRID
   =========================== */
.derivo-am-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.derivo-am-stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.derivo-am-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.derivo-am-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.derivo-am-stat-icon.green {
    background: var(--gradient-green);
}

.derivo-am-stat-icon.blue {
    background: var(--gradient-blue);
}

.derivo-am-stat-icon.purple {
    background: var(--gradient-purple);
}

.derivo-am-stat-icon.gold {
    background: var(--gradient-gold);
}

.derivo-am-stat-content {
    flex: 1;
}

.derivo-am-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.derivo-am-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

/* ===========================
   TABLES
   =========================== */
.derivo-am-table-container {
    margin-top: 20px;
}

.derivo-am-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.derivo-am-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.derivo-am-table thead {
    background: #F8FAFC;
}

.derivo-am-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.derivo-am-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
}

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

.derivo-am-table tbody tr:hover {
    background: #F8FAFC;
}

.derivo-am-table .derivo-am-no-data {
    text-align: center;
    padding: 60px 20px !important;
}

.derivo-am-table .derivo-am-no-data td {
    border-bottom: none !important;
}

.derivo-am-table .derivo-am-no-data svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.derivo-am-table .derivo-am-no-data p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.derivo-am-amount {
    font-weight: 700;
    color: var(--text-primary);
}

/* Status & License Badges */
.derivo-am-status-badge,
.derivo-am-license-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.derivo-am-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.derivo-am-status-badge.completed,
.derivo-am-status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.derivo-am-license-badge.gold {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.derivo-am-license-badge.silver {
    background: rgba(148, 163, 184, 0.15);
    color: #64748B;
}

.derivo-am-license-badge.bronze {
    background: rgba(197, 118, 61, 0.15);
    color: #9A5B31;
}

/* ===========================
   FORMS
   =========================== */
.derivo-am-form-group {
    margin-bottom: 20px;
}

.derivo-am-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.derivo-am-form-input,
.derivo-am-form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-primary);
}

.derivo-am-form-input:focus,
.derivo-am-form-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(5, 175, 45, 0.1);
}

.derivo-am-form-help {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ===========================
   CALCULATOR - PROFESSIONAL
   =========================== */
.derivo-am-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.derivo-am-calc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.derivo-am-calc-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.derivo-am-calc-header-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.derivo-am-calc-header-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.derivo-am-calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 968px) {
    .derivo-am-calc-container {
        grid-template-columns: 1fr;
    }
}

.derivo-am-calc-input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.derivo-am-calc-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.derivo-am-calc-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.derivo-am-calc-card-icon {
    width: 36px;
    height: 36px;
    background: #F0FDF4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.derivo-am-calc-amount-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.derivo-am-calc-amount-display:focus-within {
    border-color: var(--primary-green);
}

.derivo-am-calc-currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
}

.derivo-am-calc-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    width: 100%;
}

.derivo-am-calc-slider-container {
    margin-bottom: 20px;
}

.derivo-am-calc-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.derivo-am-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s ease;
}

.derivo-am-calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.derivo-am-calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.derivo-am-calc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.derivo-am-calc-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.derivo-am-calc-quick-btn {
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.derivo-am-calc-quick-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #F0FDF4;
}

.derivo-am-calc-quick-btn.active {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
}

.derivo-am-calc-period-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .derivo-am-calc-period-options {
        grid-template-columns: repeat(3, 1fr);
    }
    .derivo-am-calc-quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.derivo-am-calc-period-option {
    cursor: pointer;
}

.derivo-am-calc-period-option input {
    display: none;
}

.derivo-am-calc-period-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
}

.derivo-am-calc-period-option:hover .derivo-am-calc-period-card {
    border-color: var(--primary-green);
}

.derivo-am-calc-period-option input:checked + .derivo-am-calc-period-card {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.derivo-am-calc-period-days {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.derivo-am-calc-period-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

.derivo-am-calc-period-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 3px 8px;
    background: var(--primary-green);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.derivo-am-calc-period-badge.best {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Results Section */
.derivo-am-calc-results-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.derivo-am-calc-results-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 20px;
    padding: 28px;
    color: white;
}

.derivo-am-calc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.derivo-am-calc-results-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #CBD5E1;
    margin: 0;
}

.derivo-am-calc-roi-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: #10B981;
    font-weight: 600;
    font-size: 14px;
}

.derivo-am-calc-main-result {
    text-align: center;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.derivo-am-calc-your-share {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.derivo-am-calc-share-label {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 8px;
}

.derivo-am-calc-share-amount {
    font-size: 48px;
    font-weight: 800;
    color: #10B981;
    line-height: 1;
    margin-bottom: 8px;
}

.derivo-am-calc-share-percent {
    font-size: 14px;
    color: #64748B;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.derivo-am-calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.derivo-am-calc-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.derivo-am-calc-breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #94A3B8;
}

.derivo-am-calc-breakdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.derivo-am-calc-breakdown-dot.investment {
    background: #3B82F6;
}

.derivo-am-calc-breakdown-dot.profit {
    background: #10B981;
}

.derivo-am-calc-breakdown-dot.fee {
    background: #F59E0B;
}

.derivo-am-calc-breakdown-value {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.derivo-am-calc-total-return {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.derivo-am-calc-total-label {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 8px;
}

.derivo-am-calc-total-amount {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.derivo-am-calc-total-note {
    font-size: 12px;
    color: #64748B;
}

.derivo-am-calc-chart {
    margin-top: 8px;
}

.derivo-am-calc-chart-bar {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.derivo-am-calc-chart-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    transition: width 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
}

.derivo-am-calc-chart-segment.investment {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.derivo-am-calc-chart-segment.yours {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.derivo-am-calc-chart-segment.fee {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.derivo-am-calc-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.derivo-am-calc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
}

.derivo-am-calc-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.derivo-am-calc-legend-dot.investment {
    background: #3B82F6;
}

.derivo-am-calc-legend-dot.yours {
    background: #10B981;
}

.derivo-am-calc-legend-dot.fee {
    background: #F59E0B;
}

.derivo-am-calc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.derivo-am-calc-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #94A3B8;
}

/* ===========================
   MODALS
   =========================== */
.derivo-am-logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
}

.derivo-am-logout-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.derivo-am-logout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.derivo-am-logout-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.derivo-am-logout-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--error-color);
}

.derivo-am-logout-icon svg {
    width: 28px;
    height: 28px;
}

.derivo-am-logout-modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.derivo-am-logout-modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.derivo-am-logout-modal-buttons {
    display: flex;
    gap: 12px;
}

.derivo-am-logout-cancel-btn,
.derivo-am-logout-confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.derivo-am-logout-cancel-btn {
    background: #F8FAFC;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.derivo-am-logout-cancel-btn:hover {
    background: #E2E8F0;
}

.derivo-am-logout-confirm-btn {
    background: var(--error-color);
    color: var(--white);
}

.derivo-am-logout-confirm-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* General Modal Overlay */
.derivo-am-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.derivo-am-modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

.derivo-am-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.derivo-am-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.derivo-am-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F8FAFC;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.derivo-am-modal-close:hover {
    background: var(--error-color);
    color: var(--white);
}

.derivo-am-modal-body {
    padding: 28px;
}

.derivo-am-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
}

/* Modal Buttons */
.derivo-am-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.derivo-am-btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 175, 45, 0.2);
}

.derivo-am-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 175, 45, 0.3);
}

.derivo-am-btn-secondary {
    background: #F8FAFC;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.derivo-am-btn-secondary:hover {
    background: #E2E8F0;
}

/* Info Boxes */
.derivo-am-info-box {
    background: rgba(5, 175, 45, 0.05);
    border: 1px solid rgba(5, 175, 45, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.derivo-am-info-box.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.derivo-am-info-box.error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.derivo-am-info-box-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.derivo-am-info-box-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Payment Methods */
.derivo-am-payment-method {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.derivo-am-payment-header {
    margin-bottom: 12px;
}

.derivo-am-payment-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.derivo-am-payment-address {
    display: flex;
    gap: 12px;
    align-items: center;
}

.derivo-am-payment-address .address-text {
    flex: 1;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    word-break: break-all;
}

.derivo-am-copy-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--primary-green);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.derivo-am-copy-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-1px);
}

/* Success Animation */
.derivo-am-success-animation {
    padding: 20px;
    text-align: center;
}

.derivo-am-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--success-color);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.derivo-am-success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.derivo-am-success-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Loading Spinner */
.derivo-am-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(5, 175, 45, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-green);
    animation: spin 0.8s linear infinite;
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 992px) {
    .derivo-am-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .derivo-am-header-right {
        width: 100%;
    }

    .derivo-am-balance-card {
        width: 100%;
    }

    .derivo-am-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .derivo-am-status-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .derivo-am-header-container {
        padding: 0 16px;
    }

    .derivo-am-header-logo span {
        display: none;
    }

    .derivo-am-user-name {
        display: none;
    }

    .derivo-am-dashboard-container {
        padding: 75px 16px 30px 16px;
    }

    .derivo-am-tab-navigation {
        gap: 8px;
        padding: 6px;
    }

    .derivo-am-tab-btn {
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .derivo-am-tab-btn svg {
        width: 18px;
        height: 18px;
    }

    .derivo-am-section {
        padding: 20px;
    }

    .derivo-am-status-bar {
        grid-template-columns: 1fr;
    }

    .derivo-am-stats-grid {
        grid-template-columns: 1fr;
    }

    .derivo-am-action-btn {
        padding: 16px 20px;
    }

    .derivo-am-action-icon {
        width: 48px;
        height: 48px;
    }

    .derivo-am-action-title {
        font-size: 16px;
    }

    .derivo-am-table-wrapper {
        overflow-x: scroll;
    }

    .derivo-am-table {
        min-width: 600px;
    }

    .derivo-am-logout-modal-buttons {
        flex-direction: column;
    }

    .derivo-am-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
    }

    .derivo-am-payment-address {
        flex-direction: column;
        align-items: stretch;
    }

    .derivo-am-copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .derivo-am-dashboard-header h1 {
        font-size: 22px;
    }

    .derivo-am-balance-amount {
        font-size: 24px;
    }

    .derivo-am-stat-value {
        font-size: 18px;
    }

    .derivo-am-modal-header,
    .derivo-am-modal-body,
    .derivo-am-modal-footer {
        padding: 20px;
    }
}

/* ===========================
   PROFESSIONAL TRANSACTION RECEIPT
   =========================== */
.derivo-am-modal-receipt {
    max-width: 400px !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.derivo-am-receipt {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 0;
}

.derivo-am-receipt-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: 32px 24px;
    text-align: center;
}

.derivo-am-receipt-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.derivo-am-receipt-icon.success {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.derivo-am-receipt-status {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.derivo-am-receipt-amount {
    text-align: center;
    padding: 28px 24px;
    border-bottom: 1px dashed #E2E8F0;
}

.derivo-am-receipt-currency {
    font-size: 24px;
    font-weight: 600;
    color: #10B981;
    vertical-align: top;
}

.derivo-am-receipt-value {
    font-size: 48px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -1px;
}

.derivo-am-receipt-details {
    padding: 24px;
}

.derivo-am-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.derivo-am-receipt-row.total {
    padding-top: 16px;
}

.derivo-am-receipt-label {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
}

.derivo-am-receipt-data {
    font-size: 14px;
    color: #0F172A;
    font-weight: 600;
    text-align: right;
}

.derivo-am-receipt-data.status-success {
    color: #10B981;
    background: #F0FDF4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.derivo-am-receipt-row.total .derivo-am-receipt-label {
    font-size: 15px;
    color: #0F172A;
    font-weight: 600;
}

.derivo-am-receipt-row.total .derivo-am-receipt-data {
    font-size: 20px;
    font-weight: 700;
    color: #10B981;
}

.derivo-am-receipt-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E2E8F0 50%, transparent 100%);
    margin: 8px 0;
}

.derivo-am-receipt-btn {
    display: block;
    width: calc(100% - 48px);
    margin: 8px 24px 24px;
    padding: 16px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.derivo-am-receipt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

/* ===========================
   STATUS MODALS (SUCCESS/ERROR)
   =========================== */
.derivo-am-modal-status {
    max-width: 380px !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.derivo-am-status-modal {
    padding: 40px 32px;
    text-align: center;
    background: white;
}

.derivo-am-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.derivo-am-status-icon.success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.derivo-am-status-icon.error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

.derivo-am-status-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px 0;
}

.derivo-am-status-message {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.derivo-am-status-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.derivo-am-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.derivo-am-status-btn.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.derivo-am-status-btn.error:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* ===========================
   LOADING MODAL
   =========================== */
.derivo-am-modal-loading {
    max-width: 320px !important;
    border-radius: 20px !important;
}

.derivo-am-loading-content {
    padding: 48px 32px;
    text-align: center;
    background: white;
}

.derivo-am-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E2E8F0;
    border-top-color: #10B981;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: derivo-spin 0.8s linear infinite;
}

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

.derivo-am-loading-text {
    font-size: 15px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* ===========================
   PROFESSIONAL MODALS
   =========================== */
.derivo-pro-modal {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: proModalSlide 0.3s ease;
}

@keyframes proModalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.derivo-pro-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: white;
    flex-shrink: 0;
}

.derivo-pro-modal-header.green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.derivo-pro-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.derivo-pro-modal-title {
    flex: 1;
}

.derivo-pro-modal-title h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.derivo-pro-modal-title p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.derivo-pro-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.derivo-pro-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.derivo-pro-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.derivo-pro-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.derivo-pro-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.derivo-pro-btn.primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.derivo-pro-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.derivo-pro-btn.secondary {
    background: white;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.derivo-pro-btn.secondary:hover {
    background: #F1F5F9;
}

/* Steps */
.derivo-pro-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.derivo-pro-step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.derivo-pro-step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 4px 0;
}

.derivo-pro-step-content p {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

/* Wallet Tabs */
.derivo-pro-wallet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.derivo-pro-wallet-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.derivo-pro-wallet-tab:hover {
    border-color: #10B981;
}

.derivo-pro-wallet-tab.active {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-color: #10B981;
    color: #059669;
}

.derivo-pro-wallet-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.derivo-pro-wallet-icon.trc20 {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.derivo-pro-wallet-icon.erc20 {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.derivo-pro-wallet-icon.btc {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Address Box */
.derivo-pro-address-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.derivo-pro-address-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.derivo-pro-address-label span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.derivo-pro-network-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #D1FAE5;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.derivo-pro-network-badge.warning {
    background: #FEF3C7;
    color: #D97706;
}

.derivo-pro-address-field {
    display: flex;
    gap: 10px;
}

.derivo-pro-address-field input {
    flex: 1;
    padding: 12px 14px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13px;
    font-family: monospace;
    color: #1E293B;
}

.derivo-pro-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.derivo-pro-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.derivo-pro-address-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #64748B;
}

.derivo-pro-address-note svg {
    color: #94A3B8;
    flex-shrink: 0;
}

/* Security Notice */
.derivo-pro-security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    font-size: 12px;
    color: #059669;
}

.derivo-pro-security-notice svg {
    color: #10B981;
    flex-shrink: 0;
}

/* Divider */
.derivo-pro-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.derivo-pro-divider::before,
.derivo-pro-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.derivo-pro-divider span {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Form Field */
.derivo-pro-form-field {
    margin-bottom: 16px;
}

.derivo-pro-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.derivo-pro-input-wrap {
    position: relative;
}

.derivo-pro-input-wrap input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 44px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    color: #1E293B;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.derivo-pro-input-wrap input:focus {
    outline: none;
    border-color: #10B981;
}

.derivo-pro-input-wrap input::placeholder {
    color: #94A3B8;
}

.derivo-pro-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}

/* Balance Display */
.derivo-pro-balance-display {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.derivo-pro-balance-label {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    margin-bottom: 8px;
}

.derivo-pro-balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: #047857;
}

/* Period Selection */
.derivo-pro-period-section {
    margin-bottom: 24px;
}

.derivo-pro-period-section > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 12px;
}

.derivo-pro-period-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 500px) {
    .derivo-pro-period-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.derivo-pro-period-option {
    cursor: pointer;
}

.derivo-pro-period-option input {
    display: none;
}

.derivo-pro-period-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.derivo-pro-period-option:hover .derivo-pro-period-card {
    border-color: #10B981;
}

.derivo-pro-period-option input:checked + .derivo-pro-period-card {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-color: #10B981;
}

.derivo-pro-period-days {
    font-size: 24px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1;
}

.derivo-pro-period-label {
    font-size: 11px;
    color: #64748B;
    margin-top: 4px;
}

.derivo-pro-period-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    background: #10B981;
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.derivo-pro-period-badge.best {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Returns Card */
.derivo-pro-returns-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 16px;
}

.derivo-pro-returns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.derivo-pro-returns-header span:first-child {
    font-size: 14px;
    color: #94A3B8;
}

.derivo-pro-returns-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.derivo-pro-returns-main {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.derivo-pro-returns-label {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 8px;
}

.derivo-pro-returns-amount {
    font-size: 40px;
    font-weight: 800;
    color: #10B981;
}

.derivo-pro-returns-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.derivo-pro-returns-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.derivo-pro-returns-row span:first-child {
    color: #94A3B8;
}

.derivo-pro-returns-row span:last-child {
    font-weight: 600;
}

.derivo-pro-returns-row.total {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

.derivo-pro-returns-row.total span:first-child {
    color: white;
    font-weight: 600;
}

.derivo-pro-returns-row.total span:last-child {
    color: #10B981;
    font-size: 18px;
}

/* Notice */
.derivo-pro-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FEF3C7;
    border-radius: 10px;
    font-size: 13px;
    color: #92400E;
}

.derivo-pro-notice svg {
    flex-shrink: 0;
}
